/* ==========================================================================
   Lochan Bathrooms - styles.css
   ========================================================================== */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Bricolage+Grotesque:wght@400;600;800&display=swap');

/* ----- Custom properties ----- */
:root {
  /* Colours */
  --loch-blue: #1A4A7A;
  --loch-night: #0F2E4D;
  --mist: #F3F5F7;
  --stone: #ECE7DF;
  --white: #FFFFFF;
  --sand: #D9A15A;
  --sand-light: #E8C594;
  --blue-tint: #E8EEF4;
  --blue-tint-2: #D5E0EC;
  --stone-dark: #DDD5C8;
  --neutral-600: #6B7785;
  --neutral-500: #8893A0;
  --neutral-400: #AEB7C2;
  --neutral-300: #D1D7DE;
  --neutral-200: #E5E9ED;

  /* Typography */
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif;

  /* Spacing (8px base) */
  --s-1: 0.5rem;   /* 8px */
  --s-2: 1rem;     /* 16px */
  --s-3: 1.5rem;   /* 24px */
  --s-4: 2rem;     /* 32px */
  --s-5: 3rem;     /* 48px */
  --s-6: 4rem;     /* 64px */
  --s-7: 5rem;     /* 80px */
  --s-8: 6rem;     /* 96px */
  --s-9: 8rem;     /* 128px */

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --container-narrow: 800px;
  --gutter: 1.5rem;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 400ms;

  /* Lines */
  --rule: 1px solid var(--neutral-200);
  --rule-blue: 1px solid var(--blue-tint-2);
  --rule-sand: 1px solid var(--sand);
  --rule-light: 1px solid rgba(255, 255, 255, 0.15);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--loch-night);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--loch-blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--loch-night); }

ul, ol { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select { font: inherit; }

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--loch-blue);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ----- Focus states ----- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--loch-blue);
  outline-offset: 2px;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: var(--s-7) 0; }
.section-sm { padding: var(--s-5) 0; }
.section-lg { padding: var(--s-8) 0; }

.bg-mist { background: var(--mist); }
.bg-stone { background: var(--stone); }
.bg-blue { background: var(--loch-blue); color: var(--white); }
.bg-night { background: var(--loch-night); color: var(--white); }
.bg-white { background: var(--white); }

/* ----- Typography ----- */
.kicker, .label {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--loch-blue);
}
.kicker-sand { color: var(--sand); }
.kicker-light { color: var(--blue-tint); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--loch-night);
}
.bg-blue h1, .bg-blue h2, .bg-blue h3,
.bg-night h1, .bg-night h2, .bg-night h3 { color: var(--white); }

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }

.head-xxl { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; }
.head-xl { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; }
.head-lg { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }

.head-600 { font-weight: 600; }

p { max-width: 68ch; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 60ch; }
.body-lg { font-size: 1.1875rem; line-height: 1.6; }
.small { font-size: 0.875rem; }
.caption {
  font-size: 0.8125rem;
  color: var(--neutral-600);
  line-height: 1.5;
}
.bg-blue .caption, .bg-night .caption { color: var(--blue-tint); }

.serif { font-family: var(--font-head); }
.body-font { font-family: var(--font-body); }

.text-blue { color: var(--loch-blue); }
.text-night { color: var(--loch-night); }
.text-white { color: var(--white); }
.text-sand { color: var(--sand); }
.text-neutral { color: var(--neutral-600); }

/* ----- Links / buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-align: center;
  line-height: 1;
}
.btn-primary {
  background: var(--loch-blue);
  color: var(--white);
  border: 2px solid var(--loch-blue);
}
.btn-primary:hover { background: var(--loch-night); border-color: var(--loch-night); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--loch-blue);
  border: 2px solid var(--white);
}
.btn-light:hover { background: transparent; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--loch-blue);
  border: 2px solid var(--loch-blue);
}
.btn-outline:hover { background: var(--loch-blue); color: var(--white); }
.btn-sand {
  background: var(--sand);
  color: var(--loch-night);
  border: 2px solid var(--sand);
}
.btn-sand:hover { background: var(--sand-light); border-color: var(--sand-light); }
.btn-full { display: flex; width: 100%; justify-content: center; }

.text-link {
  font-weight: 600;
  color: var(--loch-blue);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease);
}
.text-link:hover { border-color: var(--loch-blue); color: var(--loch-night); }
.text-link-light {
  color: var(--white);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
}
.text-link-light:hover { color: var(--sand); }
.text-link-arrow::after { content: ' \2192'; transition: margin var(--dur) var(--ease); }
.text-link-arrow:hover::after { margin-left: 4px; }

/* ----- Droplet motif ----- */
.droplet {
  display: inline-block;
  width: 8px;
  height: 10px;
  background: var(--sand);
  clip-path: path('M4 0 C4 0, 8 5, 8 7 A4 4 0 0 1 0 7 C0 5, 4 0, 4 0 Z');
  flex-shrink: 0;
}
.droplet-sm { width: 6px; height: 8px; }
.droplet-lg { width: 12px; height: 15px; }
.droplet-blue { background: var(--loch-blue); }
.droplet-white { background: var(--white); }

.droplet-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}
.droplet-divider::before,
.droplet-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--neutral-200);
}
.bg-night .droplet-divider::before,
.bg-night .droplet-divider::after,
.bg-blue .droplet-divider::before,
.bg-blue .droplet-divider::after { background: rgba(255,255,255,0.2); }

/* ----- Numbered marker ----- */
.num-marker {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--loch-blue);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.num-marker .droplet { width: 7px; height: 9px; align-self: center; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--mist);
  border-bottom: var(--rule);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 8px rgba(15, 46, 77, 0.06); }

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

.site-logo img { height: 36px; width: auto; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--loch-night);
  position: relative;
}
.site-nav a:hover { color: var(--loch-blue); }
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sand);
  transition: width var(--dur) var(--ease);
}
.site-nav a:hover::after { width: 100%; }

.header-cta { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--loch-night);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Mobile menu ----- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--mist);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav ul { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu nav a {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--loch-night);
  line-height: 1.1;
}
.mobile-menu nav a:hover { color: var(--loch-blue); }
.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }

/* ----- Mobile sticky bar ----- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: var(--rule);
  display: flex;
  z-index: 999;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease);
}
.mobile-sticky-bar.show { transform: translateY(0); }
.mobile-sticky-bar a {
  flex: 1;
  text-align: center;
  padding: 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.mobile-sticky-bar .sticky-price {
  background: var(--loch-blue);
  color: var(--white);
}
.mobile-sticky-bar .sticky-price:hover { background: var(--loch-night); color: var(--white); }
.mobile-sticky-bar .sticky-call {
  background: var(--white);
  color: var(--loch-blue);
  border-right: var(--rule);
}
.sticky-call svg { width: 18px; height: 18px; }

@media (max-width: 767px) {
  body.menu-open { overflow: hidden; }
  body { padding-bottom: 56px; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--loch-night);
  color: var(--white);
  padding: var(--s-6) 0 var(--s-3);
}
.site-footer .footer-logo { margin-bottom: var(--s-3); }
.site-footer .footer-logo img { height: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sand);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { color: var(--blue-tint); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--white); }
.footer-intro { font-size: 0.9375rem; color: var(--blue-tint); max-width: 32ch; line-height: 1.5; margin-bottom: var(--s-3); }
.footer-legal {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: var(--rule-light);
  font-size: 0.8125rem;
  color: var(--neutral-400);
  line-height: 1.5;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.footer-legal-links a { color: var(--neutral-400); }
.footer-legal-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 1rem; margin-top: 0.5rem; }
.footer-social a { color: var(--blue-tint); font-weight: 600; font-size: 0.9375rem; }
.footer-social a:hover { color: var(--sand); }

/* ----- Placeholder image block ----- */
.ph-img {
  background: var(--stone);
  border: 1px solid var(--stone-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  min-height: 200px;
  color: var(--neutral-600);
  font-size: 0.8125rem;
  line-height: 1.5;
  aspect-ratio: var(--ar, 4/3);
  width: 100%;
}
.ph-img .ph-filename {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--loch-blue);
  margin-bottom: 0.5rem;
}
.ph-img .ph-desc { max-width: 30ch; }
.ph-portrait { --ar: 3/4; }
.ph-landscape { --ar: 4/3; }
.ph-square { --ar: 1/1; }
.ph-wide { --ar: 16/9; }
.ph-tall { --ar: 9/16; }

/* ----- Photo frame ----- */
.photo-frame { position: relative; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  font-size: 0.8125rem;
  color: var(--neutral-600);
  margin-top: 0.625rem;
  line-height: 1.5;
}
.bg-blue .photo-caption, .bg-night .photo-caption { color: var(--blue-tint); }

/* ----- Editorial hero ----- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}
.hero-section::before {
  content: '';
  position: absolute;
  left: -8%;
  right: 43%;
  top: 0;
  bottom: 0;
  background: var(--stone);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}
.hero-section .container { position: relative; z-index: 1; }
.hero-visual {
  position: relative;
  min-height: 560px;
  padding: 0 12% 3.5rem 0;
}
.hero-photo-main {
  position: relative;
  width: 84%;
  margin-left: auto;
  z-index: 1;
}
.hero-photo-main img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hero-photo-main .photo-caption { max-width: 28ch; }
.hero-photo-detail {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 43%;
  z-index: 2;
  background: var(--white);
  padding: 8px 8px 12px;
}
.hero-photo-detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-photo-detail span {
  display: block;
  padding: 8px 4px 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--loch-blue);
  font-weight: 600;
}
.hero-stamp {
  position: absolute;
  right: 0;
  top: 8%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--loch-blue);
  transform: rotate(90deg) translateX(100%);
  transform-origin: right top;
}
.hero-stamp strong {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
.hero-stamp span {
  border-left: 1px solid var(--sand);
  padding-left: 8px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.3;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: var(--s-5);
  padding-top: 1rem;
  border-top: var(--rule-sand);
  max-width: 28rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--loch-blue);
  font-weight: 600;
}
.featured-photo { background: var(--stone); overflow: hidden; }
.featured-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 600ms var(--ease); }
.featured-item:hover .featured-photo img { transform: scale(1.025); }
.featured-photo-main img { aspect-ratio: 4 / 3; }

/* ----- Proof strip ----- */
.proof-strip {
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 1.25rem 0;
}
.proof-strip ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
.proof-strip li {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--loch-night);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}
.proof-strip .droplet { width: 6px; height: 8px; }

/* ----- Lochan standard list ----- */
.standard-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.standard-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-bottom: var(--s-3);
  border-bottom: var(--rule);
}
.standard-item:last-child { border-bottom: none; }
.standard-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--loch-blue);
  line-height: 1;
  padding-top: 0.25rem;
}
.standard-text { font-size: 1.0625rem; line-height: 1.55; }

/* ----- Featured bathrooms (magazine spread) ----- */
.featured-spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.featured-item { display: flex; flex-direction: column; gap: 0.625rem; }
.featured-item .photo-frame { flex: 1; }
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--neutral-600);
}
.featured-meta span { display: flex; align-items: center; gap: 0.375rem; }
.featured-quote {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--loch-night);
  line-height: 1.5;
}

/* ----- Timeline (horizontal) ----- */
.timeline-h {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline-h-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: var(--rule);
  position: relative;
}
.timeline-h-step:last-child { border-bottom: none; }
.timeline-h-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--loch-blue);
  margin-top: 6px;
  position: relative;
  flex-shrink: 0;
}
.timeline-h-step:not(:last-child) .timeline-h-dot::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 5px;
  width: 2px;
  height: calc(100% + 1.25rem - 18px);
  background: var(--blue-tint-2);
}
.timeline-h-label { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sand); margin-bottom: 0.25rem; }
.timeline-h-title { font-family: var(--font-head); font-size: 1.1875rem; color: var(--loch-night); margin-bottom: 0.25rem; }
.timeline-h-text { font-size: 0.9375rem; color: var(--neutral-600); line-height: 1.5; }

/* ----- Pull quote / review ----- */
.pull-quote {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--loch-night);
  letter-spacing: -0.01em;
}
.pull-quote::before {
  content: '\201C';
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.125rem;
  color: var(--sand);
}
.review-attr {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--neutral-600);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.review-attr .review-source {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--loch-blue);
}

/* ----- Areas list ----- */
.areas-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.areas-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: var(--rule);
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--loch-night);
  transition: padding var(--dur) var(--ease), color var(--dur) var(--ease);
}
.areas-list a:hover { padding-left: 1rem; color: var(--loch-blue); }
.areas-list a::after { content: '\2192'; font-size: 1.25rem; color: var(--sand); }
.areas-list-name { display: flex; flex-direction: column; gap: 0.125rem; }
.areas-list-sub {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--neutral-600);
  letter-spacing: 0;
  text-transform: none;
}
.areas-list a:hover .areas-list-sub { color: var(--neutral-500); }

/* ----- Dark CTA section ----- */
.cta-dark {
  background: var(--loch-night);
  color: var(--white);
  padding: var(--s-7) 0;
}
.cta-dark h2 { color: var(--white); }

/* ----- Gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
.gallery-item { display: flex; flex-direction: column; gap: 0.5rem; }
.gallery-item.large { grid-column: span 1; }
.gallery-item .ph-img { min-height: 180px; }
.gallery-photo { overflow: hidden; background: var(--stone); }
.gallery-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery-item:hover .gallery-photo img { transform: scale(1.025); }
.case-header-img { overflow: hidden; }
.case-header-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--s-3);
}
.gallery-filter {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--neutral-300);
  background: var(--white);
  color: var(--loch-night);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery-filter:hover { border-color: var(--loch-blue); color: var(--loch-blue); }
.gallery-filter.active { background: var(--loch-blue); color: var(--white); border-color: var(--loch-blue); }
.gallery-item.hidden { display: none; }

/* ----- Case study ----- */
.case-header-img { aspect-ratio: 16/9; }
.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--rule);
  background: var(--white);
}
.case-fact {
  padding: 1rem 1.25rem;
  border-bottom: var(--rule);
  border-right: var(--rule);
}
.case-fact:nth-child(2n) { border-right: none; }
.case-fact:last-child, .case-fact:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.case-fact .label { display: block; margin-bottom: 0.25rem; }
.case-fact .val { font-family: var(--font-head); font-size: 1.125rem; color: var(--loch-night); }

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.ba-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--loch-blue);
  margin-bottom: 0.5rem;
}

.case-section { margin-bottom: var(--s-5); }
.case-section h2 { margin-bottom: var(--s-2); }

/* ----- Process / steps detail ----- */
.steps-detail {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: var(--rule);
}
.step-detail:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--loch-blue);
  line-height: 1;
}
.step-detail h3 { margin-bottom: 0.5rem; }
.step-detail p { color: var(--neutral-600); font-size: 1rem; }

/* ----- Day-by-day timeline ----- */
.day-timeline { border-left: 2px solid var(--blue-tint-2); padding-left: 1.5rem; }
.day-item { padding: 1.25rem 0; border-bottom: var(--rule); }
.day-item:last-child { border-bottom: none; }
.day-label { font-family: var(--font-head); font-size: 1.125rem; color: var(--loch-blue); margin-bottom: 0.25rem; }
.day-text { font-size: 0.9375rem; color: var(--neutral-600); }

/* ----- Spec table ----- */
.spec-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: var(--rule);
}
.spec-col {
  padding: var(--s-2);
  border-bottom: var(--rule);
}
.spec-col:last-child { border-bottom: none; }
.spec-col h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sand);
}
.spec-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.spec-col li { font-size: 1rem; line-height: 1.5; padding-left: 1.25rem; position: relative; }
.spec-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 8px;
  background: var(--sand);
  clip-path: path('M3 0 C3 0, 6 4, 6 5.5 A3 3 0 0 1 0 5.5 C0 4, 3 0, 3 0 Z');
}
.spec-col.spec-excluded h3 { color: var(--neutral-600); border-bottom-color: var(--neutral-300); }
.spec-col.spec-excluded li::before { background: var(--neutral-400); }

/* ----- FAQ accordion ----- */
.faq-item { border-bottom: var(--rule); }
.faq-item summary {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--loch-night);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sand);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 0 1.25rem; color: var(--neutral-600); font-size: 1rem; line-height: 1.6; max-width: 68ch; }

/* ----- Quiz ----- */
.quiz-panel {
  background: var(--white);
  padding: var(--s-4);
  border: 1px solid var(--neutral-200);
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step-label {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sand);
  margin-bottom: 0.5rem;
}
.quiz-step h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--s-3);
  line-height: 1.15;
}
.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--neutral-200);
  background: var(--white);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--loch-night);
  text-align: left;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
}
.quiz-option:hover { border-color: var(--loch-blue); }
.quiz-option.selected { border-color: var(--loch-blue); background: var(--blue-tint); }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option .opt-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--neutral-400);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--dur) var(--ease);
}
.quiz-option.selected .opt-radio { border-color: var(--loch-blue); }
.quiz-option.selected .opt-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--loch-blue);
}

.quiz-option-multi { cursor: pointer; }
.quiz-option-multi .opt-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--neutral-400);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--dur) var(--ease);
}
.quiz-option-multi.selected .opt-check { border-color: var(--loch-blue); background: var(--loch-blue); }
.quiz-option-multi.selected .opt-check::after {
  content: '\2713';
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 14px;
  color: var(--white);
  font-weight: 800;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-3);
  gap: 1rem;
}
.quiz-back {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--dur) var(--ease);
}
.quiz-back:hover { color: var(--loch-blue); }
.quiz-back:disabled { opacity: 0.3; pointer-events: none; }
.quiz-next {
  background: var(--loch-blue);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--loch-blue);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quiz-next:hover { background: var(--loch-night); border-color: var(--loch-night); }
.quiz-next:disabled { opacity: 0.4; pointer-events: none; }

/* Quiz progress (droplet fill) */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--s-3);
}
.quiz-progress-track {
  flex: 1;
  height: 8px;
  background: var(--neutral-200);
  position: relative;
  overflow: hidden;
}
.quiz-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--loch-blue);
  transition: width var(--dur) var(--ease);
}
.quiz-progress-droplet {
  width: 16px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.quiz-progress-droplet svg { width: 100%; height: 100%; }
.quiz-progress-count { font-size: 0.8125rem; font-weight: 600; color: var(--neutral-600); }

/* Quiz form (opt-in gate) */
.quiz-form { display: flex; flex-direction: column; gap: 1.25rem; }
.quiz-form h2 { margin-bottom: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-field label { font-weight: 600; font-size: 0.875rem; color: var(--loch-night); }
.form-field label .req { color: var(--sand); }
.form-field input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-300);
  background: var(--white);
  font-size: 1rem;
  color: var(--loch-night);
  transition: border-color var(--dur) var(--ease);
}
.form-field input:focus { border-color: var(--loch-blue); outline: none; }
.form-field .field-error { font-size: 0.8125rem; color: #B33A3A; display: none; }
.form-field.error input { border-color: #B33A3A; }
.form-field.error .field-error { display: block; }
.consent-field { display: flex; gap: 0.75rem; align-items: flex-start; }
.consent-field input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; }
.consent-field label { font-size: 0.9375rem; line-height: 1.5; color: var(--loch-night); font-weight: 400; }
.consent-field label a { color: var(--loch-blue); text-decoration: underline; }
.consent-field.error label { color: #8B2A2A; }

.quiz-error-msg {
  background: #FDF2F2;
  border: 1px solid #E8B4B4;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: #8B2A2A;
  display: none;
}
.quiz-error-msg.show { display: block; }

/* Quiz result */
.quiz-result { display: none; }
.quiz-result.show { display: block; }
.quiz-result .result-range {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--loch-blue);
  line-height: 1.1;
  margin: var(--s-2) 0;
}
.quiz-result .result-note { font-size: 1.0625rem; color: var(--neutral-600); margin-bottom: var(--s-4); max-width: 50ch; }

/* ----- GHL embed ----- */
.ghl-embed {
  border: 2px dashed var(--neutral-300);
  background: var(--mist);
  padding: 2rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--neutral-600);
}

/* ----- Team ----- */
.team-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
.team-member { display: flex; flex-direction: column; gap: 0.75rem; }
.team-member .ph-img { --ar: 4/5; min-height: 240px; }
.team-member h3 { font-family: var(--font-head); font-size: 1.25rem; }
.team-role { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sand); }

/* ----- Values list ----- */
.values-list { display: flex; flex-direction: column; gap: var(--s-3); }
.value-item { padding-bottom: var(--s-3); border-bottom: var(--rule); }
.value-item:last-child { border-bottom: none; }
.value-item h3 { font-family: var(--font-head); font-size: 1.1875rem; margin-bottom: 0.5rem; }
.value-item p { color: var(--neutral-600); font-size: 1rem; }

/* ----- Video clips ----- */
.video-clip { position: relative; }
.video-clip video { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.video-clip .video-poster { position: absolute; inset: 0; }

/* ----- Contact info ----- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
.contact-info dt { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sand); margin-bottom: 0.25rem; }
.contact-info dd { font-size: 1.0625rem; margin-bottom: 1.25rem; }
.contact-info dd a { font-family: var(--font-head); font-size: 1.25rem; }

/* ----- Legal page ----- */
.legal-body { max-width: 68ch; }
.legal-body h2 { font-size: 1.375rem; margin: var(--s-3) 0 var(--s-2); }
.legal-body p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.6; color: var(--loch-night); }
.legal-body ul { list-style: none; margin-bottom: 1rem; }
.legal-body ul li { padding-left: 1.25rem; position: relative; margin-bottom: 0.5rem; }
.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 8px;
  background: var(--sand);
  clip-path: path('M3 0 C3 0, 6 4, 6 5.5 A3 3 0 0 1 0 5.5 C0 4, 3 0, 3 0 Z');
}

/* ----- Breadcrumbs ----- */
.breadcrumbs { padding: 1rem 0; font-size: 0.8125rem; color: var(--neutral-600); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li::after { content: '/'; color: var(--neutral-300); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--loch-blue); }
.breadcrumbs [aria-current] { color: var(--neutral-600); }

/* ----- Cookie consent ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--loch-night);
  color: var(--white);
  padding: 1rem 1.5rem;
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.875rem; color: var(--blue-tint); margin: 0; flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-banner p a { color: var(--sand); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-buttons button {
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cookie-accept { background: var(--sand); border-color: var(--sand); color: var(--loch-night); }
.cookie-accept:hover { background: var(--sand-light); border-color: var(--sand-light); }
.cookie-decline { background: transparent; border-color: var(--blue-tint); color: var(--blue-tint); }
.cookie-decline:hover { border-color: var(--white); color: var(--white); }

/* ----- Scroll animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ----- 404 ----- */
.error-page { min-height: 60vh; display: flex; align-items: center; }

/* ----- Utility ----- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ----- Tablet (768px+) ----- */
@media (min-width: 768px) {
  :root { --gutter: 2rem; --header-h: 80px; }

  .site-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
  .mobile-sticky-bar { display: none; }
  body { padding-bottom: 0; }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .proof-strip ul {
    flex-direction: row;
    justify-content: center;
  }

  .standard-list { grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); }

  .featured-spread {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-3);
  }
  .featured-right { display: flex; flex-direction: column; gap: var(--s-3); }
  .featured-right .featured-item { flex: 1; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
  }
  .gallery-item.large { grid-column: span 2; }
  .gallery-item.large .ph-img { min-height: 320px; }

  .case-facts { grid-template-columns: repeat(5, 1fr); }
  .case-fact { border-right: var(--rule); }
  .case-fact:nth-child(5n) { border-right: none; }
  .case-fact:nth-last-child(-n+2) { border-bottom: none; }
  .case-fact:last-child { border-right: none; }

  .spec-table { grid-template-columns: 1fr 1fr; }
  .spec-col { border-right: var(--rule); }
  .spec-col:last-child { border-right: none; }

  .form-row { grid-template-columns: 1fr 1fr; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr 1fr; }

  .quiz-panel { padding: var(--s-5); }

  .timeline-h { flex-direction: row; gap: 0; }
  .timeline-h-step {
    flex: 1;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    border-bottom: none;
    border-right: var(--rule);
    padding: 0 1.25rem;
    text-align: left;
  }
  .timeline-h-step:last-child { border-right: none; }
  .timeline-h-step:not(:last-child) .timeline-h-dot::after {
    top: 18px;
    left: 18px;
    width: calc(100% + 1.25rem);
    height: 2px;
  }
  .timeline-h-dot { margin: 0; }

  .areas-list { grid-template-columns: 1fr 1fr; }
  .areas-list a { font-size: 1.75rem; }
}

/* ----- Desktop (1024px+) ----- */
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
  .gallery-item.large { grid-column: span 2; }
  .gallery-item.large .ph-img { min-height: 360px; }

  .team-grid { grid-template-columns: 1fr 1fr 1fr; }

  .standard-list { gap: var(--s-4) var(--s-6); }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--s-5);
    align-items: start;
  }
  .hero-content { padding-top: var(--s-4); }
  .hero-photo { aspect-ratio: 3/4; }
}

@media (max-width: 767px) {
  .hero-section { padding-top: var(--s-5); }
  .hero-section::before { right: 12%; bottom: 30%; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
  .hero-visual { min-height: 470px; padding-right: 10%; }
  .hero-photo-main { width: 86%; }
  .hero-photo-detail { width: 42%; }
  .hero-stamp { top: 10%; right: -2%; }
  .hero-note { margin-top: var(--s-4); }
}


/* ----- Large desktop (1600px+) ----- */
@media (min-width: 1600px) {
  :root { --gutter: 2.5rem; }
}
