/* ===========================================================
   Arfrant Construction — Design Tokens
   =========================================================== */
:root {
  /* Brand palette (from logo) */
  --color-navy-950: #0A1526;
  --color-navy-900: #0F1F3A;
  --color-navy-800: #16294D;
  --color-navy-700: #1E3766;
  --color-navy-600: #2A4A85;
  --color-gold-600: #B9812C;
  --color-gold-500: #CC9A3E;
  --color-gold-400: #DDB35C;
  --color-gold-300: #EAC989;
  --color-gold-a11y: #946019; /* AA-contrast gold for small text on light backgrounds */
  --color-gray-700: #566072;
  --color-gray-500: #7C8494;
  --color-gray-300: #C4C9D2;
  --color-gray-100: #EEF0F3;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F6F7F9;
  --color-bg-navy: var(--color-navy-900);
  --color-text: #171E2B;
  --color-text-muted: #5B6472;
  --color-text-on-navy: #F3F5F8;
  --color-text-on-navy-muted: #A9B3C4;
  --color-border: #E4E7EC;
  --color-border-navy: rgba(255, 255, 255, 0.12);

  --color-primary: var(--color-navy-900);
  --color-accent: var(--color-gold-500);
  --color-accent-hover: var(--color-gold-600);

  /* Typography */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(15, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 31, 58, 0.10);
  --shadow-lg: 0 24px 48px rgba(15, 31, 58, 0.16);
  --shadow-gold: 0 10px 24px rgba(204, 154, 62, 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 600ms;

  --header-h: 84px;
}

/* ===========================================================
   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, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { color: var(--color-text-muted); }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
}

:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1000;
  background: var(--color-navy-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--color-gold-500);
}

/* ===========================================================
   Typography helpers
   =========================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-a11y);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-gold-500);
  border-radius: var(--radius-pill);
}
.page-hero-content .eyebrow,
.cta-banner-text .eyebrow {
  color: var(--color-gold-400);
}
.section-title {
  font-size: clamp(1.75rem, 3vw, var(--fs-2xl));
  margin-bottom: var(--space-4);
}
.section-lead {
  font-size: var(--fs-md);
  max-width: 640px;
  color: var(--color-text-muted);
}
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-10);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .section-lead { margin-inline: auto; }

.text-on-navy .section-title, .text-on-navy h1, .text-on-navy h2, .text-on-navy h3 { color: var(--color-text-on-navy); }
.text-on-navy .section-lead, .text-on-navy p { color: var(--color-text-on-navy-muted); }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn i { font-size: 1.1em; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--color-gold-500);
  color: var(--color-navy-900);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--color-gold-400); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(204,154,62,0.34); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--color-text-on-navy);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-navy-900);
  color: var(--color-navy-900);
}
.btn-outline-dark:hover { background: var(--color-navy-900); color: #fff; transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ===========================================================
   Header / Nav
   =========================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              height var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
}
.brand-mark { height: 42px; width: auto; transition: height var(--dur-med) var(--ease-out); }
.is-scrolled .brand-mark, .is-solid .brand-mark { height: 36px; }
.brand-logo-full { height: 44px; width: auto; transition: height var(--dur-med) var(--ease-out); }
.is-scrolled .brand-logo-full, .is-solid .brand-logo-full { height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-navy-900);
}
.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-navy-900);
  padding-block: var(--space-2);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-gold-500);
  transition: right var(--dur-med) var(--ease-out);
  border-radius: var(--radius-pill);
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--color-gold-a11y); }

.header-actions { display: flex; align-items: center; gap: var(--space-5); }
.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-navy-900);
}
.header-phone i { color: var(--color-gold-500); font-size: 1.25rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  align-items: center;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-navy-900);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-med) var(--ease-in-out), opacity var(--dur-fast);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links, .header-phone { display: none; }
  .header-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
}

.mobile-panel {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--color-navy-900);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out), visibility 0s var(--dur-slow);
}
.mobile-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out), visibility 0s;
}
.mobile-panel a {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-text-on-navy);
}
.mobile-panel a.active { color: var(--color-gold-400); }
.mobile-panel .btn-primary { margin-top: var(--space-4); }

/* ===========================================================
   Hero
   =========================================================== */
.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--fs-4xl));
  color: #fff;
  margin-bottom: var(--space-5);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp var(--dur-slow) var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.3s; }
@keyframes lineUp {
  to { transform: translateY(0); }
}
.hero-sub {
  font-size: var(--fs-md);
  color: var(--color-text-on-navy-muted);
  max-width: 560px;
  margin-bottom: var(--space-5);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-10); }

/* Illustrated hero (homepage) */
.hero-illustrated {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  background: #ffffff;
}
.hero-illustrated-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: var(--space-4);
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}
.hero-illustrated-content .eyebrow {
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.3em;
  color: var(--color-gold-a11y);
}
.hero-illustrated-content .eyebrow::before { display: none; }
.hero-illustrated-content .hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.75rem, 6.8vw, 5.25rem);
  line-height: 1.15;
  color: #053158;
  margin-bottom: 1rem;
}
.hero-illustrated-content .hero-sub { font-size: 1rem; color: #545454; max-width: 700px; margin-inline: auto; margin-bottom: 1rem; }
.hero-illustrated-content .hero-ctas { justify-content: center; margin-bottom: 0; }
.hero-illustrated-content .btn-outline-dark {
  border-color: #8BA5C0;
  background: #FFF9E7;
  color: #053158;
}
.hero-illustrated-content .btn-outline-dark:hover { background: #FFF2CE; border-color: #6F8CAD; }
.hero-illustrated-content .btn-primary {
  background: #F7D78A;
  color: #053158;
  box-shadow: 0 10px 24px rgba(224, 180, 90, 0.35);
}
.hero-illustrated-content .btn-primary:hover { background: #F2C968; }
.btn-2line { padding: 0.55rem 1.25rem; line-height: 1.25; font-size: 0.8rem; }
.btn-2line span { text-align: center; }
.btn-2line i { font-size: 1.1rem; }
.hero-illustrated-media {
  position: relative;
  z-index: 1;
  width: min(100%, 950px);
  margin-inline: auto;
  margin-top: -345px;
  line-height: 0;
}
.hero-illustrated-media img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .hero-illustrated-media { margin-top: -140px; }
}
@media (max-width: 640px) {
  .hero-illustrated-content { padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: var(--space-6); }
  .hero-illustrated-media { margin-top: 0; }
}

/* Skyline divider — brand-motif seam between the hero and the next section */
.skyline-divider {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}
.skyline-divider svg {
  display: block;
  width: 100%;
  height: 32px;
  fill: var(--color-navy-900);
}
.skyline-divider--light svg { fill: var(--color-bg); }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + var(--space-10)) var(--space-12);
  background: var(--color-navy-900);
  color: var(--color-text-on-navy);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.24; }
.page-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,21,38,0.7), var(--color-navy-900) 92%);
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-text-on-navy-muted);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
}
.breadcrumb a:hover { color: var(--color-gold-400); }
.page-hero h1 { color: #fff; font-size: clamp(2.25rem, 4.5vw, var(--fs-3xl)); max-width: 700px; }
.page-hero .section-lead { color: var(--color-text-on-navy-muted); margin-top: var(--space-4); max-width: 620px; }

/* ===========================================================
   Sections
   =========================================================== */
section { padding-block: var(--space-16); }
@media (max-width: 768px) {
  section { padding-block: var(--space-10); }
}
.section-alt {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 380px at -5% -10%, rgba(204,154,62,0.07), transparent 65%),
    radial-gradient(600px 380px at 105% 110%, rgba(15,31,58,0.05), transparent 65%);
}
.section-alt > .container { position: relative; z-index: 1; }
.section-navy { background: var(--color-navy-900); color: var(--color-text-on-navy); }
.section-navy p { color: var(--color-text-on-navy-muted); }

/* Stats */
.stats-section { position: relative; overflow: hidden; }
.stats-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(480px 320px at 12% 0%, rgba(204,154,62,0.16), transparent 70%),
    radial-gradient(480px 320px at 88% 100%, rgba(204,154,62,0.12), transparent 70%);
}
.stats-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stat-item {
  position: relative;
  padding-inline: var(--space-4);
}
.stat-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border-navy);
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(204,154,62,0.14);
  border: 1px solid rgba(204,154,62,0.3);
  color: var(--color-gold-400);
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
}
.stat-item .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.2vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--color-gold-500);
}
.stat-item .stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-on-navy-muted);
  margin-top: var(--space-2);
}
.stats-bar.on-light .stat-num { color: var(--color-navy-900); }
.stats-bar.on-light .stat-label { color: var(--color-text-muted); }
.stats-bar.on-light .stat-icon { background: var(--color-bg-alt); border-color: var(--color-border); color: var(--color-gold-600); }
.stats-bar.on-light .stat-item:not(:first-child)::before { background: var(--color-border); }

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-4); }
  .stat-item:nth-child(3)::before { display: none; }
}

/* Stats photo band with floating cards */
.stats-photo-section {
  position: relative;
  padding-block: 0;
}
.stats-photo-media {
  position: relative;
  height: clamp(340px, 40vw, 480px);
  overflow: hidden;
}
.stats-photo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats-photo-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,31,58,0.5) 0%, rgba(15,31,58,0.78) 100%);
}
.stats-float-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.stats-float-overlay .container { width: 100%; }
.stats-float-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stat-float-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med);
}
.stat-float-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(15,31,58,0.22); }
.stat-float-card .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy-700), var(--color-navy-900));
  color: var(--color-gold-400);
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
  box-shadow: 0 8px 18px rgba(15,31,58,0.25);
}
.stat-float-card .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, var(--fs-2xl));
  font-weight: 700;
  color: var(--color-navy-900);
}
.stat-float-card .stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
@media (max-width: 900px) {
  .stats-photo-media { height: clamp(420px, 60vw, 560px); }
  .stats-float-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
@media (max-width: 560px) {
  .stats-photo-media { height: auto; overflow: visible; }
  .stats-photo-media img { height: 220px; }
  .stats-photo-media::after { height: 220px; inset: auto; top: 0; left: 0; right: 0; }
  .stats-float-overlay { position: relative; inset: auto; display: block; padding-block: var(--space-6); }
  .stats-float-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Grid layouts */
.grid {
  display: grid;
  gap: var(--space-6);
}
.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-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-400), var(--color-gold-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-index {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-bg-alt);
  z-index: 0;
  line-height: 1;
}
.service-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-gold-600);
  margin-bottom: var(--space-5);
  transition: background var(--dur-med), color var(--dur-med), transform var(--dur-med);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-navy-800), var(--color-navy-900));
  color: var(--color-gold-400);
  transform: rotate(-6deg) scale(1.05);
}
.service-card h3, .service-card p, .service-card .service-link { position: relative; z-index: 1; }
.service-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-3); }
.service-card p { font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy-900);
}
.service-link i { transition: transform var(--dur-fast) var(--ease-out); }
.service-card:hover .service-link i { transform: translateX(4px); }

/* Alternating feature rows (services detail) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.feature-row:not(:last-child) { margin-bottom: var(--space-16); }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { position: relative; isolation: isolate; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform var(--dur-slow) var(--ease-out); }
.feature-media:hover img { transform: scale(1.05); }
.feature-num {
  position: absolute;
  z-index: 2;
  top: var(--space-4);
  left: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold-500);
  color: var(--color-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}
.feature-list { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.feature-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-sm); color: var(--color-text); }
.feature-list i { color: var(--color-gold-600); margin-top: 3px; }

@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
}

/* Project cards */
.project-item {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9/5;
  box-shadow: var(--shadow-sm);
}
.project-card { position: absolute; inset: 0; display: block; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.project-card:hover img { transform: scale(1.08); }
.project-card::before,
.feature-media::before,
.story-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(15,31,58,0.24) 0%, rgba(15,31,58,0.02) 55%, rgba(204,154,62,0.12) 100%);
  mix-blend-mode: multiply;
}
.story-media::before { border-radius: var(--radius-lg); inset: 0 0 36px 36px; }
.project-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(10,21,38,0.92) 0%, rgba(10,21,38,0.15) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  color: #fff;
}
.project-tag {
  align-self: flex-start;
  background: var(--color-gold-500);
  color: var(--color-navy-900);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
  transform: translateY(6px);
  opacity: 0.92;
}
.project-overlay h3 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--space-1); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.filter-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-btn:hover { border-color: var(--color-gold-500); color: var(--color-navy-900); }
.filter-btn.active { background: var(--color-navy-900); border-color: var(--color-navy-900); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }
.project-item.is-hidden { display: none; }

/* Why choose us */
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.value-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med), transform var(--dur-med), border-color var(--dur-med);
}
.value-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.value-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy-700), var(--color-navy-900));
  box-shadow: 0 6px 14px rgba(15,31,58,0.28);
  color: var(--color-gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.value-item h3 { font-size: var(--fs-base); margin-bottom: var(--space-1); }
.value-item p { font-size: var(--fs-sm); }
@media (max-width: 640px) { .value-list { grid-template-columns: 1fr; } }

/* Process timeline */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--color-border);
}
.process-track .process-line-fill {
  content: '';
  position: absolute;
  top: 27px;
  left: 6%;
  height: 2px;
  width: 0%;
  background: var(--color-gold-500);
  transition: width 1.4s var(--ease-out);
}
.process-step { position: relative; text-align: center; }
.process-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-400), var(--color-gold-600));
  color: var(--color-navy-900);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  box-shadow: var(--shadow-gold), 0 0 0 6px var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.process-step p { font-size: var(--fs-sm); max-width: 220px; margin-inline: auto; }
@media (max-width: 900px) {
  .process-track { grid-template-columns: 1fr; gap: var(--space-8); }
  .process-track::before, .process-track .process-line-fill { display: none; }
}

/* CTA banner */
.cta-banner {
  background: var(--color-navy-900);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(204,154,62,0.25), transparent 70%);
  top: -180px; right: -140px;
}
.cta-banner-text h2 { color: #fff; margin-bottom: var(--space-3); font-size: clamp(1.5rem, 3vw, var(--fs-2xl)); }
.cta-banner-text p { color: var(--color-text-on-navy-muted); max-width: 480px; }
.cta-banner-actions { display: flex; gap: var(--space-4); flex-shrink: 0; position: relative; z-index: 1; }
@media (max-width: 800px) {
  .cta-banner { flex-direction: column; text-align: center; padding: var(--space-8) var(--space-6); }
  .cta-banner-actions { flex-direction: column; width: 100%; }
}

/* Values grid (about) */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.values-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med), transform var(--dur-med), border-color var(--dur-med);
}
.values-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.values-card .value-icon { margin-inline: auto; margin-bottom: var(--space-5); width: 64px; height: 64px; font-size: 1.6rem; }
.values-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.values-card p { font-size: var(--fs-sm); }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* Story split (about) */
.story-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-12);
  align-items: start;
}
.story-media { position: relative; isolation: isolate; padding: 0 0 36px 36px; }
.story-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.story-media-badge {
  position: absolute;
  z-index: 2;
  bottom: 0; left: 0;
  background: var(--color-gold-500);
  color: var(--color-navy-900);
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
}
.story-media-badge strong { display: block; font-size: var(--fs-4xl); font-weight: 700; line-height: 1; }
.story-media-badge span { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.06em; }
.story-text p:not(:last-child) { margin-bottom: var(--space-4); }
.story-quote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-gold-500);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-navy-900);
  line-height: 1.5;
}
.story-quote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
@media (max-width: 900px) {
  .story-split { grid-template-columns: 1fr; }
  .story-media { padding: 0 0 24px 24px; }
  .story-media::before { inset: 0 0 24px 24px; }
  .story-media-badge { padding: var(--space-4) var(--space-5); }
}

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  min-width: 0;
  transition: transform var(--dur-med), box-shadow var(--dur-med);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card .value-icon { margin-inline: auto; margin-bottom: var(--space-5); width: 60px; height: 60px; font-size: 1.5rem; }
.contact-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.contact-card a.contact-link { font-family: var(--font-heading); font-weight: 600; color: var(--color-navy-900); overflow-wrap: break-word; }
.contact-card a.contact-link:hover { color: var(--color-gold-a11y); }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--color-border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: var(--space-4) var(--space-2); font-size: var(--fs-sm); }
.hours-table td:first-child { font-family: var(--font-heading); font-weight: 500; color: var(--color-navy-900); }
.hours-table td:last-child { text-align: right; color: var(--color-text-muted); }
.hours-table tr.today td { color: var(--color-gold-a11y); font-weight: 600; }

.service-area-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--color-navy-900);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  color: var(--color-text-on-navy);
  text-align: center;
}
.service-area-card i { font-size: 2.5rem; color: var(--color-gold-400); margin-bottom: var(--space-5); }
.service-area-card h3 { color: #fff; margin-bottom: var(--space-3); }
.service-area-card p { max-width: 480px; margin-inline: auto; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--color-navy-950);
  color: var(--color-text-on-navy-muted);
  padding-block: var(--space-12) var(--space-6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border-navy);
}
.footer-brand .brand-text strong { color: #fff; }
.brand-logo-footer { height: 40px; width: auto; }
.footer-brand p { margin-block: var(--space-4); max-width: 300px; font-size: var(--fs-sm); }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-5); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--color-gold-400); }
.footer-col .foot-contact-item { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); }
.footer-col .foot-contact-item i { color: var(--color-gold-400); margin-top: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--fs-xs);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom a:hover { color: var(--color-gold-400); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

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

/* Card variant: a settle-in rise instead of a flat slide, for grouped cards/tiles */
[data-reveal="rise"] {
  transform: translateY(20px) scale(0.94);
  transition: opacity var(--dur-slow) var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal="rise"].is-visible {
  transform: translateY(0) scale(1);
}

/* Media variant: a vertical wipe reveal for photography, distinct from text motion.
   Starts only lightly clipped (not fully hidden) so the image stays visible even if
   the reveal trigger never fires — a decorative flourish, not a visibility gate. */
[data-reveal="media"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 5% 0);
  transition: clip-path 900ms var(--ease-out);
}
[data-reveal="media"].is-visible {
  clip-path: inset(0 0 0% 0);
}

/* Eyebrow underline draws in alongside its parent reveal */
[data-reveal] .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out) 120ms; }
[data-reveal].is-visible .eyebrow::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="rise"], [data-reveal="media"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  [data-reveal] .eyebrow::before { transform: scaleX(1); transition: none; }
  .hero-media img { animation: none; transform: scale(1); }
  .hero-title .line span { animation: none; transform: none; }
}

/* Project detail modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s var(--dur-med);
}
.project-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 38, 0.7);
  backdrop-filter: blur(4px);
}
.project-modal-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(10px);
  transition: transform var(--dur-med) var(--ease-out);
}
.project-modal.is-open .project-modal-dialog { transform: scale(1) translateY(0); }
.project-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.project-modal-close:hover { background: #fff; transform: scale(1.08); }
.project-modal-media { position: relative; flex-shrink: 0; aspect-ratio: 9/5; background: var(--color-bg-alt); overflow: hidden; }
.project-modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.project-modal-media .project-tag { position: absolute; top: var(--space-4); left: var(--space-4); }
.project-modal-body { padding: var(--space-8); display: flex; flex-direction: column; }
.project-modal-body h3 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.project-modal-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-block: var(--space-6);
  padding-block: var(--space-5);
  border-block: 1px solid var(--color-border);
}
.project-modal-details > div { display: flex; flex-direction: column; gap: var(--space-1); }
.project-modal-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); font-family: var(--font-heading); font-weight: 600; }
.project-modal-details > div > span:last-child { font-weight: 600; color: var(--color-navy-900); font-size: var(--fs-sm); }
.project-modal-body p { font-size: var(--fs-sm); margin-bottom: var(--space-6); flex-grow: 1; }
.project-modal-actions { margin-top: auto; }
@media (max-width: 760px) {
  .project-modal-dialog { max-height: 90vh; }
  .project-modal-body { padding: var(--space-6); }
}

/* Scroll progress bar (side) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: rgba(15, 31, 58, 0.08);
  z-index: 999;
  pointer-events: none;
}
.scroll-progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--color-gold-500), var(--color-navy-700));
}
/* Back to top button */
.back-to-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-navy-900);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), background var(--dur-fast), visibility 0s var(--dur-med);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), background var(--dur-fast), visibility 0s;
}
.back-to-top:hover { background: var(--color-gold-500); color: var(--color-navy-900); }
@media (max-width: 640px) {
  .back-to-top { right: var(--space-4); bottom: var(--space-4); width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity var(--dur-fast), visibility 0s; }
}

/* Utility */
.mt-0 { margin-top: 0 !important; }
.no-scroll { overflow: hidden; height: 100%; }
