/*
  VPN Lookup — Custom styles

  This stylesheet defines a light, minimal aesthetic reminiscent of modern
  consumer technology brands. A restrained colour palette, generous
  white space and thoughtful typography create a clean interface that
  scales gracefully from mobile to desktop.
*/

:root {
  /* Colour palette inspired by Apple's UI: blue accent, dark text, soft
     neutrals. */
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-primary: #0066cc;
  --color-primary-hover: #005bb5;
  --color-text: #1d1d1f;
  --color-muted: #6e6e73;
  --border-radius: 0.75rem;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Hamburger menu for mobile */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-icon span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Use hero image from project root to avoid nested path when hosted */
  background: url('hero-bg.png') no-repeat center center / cover;
}

.hero-overlay {
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 640px;
}

.hero h1 {
  font-size: 2.75rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  color: var(--color-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Button group for multiple actions inside a card */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-group .btn {
  flex: 1 1 auto;
  text-align: center;
}

/* Sections */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* Provider Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.card .tag {
  margin: 0;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card .description {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

/* Footer */
.footer {
  background-color: #fafafa;
  padding: 1rem 0;
  border-top: 1px solid #e2e2e2;
}

.footer-content {
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    display: none;
    z-index: 10;
  }

  .menu-icon {
    display: flex;
  }

  /* Show nav when menu is checked */
  .menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }
}