:root {
  --navy-950: #071526;
  --navy-900: #0b1f3a;
  --navy-800: #123056;
  --blue-600: #1a6bb8;
  --blue-500: #2b7fd4;
  --blue-100: #e8f2fb;
  --blue-50: #f3f8fc;
  --slate-700: #3d4f63;
  --slate-500: #5f738a;
  --slate-300: #c5d0dc;
  --slate-200: #dde5ee;
  --white: #ffffff;
  /* warmer, light paper tone while remaining neutral and compatible with navy/teal accents */\n+  --bg: #fbf6f3;
  --warning-bg: #fff7e8;
  --warning-text: #8a5a12;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 40px rgba(11, 31, 58, 0.08);
  --shadow-card: 0 8px 24px rgba(11, 31, 58, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space-section: clamp(3.5rem, 7vw, 5.5rem);
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  /* subtle warm highlights to pair with navy/teal palette */
  background:
    radial-gradient(1200px 500px at 8% -8%, rgba(247, 201, 170, 0.06), transparent 45%),
    radial-gradient(900px 400px at 100% 0%, rgba(18, 48, 86, 0.06), transparent 50%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 248, 251, 0.88);
  border-bottom: 1px solid rgba(197, 208, 220, 0.65);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  height: clamp(2.5rem, 5.5vw, 3.25rem);
  width: auto;
  max-width: min(100%, 17.5rem);
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--blue-600);
}

.header-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white) !important;
}

.header-cta:hover {
  background: var(--navy-800);
  color: var(--white) !important;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 var(--space-section);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(115deg, rgba(232, 242, 251, 0.9) 0%, transparent 48%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(43, 127, 212, 0.16), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.brand-lockup {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy-950);
  max-width: 14ch;
}

.hero-lede {
  margin: 0;
  max-width: 38ch;
  font-size: 1.125rem;
  color: var(--slate-700);
}

.help-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: var(--shadow-soft);
  animation: rise-in 0.7s ease both;
}

/* Layout: two inputs side-by-side on wider screens, stacked on small */
.help-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}
.help-form .field {
  margin: 0;
}

@media (min-width: 720px) {
  .help-form .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
  .help-form {
    padding: 1.6rem 1.6rem 1.5rem;
  }
}

.help-form-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.help-form-copy {
  margin: 0 0 1.15rem;
  color: var(--slate-500);
  font-size: 0.98rem;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
}

.field input {
  width: 100%;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--blue-50);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
  color: #8fa0b3;
}

.field input:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(43, 127, 212, 0.18);
}

.form-note {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--slate-500);
}

.form-note.is-success {
  color: #1a6b45;
}

.form-note.is-error {
  color: #9b2c2c;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.05rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-800);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--slate-300);
}

.btn-secondary:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-600);
  border-color: transparent;
  padding-inline: 0.65rem;
}

.btn-ghost:hover {
  background: var(--blue-100);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
}

/* Listings */
.listings-section {
  padding: var(--space-section) 0;
}

.carriers-section {
  padding-top: 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-lede {
  margin: 0;
  color: var(--slate-500);
  max-width: 42ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.listing-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.15rem 1.15rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: rise-in 0.55s ease both;
}

.listing-card:hover {
  transform: translateY(-2px);
  border-color: #b7c9dc;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.1);
}

.listing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.placement-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.placement-badge.featured {
  background: var(--blue-100);
  color: var(--navy-800);
}

.placement-badge.sponsored {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.listing-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.listing-location {
  margin: 0.15rem 0 0;
  color: var(--slate-500);
  font-size: 0.95rem;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate-700);
  font-size: 0.92rem;
  font-weight: 600;
}

.rating-stars {
  color: #d4a017;
  letter-spacing: 0.05em;
}

.rating-meta {
  color: var(--slate-500);
  font-weight: 500;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.card-actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--slate-500);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.72);
  padding: 2.25rem 0 2.75rem;
  margin-top: 1rem;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-mark {
  width: 2rem;
  height: auto;
  object-fit: contain;
}

.footer-disclaimer {
  margin: 0;
  max-width: 62ch;
  color: var(--slate-700);
  font-size: 0.95rem;
}

.footer-meta {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.85rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-nav a:not(.header-cta) {
    display: none;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .carriers-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
  }

  .section-header .btn {
    width: 100%;
  }

  .brand-logo {
    max-width: 12.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .help-form,
  .listing-card,
  .btn,
  .listing-card:hover {
    animation: none;
    transition: none;
    transform: none;
  }
}
