/* GlobeInsured, on the classic base design: a light hero with soft colour,
   Manrope headings, teal pill buttons, rounded white cards, a dark closing
   panel and an ink footer. Matches the prototype at globeinsured.vercel.app.
   Reads the theme tokens in site.config.json. */

body {
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.tone-tinted {
  background: var(--surface-alt);
}

/* Header: the logo carries the name */
.site-header {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.site-header .brand-logo {
  width: 150px;
  height: auto;
}

.site-header .brand-text {
  display: none;
}

.site-header .menu-toggle {
  position: static;
}

.desktop-nav {
  gap: 1.75rem;
  font-size: 0.95rem;
}

.desktop-nav a,
.nav-menu-button {
  color: color-mix(in srgb, var(--fg) 80%, var(--surface));
  font-weight: 500;
}

.desktop-nav .nav-cta {
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.desktop-nav .nav-cta:hover {
  background: var(--fg);
  color: var(--on-accent);
}

/* Buttons: pills, the primary one teal */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--fg);
  box-shadow: none;
  transform: none;
}

.btn-outline {
  border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
  background: var(--surface);
  color: var(--fg);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
}

/* Hero: light band with soft teal and green light */
section[data-block-type="hero"] {
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, #33b5c1 20%, transparent) 0, transparent 32rem),
    radial-gradient(circle at 4% 95%, color-mix(in srgb, #7ac143 12%, transparent) 0, transparent 22rem),
    var(--surface-alt);
  color: var(--fg);
}

section[data-block-type="hero"]::before {
  display: none;
}

/* Columns come from classic.css, which stacks them on narrow screens */
section[data-block-type="hero"] .grid-asymmetric {
  gap: 2.5rem;
}

section[data-block-type="hero"] .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

section[data-block-type="hero"] h1 {
  margin-bottom: 0;
  color: var(--heading);
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1.08;
}

section[data-block-type="hero"] .hero-subtitle {
  margin: 1.25rem 0 0;
  color: color-mix(in srgb, var(--fg) 80%, var(--surface));
  font-size: 1.15rem;
  line-height: 1.6;
}

section[data-block-type="hero"] p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--fg) 80%, var(--surface));
  font-size: 1rem;
}

section[data-block-type="hero"] .actions {
  margin-top: 2rem;
}

section[data-block-type="hero"] .btn-outline {
  border-color: color-mix(in srgb, var(--fg) 15%, transparent);
  color: var(--fg);
}

.picker {
  border: 0;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px var(--border),
    0 25px 50px -12px color-mix(in srgb, var(--fg) 12%, transparent);
}

.picker-image {
  border-radius: 12px;
}

.picker-arrow {
  color: var(--accent);
}

/* Photo stack: one large rounded photo */
.photo-card {
  border-radius: 24px;
}

/* Section headings sit on the left */
.section-heading {
  max-width: none;
  margin: 0 0 2rem;
  text-align: left;
}

/* Plan cards */
.photo-card-link {
  border-radius: 16px;
}

.photo-card-body h3 {
  font-size: 1.1rem;
}

.photo-card-body p {
  font-size: 0.95rem;
}

.photo-card-body ul {
  padding-left: 0;
  list-style: none;
}

.photo-card-body li {
  position: relative;
  padding-left: 0.9rem;
}

.photo-card-body li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #33b5c1;
}

/* "Who are we" and benefit checks */
.split-card,
.checks li,
.testimonial {
  border-radius: 16px;
}

.split-intro p {
  color: color-mix(in srgb, var(--fg) 80%, var(--surface));
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

/* Inset each row so the question, the "+" and the answer clear the card edge
   and line up with each other; the dividers still run edge to edge. */
.faq-list details {
  padding-inline: 1.5rem;
}

.faq-list details:last-child {
  border-bottom: 0;
}

/* Testimonials: a quote mark above each */
.testimonial blockquote p::before,
.testimonial blockquote p::after {
  content: none;
}

.testimonial blockquote::before {
  content: "\201C";
  display: block;
  color: #33b5c1;
  font-family: Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
}

/* Closing call to action: a dark rounded panel on white */
section[data-block-type="callToAction"],
section[data-block-type="callToAction"].tone-dark {
  padding-top: 0;
  padding-bottom: 4rem;
  background: var(--surface);
  color: var(--fg);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3.25rem 3rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, #33b5c1 35%, transparent) 0, transparent 18rem),
    radial-gradient(circle at 70% 110%, color-mix(in srgb, #7ac143 25%, transparent) 0, transparent 16rem),
    var(--dark);
  text-align: left;
}

.cta-panel h2 {
  color: var(--on-dark);
}

.cta-panel p {
  margin: 0.75rem 0 0;
  color: color-mix(in srgb, var(--on-dark) 75%, var(--dark));
}

.cta-panel .btn {
  flex: none;
  background: var(--surface);
  color: var(--fg);
}

.cta-panel .btn:hover {
  background: var(--accent-soft);
}

@media (max-width: 760px) {
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.5rem;
  }

  .faq-list details {
    padding-inline: 1rem;
  }
}

/* Footer: ink */
.site-footer {
  background: var(--dark);
}

.footer-meta {
  justify-content: center;
}

/* Contact form: GlobeInsured's own fields (classic.css keeps the browser's).
   16px text so phones don't zoom in on focus; a border with 3:1 contrast. */
.form-field label {
  font-size: 0.95rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  box-sizing: border-box;
  min-height: 48px;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--muted) 75%, var(--surface));
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}

.form-field textarea {
  height: auto;
  min-height: 8rem;
}

/* ------------------------------------------------------------------------
   Phones. The hero leads with "Who are you insuring?": a short intro on soft
   teal, the traveller list at full width with room for each summary, then
   one full-width quote button. Plans and testimonials become rows to swipe,
   card by card, with the next card peeking in; benefits sit two by two. */
@media (max-width: 639px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  section[data-block-type="hero"] {
    padding-top: 2rem;
    padding-bottom: 2.25rem;
    background: var(--accent-soft);
  }

  /* Text, then the list, then the buttons */
  section[data-block-type="hero"] .grid-asymmetric {
    gap: 0;
  }

  section[data-block-type="hero"] .grid-asymmetric > div:first-child {
    display: contents;
  }

  section[data-block-type="hero"] .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  section[data-block-type="hero"] h1 {
    font-size: 2.15rem;
    line-height: 1.1;
  }

  section[data-block-type="hero"] .hero-subtitle {
    margin-top: 0.875rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  section[data-block-type="hero"] .picker {
    order: 1;
    margin-top: 1.75rem;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
  }

  section[data-block-type="hero"] .picker-prompt {
    padding: 1.1rem 1.1rem 0.4rem;
    color: var(--fg);
    font-size: 0.95rem;
  }

  .picker li + li a {
    border-top: 1px solid var(--border);
  }

  .picker a {
    gap: 0.875rem;
    min-height: 76px;
    padding: 0.65rem 1rem 0.65rem 1.1rem;
    border-radius: 0;
  }

  .picker-image {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .picker-summary {
    display: -webkit-box;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  section[data-block-type="hero"] .actions {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-top: 1.5rem;
  }

  section[data-block-type="hero"] .actions .btn {
    justify-content: center;
    min-height: 52px;
  }

  section[data-block-type="hero"] .actions .btn-outline {
    min-height: 44px;
    border-color: transparent;
    background: none;
    color: var(--accent);
  }

  /* Rows to swipe. They run to the screen edges; the first and last cards
     line up with the page's side padding (classic.css's --gutter, 1.5rem
     at these widths). */
  .photo-cards,
  .testimonials {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 0.875rem;
    margin-inline: -1.5rem;
    padding: 0 1.5rem 0.5rem;
    scroll-padding-inline: 1.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .photo-cards::-webkit-scrollbar,
  .testimonials::-webkit-scrollbar {
    display: none;
  }

  .photo-card-link,
  .testimonial {
    scroll-snap-align: start;
  }

  .photo-card-link:hover {
    transform: none;
  }

  /* Benefits, two by two */
  .split-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .split-card {
    padding: 1rem 0.875rem;
  }

  .split-card h3 {
    margin-top: 0.625rem;
    font-size: 0.95rem;
  }

  .split-card p {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .cta-panel .btn {
    align-self: stretch;
    justify-content: center;
  }

  /* Plan pages (a hero with a photo): the heading and its promise, then the
     quote button, then the photo and the longer introduction. */
  section[data-block-type="hero"]:has(.photo-stack) .hero-subtitle {
    margin-top: 0.75rem;
    color: var(--fg);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
  }

  section[data-block-type="hero"]:has(.photo-stack) .actions {
    order: 1;
  }

  section[data-block-type="hero"] .photo-stack {
    order: 2;
    margin-top: 1.75rem;
  }

  section[data-block-type="hero"]:has(.photo-stack) .grid-asymmetric > div:first-child > p:not(.hero-subtitle) {
    order: 3;
    margin-top: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* The quote page (a picker with one action): its intro, the quote button,
     then the list for anyone not sure which plan fits */
  section[data-block-type="hero"]:has(.picker) .grid-asymmetric > div:first-child > p:not(.hero-subtitle) {
    margin-top: 0.875rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  section[data-block-type="hero"]:has(.picker):not(:has(.btn-outline)) .actions {
    order: 0;
  }

  .photo-card img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  /* Benefits and other plans: one card with a row each, like the picker */
  .checks,
  .page-links {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
  }

  .checks {
    margin-top: 1.5rem;
  }

  .checks li {
    padding: 1rem 1.1rem;
    border: 0;
    border-radius: 0;
    line-height: 1.5;
  }

  .checks li + li,
  .page-links li + li {
    border-top: 1px solid var(--border);
  }

  .page-links {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .page-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.75rem 1.1rem;
    border: 0;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .page-links a::after {
    content: "→" / "";
    color: var(--accent);
    font-weight: 400;
  }

  /* Other pages open on the same soft teal as the home page */
  section[data-block-type="pageHeader"] {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    background: var(--accent-soft);
  }

  section[data-block-type="pageHeader"] .breadcrumbs {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
  }

  section[data-block-type="pageHeader"] h1 {
    font-size: 2.15rem;
    line-height: 1.1;
  }

  section[data-block-type="pageHeader"] p {
    margin-top: 0.875rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Long reads: body size for a phone, the first paragraph as the lead */
  .prose p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .prose > p:first-child {
    color: var(--fg);
    font-size: 1.1rem;
    line-height: 1.6;
  }

  /* Headings that break naturally, and lists at the paragraphs' size with
     the teal dots used on the plan cards */
  .prose h2 {
    font-size: 1.4rem;
    line-height: 1.25;
    text-wrap: pretty;
  }

  .prose h3 {
    font-size: 1.1rem;
    text-wrap: pretty;
  }

  .prose li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .prose li::marker {
    color: #33b5c1;
  }

  /* The contact form in a white card, with a full-width send button */
  .contact-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
  }

  .contact-card .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 1rem;
  }
}
