@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0D3B47;
  --text-on-dark: #FFFFFF;
  --bg-light: #FFFFFF;
  --text-on-light: #111111;
  --bg-accent: #C4956A;
  --text-on-accent: #0D3B47;
  --bg-pewter: #6B7B8C;
  --text-on-pewter: #F8F4EF;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --max-w: 1200px;
  --bronze-rule: 2px solid #C4956A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); line-height: 1.7; font-size: 1.05rem; background: var(--bg-light); color: var(--text-on-light); }
img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; }

.surface-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.surface-light { background: var(--bg-light); color: var(--text-on-light); }
.surface-accent { background: var(--bg-accent); color: var(--text-on-accent); }
.surface-pewter { background: var(--bg-pewter); color: var(--text-on-pewter); }
.surface-dark a:not(.btn), .surface-light a:not(.btn), .surface-pewter a:not(.btn), .surface-accent a:not(.btn) { color: currentColor; text-decoration: underline; }
a.btn { text-decoration: none; }
a.btn-primary { color: var(--text-on-dark); }
a.btn-secondary { color: inherit; }
.surface-dark *:not([class*="surface-"]):not(.btn):not(.price-tag):not(.program-meta):not(.service-price) { color: inherit; }
.surface-light *:not([class*="surface-"]):not(.btn):not(.price-tag):not(.program-meta):not(.service-price) { color: inherit; }
.surface-pewter *:not([class*="surface-"]):not(.btn):not(.price-tag):not(.program-meta):not(.service-price) { color: inherit; }
.surface-accent *:not([class*="surface-"]):not(.btn):not(.price-tag):not(.program-meta):not(.service-price) { color: inherit; }

.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }
.section-pad { padding: 4.5rem 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.assay-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-bottom: var(--bronze-rule);
  color: inherit;
}

/* Header — pill nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(248, 244, 239, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}
.nav-list a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, opacity 0.2s;
}
.nav-list a:hover { opacity: 0.85; background: rgba(196, 149, 106, 0.25); }
.nav-list a[aria-current="page"] { background: var(--bg-accent); color: var(--text-on-accent); }
.nav-list .nav-enquire {
  background: var(--bg-accent);
  color: var(--text-on-accent);
}
.nav-list .nav-enquire:hover { opacity: 1; background: var(--bg-dark); color: var(--text-on-dark); }

/* Buttons — rounded pill CTA */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: opacity 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn:hover { opacity: 0.9; box-shadow: 0 4px 14px rgba(13, 59, 71, 0.2); }
.btn-primary { background: var(--bg-dark); color: var(--text-on-dark); border-color: var(--bg-dark); }
.btn-secondary { background: transparent; color: inherit; border-color: currentColor; }
.surface-dark .btn-primary { background: var(--bg-accent); color: var(--text-on-accent); border-color: var(--bg-accent); }
.surface-accent .btn-primary { background: var(--bg-dark); color: var(--text-on-dark); border-color: var(--bg-dark); }
.surface-dark .btn-secondary { color: var(--text-on-dark); border-color: var(--text-on-dark); }
.surface-light .btn-secondary { color: var(--text-on-light); border-color: var(--text-on-light); }
.surface-accent .btn-secondary { color: var(--text-on-accent); border-color: var(--text-on-accent); }

/* Hero Pattern A — Editorial Spotlight */
.hero-spotlight {
  display: grid;
  grid-template-columns: 3fr 2fr;
  min-height: 90vh;
  align-items: stretch;
}
.hero-spotlight-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem max(1.5rem, calc((100vw - var(--max-w)) / 2 + 1rem));
}
.hero-spotlight-text h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin: 0.75rem 0 1rem;
  max-width: 18ch;
}
.hero-serial {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.hero-sub { font-size: 1.1rem; max-width: 42ch; margin-bottom: 1.5rem; opacity: 0.92; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.trust-strip { font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.8; }
.hero-spotlight-visual {
  position: relative;
  display: flex;
  border-left: 4px solid var(--bg-accent);
}
.hero-spotlight-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.hero-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-size: 0.78rem;
  background: rgba(13, 59, 71, 0.85);
  color: var(--text-on-dark);
  padding: 0.4rem 0.75rem;
}

/* Specimen stats strip */
.specimen-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--bronze-rule);
  border-bottom: var(--bronze-rule);
}
.specimen-cell {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(196, 149, 106, 0.35);
}
.specimen-cell:last-child { border-right: none; }
.specimen-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.5rem; }
.specimen-num { font-family: var(--font-head); font-size: 2.75rem; font-weight: 700; line-height: 1; margin-bottom: 0.35rem; }
.specimen-desc { font-size: 0.88rem; max-width: 22ch; margin-inline: auto; }

/* Chamber module cards */
.chamber-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.chamber-card {
  padding: 2rem;
  border: 1px solid rgba(13, 59, 71, 0.12);
  border-top: 4px solid var(--bg-accent);
}
.chamber-card h3 { font-size: 1.45rem; margin-bottom: 0.65rem; }
.chamber-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* Timeline */
.calibration-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}
.calibration-timeline::before {
  content: '';
  position: absolute;
  top: 1.1rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--bg-accent);
}
.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.timeline-dot {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 auto 0.75rem;
}
.timeline-step h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.timeline-step p { font-size: 0.85rem; }

/* Programme mosaic */
.mosaic-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.mosaic-card {
  padding: 1.75rem;
  border: 1px solid rgba(13, 59, 71, 0.1);
  background: var(--bg-light);
  color: var(--text-on-light);
}
.mosaic-card--wide { grid-column: 1; }
.mosaic-card--tall { grid-row: span 2; display: flex; flex-direction: column; }
.mosaic-card img { margin-top: auto; border-radius: 2px; }
.mosaic-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.price-tag { font-weight: 700; color: var(--bg-accent); margin-top: 0.5rem; font-size: 0.95rem; }
.surface-accent .price-tag,
.surface-pewter .price-tag { color: var(--text-on-accent); }
.surface-pewter .price-tag { color: var(--bg-accent); }
.surface-dark .price-tag { color: var(--bg-accent); }

/* FAQ card grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.faq-card {
  padding: 1.5rem;
  border: 1px solid rgba(13, 59, 71, 0.12);
  border-left: 4px solid var(--bg-accent);
}
.faq-card h3 { font-size: 1.1rem; margin-bottom: 0.65rem; font-family: var(--font-body); font-weight: 700; }
.faq-card p { font-size: 0.95rem; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-top: 4px solid var(--bg-accent);
}
.cta-band h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-band p { max-width: 50ch; margin: 0 auto 1.5rem; }

/* Footer — 4 columns */
.site-footer { padding: 3.5rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; font-size: 0.9rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; opacity: 0.85; }
.footer-bottom {
  border-top: 1px solid rgba(248, 244, 239, 0.15);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  opacity: 0.88;
}
.disclaimer { margin-top: 1rem; font-size: 0.8rem; line-height: 1.6; opacity: 0.85; }

/* Inner pages */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: var(--bronze-rule);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p { max-width: 60ch; font-size: 1.05rem; }

.program-list { display: flex; flex-direction: column; gap: 2rem; }
.program-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(13, 59, 71, 0.1);
}
.program-item img { border-radius: 2px; object-fit: cover; height: 200px; width: 100%; }
.program-item h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.program-meta { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--bg-accent); }

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 1.75rem;
  border: 1px solid rgba(13, 59, 71, 0.1);
}
.service-card img { margin-bottom: 1rem; height: 160px; object-fit: cover; width: 100%; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-price { font-weight: 700; margin-top: 0.75rem; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.photo-rail img { border-radius: 2px; margin-bottom: 1rem; }
.photo-rail figcaption { font-size: 0.85rem; opacity: 0.8; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-block address { font-style: normal; line-height: 1.8; margin: 1rem 0; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(13, 59, 71, 0.25);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: var(--text-on-light);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-form .checkbox-row input { width: auto; margin-top: 0.25rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-alert { padding: 1rem; margin-bottom: 1rem; border-radius: 4px; }
.form-alert.success { background: #d4edda; color: #155724; }
.form-alert.error { background: #f8d7da; color: #721c24; }

.legal-content { max-width: 72ch; }
.legal-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; font-family: var(--font-body); font-weight: 700; }
.legal-content p, .legal-content li { margin-bottom: 0.85rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-updated { font-size: 0.9rem; margin-bottom: 1.5rem; opacity: 0.85; }

.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page h1 { font-size: 2.5rem; margin-bottom: 1rem; }

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
#cookie-banner.is-hidden { display: none; }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions button {
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
}
#cookie-custom { display: none; width: 100%; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(248,244,239,0.2); }

/* Reveal — keep content visible; animate position only */
.js .reveal { opacity: 1; transform: translateY(16px); transition: transform 0.5s ease; }
.js .reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: none; }
}

.contact-block img { width: 100%; border-radius: 2px; margin-bottom: 1.25rem; object-fit: cover; max-height: 280px; }
.program-item > div:only-child { grid-column: 1 / -1; }
.program-item:not(:has(img)) { grid-template-columns: 1fr; }

/* Responsive */
@media (max-width: 960px) {
  .hero-spotlight { grid-template-columns: 1fr; min-height: auto; }
  .hero-spotlight-text { padding: 3rem 1.5rem; }
  .hero-spotlight-visual { border-left: none; border-top: 4px solid var(--bg-accent); min-height: 280px; }
  .hero-spotlight-visual img { min-height: 280px; }
  .chamber-grid, .faq-grid, .mosaic-grid, .footer-grid, .about-split, .contact-grid, .program-item, .service-cards { grid-template-columns: 1fr; }
  .calibration-timeline { grid-template-columns: repeat(2, 1fr); }
  .calibration-timeline::before { display: none; }
  .mosaic-card--wide, .mosaic-card--tall { grid-column: auto; grid-row: auto; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    background: var(--bg-dark);
    padding: 1rem 0;
    border-top: 1px solid rgba(248, 244, 239, 0.12);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .specimen-strip { grid-template-columns: 1fr; }
  .specimen-cell { border-right: none; border-bottom: 1px solid rgba(196,149,106,0.35); }
}
