/* ============================================================
   FAIR CONSTRUCTION SERVICES — styles.css
   Modern Navy + Gold theme, fluid typography, bento gallery,
   single-source mobile-nav rules.
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette — Midnight Navy + Champagne Gold */
  --navy:        #0e1a30;
  --navy-deep:   #060d1e;
  --navy-soft:   #1d2d4d;
  --navy-mist:   #2c3f63;
  --gold:        #d4af37;
  --gold-deep:   #a68422;
  --gold-soft:   #f0d066;
  --gold-bright: #f7dc7a;
  --gold-glow:   rgba(240, 208, 102, 0.45);

  /* Gradients */
  --grad-gold:   linear-gradient(135deg, #f7dc7a 0%, #d4af37 50%, #a68422 100%);
  --grad-gold-soft: linear-gradient(135deg, rgba(247,220,122,0.20) 0%, rgba(212,175,55,0.04) 100%);
  --grad-navy:   linear-gradient(135deg, #060d1e 0%, #0e1a30 50%, #1d2d4d 100%);
  --grad-navy-glow: linear-gradient(135deg, #0e1a30 0%, #1d2d4d 100%);
  --grad-mesh:   radial-gradient(60% 60% at 20% 20%, rgba(240,208,102,0.18) 0%, transparent 60%),
                 radial-gradient(50% 50% at 80% 80%, rgba(29,45,77,0.45) 0%, transparent 65%);

  /* Surfaces */
  --bg:          #ffffff;
  --bg-alt:      #f6f4ec;
  --bg-tint:     #ebe6d4;
  --line:        rgba(14, 26, 48, 0.08);

  /* Text */
  --ink:         #060d1e;
  --ink-soft:    #2c3f63;
  --ink-muted:   #6b7588;
  --on-dark:     #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.78);

  /* Shadows */
  --shadow-sm:   0 2px 6px rgba(6, 13, 30, 0.06);
  --shadow-md:   0 8px 24px rgba(6, 13, 30, 0.10);
  --shadow-lg:   0 16px 48px rgba(6, 13, 30, 0.14);
  --shadow-xl:   0 28px 80px rgba(6, 13, 30, 0.20);
  --shadow-gold: 0 14px 36px rgba(212, 175, 55, 0.38);
  --shadow-glow: 0 0 0 1px rgba(240, 208, 102, 0.35),
                 0 18px 50px rgba(240, 208, 102, 0.20);
  --shadow-nav:  0 12px 36px rgba(6, 13, 30, 0.45);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Motion */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:  180ms var(--ease);
  --t-med:   320ms var(--ease);
  --t-slow:  600ms var(--ease);

  /* Layout */
  --container: 1240px;
  --gutter:    clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);

  /* Type */
  --f-display: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--navy-deep); }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 6.2vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; }
h5 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--grad-gold);
}

/* Gradient gold text — for accent words in headings */
.text-gradient {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-head p { font-size: 1.05rem; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt   { background: var(--bg-alt); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--f-body);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-gold);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 40px rgba(244, 214, 116, 0.5);
}
.btn-primary:hover::after { left: 120%; }

.btn-dark {
  background: var(--navy);
  color: var(--on-dark);
  box-shadow: 0 10px 24px rgba(15, 23, 33, 0.25);
}
.btn-dark:hover { background: var(--navy-deep); box-shadow: 0 14px 32px rgba(15, 23, 33, 0.35); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { box-shadow: var(--shadow-lg); }

/* ============================================================
   6. HEADER + NAV — dark navy glass, gold accents
   ============================================================ */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(6, 13, 30, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(240, 208, 102, 0.06);
  transition: background var(--t-med), border-color var(--t-med),
              box-shadow var(--t-med);
}
#site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 208, 102, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
#site-header.scrolled {
  background: rgba(6, 13, 30, 0.92);
  border-bottom-color: rgba(240, 208, 102, 0.14);
  box-shadow: var(--shadow-nav);
}
#site-header.scrolled::after { opacity: 1; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 78px;
  position: relative;
  transition: height var(--t-med);
}
#site-header.scrolled .nav-inner { height: 68px; }

.nav-logo a {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--t-fast), transform var(--t-fast);
}
.nav-logo a:hover img { transform: scale(1.04); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
}
.nav-links li a {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0.35rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-med);
}
.nav-links li a:hover {
  color: #fff;
}
.nav-links li a:hover::after,
.nav-links li a.active::after {
  transform: scaleX(1);
}
.nav-links li a.active { color: var(--gold-soft); }

/* CTA button in nav */
.nav-links li.nav-cta a {
  margin-left: 0.75rem;
  padding: 0.7rem 1.5rem;
  background: var(--grad-gold);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35);
  overflow: hidden;
  transition: background-position var(--t-med), box-shadow var(--t-med),
              transform var(--t-fast), color var(--t-fast);
}
.nav-links li.nav-cta a::after {
  display: none;
}
.nav-links li.nav-cta a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transition: left 0.7s ease;
  pointer-events: none;
}
.nav-links li.nav-cta a:hover {
  background-position: 100% 50%;
  color: var(--navy-deep);
  box-shadow: 0 14px 32px rgba(247, 220, 122, 0.55);
  transform: translateY(-1px);
}
.nav-links li.nav-cta a:hover::before { left: 120%; }

/* Hamburger — white bars on dark navbar */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast),
              background var(--t-fast);
  transform-origin: center;
}
.nav-toggle:hover span { background: var(--gold-soft); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px var(--gutter) clamp(8rem, 16vw, 12rem);
  overflow: hidden;
  color: var(--on-dark);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  background: url('theme/hero-desktop.jpeg') center/cover no-repeat;
  z-index: -2;
  will-change: transform;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 30, 0.55) 0%, rgba(6, 13, 30, 0.78) 55%, rgba(6, 13, 30, 0.95) 100%),
    radial-gradient(80% 60% at 50% 30%, rgba(6, 13, 30, 0.45) 0%, transparent 70%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(240, 208, 102, 0.10) 0%, transparent 60%),
    radial-gradient(40% 50% at 82% 70%, rgba(29, 45, 77, 0.35) 0%, transparent 65%);
  filter: blur(10px);
  z-index: -1;
  animation: meshDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(2%, -2%) scale(1.02); }
}

.hero-inner {
  max-width: 1080px;
  text-align: center;
  position: relative;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.3rem 0.6rem 0.55rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(240, 208, 102, 0.45);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.hero-badge .stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0.18rem 0.55rem;
  background: var(--grad-gold);
  border-radius: var(--r-pill);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.hero h1 .accent {
  display: inline-block;
  position: relative;
  color: var(--gold-soft);
  -webkit-text-fill-color: var(--gold-soft);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55), 0 0 60px rgba(240, 208, 102, 0.18);
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -0.12em;
  height: 0.08em;
  background: var(--grad-gold);
  border-radius: 4px;
  opacity: 0.85;
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 2.6rem;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .btn { padding: 1.05rem 2.2rem; font-size: 1rem; }

.hero-arrow {
  position: absolute;
  bottom: clamp(9rem, 17vw, 13rem);
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(240, 208, 102, 0.5);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(6, 13, 30, 0.3);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  animation: floatY 2.4s ease-in-out infinite;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.hero-arrow:hover { background: rgba(240, 208, 102, 0.15); border-color: var(--gold-soft); }
@keyframes floatY {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ============================================================
   8. STATS
   ============================================================ */
/* Stats wrap: lifts the card up so it sits on the hero / next-section edge */
.stats-wrap {
  position: relative;
  margin-top: clamp(-6rem, -8vw, -4rem);
  z-index: 5;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.stats-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3vw, 3rem);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.stats-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-gold);
  z-index: 1;
}
.stats-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(50% 50%, rgba(240, 208, 102, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.stats-card-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  position: relative;
  z-index: 1;
}
.stats-grid > div {
  position: relative;
  padding: 0.4rem 0.5rem;
}
.stats-grid > div + div::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}
@media (max-width: 700px) {
  .stats-grid > div + div::before { display: none; }
  .stats-grid > div + div { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 0.5rem; }
}
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.6rem;
  display: inline-block;
}
.stat-num .accent {
  color: var(--gold-deep);
  -webkit-text-fill-color: var(--gold-deep);
  margin-left: 0.05em;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   9. ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 33, 0.25) 100%);
  pointer-events: none;
}
.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.about-image:hover img { transform: scale(1.04); }

.about-text h2 { color: var(--navy); }
.about-text .lead {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.about-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.about-meta-item .k {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-deep);
  letter-spacing: -0.02em;
  display: block;
}
.about-meta-item .v {
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ============================================================
   10. WHY CHOOSE / FEATURE CARDS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  position: relative;
  background: #fff;
  padding: 2.4rem 1.7rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  overflow: hidden;
  isolation: isolate;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(244, 214, 116, 0.18) 50%, transparent 70%);
  transition: left 0.9s ease;
  pointer-events: none;
  z-index: -1;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(244, 214, 116, 0.5);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after  { left: 150%; }

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-gold-soft);
  color: var(--gold-deep);
  position: relative;
  transition: transform var(--t-med);
}
.feature-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  opacity: 0;
  transition: opacity var(--t-med), inset var(--t-med);
}
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-card:hover .feature-icon::after { opacity: 1; inset: -10px; }
.feature-card h4 { color: var(--navy); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; margin: 0; }

/* ============================================================
   11. SERVICES (with bg image)
   ============================================================ */
.services {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-dark);
}
.services-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  z-index: -2;
}
.services-residential .services-bg { background-image: url('theme/residential-desktop.jpeg'); }
.services-commercial  .services-bg { background-image: url('theme/commercial-desktop.jpeg'); }
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 33, 0.85) 0%, rgba(15, 23, 33, 0.92) 100%);
  z-index: -1;
}

.services h2 { color: #fff; text-align: center; margin-bottom: 0.5rem; }
.services .section-head p { color: rgba(255, 255, 255, 0.78); }

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 2.2rem 1.8rem;
  border-radius: var(--r-md);
  transition: transform var(--t-med), background var(--t-med),
              border-color var(--t-med), box-shadow var(--t-med);
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(244, 214, 116, 0.6), transparent 40%, transparent 60%, rgba(244, 214, 116, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(244, 214, 116, 0.4);
  box-shadow: 0 20px 50px rgba(244, 214, 116, 0.15);
}
.service-card:hover::before { opacity: 1; }
.service-card .service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
  border-radius: var(--r-sm);
  margin-bottom: 1.1rem;
}
.service-card h4 {
  color: #fff;
  margin-bottom: 0.85rem;
}
.service-card ul { display: grid; gap: 0.55rem; }
.service-card ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.82);
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============================================================
   12. SERVICES DETAIL (text columns)
   ============================================================ */
.detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem 2.5rem;
}
.detail-col h5 {
  color: var(--navy);
  margin: 1.4rem 0 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.detail-col h5:first-child { margin-top: 0; }
.detail-col ul { display: grid; gap: 0.4rem; }
.detail-col ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.detail-col ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}

/* ============================================================
   13. BENTO GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover {
  box-shadow: 0 14px 36px rgba(20, 33, 61, 0.25), 0 0 0 2px rgba(244, 214, 116, 0.5);
  z-index: 2;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 33, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--t-med);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay .cap {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.gallery-overlay .zoom {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.95);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    gap: 1rem;
  }
  .gallery-item:nth-child(8n+1),
  .gallery-item:nth-child(8n+6) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item:nth-child(8n+4) { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .gallery-grid { grid-auto-rows: 200px; }
}

/* ============================================================
   14. PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}
@media (min-width: 900px) {
  .process-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    opacity: 0.35;
    z-index: 0;
  }
}
.process-step {
  position: relative;
  background: #fff;
  padding: 2.4rem 1.7rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  z-index: 1;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(244, 214, 116, 0.5);
}
.process-num {
  width: 64px; height: 64px;
  margin: 0 auto 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-navy);
  color: var(--gold);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 22px rgba(20, 33, 61, 0.25), inset 0 0 0 2px rgba(244, 214, 116, 0.25);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.process-step:hover .process-num {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 14px 30px rgba(20, 33, 61, 0.35), inset 0 0 0 2px var(--gold);
}
.process-step h4 { color: var(--navy); margin-bottom: 0.5rem; }
.process-step p  { font-size: 0.94rem; margin: 0; }

/* ============================================================
   15. TESTIMONIALS
   ============================================================ */
.testimonials {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  position: relative;
  background: #fff;
  padding: 2rem 1.8rem 1.7rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 14px;
  font-family: 'Georgia', serif;
  font-size: 6rem;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.95;
}
.testimonial:hover {
  border-color: rgba(244, 214, 116, 0.4);
  box-shadow: var(--shadow-glow);
}
.testimonial-stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}
.testimonial-quote {
  flex: 1;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
}
.testimonial-meta .name { font-weight: 700; color: var(--ink); font-size: 0.97rem; }
.testimonial-meta .role { font-size: 0.85rem; color: var(--ink-muted); }

/* ============================================================
   16. CTA BANNER
   ============================================================ */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-soft) 100%);
  background-size: 200% 200%;
  color: var(--on-dark);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  overflow: hidden;
  isolation: isolate;
  animation: ctaShift 12s ease-in-out infinite alternate;
}
@keyframes ctaShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(244, 214, 116, 0.28), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(244, 214, 116, 0.18), transparent 60%);
  z-index: -1;
  animation: meshDrift 14s ease-in-out infinite alternate;
}
.cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 214, 116, 0.5), transparent);
}
.cta-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   17. CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: #fff;
  padding: 2rem 1.7rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.5);
}
.contact-card .icon {
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-deep);
  border-radius: var(--r-sm);
}
.contact-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.contact-card p,
.contact-card a {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}
.contact-card a:hover { color: var(--gold-deep); }

/* ============================================================
   18. FORM
   ============================================================ */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row-full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  font: 0.97rem var(--f-body);
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), background var(--t-fast),
              box-shadow var(--t-fast);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-muted); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #c62828;
  background: #fff5f5;
}
.field-error {
  min-height: 1.1em;
  font-size: 0.82rem;
  color: #c62828;
  padding: 0.25rem 0.25rem 0;
}
.form-actions { margin-top: 0.5rem; }
.submit-btn {
  width: 100%;
  padding: 1.05rem 2rem;
  background: var(--navy);
  color: var(--on-dark);
  border: none;
  border-radius: var(--r-pill);
  font: 700 1rem var(--f-body);
  letter-spacing: 0.02em;
  transition: background var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
  box-shadow: 0 10px 24px rgba(15, 23, 33, 0.2);
}
.submit-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.35);
}
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.form-success,
.form-error-msg {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 500;
}
.form-success {
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 4px solid #2e7d32;
}
.form-error-msg {
  background: #ffebee;
  color: #b71c1c;
  border-left: 4px solid #c62828;
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.footer-brand img {
  height: 44px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 32ch;
}
.footer-socials {
  display: flex;
  gap: 0.6rem;
}
.footer-socials a {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #fff;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col .ic-li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  color: rgba(255, 255, 255, 0.65); font-size: 0.94rem;
}
.footer-col .ic-li svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   20. UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.divider {
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 0 0 1.75rem;
  border-radius: 2px;
}
.section-head .divider { margin: 0 auto 1.5rem; }

/* ============================================================
   21. ANIMATIONS (used + AOS overrides)
   ============================================================ */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: heroIn 0.7s var(--ease) both; }
.hero h1    { animation: heroIn 0.9s var(--ease) 0.1s both; }
.hero-sub   { animation: heroIn 0.9s var(--ease) 0.25s both; }
.hero-cta   { animation: heroIn 0.9s var(--ease) 0.4s both; }

/* AOS tuning — sit above the lightbox-free plain CDN defaults */
[data-aos] { will-change: transform, opacity; }

/* ============================================================
   22. RESPONSIVE — single mobile block
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-inner { height: 68px; }
  #site-header.scrolled .nav-inner { height: 64px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    background: rgba(6, 13, 30, 0.98);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
            backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(240, 208, 102, 0.18);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--t-med), transform var(--t-med),
                visibility 0s linear var(--t-med);
    z-index: 105;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity var(--t-med), transform var(--t-med),
                visibility 0s linear 0s;
  }
  .nav-links li { width: 100%; }
  .nav-links li a {
    width: 100%;
    padding: 1rem 1rem;
    border-radius: var(--r-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 600;
  }
  .nav-links li a::after {
    /* hide the underline animation on mobile — use color/bg instead */
    display: none;
  }
  .nav-links li a:hover,
  .nav-links li a.active {
    color: var(--gold-soft);
    background: rgba(240, 208, 102, 0.08);
  }
  .nav-links li:last-of-type a { border-bottom: none; }
  .nav-links li.nav-cta a {
    margin: 0.6rem 0 0;
    justify-content: center;
    border-bottom: none;
    background: var(--grad-gold);
    color: var(--navy-deep);
    font-weight: 700;
  }
  .nav-links li.nav-cta a:hover {
    color: var(--navy-deep);
    background: var(--grad-gold);
  }

  .hero-bg { background-image: url('theme/hero-mobile.jpeg'); }
  .services-residential .services-bg { background-image: url('theme/residential-mobile.jpeg'); }
  .services-commercial  .services-bg { background-image: url('theme/commercial-mobile.jpeg'); }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; padding-bottom: 60px; min-height: 92vh; }
  .gallery-grid { grid-auto-rows: 160px; gap: 0.6rem; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.92rem; }
}

/* ============================================================
   23. ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-arrow { animation: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(15, 23, 33, 0.25);
    --ink-soft: #2d3748;
    --ink-muted: #4a5568;
  }
  .feature-card,
  .process-step,
  .contact-card,
  .testimonial { border-width: 2px; }
}
