/* ==========================================================================
   AL-FARAH MEDICAL CENTER — COMPLETE STYLESHEET
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --forest: #174D3C;
  --forest-dark: #103A2D;
  --forest-deep: #0C2D24;

  --sage: #DCE8E1;
  --sage-light: #EEF4F0;

  --cream: #F7F6F1;
  --warm-white: #FCFCF9;
  --white: #FFFFFF;

  --charcoal: #18201D;
  --text: #27302C;
  --muted: #68736E;

  --border: #D9E0DC;

  --gold: #B7955B;

  --error: #A94442;
  --success: #2F6B4F;

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --shadow-soft: 0 8px 30px rgba(18, 45, 36, 0.06);
  --shadow-med: 0 12px 40px rgba(18, 45, 36, 0.10);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-img: 14px;
  --radius-feature: 18px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 82px;
  --header-h-scrolled: 68px;
  --header-h-mobile: 68px;

  --container-max: 1280px;
  --gutter-desktop: 64px;
  --gutter-tablet: 40px;
  --gutter-mobile: 20px;

  --section-pad-desktop: 120px;
  --section-pad-tablet: 96px;
  --section-pad-mobile: 72px;
}

/* ---- Reset --------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }
svg { display: block; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--warm-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Focus states --------------------------------------------------------*/
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--forest);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 200ms var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---- Typography ----------------------------------------------------------*/
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h1,
h1.page-heading {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 600;
}

.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 600; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 600; }
.h4 { font-size: 17px; font-weight: 600; }

.body-lg { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--text); }
.body-md { font-size: 16px; line-height: 1.7; color: var(--text); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.serif-statement {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  line-height: 1.32;
}

/* ---- Layout ---------------------------------------------------------------*/
.container {
  width: min(var(--container-max), calc(100% - var(--gutter-desktop) * 2));
  margin-inline: auto;
}
@media (max-width: 1024px) {
  .container { width: min(var(--container-max), calc(100% - var(--gutter-tablet) * 2)); }
}
@media (max-width: 640px) {
  .container { width: min(var(--container-max), calc(100% - var(--gutter-mobile) * 2)); }
}

.section { padding-block: var(--section-pad-desktop); }
@media (max-width: 1024px) { .section { padding-block: var(--section-pad-tablet); } }
@media (max-width: 640px)  { .section { padding-block: var(--section-pad-mobile); } }

.section-tight { padding-block: 72px; }
@media (max-width: 640px) { .section-tight { padding-block: 56px; } }

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-sage { background: var(--sage-light); }
.bg-forest { background: var(--forest); color: var(--warm-white); }
.bg-forest-deep { background: var(--forest-deep); color: var(--warm-white); }

.bg-forest .eyebrow, .bg-forest-deep .eyebrow { color: var(--sage); }
.bg-forest .eyebrow::before, .bg-forest-deep .eyebrow::before { background: var(--gold); }
.bg-forest h1, .bg-forest h2, .bg-forest h3,
.bg-forest-deep h1, .bg-forest-deep h2, .bg-forest-deep h3 { color: var(--warm-white); }
.bg-forest .muted, .bg-forest-deep .muted { color: rgba(252,252,249,0.68); }
.bg-forest .body-lg, .bg-forest .body-md,
.bg-forest-deep .body-lg, .bg-forest-deep .body-md { color: rgba(252,252,249,0.92); }

/* Grid helpers */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  width: 100%;
}
.divider-gold {
  width: 40px;
  height: 2px;
  background: var(--gold);
  border: none;
}

/* ---- Buttons ---------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--forest);
  color: var(--white);
  border: 1px solid var(--forest);
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.btn-secondary:hover { background: var(--forest); color: var(--white); }

.bg-forest .btn-secondary, .bg-forest-deep .btn-secondary {
  color: var(--warm-white);
  border-color: rgba(252,252,249,0.5);
}
.bg-forest .btn-secondary:hover, .bg-forest-deep .btn-secondary:hover {
  background: var(--warm-white);
  color: var(--forest);
}
.bg-forest .btn-primary, .bg-forest-deep .btn-primary {
  background: var(--warm-white);
  color: var(--forest);
  border-color: var(--warm-white);
}
.bg-forest .btn-primary:hover, .bg-forest-deep .btn-primary:hover {
  background: var(--sage-light);
}

.btn-outline-light {
  background: transparent;
  color: var(--warm-white);
  border: 1px solid rgba(252, 252, 249, 0.4);
}
.btn-outline-light:hover {
  background: var(--warm-white);
  color: var(--forest);
  border-color: var(--warm-white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: gap 220ms var(--ease), border-color 220ms var(--ease);
}
.text-link:hover { gap: 10px; border-color: var(--forest); }
.bg-forest .text-link, .bg-forest-deep .text-link { color: var(--warm-white); }
.bg-forest .text-link:hover, .bg-forest-deep .text-link:hover { border-color: var(--warm-white); }

.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
}

/* ---- Header ---------------------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(252,252,249,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217,224,220,0.7);
  transition: background-color 260ms var(--ease), box-shadow 260ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252,252,249,0.98);
  box-shadow: 0 4px 20px rgba(18, 45, 36, 0.04);
}

/* Top utility bar */
.header-topbar {
  background: var(--forest-deep);
  color: rgba(252,252,249,0.78);
  font-size: 13px;
  transition: max-height 260ms var(--ease), opacity 260ms var(--ease);
  overflow: hidden;
  max-height: 44px;
}
.site-header.is-scrolled .header-topbar {
  max-height: 0;
  opacity: 0;
}
.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  gap: 24px;
}
.header-topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(252,252,249,0.72);
  font-weight: 500;
}
.topbar-item svg {
  color: var(--gold);
  flex-shrink: 0;
}
.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(252,252,249,0.18);
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--warm-white);
  font-weight: 600;
  transition: color 200ms var(--ease);
}
.topbar-link svg {
  color: var(--gold);
  flex-shrink: 0;
}
.topbar-link:hover {
  color: var(--sage);
}

/* Main header row */
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 260ms var(--ease);
}
.site-header.is-scrolled .header-inner {
  height: var(--header-h-scrolled);
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-link img {
  width: 180px;
  height: 52px;
  object-fit: contain;
  transition: width 260ms var(--ease), height 260ms var(--ease);
}
.site-header.is-scrolled .logo-link img {
  width: 160px;
  height: 46px;
}

/* Navigation — pill-indicator style */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(238, 244, 240, 0.6);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(217, 224, 220, 0.5);
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 220ms var(--ease), background-color 220ms var(--ease);
}
.main-nav a::after {
  display: none;
}
.main-nav a:hover {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.7);
}
.main-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--forest);
  font-weight: 600;
}
.main-nav a[aria-current="page"]:hover {
  background: var(--forest-dark);
  color: var(--white);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions .btn {
  height: 46px;
  padding: 0 22px;
  font-size: 14px;
}
.header-actions .btn svg {
  transition: transform 220ms var(--ease);
}
.header-actions .btn:hover svg {
  transform: translateX(3px);
}

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.menu-toggle .bar {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--forest);
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}
.menu-toggle .bar::before,
.menu-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--forest);
  transition: transform 240ms var(--ease), top 240ms var(--ease), opacity 240ms var(--ease);
}
.menu-toggle .bar::before { top: -7px; }
.menu-toggle .bar::after  { top: 7px; }
.menu-toggle[aria-expanded="true"] .bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar::after  { top: 0; transform: rotate(-45deg); }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav a { padding: 9px 14px; }
}
@media (max-width: 900px) {
  .header-topbar { display: none; }
  .main-nav { display: none; }
  .header-actions .btn-primary.header-cta-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  :root { --header-h: var(--header-h-mobile); --header-h-scrolled: 60px; }
  .logo-link img { width: 150px; height: 44px; }
  .site-header.is-scrolled .logo-link img { width: 140px; height: 40px; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--warm-white);
  display: flex;
  flex-direction: column;
  padding: 28px var(--gutter-mobile) 40px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 320ms;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-mobile);
}
.mobile-menu-top img { width: 150px; height: 44px; object-fit: contain; }
.mobile-menu-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close svg { width: 20px; height: 20px; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  display: block;
  padding: 20px 4px;
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a[aria-current="page"] { color: var(--forest); }
.mobile-menu-cta { margin-top: 32px; }
.mobile-menu-cta .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---- Footer ---------------------------------------------------------------*/
.site-footer {
  background: var(--forest-deep);
  color: var(--warm-white);
  padding-top: var(--section-pad-desktop);
}
@media (max-width: 1024px) { .site-footer { padding-top: var(--section-pad-tablet); } }
@media (max-width: 640px)  { .site-footer { padding-top: var(--section-pad-mobile); } }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-logo { width: 170px; height: 50px; object-fit: contain; margin-bottom: 20px; }
.footer-about { color: rgba(252,252,249,0.72); font-size: 14.5px; line-height: 1.7; max-width: 320px; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li {
  font-size: 14.5px;
  color: rgba(252,252,249,0.78);
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--warm-white); }

.footer-bottom {
  border-top: 1px solid rgba(252,252,249,0.14);
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(252,252,249,0.6);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--warm-white); }
.footer-social { display: flex; gap: 16px; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Trust strip ---------------------------------------------------------*/
.trust-strip {
  padding-block: 30px;
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.trust-item h3 { font-size: 14.5px; margin-bottom: 4px; }
.trust-item p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Hero -----------------------------------------------------------------*/
.hero {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 720px;
  background: var(--cream);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--gutter-desktop);
}
.hero-content-inner { max-width: 520px; }
.hero-content .eyebrow { margin-bottom: 22px; }
.hero-headline {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 26px;
}
.hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-attribution { margin-bottom: 32px; }
.hero-attribution .name { font-weight: 600; color: var(--charcoal); display: block; }
.hero-attribution .role { font-size: 14px; color: var(--muted); }

.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { height: 46vh; min-height: 340px; order: -1; }
  .hero-content { padding: 48px var(--gutter-tablet); }
}
@media (max-width: 640px) {
  .hero-content { padding: 40px var(--gutter-mobile) 48px; }
  .hero-media { height: 320px; }
}

/* Hero badge (pulsing dot) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  background: var(--sage-light);
  border: 1px solid var(--sage);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 22px;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
  flex-shrink: 0;
}
.hero-badge-dot::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.4;
  animation: hero-badge-pulse 2s ease-out infinite;
}
@keyframes hero-badge-pulse {
  0%   { transform: scale(0.6); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Hero media floating badge */
.hero-media-badge {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: rgba(252, 252, 249, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-med);
  z-index: 2;
}
.hero-media-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-media-badge-icon svg { width: 20px; height: 20px; }
.hero-media-badge-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.hero-media-badge-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}
@media (max-width: 640px) {
  .hero-media-badge { bottom: 16px; left: 16px; padding: 12px 16px; }
  .hero-media-badge-icon { width: 36px; height: 36px; }
  .hero-media-badge-value { font-size: 14px; }
}

/* ---- Section header pattern ------------------------------------------------*/
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
@media (max-width: 768px) {
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---- Editorial two-column (About / Intro) ---------------------------------*/
.editorial-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}
.editorial-split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.editorial-split .eyebrow { margin-bottom: 20px; }
.editorial-split h2 { margin-bottom: 0; }
.editorial-split .col-text p + p { margin-top: 18px; }
.editorial-split .col-text .text-link { margin-top: 28px; }

@media (max-width: 900px) {
  .editorial-split, .editorial-split.reverse { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- Services grid (home) --------------------------------------------------*/
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: background-color 260ms var(--ease);
}
.service-card:hover { background: var(--sage-light); }
.service-index {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; flex-grow: 1; }
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--forest);
}
.service-arrow svg { transition: transform 220ms var(--ease); width: 16px; height: 16px; }
.service-card:hover .service-arrow svg { transform: translateX(4px); }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---- Featured leader (home) -------------------------------------------------*/
.feature-leader {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  align-items: stretch;
}
.feature-leader-media { aspect-ratio: 4 / 5; overflow: hidden; }
.feature-leader-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.feature-leader-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
}
.feature-leader-content h2 { margin-bottom: 28px; max-width: 460px; }
.feature-leader-quote {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.5;
  color: var(--warm-white);
  margin-bottom: 28px;
  max-width: 480px;
}
.feature-leader-attr { margin-bottom: 32px; }
.feature-leader-attr .name { font-weight: 600; display: block; }
.feature-leader-attr .role { font-size: 14px; color: var(--sage); }

@media (max-width: 900px) {
  .feature-leader { grid-template-columns: 1fr; }
  .feature-leader-media { aspect-ratio: 16/10; }
  .feature-leader-content { padding: 48px var(--gutter-tablet); }
}
@media (max-width: 640px) {
  .feature-leader-content { padding: 40px var(--gutter-mobile) 56px; }
}

/* ---- Why Al-Farah / values -------------------------------------------------*/
.principles-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
.principles-statement { align-self: start; position: sticky; top: 140px; }
.principle-list { display: flex; flex-direction: column; }
.principle-item {
  padding-block: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
}
.principle-list .principle-item:last-child { border-bottom: 1px solid var(--border); }
.principle-num { font-family: var(--font-serif); font-size: 20px; color: var(--gold); }
.principle-item h3 { margin-bottom: 8px; }
.principle-item p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 480px; }

@media (max-width: 900px) {
  .principles-layout { grid-template-columns: 1fr; gap: 32px; }
  .principles-statement { position: static; }
}
@media (max-width: 560px) {
  .principle-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- Home gallery preview (asymmetric) -------------------------------------*/
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}
.gp-item { position: relative; overflow: hidden; border-radius: var(--radius-img); }
.gp-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.gp-item:hover img { transform: scale(1.025); }
.gp-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.gp-2 { grid-column: 3 / 5; grid-row: 1 / 2; }
.gp-3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.gp-4 { grid-column: 4 / 5; grid-row: 2 / 3; }

@media (max-width: 900px) {
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 200px); }
  .gp-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gp-2 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gp-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gp-4 { grid-column: 1 / 3; grid-row: 3 / 4; }
}
@media (max-width: 560px) {
  .gallery-preview-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gp-1, .gp-2, .gp-3, .gp-4 { grid-column: auto; grid-row: auto; height: 260px; }
}

/* ---- Appointment CTA band ---------------------------------------------------*/
.cta-band {
  text-align: center;
  padding-block: 96px;
  position: relative;
  overflow: hidden;
}
.cta-band .h2 {
  color: var(--warm-white);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}
.cta-band p.body-lg {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}
.cta-band .cta-row { justify-content: center; }
.cta-band .cta-secondary-text { margin-top: 20px; }

/* CTA band decorative elements */
.cta-band-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.cta-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-circle-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: var(--forest-dark);
  opacity: 0.6;
}
.cta-circle-2 {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: -80px;
  background: var(--gold);
  opacity: 0.08;
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-band-text {
  max-width: 720px;
  margin-bottom: 32px;
}
.cta-band-text .h2 { margin-bottom: 18px; }
.cta-band-info {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 0px;
  padding: 16px 28px;
  background: rgba(252, 252, 249, 0.06);
  border: 1px solid rgba(252, 252, 249, 0.14);
  border-radius: var(--radius-pill);
}
/* Gap between buttons and info strip — works in either DOM order */
.cta-band .cta-row + .cta-band-info {
  margin-top: 36px;
}
.cta-band .cta-band-info + .cta-row {
  margin-top: 36px;
}
.cta-band-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.cta-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}
.cta-info-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--warm-white);
}
.cta-info-divider {
  width: 1px;
  height: 28px;
  background: rgba(252, 252, 249, 0.18);
}

@media (max-width: 768px) {
  .cta-band-info {
    flex-direction: column;
    gap: 14px;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
  }
  .cta-info-divider {
    width: 32px;
    height: 1px;
  }
  .cta-band-info-item {
    text-align: center;
    align-items: center;
  }
}

/* ---- Page hero (inner pages) -----------------------------------------------*/
.page-hero { padding-block: 80px 64px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 20px; max-width: 780px; }
.page-hero p.body-lg { max-width: 620px; }
.page-hero.dark h1 { color: var(--warm-white); }

/* ---- Breadcrumb -----------------------------------------------------------*/
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 13.5px;
  font-weight: 500;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 200ms var(--ease);
}
.breadcrumb a:hover {
  color: var(--forest);
}
.breadcrumb svg {
  flex-shrink: 0;
  color: var(--border);
  display: inline-block;
}
.breadcrumb span[aria-current="page"] {
  color: var(--forest);
  font-weight: 600;
}

.hero-sub {
  max-width: 600px;
}

/* ---- Services detail page ---------------------------------------------------*/
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-block: 88px;
}
.service-detail:not(:last-child) { border-bottom: 1px solid var(--border); }
.service-detail.reverse .service-detail-text { order: 2; }
.service-detail.reverse .service-detail-media { order: 1; }
.service-detail-media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-img); }
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-text .eyebrow { margin-bottom: 18px; }
.service-detail-text h2 { margin-bottom: 18px; }
.service-detail-text p { color: var(--text); margin-bottom: 14px; }
.service-check-list { margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.service-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.service-check-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .service-detail.reverse .service-detail-text,
  .service-detail.reverse .service-detail-media { order: 0; }
}

/* Services hero */
.services-hero {
  padding-block: 72px 72px;
  position: relative;
  overflow: hidden;
}
.services-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.35;
  pointer-events: none;
}
.services-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}
.services-hero .container { position: relative; z-index: 1; }
.services-hero h1 { max-width: 720px; }

@media (max-width: 640px) {
  .services-hero { padding-block: 56px 56px; }
  .services-hero::before { width: 240px; height: 240px; top: -80px; right: -60px; }
}

/* Service quick-jump chips */
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.service-chip:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
  transform: translateY(-1px);
}
.service-chip svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.services-page-wrapper { background: var(--white); }

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.service-badge-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  flex-shrink: 0;
}
.service-badge-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}

.service-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .service-cta-row { gap: 16px; }
  .service-cta-row .btn { width: 100%; }
}

/* ---- Team page ---------------------------------------------------------------*/
.team-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding-block: 96px;
  border-bottom: 1px solid var(--border);
}
.team-feature-media { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-feature); }
.team-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.team-feature-content .eyebrow { margin-bottom: 18px; }
.team-feature-content h2 { margin-bottom: 6px; }
.team-feature-role { color: var(--forest); font-weight: 600; margin-bottom: 22px; display: block; }
.team-feature-content p { color: var(--text); margin-bottom: 14px; }

@media (max-width: 900px) {
  .team-feature { grid-template-columns: 1fr; gap: 28px; padding-block: 56px; }
}

.team-section-label { padding-top: 88px; margin-bottom: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; padding-bottom: 96px; }
.team-card-media { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-img); margin-bottom: 20px; }
.team-card-media img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--forest); font-size: 14px; font-weight: 600; margin-bottom: 10px; display: block; }
.team-card p.bio { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* Team hero */
.team-hero {
  padding-block: 72px 80px;
  position: relative;
  overflow: hidden;
}
.team-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.35;
  pointer-events: none;
}
.team-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}
.team-hero .container { position: relative; z-index: 1; }
.team-hero h1 { max-width: 720px; }

@media (max-width: 640px) {
  .team-hero { padding-block: 56px 64px; }
  .team-hero::before { width: 240px; height: 240px; top: -80px; right: -60px; }
}

/* Team leadership (director feature) */
.team-leadership { padding-block: 96px; }
.team-leadership-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.team-leadership-media {
  position: relative;
  aspect-ratio: 3/4;
}
.team-leadership-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-feature);
  position: relative;
  z-index: 1;
}
.team-leadership-decor {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  background: var(--sage-light);
  border-radius: var(--radius-feature);
  z-index: 0;
  pointer-events: none;
}
.team-leadership-role {
  display: inline-block;
  padding: 6px 14px;
  background: var(--sage-light);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.team-leadership-content .h2 { margin-bottom: 24px; }
.team-leadership-content p { margin-bottom: 14px; color: var(--text); }
.team-leadership-quote {
  position: relative;
  margin-top: 28px;
  padding: 24px 24px 24px 32px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.team-leadership-quote p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 0;
}
.team-leadership-quote-mark {
  position: absolute;
  top: -4px;
  left: 14px;
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .team-leadership { padding-block: 64px; }
  .team-leadership-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .team-leadership-quote p { font-size: 16px; }
}

/* Team card additions */
.team-card-body { padding: 0 4px; }
.team-card-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--sage-light);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.team-card-creds {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* ---- About page ---------------------------------------------------------------*/
.story-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 64px; }
.story-marker {
  font-family: var(--font-serif);
  color: var(--forest);
  line-height: 1;
}
.story-marker .est { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--muted); font-family: var(--font-sans); font-weight: 700; }
.story-marker .year { font-size: clamp(48px, 6vw, 84px); }
.story-text p + p { margin-top: 18px; }

@media (max-width: 900px) { .story-layout { grid-template-columns: 1fr; gap: 24px; } }

.ceo-message { padding-block: 120px; position: relative; overflow: hidden; }
.ceo-message-inner { max-width: 880px; margin-inline: auto; text-align: center; position: relative; z-index: 1; }
.ceo-message .serif-statement { font-size: clamp(26px, 3.4vw, 40px); color: var(--warm-white); margin-bottom: 40px; }
.ceo-message-media {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  border: 1px solid rgba(252,252,249,0.3);
}
.ceo-message-media img { width: 100%; height: 100%; object-fit: cover; }

/* About hero */
.about-hero {
  padding-block: 72px 80px;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.35;
  pointer-events: none;
}
.about-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { max-width: 720px; }

@media (max-width: 640px) {
  .about-hero { padding-block: 56px 64px; }
  .about-hero::before { width: 240px; height: 240px; top: -80px; right: -60px; }
}

.story-eyebrow { margin-bottom: 18px; }
.story-marker-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* CEO decor */
.ceo-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ceo-decor::before,
.ceo-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ceo-decor::before {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -140px;
  background: var(--forest-dark);
  opacity: 0.5;
}
.ceo-decor::after {
  width: 240px;
  height: 240px;
  bottom: -100px;
  left: -80px;
  background: var(--gold);
  opacity: 0.07;
}
.ceo-quote-mark,
.ceo-quote-mark-close {
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 0.5;
  color: var(--gold);
  display: block;
  opacity: 0.5;
}
.ceo-quote-mark { margin-bottom: 24px; }
.ceo-quote-mark-close {
  margin-top: 12px;
  transform: rotate(180deg);
  display: inline-block;
}
.ceo-attribution {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.ceo-attribution .name {
  font-weight: 600;
  color: var(--warm-white);
  font-size: 15px;
}
.ceo-attribution .role {
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.02em;
}

/* Facility features */
.facility-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.facility-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.facility-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage-light);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.facility-feature-icon svg { width: 22px; height: 22px; }
.facility-feature h4 { font-size: 15px; margin-bottom: 4px; }
.facility-feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .facility-features { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .facility-features { grid-template-columns: 1fr; }
}

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 56px; }
.value-item { background: var(--cream); padding: 40px; }
.value-num { font-family: var(--font-serif); color: var(--gold); font-size: 20px; margin-bottom: 16px; display: block; }
.value-item h3 { margin-bottom: 10px; }
.value-item p { color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } }

.facility-media { aspect-ratio: 16/7; overflow: hidden; position: relative; border-radius: var(--radius-feature); }
.facility-media img { width: 100%; height: 100%; object-fit: cover; }
.facility-caption {
  position: absolute;
  left: 32px; bottom: 28px;
  color: var(--warm-white);
}
.facility-caption .eyebrow { color: var(--sage); margin-bottom: 8px; }
.facility-caption .eyebrow::before { background: var(--gold); }
.facility-caption p { font-size: 15px; max-width: 380px; color: rgba(252,252,249,0.9); }
@media (max-width: 640px) {
  .facility-media { aspect-ratio: 4/5; }
  .facility-caption { left: 20px; bottom: 20px; }
}

/* ---- Gallery page ---------------------------------------------------------------*/
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.filter-btn {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.filter-btn:hover { color: var(--forest); }
.filter-btn.is-active { color: var(--forest); border-color: var(--forest); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 16px;
  padding-bottom: 40px;
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  margin: 0;
  cursor: pointer;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 380ms var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.025); }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(12,45,36,0.72), transparent);
  color: var(--warm-white);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}
.gallery-grid figure:hover .gallery-caption { opacity: 1; transform: translateY(0); }

.gallery-grid figure.hidden { display: none; }

.g-item-1 { grid-column: 1 / 8; grid-row: 1 / 6; }
.g-item-2 { grid-column: 8 / 13; grid-row: 1 / 4; }
.g-item-3 { grid-column: 8 / 13; grid-row: 4 / 8; }
.g-item-4 { grid-column: 1 / 5; grid-row: 6 / 10; }
.g-item-5 { grid-column: 5 / 8; grid-row: 6 / 10; }
.g-item-6 { grid-column: 8 / 13; grid-row: 8 / 11; }
.g-item-7 { grid-column: 1 / 5; grid-row: 10 / 13; }
.g-item-8 { grid-column: 5 / 9; grid-row: 10 / 15; }
.g-item-9 { grid-column: 9 / 13; grid-row: 11 / 15; }
.g-item-10 { grid-column: 1 / 5; grid-row: 13 / 16; }
.g-item-11 { grid-column: 5 / 9; grid-row: 15 / 19; }
.g-item-12 { grid-column: 9 / 13; grid-row: 15 / 19; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid figure { grid-column: auto !important; grid-row: span 2 !important; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure { grid-column: auto !important; grid-row: span 1 !important; height: 300px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(12,45,36,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--ease), visibility 280ms;
  padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: 1100px; width: 100%; text-align: center; }
.lightbox-figure img {
  max-height: 78vh;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-caption { color: var(--sage-light); margin-top: 18px; font-size: 14.5px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(252,252,249,0.12);
  color: var(--warm-white);
  transition: background-color 200ms var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(252,252,249,0.24); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-hero {
  padding-block: 72px 80px;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.35;
  pointer-events: none;
}
.contact-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}
.contact-hero h1 {
  max-width: 700px;
}

@media (max-width: 640px) {
  .contact-hero { padding-block: 56px 64px; }
  .contact-hero::before { width: 240px; height: 240px; top: -80px; right: -60px; }
}

/* Quick contact cards */
.contact-cards-section {
  padding-block: 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-feature);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-med);
  border-color: var(--sage);
}
.contact-card:hover::before {
  opacity: 1;
}
.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--forest);
  transition: background-color 260ms var(--ease), color 260ms var(--ease);
}
.contact-card:hover .contact-card-icon {
  background: var(--forest);
  color: var(--white);
}
.contact-card-icon svg {
  width: 24px;
  height: 24px;
}
.contact-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-card-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 8px;
  flex-grow: 1;
}
.contact-card-sub {
  font-size: 14px;
  margin-bottom: 0;
}
.contact-card .text-link {
  margin-top: 12px;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards-section { margin-top: -24px; }
}
@media (max-width: 640px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
  .contact-cards-section { margin-top: -16px; }
}

/* Contact main grid (form + sidebar) */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: start;
}
.contact-form-wrapper .eyebrow { margin-bottom: 12px; }
.contact-form-wrapper .h2 { margin-bottom: 12px; }
.form-intro {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Redesigned form fields */
.contact-form .form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.contact-form .form-field input,
.contact-form .form-field textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 77, 60, 0.08);
}
.contact-form .form-field input::placeholder,
.contact-form .form-field textarea::placeholder {
  color: var(--border);
  font-weight: 400;
}
.contact-form .form-submit-row .btn {
  height: 54px;
  padding: 0 32px;
  font-size: 15.5px;
}
.contact-form .form-submit-row .btn svg {
  display: inline-block;
  flex-shrink: 0;
}

/* Contact info sidebar */
.contact-info-side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.contact-info-card {
  background: var(--forest-deep);
  color: var(--warm-white);
  border-radius: var(--radius-feature);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0.4;
  pointer-events: none;
}
.contact-info-card::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}
.contact-info-card .eyebrow {
  color: var(--sage);
}
.contact-info-card .eyebrow::before {
  background: var(--gold);
}
.contact-info-card .h3 {
  color: var(--warm-white);
  margin-bottom: 10px;
}
.contact-info-card > .muted {
  color: rgba(252, 252, 249, 0.65);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Detail list with icons */
.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid rgba(252, 252, 249, 0.12);
  position: relative;
}
.contact-detail-list li:last-child {
  border-bottom: 1px solid rgba(252, 252, 249, 0.12);
}
.contact-detail-list li > svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.contact-detail-list .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
  display: block;
}
.contact-detail-list .value {
  font-size: 15px;
  font-weight: 500;
  color: var(--warm-white);
  line-height: 1.55;
}

/* Emergency note box */
.contact-note-box {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(252, 252, 249, 0.06);
  border: 1px solid rgba(252, 252, 249, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.contact-note-box svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}
.contact-note-box p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(252, 252, 249, 0.7);
}

@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-info-side {
    position: static;
  }
}
@media (max-width: 640px) {
  .contact-info-card {
    padding: 36px 28px;
  }
}

/* Original contact-layout (kept for backwards compat) */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
.contact-info-list { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.contact-info-item { padding-top: 20px; border-top: 1px solid var(--border); }
.contact-info-item .label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.contact-info-item .value { font-size: 17px; color: var(--charcoal); font-weight: 500; }
.contact-note { margin-top: 32px; padding: 20px 22px; background: var(--sage-light); border-radius: var(--radius-md); font-size: 14px; color: var(--text); }

/* Form base (shared) */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
.form-field .optional { color: var(--muted); font-weight: 400; }
.form-field input, .form-field textarea {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 200ms var(--ease);
}
.form-field textarea { height: 150px; padding: 14px 16px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--forest); }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); min-height: 16px; }
.form-submit-row { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.form-status {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: var(--sage-light); color: var(--forest-dark); border: 1px solid var(--sage); }
.form-status.error { background: #F7EAE9; color: var(--error); border: 1px solid #E9C9C6; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Map section */
.map-section { padding-block: 0 var(--section-pad-desktop); }
.map-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-radius: var(--radius-feature);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.map-media {
  min-height: 380px;
  overflow: hidden;
  position: relative;
}
.map-media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.map-content {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}
.map-content .eyebrow {
  margin-bottom: 14px;
}
.map-content h3 {
  margin-bottom: 14px;
}
.map-content p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.65;
}
.map-content .btn {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .map-card { grid-template-columns: 1fr; }
  .map-media { min-height: 300px; }
  .map-content { padding: 40px var(--gutter-tablet); }
}
@media (max-width: 640px) {
  .map-section { padding-block: 0 var(--section-pad-mobile); }
  .map-content { padding: 32px var(--gutter-mobile); }
  .map-media { min-height: 260px; }
}

/* ---- Scroll reveal ---------------------------------------------------------------*/
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Utility ---------------------------------------------------------------------*/
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }