/* ============================================
   AL TAHER GROUP — Gulf Heritage Editorial
   Master stylesheet · main.css
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Palette */
  --teal: #0d6e5e;
  --teal-deep: #094a3f;
  --teal-light: #1a8a77;
  --teal-tint: #e6f0ed;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-deep: #a88a35;
  --off-white: #f8f5f0;
  --cream: #ede6d8;
  --paper: #ffffff;
  --dark: #1a1a1a;
  --mid: #4a4a4a;
  --muted: #888780;
  --line: #e4ddd0;
  --line-soft: #efe8da;

  /* Type */
  --display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --body: 'Outfit', 'Helvetica Neue', sans-serif;
  --arabic: 'Noto Naskh Arabic', 'Amiri', serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-xl: 24px;

  /* Layout */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Easings */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--off-white);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--teal);
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p { font-family: var(--body); }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
}

/* ---------- LAYOUT ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 72px);
  gap: 32px;
  flex-wrap: wrap;
}
.section-head__left { max-width: 720px; }
.section-head h2 { margin-top: 16px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .35s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: var(--off-white); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--ghost:hover { background: var(--dark); color: var(--off-white); }
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: var(--gold-deep); color: var(--off-white); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .4s var(--ease);
  background: transparent;
}
.nav.scrolled {
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav__logo img { height: 44px; width: auto; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__logo-text strong { font-weight: 500; color: var(--teal); font-size: 17px; }
.nav__logo-text small { font-size: 10px; font-family: var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--teal); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active, .nav__links a[aria-current="page"] { color: var(--teal); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-toggle {
  display: flex;
  background: var(--cream);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--mid);
  transition: all .25s ease;
}
.lang-toggle button.active {
  background: var(--teal);
  color: var(--off-white);
}
.nav__quote {
  padding: 10px 18px;
  font-size: 12px;
  background: var(--dark);
  color: var(--off-white);
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all .3s ease;
}
.nav__quote:hover { background: var(--teal); }

/* Hamburger */
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--dark);
  transition: all .3s ease;
}
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); width: 24px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 24px; }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--off-white);
  z-index: 99;
  padding: 100px var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav a .num {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.mobile-nav__bottom {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero__pattern {
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  max-width: 800px;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.hero__pattern svg { width: 100%; height: 100%; }
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.05 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.hero__title {
  font-size: clamp(2.8rem, 7.2vw, 6rem);
  margin-bottom: 28px;
}
.hero__title em {
  font-style: italic;
  color: var(--teal);
}
.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 44px;
  max-width: 520px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero__divisions {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero__division { max-width: 220px; }
.hero__division strong {
  font-family: var(--display);
  font-size: 13px;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.hero__division span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.hero__side {
  position: relative;
  height: 540px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
}
.hero__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.95);
}
.hero__side-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 76, 0.4);
  pointer-events: none;
  z-index: 2;
}
.hero__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(13, 110, 94, 0.95);
  backdrop-filter: blur(8px);
  color: var(--off-white);
  padding: 14px 18px;
  z-index: 3;
  max-width: 200px;
}
.hero__badge strong {
  font-family: var(--display);
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.hero__badge span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Hero stats marquee */
.hero-stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  background: var(--paper);
  margin-top: -1px;
}
.hero-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.stat__num em { font-style: italic; color: var(--gold-deep); }
.stat__label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ---------- SERVICES (home grid) ---------- */
.services {
  background: var(--off-white);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--off-white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: all .45s var(--ease);
  cursor: pointer;
}
.service-card:hover {
  background: var(--paper);
  transform: translateY(-2px);
}
.service-card__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold-deep);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--teal);
  margin-bottom: 24px;
  transition: transform .4s var(--ease);
}
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-2deg); }
.service-card__title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.service-card__link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.service-card__link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width .35s var(--ease);
}
.service-card:hover .service-card__link::after { width: 24px; }

/* ---------- PORTFOLIO (home asymmetric grid) ---------- */
.portfolio-home {
  background: var(--paper);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}
.portfolio-tile {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}
.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.portfolio-tile:hover img { transform: scale(1.06); }
.portfolio-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 110, 94, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .45s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--off-white);
}
.portfolio-tile:hover .portfolio-tile__overlay { opacity: 1; }
.portfolio-tile__overlay small {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.portfolio-tile__overlay strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

/* Asymmetric placement */
.portfolio-tile.t-1 { grid-column: span 3; grid-row: span 2; }
.portfolio-tile.t-2 { grid-column: span 3; grid-row: span 1; }
.portfolio-tile.t-3 { grid-column: span 2; grid-row: span 1; }
.portfolio-tile.t-4 { grid-column: span 1; grid-row: span 1; }
.portfolio-tile.t-5 { grid-column: span 2; grid-row: span 2; }
.portfolio-tile.t-6 { grid-column: span 4; grid-row: span 1; }

/* ---------- ABOUT BLURB ---------- */
.about-blurb {
  background: var(--off-white);
  position: relative;
}
.about-blurb__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.about-blurb__text h2 { margin: 20px 0 28px; }
.about-blurb__text p {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 24px;
}
.about-blurb__pullquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--teal);
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
  line-height: 1.35;
}
.about-blurb__image {
  position: relative;
  height: 540px;
  background: var(--cream);
}
.about-blurb__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-blurb__image::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  pointer-events: none;
}

/* ---------- WHY / TRUST ---------- */
.why {
  background: var(--teal);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.why__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}
.why .eyebrow { color: var(--gold-light); }
.why .eyebrow::before { background: var(--gold-light); }
.why h2 { color: var(--off-white); }
.why .section-num { color: var(--gold-light); }
.why-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}
.why-item {
  padding: 32px 0;
  border-top: 1px solid rgba(232, 201, 106, 0.3);
}
.why-item__num {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 16px;
}
.why-item__num em { font-style: italic; }
.why-item__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 12px;
}
.why-item__desc {
  font-size: 13px;
  color: rgba(248, 245, 240, 0.7);
  line-height: 1.6;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--dark);
  color: var(--off-white);
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band__pattern {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  opacity: 0.06;
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta-band h2 {
  color: var(--off-white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 32px;
}
.cta-band h2 em { color: var(--gold-light); }
.cta-band p {
  font-size: 16px;
  color: rgba(248, 245, 240, 0.7);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--off-white);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__brand h3 {
  font-family: var(--display);
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.footer__brand p {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 24px;
  max-width: 320px;
  line-height: 1.6;
}
.footer__since {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}
.footer h5 {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 20px;
}
.footer ul li {
  margin-bottom: 12px;
}
.footer ul li a {
  font-size: 14px;
  color: var(--mid);
  transition: color .2s ease;
}
.footer ul li a:hover { color: var(--teal); }
.footer__contact-item {
  display: block;
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 12px;
}
.footer__contact-item strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 4px;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom a:hover { color: var(--teal); }

/* ---------- FLOATING WHATSAPP ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
}
.wa-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.wa-toggle:hover { transform: scale(1.08); }
.wa-toggle svg { width: 28px; height: 28px; color: white; }
.wa-popup {
  position: absolute;
  bottom: 76px;
  right: 0;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 8px;
  width: 300px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all .3s var(--ease);
  border: 1px solid var(--line);
}
.wa-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.wa-popup__head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}
.wa-popup__head strong {
  font-family: var(--display);
  font-size: 15px;
  color: var(--dark);
  display: block;
}
.wa-popup__head span {
  font-size: 11px;
  color: var(--muted);
}
.wa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .2s ease;
}
.wa-card:hover { background: var(--off-white); }
.wa-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-card__icon svg { width: 16px; height: 16px; color: white; }
.wa-card__text strong {
  display: block;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 2px;
}
.wa-card__text span { font-size: 11px; color: var(--muted); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
/* opacity:0 set via CSS not fill-mode — allows reduced-motion override to work */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .9s var(--ease) forwards;
}
.fade-up.d1 { animation-delay: .1s; }
.fade-up.d2 { animation-delay: .2s; }
.fade-up.d3 { animation-delay: .3s; }
.fade-up.d4 { animation-delay: .4s; }
.fade-up.d5 { animation-delay: .5s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__side { height: 380px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; }
  .portfolio-tile.t-1 { grid-column: span 2; grid-row: span 2; }
  .portfolio-tile.t-2 { grid-column: span 2; grid-row: span 1; }
  .portfolio-tile.t-3 { grid-column: span 2; grid-row: span 1; }
  .portfolio-tile.t-4 { grid-column: span 2; grid-row: span 1; }
  .portfolio-tile.t-5 { grid-column: span 2; grid-row: span 1; }
  .portfolio-tile.t-6 { grid-column: span 4; grid-row: span 1; }
  .about-blurb__inner { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__quote { display: none; }
  .nav__right .lang-toggle { display: flex; }
  .hamburger { display: flex; }
  .hero { padding-top: 110px; }
  .hero__divisions { gap: 24px; }
  .hero-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .stat { padding: 0 12px; }
  .stat:nth-child(2) { border-right: 0; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { min-height: 220px; padding: 32px 24px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-tile,
  .portfolio-tile.t-1, .portfolio-tile.t-2, .portfolio-tile.t-3,
  .portfolio-tile.t-4, .portfolio-tile.t-5, .portfolio-tile.t-6 {
    grid-column: span 1; grid-row: span 1;
  }
  .portfolio-tile.t-1 { grid-column: span 2; }
  .hero-stats { padding: 24px 0; }
  .stat__num { font-size: 2rem; }
  .why-inner { grid-template-columns: 1fr; gap: 16px; }
  .why-item { padding: 24px 0; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .wa-float { bottom: 20px; right: 20px; }
  .wa-toggle { width: 54px; height: 54px; }
  .wa-popup { width: calc(100vw - 40px); right: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.5rem; }
  .mobile-nav a { font-size: 30px; padding: 14px 0; }
}

/* ============================================
   SERVICES PAGE STYLES
   ============================================ */

/* Compact page hero */
.page-hero {
  padding: 180px 0 80px;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}
.page-hero__pattern {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  max-width: 600px;
  height: 100%;
  opacity: 0.035;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin: 20px 0 28px;
  line-height: 1.04;
}
.page-hero p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--mid);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 40px;
}
.page-hero__jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.page-hero__jumps a {
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mid);
  transition: all .25s ease;
  background: var(--paper);
}
.page-hero__jumps a:hover {
  background: var(--teal);
  color: var(--off-white);
  border-color: var(--teal);
}

/* Audience tabs section */
.audience {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.audience__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.audience__head h2 {
  margin: 16px 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
.audience__head p { color: var(--mid); font-size: 15px; }

.audience-tabs {
  display: inline-flex;
  background: var(--off-white);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 40px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.audience-tab {
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--mid);
  transition: all .3s ease;
  cursor: pointer;
}
.audience-tab.active {
  background: var(--teal);
  color: var(--off-white);
}

.audience-content {
  display: none;
  animation: fadeUp .5s var(--ease);
}
.audience-content.active { display: block; }
.audience-content__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.audience-content__text h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 20px;
}
.audience-content__text h3 em { color: var(--teal); }
.audience-content__text p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 20px;
}
.audience-content__perks {
  list-style: none;
  margin: 24px 0;
}
.audience-content__perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--dark);
}
.audience-content__perks li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  margin-top: 11px;
  flex-shrink: 0;
}
.audience-content__image {
  height: 420px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.audience-content__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.audience-content__image::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  pointer-events: none;
}

/* Full service detail sections */
.service-detail {
  padding: clamp(64px, 9vw, 110px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service-detail:nth-child(odd) { background: var(--off-white); }
.service-detail:nth-child(even) { background: var(--paper); }

.service-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.service-detail:nth-child(even) .service-detail__image { order: -1; }

.service-detail__text {}
.service-detail__num {
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-style: italic;
  color: var(--gold-deep);
  line-height: 0.9;
  margin-bottom: 8px;
  display: block;
  opacity: 0.85;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.service-detail__division {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--teal-tint);
  border-radius: 999px;
  font-weight: 500;
}
.service-detail__division::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.service-detail h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 20px;
  line-height: 1.1;
}
.service-detail h2 em { color: var(--teal); }
.service-detail__lead {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 24px;
}
.service-detail__list {
  list-style: none;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.service-detail__list li {
  font-size: 13px;
  color: var(--dark);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.service-detail__list li svg {
  width: 12px;
  height: 12px;
  color: var(--gold);
  flex-shrink: 0;
}
.service-detail__cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.service-detail__cta .btn {
  padding: 13px 22px;
  font-size: 12px;
}

.service-detail__image {
  position: relative;
  height: 480px;
  background: var(--cream);
  overflow: hidden;
}
.service-detail__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.service-detail:hover .service-detail__image img { transform: scale(1.03); }
.service-detail__image::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  pointer-events: none;
  z-index: 2;
}
.service-detail__icon-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: rgba(13, 110, 94, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: var(--gold-light);
}
.service-detail__icon-badge svg { width: 24px; height: 24px; }

/* Responsive services page */
@media (max-width: 1024px) {
  .service-detail__inner { grid-template-columns: 1fr; gap: 40px; }
  .service-detail:nth-child(even) .service-detail__image { order: 0; }
  .service-detail__image { height: 380px; }
  .audience-content__grid { grid-template-columns: 1fr; gap: 32px; }
  .audience-content__image { height: 320px; }
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 60px; }
  .page-hero__jumps a { font-size: 11px; padding: 6px 12px; }
  .service-detail__list { grid-template-columns: 1fr; }
  .audience-tab { padding: 10px 18px; font-size: 11px; }
  .service-detail__image { height: 280px; }
}

/* ============================================
   PORTFOLIO PAGE STYLES
   ============================================ */

.portfolio-controls {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 76px;
  z-index: 80;
  padding: 0;
  transition: top .4s var(--ease);
}
.portfolio-controls__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.filter-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mid);
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active {
  background: var(--teal);
  color: var(--off-white);
  border-color: var(--teal);
}
.portfolio-count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.portfolio-count strong {
  font-size: 18px;
  font-family: var(--display);
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
  margin-right: 4px;
}

/* Portfolio masonry grid */
.portfolio-section {
  padding: 40px 0 80px;
  background: var(--off-white);
}
.portfolio-masonry {
  columns: 4;
  column-gap: 12px;
}
.portfolio-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  display: block;
}
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .7s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 74, 63, 0.9) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--off-white);
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__cat {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 5px;
}
.portfolio-item__name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  padding: 20px;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__content {
  position: relative;
  max-width: min(900px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__content img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.lightbox__caption {
  color: rgba(248, 245, 240, 0.7);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 14px;
  text-transform: uppercase;
}
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(248, 245, 240, 0.12);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  cursor: pointer;
  border: 1px solid rgba(248, 245, 240, 0.15);
}
.lb-btn:hover { background: rgba(248, 245, 240, 0.22); }
#lbPrev { left: 16px; }
#lbNext { right: 16px; }
#lbClose {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(248, 245, 240, 0.12);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(248, 245, 240, 0.15);
  transition: background .2s ease;
}
#lbClose:hover { background: rgba(248, 245, 240, 0.22); }
.lightbox__counter {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(248, 245, 240, 0.5);
  letter-spacing: 0.12em;
}

/* Responsive portfolio */
@media (max-width: 1200px) { .portfolio-masonry { columns: 3; } }
@media (max-width: 900px) {
  .portfolio-masonry { columns: 2; }
  .filter-strip { gap: 6px; }
  .filter-btn { font-size: 11px; padding: 6px 11px; }
  #lbPrev { left: 8px; }
  #lbNext { right: 8px; }
}
@media (max-width: 600px) {
  .portfolio-masonry { columns: 2; column-gap: 8px; }
  .portfolio-item { margin-bottom: 8px; }
  .lb-btn { display: none; }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.about-hero { position: relative; }
.timeline {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.timeline__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.timeline__label { position: sticky; top: 120px; }
.timeline__label h2 { margin: 16px 0 24px; }
.timeline__label p { font-size: 15px; color: var(--mid); line-height: 1.7; }
.timeline__items { display: flex; flex-direction: column; gap: 0; }
.timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.timeline__item:last-child { border-bottom: 0; }
.timeline__year {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold-deep);
  line-height: 1;
  padding-top: 3px;
}
.timeline__event h4 {
  font-family: var(--display);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--dark);
}
.timeline__event p { font-size: 14px; color: var(--mid); line-height: 1.65; }

/* Divisions section */
.divisions {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--off-white);
}
.divisions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 56px;
  background: var(--line);
}
.division-card {
  background: var(--off-white);
  padding: clamp(32px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.division-card--dat { background: var(--teal); color: var(--off-white); }
.division-card__num {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.85;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: 20px;
  right: 24px;
  pointer-events: none;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.division-card--dat .division-card__num { color: var(--gold-light); opacity: 0.15; }
.division-card__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-tint);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 500;
}
.division-card--dat .division-card__tag {
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
}
.division-card h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 16px;
}
.division-card--dat h3 { color: var(--off-white); }
.division-card p { font-size: 14px; color: var(--mid); line-height: 1.7; }
.division-card--dat p { color: rgba(248, 245, 240, 0.75); }
.division-card__services {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.division-card__services span {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mid);
}
.division-card--dat .division-card__services span {
  border-color: rgba(201, 168, 76, 0.3);
  color: rgba(248, 245, 240, 0.6);
}

/* Who we serve (about) */
.who-serve {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--paper);
}
.who-serve__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.who-card {
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
}
.who-card__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 24px;
}
.who-card h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 12px; }
.who-card h3 em { color: var(--teal); }
.who-card p { font-size: 14px; color: var(--mid); line-height: 1.7; margin-bottom: 20px; }
.who-card__list { list-style: none; }
.who-card__list li {
  font-size: 13px;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.who-card__list li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--gold);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-cards {
  padding: clamp(60px, 9vw, 100px) 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}
.contact-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.contact-card__role {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.contact-card__name { font-family: var(--display); font-size: 20px; margin: 6px 0 16px; }
.contact-card__num {
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  font-family: var(--display);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.contact-card__btns { display: flex; gap: 8px; margin-top: auto; }
.contact-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mid);
  transition: all .25s ease;
}
.contact-card__btn--wa {
  background: #25D366;
  border-color: #25D366;
  color: white;
}
.contact-card__btn--wa:hover { background: #1da851; border-color: #1da851; }
.contact-card__btn:not(.contact-card__btn--wa):hover {
  background: var(--dark);
  color: var(--off-white);
  border-color: var(--dark);
}

/* Quote form + Map section */
.contact-main {
  padding: clamp(60px, 9vw, 100px) 0;
  background: var(--paper);
}
.contact-main__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 12px 0 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--off-white);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--dark);
  outline: none;
  transition: border-color .2s ease;
  font-family: var(--body);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { height: 120px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.map-container {
  width: 100%;
  height: 280px;
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

.address-card {
  background: var(--teal);
  color: var(--off-white);
  padding: 28px 32px;
}
.address-card h4 {
  font-family: var(--display);
  font-size: 18px;
  color: var(--off-white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.address-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(248, 245, 240, 0.12);
  font-size: 13px;
  color: rgba(248, 245, 240, 0.8);
}
.address-item:last-child { border-bottom: 0; }
.address-item svg { color: var(--gold-light); margin-top: 2px; flex-shrink: 0; }
.address-item strong { display: block; color: var(--off-white); font-weight: 500; margin-bottom: 2px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* FAQ Accordion */
.faq-section {
  padding: clamp(64px, 9vw, 100px) 0;
  background: var(--off-white);
}
.faq-list { margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 24px;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  color: var(--dark);
  transition: color .2s ease;
}
.faq-q:hover { color: var(--teal); }
.faq-q svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal);
  transition: transform .35s var(--ease);
}
.faq-item.open .faq-q { color: var(--teal); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.75;
  padding-bottom: 24px;
  max-width: 820px;
}

/* Responsive */
@media (max-width: 1024px) {
  .timeline__inner { grid-template-columns: 1fr; }
  .timeline__label { position: static; }
  .divisions__grid { grid-template-columns: 1fr; }
  .who-serve__grid { grid-template-columns: 1fr; }
  .contact-cards__grid { grid-template-columns: 1fr; }
  .contact-main__inner { grid-template-columns: 1fr; }
  .contact-aside { flex-direction: row; flex-wrap: wrap; }
  .map-container { flex: 1; min-width: 280px; }
  .address-card { flex: 1; min-width: 280px; }
}
@media (max-width: 768px) {
  .contact-aside { flex-direction: column; }
  .who-card { padding: 28px 24px; }
  .contact-card { padding: 24px 20px; }
  .division-card { padding: 32px 24px; }
  .timeline__item { grid-template-columns: 60px 1fr; }
}

/* ============================================
   ACCESSIBILITY + VISIBILITY FIXES
   Prevents hero content staying invisible when
   animation is blocked by OS/browser settings
   ============================================ */

/* Reduced-motion: skip animations, show content immediately */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-up.d1, .fade-up.d2, .fade-up.d3, .fade-up.d4, .fade-up.d5 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* JS fallback in main.js handles any remaining edge cases */

/* Ensure hero text is always visible regardless of CSS variable resolution */
.hero__title, .hero__sub, .hero__kicker { color: #1a1a1a; }
.hero__title em, .hero__title .display em { color: #0d6e5e; }
.page-hero h1 { color: #1a1a1a; }
.page-hero p { color: #4a4a4a; }

/* Fix: hero__side image fallback if Google Drive fails to load */
.hero__side {
  background: #ede6d8;
  min-height: 320px;
}

/* Ensure hero never collapses when image fails */
.hero__side img {
  min-height: 320px;
  object-fit: cover;
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-hero { background: var(--off-white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.blog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.blog-card__img {
  width: 100%; height: 200px;
  object-fit: cover;
  background: var(--cream);
  display: block;
}
.blog-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__cat {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px; font-weight: 500;
}
.blog-card__title {
  font-family: var(--display); font-size: 20px; font-weight: 400;
  line-height: 1.25; margin-bottom: 12px; color: var(--dark);
}
.blog-card__title:hover { color: var(--teal); }
.blog-card__excerpt {
  font-size: 14px; color: var(--mid); line-height: 1.65;
  margin-bottom: 20px; flex: 1;
}
.blog-card__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--muted); padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.blog-card__meta span { display: flex; align-items: center; gap: 6px; }

/* Article page */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article-header {
  padding: 160px 0 48px;
  background: var(--off-white);
  position: relative; overflow: hidden;
}
.article-header__inner { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.article-cat {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px; display: block; font-weight: 500;
}
.article-header h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 24px; line-height: 1.1;
}
.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); padding-top: 24px;
  border-top: 1px solid var(--line); margin-top: 24px;
}
.article-meta strong { color: var(--dark); }

.article-content {
  padding: 64px 0 80px;
  background: var(--paper);
}
.article-content p { font-size: 17px; line-height: 1.8; color: var(--mid); margin-bottom: 28px; }
.article-content h2 {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--dark); margin: 48px 0 20px; font-weight: 400;
}
.article-content h2 em { color: var(--teal); }
.article-content h3 {
  font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: var(--dark); margin: 36px 0 16px; font-weight: 400;
}
.article-content ul, .article-content ol {
  margin: 0 0 28px 24px; font-size: 16px; color: var(--mid); line-height: 1.75;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 20px 24px; margin: 32px 0;
  background: var(--off-white); font-size: 18px;
  font-family: var(--display); font-style: italic;
  color: var(--teal); line-height: 1.5;
}
.article-content strong { color: var(--dark); font-weight: 600; }
.article-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

.article-cta {
  background: var(--teal); color: var(--off-white);
  padding: 48px; margin: 48px 0; text-align: center;
}
.article-cta h3 {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--off-white); margin-bottom: 16px; font-weight: 400;
}
.article-cta p { color: rgba(248,245,240,0.8); margin-bottom: 24px; font-size: 15px; line-height: 1.7; }

.article-nav {
  background: var(--off-white); border-top: 1px solid var(--line);
  padding: 40px 0;
}
.article-nav__inner {
  max-width: 760px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.article-nav a {
  font-size: 13px; color: var(--teal); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.article-nav a:hover { text-decoration: underline; }

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } .article-cta { padding: 32px 24px; } }

/* ============================================
   BLOG — INDEX + ARTICLE STYLES
   ============================================ */

/* Blog index grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.blog-card {
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--line);
  transition: border-color .2s;
}
.blog-card:hover { border-color: var(--teal); }
.blog-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream);
}
.blog-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.blog-card__cat {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
}
.blog-card__date { font-size: 12px; color: var(--muted); }
.blog-card__read { font-size: 12px; color: var(--muted); margin-right: auto; }
.blog-card__title { font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 500; color: var(--dark); line-height: 1.35; margin-bottom: 12px; }
.blog-card__excerpt { font-size: 13px; color: var(--mid); line-height: 1.75; flex: 1; margin-bottom: 20px; }
.blog-card__link { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--teal); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.blog-card__link svg { transition: transform .2s; }
.blog-card:hover .blog-card__link svg { transform: translateX(3px); }

/* Featured article card (spans 2 columns) */
.blog-card--featured {
  grid-column: span 2;
  flex-direction: row;
}
.blog-card--featured .blog-card__image {
  width: 44%;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.blog-card--featured .blog-card__title { font-size: clamp(1.1rem, 1.8vw, 1.6rem); }

/* Article page */
.article-header {
  background: var(--dark);
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.article-header__inner { position: relative; z-index: 2; max-width: 820px; }
.article-header__meta { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.article-header__cat {
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600;
  background: rgba(201,168,76,0.15); padding: 5px 12px; border-radius: 2px;
}
.article-header__date, .article-header__read { font-size: 13px; color: rgba(248,245,240,0.5); }
.article-header__title {
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500; color: var(--off-white); line-height: 1.2;
  margin-bottom: 24px; letter-spacing: -.01em;
}
.article-header__title em { color: var(--gold-light); font-style: italic; }
.article-header__excerpt { font-size: clamp(15px, 1.4vw, 17px); color: rgba(248,245,240,0.75); line-height: 1.7; max-width: 640px; }

/* Article body */
.article-wrap { max-width: 760px; margin: 0 auto; padding: clamp(60px, 8vw, 100px) var(--gutter); }
.article-content h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin: 2.5em 0 .8em; color: var(--dark);
}
.article-content h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin: 2em 0 .6em; color: var(--dark); }
.article-content p { font-size: 16px; line-height: 1.85; color: var(--mid); margin-bottom: 1.4em; }
.article-content ul, .article-content ol { padding-right: 0; padding-left: 0; margin: 1.2em 0 1.6em; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.article-content li { font-size: 15px; color: var(--mid); line-height: 1.7; padding-right: 24px; position: relative; }
.article-content li::before { content: '→'; position: absolute; right: 0; color: var(--teal); font-weight: 600; }
.article-content blockquote {
  border-right: 3px solid var(--gold); padding: 16px 24px 16px 0;
  margin: 2em 0; font-family: var(--display); font-size: 1.2rem;
  color: var(--dark); font-style: italic; line-height: 1.5;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 14px; }
.article-content th { background: var(--teal); color: var(--off-white); padding: 12px 16px; text-align: right; font-weight: 600; }
.article-content td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--mid); }
.article-content tr:nth-child(even) td { background: var(--off-white); }
.article-content strong { color: var(--dark); font-weight: 600; }

/* Article CTA box */
.article-cta {
  background: var(--teal); padding: 36px 40px;
  margin: 3em 0; display: flex; gap: 24px;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.article-cta p { color: rgba(248,245,240,0.9); font-size: 15px; margin: 0; }
.article-cta strong { display: block; color: var(--off-white); font-size: 1.1rem; margin-bottom: 6px; }

/* Related articles */
.related-articles { background: var(--off-white); padding: clamp(60px, 8vw, 100px) 0; }
.related-articles h2 { font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 32px; }

/* Blog responsive */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--featured { grid-column: span 2; flex-direction: column; }
  .blog-card--featured .blog-card__image { width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: span 1; }
}

/* ============================================
   UTILITY CLASSES
   (Replaces common inline styles)
   ============================================ */
.u-flex          { display: flex; }
.u-flex-col      { display: flex; flex-direction: column; }
.u-flex-center   { display: flex; align-items: center; }
.u-flex-between  { display: flex; align-items: center; justify-content: space-between; }
.u-gap-8         { gap: 8px; }
.u-gap-10        { gap: 10px; }
.u-gap-16        { gap: 16px; }
.u-gap-20        { gap: 20px; }
.u-gap-24        { gap: 24px; }
.u-mb-8          { margin-bottom: 8px; }
.u-mb-12         { margin-bottom: 12px; }
.u-mb-16         { margin-bottom: 16px; }
.u-mb-20         { margin-bottom: 20px; }
.u-mb-24         { margin-bottom: 24px; }
.u-mt-16         { margin-top: 16px; }
.u-mt-20         { margin-top: 20px; }
.u-mt-24         { margin-top: 24px; }
.u-fs-12         { font-size: 12px; }
.u-fs-13         { font-size: 13px; }
.u-fs-14         { font-size: 14px; }
.u-lh-18         { line-height: 1.8; }
.u-color-mid     { color: var(--mid); }
.u-color-muted   { color: var(--muted); }
.u-color-off     { color: var(--off-white); }
.u-color-teal    { color: var(--teal); }
.u-color-gold    { color: var(--gold-light); }
.u-text-center   { text-align: center; }
.u-text-right    { text-align: right; }
.u-w-full        { width: 100%; }
.u-shrink-0      { flex-shrink: 0; }

/* Division tag badges */
.div-tag {
  display: inline-flex;
  padding: 6px 14px;
  font-size: 12px;
  background: rgba(248,245,240,0.1);
  color: rgba(248,245,240,0.85);
}

/* Dark section (used in about, why, etc.) */
.section-dark {
  background: var(--dark);
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.section-dark--pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' stroke='%23c9a84c' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

/* Who-serve cards grid */
.who-serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.who-serve-card {
  padding: 36px;
  border-top: 2px solid var(--gold);
}
.who-serve-card--light { background: var(--off-white); }
.who-serve-card--dark  { background: var(--dark); }
.who-serve-card--teal  { background: var(--teal); }
.who-serve-card__title { font-size: 1.2rem; margin-bottom: 16px; }
.who-serve-card__title--light { color: var(--dark); }
.who-serve-card__title--dark  { color: var(--off-white); }
.who-serve-card__body { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.who-serve-card__body--light { color: var(--mid); }
.who-serve-card__body--dark  { color: rgba(248,245,240,0.7); }
.who-serve-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.who-serve-card__list li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.who-serve-card__list--rtl li { flex-direction: row-reverse; }

@media (max-width: 768px) { .who-serve-grid { grid-template-columns: 1fr; } }
