/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  /* Brand colours (from the logo) */
  --color-bg: #FFFFFF;
  --color-navy: #0a1f33;       /* main colour: headings, header text, buttons, footer (16.7:1 on white) */
  --color-teal: #1c4a5e;       /* secondary: links, hover states, subheadings (9.6:1 on white) */
  --color-gold: #b88745;       /* highlights only: lines, borders, icons. Text only on navy (5.2:1) */
  --color-gold-dark: #9b6627;  /* deep gold: ALL gold text on white or light backgrounds (4.9:1) */
  --color-green: #3a625c;      /* leaf green: accent only, use sparingly */
  --color-text: #333333;       /* body text (12.6:1 on white) */
  --color-cream: #faf7f2;      /* soft warm off-white: alternate section background */
  --color-card: #fdfbf8;       /* service cards: a touch lighter than the cream section */
  --color-tint: #efe7da;       /* warm tint in the service photo slots until photos arrive */
  --color-line: rgba(184, 135, 69, 0.2);  /* faint warm divider lines */
  --color-white: #FFFFFF;

  /* Fonts (to match the logo) */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container-width: 1140px;
  --gutter: 16px;
  --header-height: 64px;
  --header-offset: 72px;       /* sticky header height; updated by js/script.js */
  --radius: 4px;
}

/* ==========================================================================
   Base (mobile first)
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
}

/* Smooth scrolling, except for visitors who prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2.5rem;
}

/* Main section headings (each section's message) */
h2 {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.5rem);
}

/* Keeps a short phrase on one line */
.nowrap {
  white-space: nowrap;
}

/* Read by screen readers only (e.g. the "Copied" status of the UPI Copy button) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Office address (Contact and footer): upright, like the text around it */
address {
  font-style: normal;
}

/* Below 360px the four fixed address lines may wrap, so the longest fits the column */
@media (max-width: 359px) {
  address .nowrap {
    white-space: normal;
  }
}

/* Section name as a small uppercase label above the main heading */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);   /* 4.9:1 on white, 4.55:1 on cream */
  margin: 0 0 10px;
}

a {
  color: var(--color-teal);
}

a:hover {
  color: var(--color-navy);
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--color-gold-dark);   /* 4.9:1 on white, 4.55:1 on cream, 3.4:1 on navy */
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius);
  transition: background-color 0.2s, border-color 0.2s;
}

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

/* Secondary action: outlined navy */
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--color-navy);
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
}

/* Tagline is gold text on white, so it uses deep gold */
.brand-tagline {
  display: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-gold-dark);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-gold);
  padding: 8px var(--gutter) 20px;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 12px 0;
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--color-line);
}

.nav-list a.is-active {
  color: var(--color-gold-dark);
}

.nav-cta {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Keep headings clear of the sticky header when jumping to a section */
.section {
  padding: 56px 0;
  scroll-margin-top: var(--header-offset);
}

.section-alt {
  background: var(--color-cream);
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Soft warm off-white separates the hero gently from the white header.
   Mobile: photo on top, experience card, then the text and buttons. */
.hero {
  display: flex;
  flex-direction: column;
  background: var(--color-cream);
  padding: 0 0 48px;
  scroll-margin-top: var(--header-offset);
}

.hero-inner {
  display: grid;
  padding-top: 28px;
}

.hero-title {
  font-size: clamp(2.5rem, 1.8rem + 2vw, 3.375rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 36ch;
  margin: 0 0 28px;
}

/* Mobile: buttons stacked full width, "Book a Consultation" first */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-actions .btn {
  text-align: center;
  padding: 12px 24px;
}

/* One quiet line under the buttons */
.hero-meta {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  margin: 24px 0 0;
}

/* Photo and experience card: above the text on mobile */
.hero-media {
  order: -1;
}

/* Full-width photo with a gentle curve along its bottom edge */
.hero-visual {
  display: block;
  height: 260px;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* fills the slot; never stretched */
  object-position: 50% 20%;      /* keeps the counsellor and the couple in view */
  border-radius: 0 0 50% 50% / 0 0 32px 32px;
}

/* Small white card with "13+ years", overlapping the photo's bottom edge */
.hero-card {
  position: relative;
  width: fit-content;
  max-width: 290px;
  margin: -36px var(--gutter) 0;
  padding: 14px 20px;
  background: var(--color-white);
  border: 1px solid rgba(184, 135, 69, 0.35);
  border-radius: 8px;
}

.hero-card-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-gold-dark);   /* 4.9:1 on white */
}

.hero-card-text {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 2px;
}

@media (min-width: 600px) {
  .hero-visual {
    height: 340px;
  }
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Desktop: text on the left; photo fills about the right half, out to the screen edge */
@media (min-width: 1024px) {
  .hero {
    position: relative;
    justify-content: center;
    min-height: clamp(560px, calc(100vh - var(--header-offset)), 680px);
    padding: 64px 0;
  }

  /* The container is centred, so its first column ends just left of the photo */
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    padding-top: 0;
  }

  /* Narrow enough for all three buttons to sit on one line beside the photo */
  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    padding: 12px 14px;
    font-size: 0.9375rem;
  }

  .hero-subtitle {
    font-size: 1.1875rem;
  }

  /* Keeps "Mediation & Arbitration" on one line on wide screens */
  .keep-together {
    white-space: nowrap;
  }

  .hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;                  /* leaves clear space between the heading and the curve */
  }

  .hero-visual {
    position: relative;
    height: 100%;
  }

  /* Large soft curve on the left edge, like the gold ring in the logo */
  .hero-visual img {
    object-position: 100% 40%;   /* right edge anchored: the couple and the counsellor stay in view */
    border-radius: 42% 0 0 42% / 50% 0 0 50%;
  }

  /* Thin gold curved line just outside the photo's curve */
  .hero-visual::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: -16px;
    border-left: 1.5px solid var(--color-gold);
    border-radius: 42% 0 0 42% / 50% 0 0 50%;
    pointer-events: none;
  }

  .hero-card {
    position: absolute;
    left: -24px;
    bottom: 48px;
    max-width: 250px;
    margin: 0;
    padding: 18px 24px;
  }

  .hero-card-number {
    font-size: 2.75rem;
  }
}

/* ==========================================================================
   About Us
   ========================================================================== */

.about-inner {
  display: grid;
  gap: 32px;
}

/* The client's whole photo (files 432 x 511 and 300 x 355), uncropped, never shown larger than
   its real size: at most 280px wide on phones, 320px from 768px. Its height follows from the width.
   Soft rounded corners and a thin warm border, no shadow. The warm tint shows only while it loads. */
.about-photo {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;                  /* centred above the text on phones */
  text-align: center;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-tint);
}

.about-photo figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gold-dark);   /* 4.9:1 on white */
}

.about-name {
  margin: 0 0 6px;
}

.about-role {
  margin: 0 0 20px;
  font-weight: 500;
  color: var(--color-gold-dark);
}

/* Short, scannable fact lines with faint warm dividers */
.about-facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.about-facts li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

.about-subheading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0 0 14px;
}

/* Qualifications: thin gold marker on the left, degree then institution */
.qual-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qual-list li {
  border-left: 2px solid var(--color-gold);
  padding: 2px 0 2px 16px;
  margin-bottom: 16px;
}

.qual-list li:last-child {
  margin-bottom: 0;
}

.qual-degree {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
}

.qual-detail {
  display: block;
  font-size: 0.875rem;
  color: #555555;                  /* 7.5:1 on white */
  line-height: 1.5;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 320px 1fr;   /* photo column, then the text */
    align-items: center;                /* the photo sits level with the middle of the text */
    gap: 56px;
  }

  .about-photo {
    max-width: 320px;
    margin: 0;
  }

}

/* ==========================================================================
   Section heading block (label, main heading, short intro)
   ========================================================================== */

.section-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-intro {
  margin: 0;
  font-size: 1.0625rem;
}

/* ==========================================================================
   Services
   ========================================================================== */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

/* Card with a thin warm border; cards in a row share one height (grid rows stretch) */
.service {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid rgba(184, 135, 69, 0.25);
  border-radius: 12px;
  overflow: hidden;
}

/* Photo slot: warm tint until the photo is added */
.service-media {
  position: relative;
  height: 160px;
  background: var(--color-tint);
}

.service-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft wave along the bottom of the photo slot, in the card colour with a faint gold line */
.service-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 30' preserveAspectRatio='none'%3E%3Cpath d='M0 12 C 110 34 250 -4 400 16 V30 H0 Z' fill='%23fdfbf8'/%3E%3Cpath d='M0 12 C 110 34 250 -4 400 16' fill='none' stroke='%23b88745' stroke-opacity='0.45' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

/* Column so the Book a Consultation button sits at the bottom, lined up across each row */
.service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
}

.service-body .service-points {
  margin-bottom: 22px;
}

.service-book {
  align-self: center;
  margin-top: auto;
  font-size: 0.9375rem;
  cursor: pointer;
}

.service-name {
  font-size: 1.625rem;
  line-height: 1.15;
  margin: 0 0 16px;
}

/* Short gold underline below the service name */
.service-name::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 12px;
  background: var(--color-gold);
}

/* Arbitration: the plain-language explanation sits above its points */
.service-explain {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 2px solid var(--color-gold);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-points,
.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-points li,
.dash-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-points li:last-child,
.dash-list li:last-child {
  margin-bottom: 0;
}

/* Small deep-gold dot as the service list marker */
.service-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold-dark);
}

/* Short thin gold dash as the list marker */
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--color-gold);
}

/* Gentle note: white panel on cream, not a warning */
.services-note {
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.services-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
}

.services-cta-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
}

.services-cta .btn {
  padding: 12px 24px;
}

@media (min-width: 768px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .service-media {
    height: 180px;
  }

  .service-body {
    padding: 18px 24px 28px;
  }

  .service-name {
    font-size: 1.5rem;
  }

  .services-cta {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */

.why-block {
  margin-top: 28px;
}

.why-subheading {
  font-size: 1.5rem;
  margin: 0 0 14px;
}

.why-top {
  display: grid;
  gap: 24px;
}

.why-intro {
  margin-bottom: 0;
}

/* "Explained clearly": navy panel, gold numbers (5.2:1 on navy), thin gold lines */
.explain-panel {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 12px;
  padding: 20px 20px 8px;
}

.explain-title {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0 0 12px;
}

.explain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.explain-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  line-height: 1.5;
}

.explain-list li + li {
  border-top: 1px solid rgba(184, 135, 69, 0.55);
}

.explain-number {
  flex: none;
  min-width: 22px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

/* "Why consider mediation?": warm tiles with a thin gold top line */
.reason-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.reason-tiles li {
  background: var(--color-cream);
  border-top: 2px solid var(--color-gold);
  border-radius: 0 0 8px 8px;
  padding: 12px 16px 14px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-navy);
}

/* Mediation or arbitration: two equal boxes with a small gold "or" between */
.compare {
  display: grid;
  justify-items: center;
}

.compare-box {
  width: 100%;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  padding: 16px 20px 18px;
}

.compare-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 6px;
}

.compare-box p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.compare-box .compare-who {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-navy);
}

.compare-who span {
  color: var(--color-gold-dark);   /* 4.9:1 on white */
}

/* Overlaps the boxes slightly so it reads as a link between them */
.compare-or {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -8px 0;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-dark);
}

.faq-intro p {
  margin: 0 0 18px;
}

.faq-block {
  display: grid;
  gap: 20px;
}

/* FAQs: native <details>, with a deep-gold + / − marker */
.faq {
  border-top: 1px solid var(--color-line);
}

.faq details {
  border-bottom: 1px solid var(--color-line);
}

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 14px 36px 14px 0;
  font-weight: 600;
  color: var(--color-navy);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-gold-dark);
}

.faq details[open] summary::after {
  content: "\2212";               /* minus sign */
}

.faq summary:hover {
  color: var(--color-teal);
}

.faq details p {
  margin: 0 0 16px;
  padding-right: 36px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .reason-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .reason-tiles li {
    padding: 18px 20px 20px;
  }

  .why-block {
    margin-top: 40px;
  }

  .compare {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }

  .compare-or {
    align-self: center;
    margin: 0 -8px;
  }

  .compare-box {
    padding: 20px 24px 22px;
  }
}

@media (min-width: 1024px) {
  .why-top {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }

  .explain-panel {
    padding: 32px 32px 18px;
  }

  .explain-list li {
    padding: 12px 0;
  }

  .explain-title {
    font-size: 1.75rem;
  }

  .reason-tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-block {
    margin-top: 56px;
  }

  .faq-block {
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: start;
  }
}

/* ==========================================================================
   Contact Us
   ========================================================================== */

/* Mobile order: details, payment card, form, then what to bring + map */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-areas:
    "details"
    "pay"
    "form"
    "extras";
}

/* Mobile: the wrapper drops out, so details, payment, form and extras are grid items in that order */
.contact-side { display: contents; }
.contact-details { grid-area: details; }
.pay-card { grid-area: pay; }
.contact-form-wrap { grid-area: form; min-width: 0; }   /* lets the date row scroll inside it instead of widening the page */
.contact-extras { grid-area: extras; }

.contact-name {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy);
}

.contact-list {
  margin: 0;
  border-top: 1px solid var(--color-line);
}

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;   /* fits "Phone / WhatsApp" on one line */
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

.contact-row dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-gold-dark);   /* 4.55:1 on cream */
  padding-top: 2px;
  white-space: nowrap;
}

.contact-row dd {
  margin: 0;
  min-width: 0;                    /* lets a long email break instead of widening the page */
}

.contact-row[hidden] {
  display: none;
}

/* Address: label above the value on phones, so each address line fits */
.contact-row-stack {
  grid-template-columns: 1fr;
  gap: 4px;
}

/* Placeholder value while a detail is still TODO (no link) */
.contact-todo {
  color: #6b6b6b;                  /* 5.0:1 on cream */
  font-style: italic;
}

/* "What to bring" list inside its tap-to-open item */
.faq details .dash-list {
  margin: 0 0 16px;
}

/* "Get directions" (Google Maps) below the details */
.directions-link {
  margin-top: 24px;
}

/* ---------- Pay consultation fee (UPI) ---------- */

.pay-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 20px;
}

.pay-heading {
  margin: 0 0 14px;
  font-size: 1.375rem;
}

/* The QR sits in a small white box: 16px of white on top of its own margin,
   so it always has a full quiet zone, whatever the background */
.pay-qr {
  display: block;
  box-sizing: content-box;         /* width is the QR itself; padding and border are added */
  width: 200px;
  height: auto;
  padding: 16px;
  margin: 0 0 14px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.pay-list {
  margin: 0 0 14px;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 4px 0;
}

.pay-row dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-gold-dark);   /* 4.9:1 on white */
}

.pay-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  min-width: 0;
}

.pay-upi-id {
  font-weight: 600;
  color: var(--color-navy);
  overflow-wrap: anywhere;
}

/* Small outlined button beside the UPI ID */
.pay-copy {
  min-width: 76px;                 /* same width for "Copy" and "Copied" */
  min-height: 32px;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  background: transparent;
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.pay-copy:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.pay-copy[hidden] {
  display: none;
}

.pay-note {
  margin: 0 0 16px;
  font-size: 0.9375rem;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pay-actions .btn[hidden] {
  display: none;
}

/* "Pay with UPI app" opens a UPI app, so it is only shown on phones and tablets */
.pay-app {
  display: none;
}

@media (max-width: 767px), (pointer: coarse) {
  .pay-app {
    display: inline-block;
  }
}

/* ---------- Enquiry form ---------- */

.enquiry-form {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 24px 20px;
}

.form-required-note {
  margin: 0 0 18px;
  font-size: 0.875rem;
}

.req {
  color: var(--color-gold-dark);
  font-weight: 600;
}

.form-field {
  margin: 0 0 18px;
}

.form-field > label,
.form-choice legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.enquiry-form input[type="text"],
.enquiry-form input[type="tel"],
.enquiry-form input[type="email"],
.enquiry-form select,
.enquiry-form textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 1rem;                 /* 16px avoids zoom-on-focus on iPhones */
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #8f8678;       /* 3.6:1 against white, so the field edge is clearly visible */
  border-radius: 6px;
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 110px;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
  border-color: var(--color-teal);
}

.form-choice {
  border: 0;
  padding: 0;
  min-width: 0;
}

.form-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 20px 4px 0;
  font-size: 0.9375rem;
  cursor: pointer;
}

.form-choice input,
.form-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-navy);
  flex-shrink: 0;
}

.form-hint {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: #555555;
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  cursor: pointer;
}

.form-consent input {
  margin-top: 3px;
}

/* Friendly error text under a field */
.field-error {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #a12d2d;                  /* 6.6:1 on white */
}

.field-error:empty {
  display: none;
}

.enquiry-form [aria-invalid="true"] {
  border-color: #a12d2d;
}

.form-submit {
  width: 100%;
  padding: 13px 24px;
  font-size: 1rem;
  cursor: pointer;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* No-JavaScript error notes: hidden until enquiry.php links back to one (#enquiry-...) */
.form-alert {
  display: none;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--color-cream);
  border-left: 2px solid var(--color-gold);
  border-radius: 4px;
  font-size: 0.9375rem;
  scroll-margin-top: calc(var(--header-offset) + 40px);   /* extra room: without JavaScript the offset stays at its 72px default */
}

.form-alert:target {
  display: block;
}

/* Thank-you page (after sending without JavaScript) */
.thanks-page {
  background: var(--color-cream);
  padding: 72px 0 96px;
  min-height: 60vh;
}

.thanks-inner {
  max-width: 640px;
}

.thanks-inner h1 {
  margin: 0 0 16px;
}

.thanks-inner p {
  margin: 0 0 28px;
}

/* ---------- Disclaimer page (disclaimer.html) ---------- */

.legal-page {
  background: var(--color-cream);
  padding: 56px 0 80px;
}

.legal-inner {
  max-width: 720px;
}

.legal-inner h1 {
  margin: 0 0 24px;
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid var(--color-line);
}

.legal-section h2 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.legal-section p {
  margin: 0;
  line-height: 1.75;
}

.legal-back {
  margin: 16px 0 0;
}

/* Anti-spam field: off screen for everyone (aria-hidden, no tab stop); only bots fill it in */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Calm status message after submit */
.form-status {
  margin: 16px 0 0;
  font-size: 0.9375rem;
}

.form-status:not(:empty) {
  padding: 12px 16px;
  background: var(--color-cream);
  border-left: 2px solid var(--color-gold);
  border-radius: 4px;
}

/* Under the Next button */
.privacy-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: #555555;
}

/* ---------- Date and time (free times from slots.php) ---------- */

.slot-legend {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.slot-picker .field-error {
  margin: 0 0 12px;
}

/* Space between the dates and "Choose a time" */
.slot-picker .field-error + .slot-legend {
  margin-top: 18px;
}

/* Phones: one row of dates, scrolled sideways; wider screens: they wrap into rows */
.slot-dates {
  display: flex;
  gap: 8px;
  margin: 0 -20px 6px;
  padding: 2px 20px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.slot-date,
.slot-time {
  font-family: var(--font-body);
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid #8f8678;       /* 3.6:1 against white */
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.slot-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  padding: 8px 4px;
  line-height: 1.2;
  scroll-snap-align: start;
}

.slot-weekday,
.slot-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.slot-day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

/* No free times that day: still tappable (it says so), but quieter */
.slot-date.is-full {
  color: #6b6358;                  /* 5.7:1 on white */
  border-style: dashed;
  background: var(--color-cream);
}

.slot-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.slot-time {
  min-height: 44px;
  padding: 8px 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.slot-date:hover,
.slot-time:hover {
  border-color: var(--color-navy);
}

.slot-date[aria-pressed="true"],
.slot-time[aria-pressed="true"] {
  color: var(--color-white);
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.slot-message {
  margin: 0;
  font-size: 0.9375rem;
  color: #555555;
}

.slot-message[hidden],
.slot-picker[hidden],
.slot-basic[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .slot-dates {
    flex-wrap: wrap;
    margin: 0 0 6px;
    padding: 2px 0 0;
    overflow: visible;
  }
}

/* ---------- Two steps: details, then payment ---------- */

/* "Step 1 of 2 – Your details": a small deep-gold label, like the section labels */
.form-step-label {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);   /* 4.9:1 on white, 4.55:1 on cream */
  scroll-margin-top: calc(var(--header-offset) + 16px);
}

.form-step-label:focus {
  outline: none;                   /* focused only so screen readers announce the new step */
}

.form-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--color-line);
}

.form-summary-list {
  flex: 1 1 220px;
  margin: 0;
}

.form-summary-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  padding: 3px 0;
}

.form-summary-list dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form-summary-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* "Back": a text link in looks, a button in behaviour */
.form-back {
  min-height: 32px;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-teal);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form-back:hover {
  color: var(--color-navy);
}

.form-pay-note {
  margin: 0 0 16px;
}

.form-step-pay {
  margin-bottom: 20px;
}

/* "Consultation fee: ₹600" on the payment card, above the QR (filled in by js/script.js) */
.pay-fee {
  margin: -6px 0 14px;
  font-size: 1.0625rem;
}

.pay-fee strong {
  color: var(--color-navy);
  white-space: nowrap;
}

.pay-fee[hidden] {
  display: none;
}

/* In step 2 the card's own note is left out (the step has its own note) */
.form-step-pay .pay-note {
  display: none;
}

/* The appointment on the thank-you screen is long: it may wrap (the reference does not) */
.form-thanks-slot strong {
  color: var(--color-navy);
}

/* Payment screenshot: the file field, then (once chosen) a preview with Remove */
.form-receipt input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px dashed #8f8678;      /* 3.6:1 against white */
  border-radius: 6px;
  cursor: pointer;
}

.form-receipt input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-navy);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.form-receipt input[type="file"][hidden],
.receipt-preview[hidden],
.receipt-thumb[hidden] {
  display: none;
}

.receipt-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 6px;
}

.receipt-thumb {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--color-line);
  border-radius: 4px;
}

.receipt-name {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.receipt-remove {
  min-height: 36px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  background: transparent;
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.receipt-remove:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* Until a valid screenshot is attached */
.form-paid:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


/* ---------- Thank-you screen (replaces the form once sent) ---------- */

.form-thanks-heading {
  margin: 0 0 12px;
  font-size: 1.75rem;
  scroll-margin-top: calc(var(--header-offset) + 16px);
}

.form-thanks-heading:focus {
  outline: none;                   /* focused only so screen readers announce it */
}

/* "Your booking reference is PV-0081." (step 2 and the thank-you screen) */
.form-step-ref,
.form-thanks-ref,
.form-thanks-slot {
  margin: 0 0 16px;
  font-size: 1.0625rem;
}

.form-step-ref strong,
.form-thanks-ref strong {
  color: var(--color-navy);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.form-thanks-text {
  margin: 0 0 8px;
}

/* "Send payment screenshot" and "Done" */
.form-thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.form-thanks-actions .btn {
  width: 100%;
  padding: 13px 24px;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
}

.form-thanks-actions .btn[hidden] {
  display: none;
}

@media (min-width: 600px) {
  .contact-row-stack {
    grid-template-columns: 140px 1fr;
    gap: 12px;
  }

  .enquiry-form {
    padding: 28px;
  }

  .form-submit {
    width: auto;
  }

  .form-thanks-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .form-thanks-actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .pay-qr {
    width: 220px;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-areas: "side form";
    column-gap: 56px;
  }

  /* Desktop: the left column stays in view while the visitor scrolls past the form */
  .contact-side {
    display: block;
    grid-area: side;
    align-self: start;
    position: sticky;
    top: calc(var(--header-offset) + 24px);
  }

  .contact-side .pay-card {
    margin-top: 32px;
  }

  .contact-extras {
    margin-top: 36px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  --footer-soft: #d8d0c3;        /* soft warm light text on navy (11:1) */
  background: var(--color-navy);
  color: var(--color-white);     /* 16.7:1 on navy */
  border-top: 3px solid var(--color-gold);
  padding: 40px 0 24px;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: var(--color-white);
}

/* Top row: logo tile + name, and the consultation button */
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(184, 135, 69, 0.6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* The logo has a white background, so it only appears on this white tile */
.footer-logo-tile {
  flex: none;
  background: var(--color-white);
  border-radius: 10px;
  padding: 6px 8px;
  line-height: 0;
}

.footer-logo-tile img {
  width: auto;
  height: 40px;
}

.site-footer .footer-name {
  margin: 0 0 2px;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-white);
}

/* Gold text on navy is fine (5.2:1) */
.site-footer .footer-tagline {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--color-gold);
}

/* Gold outline; navy text on gold when hovered (5.2:1) */
.btn-footer {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-white);
  text-align: center;
  padding: 12px 24px;
}

.btn-footer:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding: 28px 0;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-white);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.footer-details {
  margin: 0;
}

.footer-details div + div {
  margin-top: 10px;
}

.footer-details [hidden] {
  display: none;
}

/* Small gold label above each value (5.2:1) */
.footer-details dt,
.footer-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer-details dt {
  margin-bottom: 2px;
}

.footer-details dd {
  margin: 0;
}

/* Placeholder value while a detail is still TODO */
.footer-todo {
  font-style: italic;
  color: var(--footer-soft);
}

/* Compact 2-column list, also on mobile */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* One line pointing to disclaimer.html (the full text is on that page) */
.site-footer .footer-disclaimer p {
  max-width: 78ch;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--footer-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  color: var(--footer-soft);
}

.site-footer .footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Booking pop-up (<dialog>, opened from the Services cards)
   ========================================================================== */

/* The page behind stays still while the pop-up is open */
body.dialog-open {
  overflow: hidden;
}

/* Phones and small tablets: full screen. The top bar (heading and Close) stays put;
   only the form area below it scrolls. */
.booking-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-cream);
  color: var(--color-text);
}

.booking-dialog[open] {
  display: flex;
}

.booking-dialog::backdrop {
  background: rgba(10, 31, 51, 0.6);
}

.booking-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.booking-top {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
}

.booking-heading {
  margin: 0;
  font-size: 1.625rem;
  line-height: 1.2;
}

.booking-close {
  flex: none;
  min-height: 40px;
  padding: 6px 14px;
  background: transparent;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.booking-close:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.booking-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 28px;
}

/* In the pop-up the form has no box of its own: the pop-up is the only frame */
.booking-body .enquiry-form {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Larger screens: a centred panel with the page dimmed behind it */
@media (min-width: 768px) {
  .booking-dialog {
    width: calc(100% - 48px);
    max-width: 640px;
    height: fit-content;           /* shrinks to a short thank-you screen; auto would fill the screen (a modal dialog is fixed top and bottom) */
    max-height: calc(100% - 48px);
    margin: auto;
    border: 1px solid var(--color-line);
    border-radius: 12px;
  }

  .booking-top {
    padding: 22px 28px 18px;
  }

  .booking-heading {
    font-size: 1.875rem;
  }

  .booking-body {
    padding: 20px 28px 28px;
  }
}

/* ==========================================================================
   Floating WhatsApp button (the one place with an icon and a shadow)
   ========================================================================== */

.whatsapp-fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;                   /* below the sticky header and the mobile menu */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid #128c7e;     /* darker ring: 3.9-4.1:1 on cream, white and navy */
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(10, 31, 51, 0.18);
  transition: opacity 0.2s, visibility 0.2s;
}

.whatsapp-fab[hidden],
.menu-open .whatsapp-fab,
.dialog-open .whatsapp-fab {
  display: none;
}

.whatsapp-fab:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 3px;
}

/* Out of the way while it would cover the Send button or "Back to top" */
.whatsapp-fab.is-tucked {
  opacity: 0;
  visibility: hidden;
}

.whatsapp-fab-label {
  display: none;
}

@media (min-width: 1024px) {
  .whatsapp-fab {
    right: calc(24px + env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
  }

  .whatsapp-fab svg {
    width: 32px;
    height: 32px;
  }

  /* Small navy label to the left, on hover or keyboard focus (16.7:1) */
  .whatsapp-fab-label {
    display: block;
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }

  .whatsapp-fab:hover .whatsapp-fab-label,
  .whatsapp-fab:focus-visible .whatsapp-fab-label {
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  .brand-logo {
    height: 52px;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .brand-tagline {
    display: block;
  }

}

/* ==========================================================================
   Desktop (full menu from 1200px; the logo, name and 5 links need the room)
   ========================================================================== */

@media (min-width: 1200px) {
  .header-inner {
    min-height: 84px;
  }

  .brand-logo {
    height: 56px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }

  .nav-list {
    display: flex;
    gap: 18px;
    margin: 0;
  }

  .nav-list a {
    padding: 6px 0;
    font-size: 0.9375rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
  }

  .nav-list a:hover,
  .nav-list a.is-active {
    color: var(--color-navy);
    border-bottom-color: var(--color-gold);
  }

  .nav-cta {
    width: auto;
    padding: 10px 16px;
    font-size: 0.9375rem;
    white-space: nowrap;
  }
}
