/* =========================================================
   SEAVIEW TRAVAUX – Stylesheet v2
   Modern CSS: @layer, color-mix(), clamp(), scroll-snap,
   @property, :has(), text-wrap:balance, container queries
   ========================================================= */

/* @property doit être hors de @layer pour compatibilité maximale */
@property --progress {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

@layer reset, base, layout, header, hero, stats, services, service-modal,
       gallery, testimonials, process, zone, contact, footer,
       fab, lightbox, animations, responsive;

/* =========================================================
   RESET
   ========================================================= */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { min-height: 100dvh; }
  img, video, svg { max-width: 100%; display: block; }
  input, button, textarea, select { font: inherit; }
  button { cursor: pointer; border: none; background: none; }
  ul, ol { list-style: none; }
  a { color: inherit; text-decoration: none; }
  dialog { padding: 0; border: none; }
}

/* =========================================================
   BASE
   ========================================================= */
@layer base {
  :root {
    /* Colors – Noventis palette */
    --navy:        #0B204A;
    --teal:        #0C6E6D;
    --teal-light:  rgba(12,110,109,.1);
    --gold:        #FF9307;
    --gold-dark:   #e8830a;
    --linen:       #F4F8F9;
    --linen-dark:  #EAF2F2;
    --blue:        #1f6fb2;
    --blue-dark:   #155a92;
    --blue-light:  #e0eef9;
    --blue-tint:   #f0f7fe;
    --sky:         #5fb3e4;
    --bronze:      #b8865b;
    --bronze-soft: #d8b490;
    --dark:        #111827;
    --text:        #0B204A;
    --muted:       #6B7A90;
    --bg:          #F4F8F9;
    --bg-alt:      #EAF2F2;
    --white:       #ffffff;
    --border:      #DDE8E9;
    --success:     #16a34a;
    --error:       #dc2626;
    --whatsapp:    #25d366;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(31,111,178,.07);
    --shadow-md: 0 8px 28px rgba(31,111,178,.12);
    --shadow-lg: 0 20px 50px rgba(31,111,178,.16);

    /* Radii */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;

    /* Layout */
    --container: 1180px;
    --t: .3s ease;
  }

  body {
    font-family: 'Fira Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(16px, 1.1vw, 17px);
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--text);
    text-wrap: balance;
  }

  h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; }
  h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
  h3 { font-size: 1.15rem; font-weight: 700; }
  h4 { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

  p { color: var(--muted); line-height: 1.7; }

  a { transition: color var(--t); }
  a:hover { color: var(--teal); }

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

/* =========================================================
   LAYOUT
   ========================================================= */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 48px);
  }

  .section { padding-block: clamp(48px, 5vw, 72px); }

  /* Compense le header fixe + topbar lors du scroll vers une ancre */
  section[id] { scroll-margin-top: calc(36px + var(--logo-height, 80px) + 24px); }

  .section-head {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: clamp(28px, 3.5vw, 44px);
  }
  .section-head h2 { margin-top: .25em; margin-bottom: .4em; color: var(--navy); }
  .section-head p { font-size: .95rem; color: var(--muted); }

  .eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--teal);
    padding: 5px 16px;
    background: var(--teal-light);
    border: 1px solid rgba(12, 110, 109, .22);
    border-radius: 999px;
  }

  .divider {
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--teal), #0d9e9c);
    margin: 20px auto 0;
    border-radius: 99px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid transparent;
    transition: all var(--t);
    white-space: nowrap;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.12);
    opacity: 0;
    transition: opacity var(--t);
  }
  .btn:hover::after { opacity: 1; }

  .btn-primary {
    background: var(--btn-primary, var(--teal));
    color: var(--white);
    box-shadow: 0 4px 18px rgba(12,110,109,.32);
  }
  .btn-primary:hover {
    background: var(--btn-primary-hover, #0a5d5c);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(12,110,109,.40);
  }

  .btn-gold {
    background: var(--btn-cta, var(--gold));
    color: var(--dark);
    border-color: var(--btn-cta, var(--gold));
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(255,147,7,.38);
  }
  .btn-gold:hover {
    background: var(--btn-cta-hover, var(--gold-dark));
    border-color: var(--btn-cta-hover, var(--gold-dark));
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255,147,7,.48);
  }

  .btn-ghost {
    background: transparent;
    color: var(--teal);
    border-color: rgba(12,110,109,.5);
  }
  .btn-ghost:hover {
    background: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
  }

  .btn-sm { padding: 10px 20px; font-size: .87rem; }
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
@layer base {
  .scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    z-index: 700;
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
  }
}

/* =========================================================
   TOPBAR
   ========================================================= */
@layer header {
  .topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 650;
    background: var(--navy);
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 11px;
    color: rgba(255,255,255,.45);
  }
  .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
  }
  .topbar-left { display: flex; align-items: center; gap: 14px; }
  .topbar-sep { opacity: .25; }
  .topbar-right { display: flex; gap: 18px; }
  .topbar-right a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    transition: opacity var(--t);
  }
  .topbar-right a:hover { opacity: .8; }

/* =========================================================
   HEADER
   ========================================================= */
  .site-header {
    position: fixed;
    top: 36px;
    inset-inline: 0;
    z-index: 600;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: background var(--t), box-shadow var(--t);
  }
  .site-header.scrolled {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(24px, 4vw, 48px);
    padding-block: 12px;
    max-width: none;
    margin-inline: 0;
  }
  .header-inner > a {
    display: block;
    line-height: 0;
    flex-shrink: 0;
  }
  .logo {
    height: var(--logo-height, 80px);
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
  }

  .main-nav { display: flex; align-items: center; }
  .nav-list {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.5vw, 36px);
  }
  .nav-list a:not(.btn) {
    font-weight: 500;
    font-size: .9rem;
    color: var(--navy);
    padding-block: 6px;
    position: relative;
    transition: color var(--t);
    white-space: nowrap;
  }
  .nav-list a:not(.btn):hover { color: var(--teal); }
  .nav-list a:not(.btn)::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 0; height: 2px;
    background: var(--teal);
    border-radius: 1px;
    transition: width var(--t);
  }
  .nav-list a:not(.btn):hover::after,
  .nav-list a:not(.btn).active::after { width: 100%; }
  .nav-list a:not(.btn).active { color: var(--teal); font-weight: 600; }

  .burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: 10px;
  }
  .burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--t);
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   HERO – two-column Noventis style
   ========================================================= */
@layer hero {
  .hero {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 82svh;
    background: var(--white);
    padding-top: calc(36px + var(--logo-height, 80px) + 16px);
    align-items: stretch;
  }

  /* ── Left: light text panel ── */
  .hero-left {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 80px) clamp(36px, 5vw, 56px);
    position: relative;
    overflow: hidden;
  }

  /* Subtle background decoration */
  .hero-left::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(12,110,109,.06) 0%, transparent 65%);
    pointer-events: none;
  }

  .hero-glow { display: none; }

  .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 580px;
    width: 100%;
    transition: opacity .32s ease, transform .32s ease;
  }
  .hero-inner.fading {
    opacity: 0;
    transform: translateY(12px);
  }

  /* Eyebrow badge */
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--teal);
    background: rgba(12,110,109,.08);
    border: 1px solid rgba(12,110,109,.20);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
  }

  /* Title */
  .hero-title {
    color: var(--navy);
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.03em;
    margin-bottom: .45em;
    text-wrap: balance;
  }
  .hero-title span { display: block; }
  .hero-title em {
    font-style: normal;
    color: var(--teal);
    display: block;
  }
  .hero-title-loc {
    display: block;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 500;
    color: var(--muted);
    letter-spacing: -.01em;
    margin-top: .2em;
  }

  /* Lead */
  .hero-lead {
    color: var(--muted);
    font-size: clamp(.87rem, 1vw, .98rem);
    line-height: 1.85;
    max-width: 450px;
    margin-bottom: 36px;
  }

  /* CTAs */
  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
  }

  /* Outline button */
  .btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
  }

  /* Ghost btn (pre-footer / dark contexts) */
  .btn-white {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    border: 1.5px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
  }
  .btn-white:hover {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.55);
    color: #fff;
    transform: translateY(-2px);
  }

  /* Trust badges */
  .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 28px;
  }
  .hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
  }
  .hero-trust span svg {
    color: var(--teal);
    flex-shrink: 0;
  }

  /* Legacy stats strip */
  .hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .hero-stat strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--teal);
    letter-spacing: -.03em;
    line-height: 1.1;
  }
  .hero-stat span {
    font-size: .67rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 600;
  }
  .hero-stat-sep {
    width: 1px; height: 38px;
    background: var(--border);
    flex-shrink: 0;
  }

  /* ── Right: image panel fills completely ── */
  .hero-right {
    position: relative;
    overflow: hidden;
  }

  .hero-right-wrap {
    position: absolute;
    inset: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  .hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
  }
  .slide.active { opacity: 1; z-index: 1; }

  .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 9s ease;
    will-change: transform;
    pointer-events: none;
    filter: brightness(.82) saturate(.95);
  }
  .slide.active .slide-bg { transform: scale(1); }

  /* Teal frame accent */
  .hero-img-frame {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(12,110,109,.35);
    border-radius: 10px;
    z-index: 2;
    pointer-events: none;
  }

  /* Slide label overlay */
  .hero-slide-label {
    position: absolute;
    bottom: 60px;
    left: 20px;
    z-index: 6;
    background: rgba(11,32,74,.80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
  }
  .hero-slide-tag {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--teal);
    display: block;
  }
  .hero-slide-label strong {
    font-size: .82rem;
    color: #fff;
    font-weight: 700;
  }

  /* Dots + arrows UI bar */
  .hero-ui {
    position: absolute;
    bottom: 18px;
    left: 0; right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    pointer-events: none;
  }

  .hero-dots {
    display: flex;
    gap: 7px;
    align-items: center;
    pointer-events: auto;
  }
  .hero-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.40);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
  }
  .hero-dot.active {
    background: var(--gold);
    width: 22px;
    border-radius: 3px;
  }

  .hero-arrows {
    display: flex;
    gap: 8px;
    pointer-events: auto;
  }
  .hero-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    transition: all .22s;
    cursor: pointer;
  }
  .hero-arrow svg { width: 15px; height: 15px; }
  .hero-arrow:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: scale(1.06);
  }

  /* Progress bar */
  .hero-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,.08);
    z-index: 6;
    pointer-events: none;
  }
  .hero-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold);
  }
  .hero-progress-bar.running {
    animation: sliderProgress 6s linear forwards;
  }
  @keyframes sliderProgress {
    from { width: 0%; }
    to { width: 100%; }
  }

  /* Legacy elements hidden */
  .hero-overlay, .hero-trust-bar, .hero-bg-num,
  .hero-slide-num, .hero-num-line { display: none; }
}

/* =========================================================
   STATS
   ========================================================= */
@layer stats {
  .stats-band {
    background: linear-gradient(100deg, #0B204A 0%, #0d3060 45%, #0C6E6D 100%);
    padding-block: clamp(24px, 3vw, 40px);
    position: relative;
    overflow: hidden;
  }
  /* subtle decorative glow */
  .stats-band::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 200px;
    background: radial-gradient(ellipse, rgba(12,110,109,.35) 0%, transparent 70%);
    pointer-events: none;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    justify-content: center;
  }
  .stat-icon { display: none; }
  .stat-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .stat-num {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -.04em;
    line-height: 1;
  }
  .stat-label {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    margin-top: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,.15);
    justify-self: center;
  }
}

/* =========================================================
   SERVICES
   ========================================================= */
@layer services {
  /* ── Section ── */
  .svc-section { background: var(--linen); }

  /*
   * Kartlar sayfanın sol/sağ kenar padding'iyle flush başlasın:
   * max-width > tipik ekran → auto margin = 0 → sol = sağ = clamp(20px,4vw,48px)
   * Diğer section'lar: (viewport - 1180) / 2 + 48px boşluk
   * Bu section: sadece 48px boşluk — kartlar bir sütun genişliği kadar daha geniş
   */
  .svc-section > .container {
    max-width: 1800px;
    padding-inline: clamp(20px, 4vw, 48px);
  }

  /* ── Split header ── */
  .svc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }
  .svc-header-left h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.12;
    margin-top: 12px;
  }
  .svc-header-left h2 span { color: var(--teal); }
  .svc-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    max-width: 360px;
  }
  .svc-header-right p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.65;
    text-align: right;
  }
  .svc-header-btn {
    background: var(--navy);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--t), transform var(--t), gap var(--t);
  }
  .svc-header-btn:hover { background: var(--teal); transform: translateY(-2px); gap: 12px; }

  /* ── 4-col grid ── */
  .svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  /* ── Card ── */
  .svc-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  }
  .svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), #1aaeac);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    z-index: 4;
    border-radius: 18px 18px 0 0;
  }
  .svc-card:hover {
    box-shadow: 0 16px 48px rgba(11,32,74,.12);
    transform: translateY(-6px);
    border-color: rgba(12,110,109,.25);
  }
  .svc-card:hover::before { transform: scaleX(1); }

  /* ── Image ── */
  .svc-card-img {
    height: 160px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
  }
  .svc-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, filter .35s ease;
    filter: brightness(.88) saturate(.9);
  }
  .svc-card:hover .svc-card-img img {
    transform: scale(1.07);
    filter: brightness(.78) saturate(1);
  }
  .svc-card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(11,32,74,.5), transparent);
    pointer-events: none;
  }
  .svc-card-num {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 3;
    background: rgba(11,32,74,.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .12em;
    padding: 4px 9px;
    border-radius: 6px;
  }
  .svc-card-cat {
    position: absolute;
    bottom: 12px; right: 12px;
    z-index: 3;
    background: var(--teal);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 999px;
  }

  /* ── Body ── */
  .svc-card-body {
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
  }
  .svc-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin: 0;
  }
  .svc-card-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
  }
  .svc-card-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 4px;
  }
  .svc-card-tags li {
    font-size: .67rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(12,110,109,.06);
    border: 1px solid rgba(12,110,109,.16);
    padding: 3px 9px;
    border-radius: 999px;
    transition: background var(--t);
  }
  .svc-card:hover .svc-card-tags li { background: rgba(12,110,109,.12); }
  .svc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 2px;
  }
  .svc-card-link {
    font-size: .78rem;
    font-weight: 700;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--t);
  }
  .svc-card:hover .svc-card-link { gap: 9px; }
  .svc-card-arrow {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(12,110,109,.08);
    border: 1px solid rgba(12,110,109,.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    transition: background var(--t), color var(--t), border-color var(--t);
    flex-shrink: 0;
  }
  .svc-card:hover .svc-card-arrow {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
  }

  /* ── Bottom CTA strip ── */
  .svc-bottom {
    margin-top: 28px;
    background: var(--navy);
    border-radius: 18px;
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .svc-bottom-text h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
  }
  .svc-bottom-text p {
    font-size: .84rem;
    color: rgba(255,255,255,.5);
  }
  .svc-bottom-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
  }
  .svc-btn-gold {
    background: var(--gold);
    color: var(--navy);
    font-size: .85rem;
    font-weight: 800;
    padding: 13px 26px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--t), transform var(--t);
  }
  .svc-btn-gold:hover { background: #ffaa33; transform: translateY(-2px); }
  .svc-btn-ghost {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--t), border-color var(--t);
  }
  .svc-btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: svc;
  }

  .service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
    transition-delay: var(--delay, 0s);
    position: relative;
    counter-increment: svc;
  }

  .service-card-img { display: none; }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(11,32,74,.10);
    border-color: rgba(12,110,109,.30);
  }

  /* Teal accent line on hover */
  .service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), #0d9e9c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .32s ease;
    border-radius: 14px 14px 0 0;
  }
  .service-card:hover::after { transform: scaleX(1); }

  .service-card-body {
    padding: 32px 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
  }

  /* Auto-number via CSS counter */
  .service-card-body::before {
    content: counter(svc, decimal-leading-zero);
    font-size: 10px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: .1em;
    display: block;
    margin-bottom: 14px;
  }

  .service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
    transition: all .28s ease;
    flex-shrink: 0;
    border: 1px solid rgba(12,110,109,.12);
    margin-bottom: 16px;
  }
  .service-icon svg { width: 24px; height: 24px; color: var(--teal); }
  .service-card:hover .service-icon {
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 6px 20px rgba(12,110,109,.30);
  }
  .service-card:hover .service-icon svg { color: var(--white); }

  .service-card-body h3 { color: var(--text); margin: 0 0 10px; font-size: 1rem; font-weight: 700; }
  .service-card-body p { font-size: .88rem; margin: 0 0 20px; flex: 1; line-height: 1.68; color: var(--muted); }

  .service-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    font-size: .82rem;
    font-weight: 700;
    color: var(--teal);
    padding: 10px 20px;
    border: 1.5px solid rgba(31, 111, 178, .25);
    border-radius: 999px;
    background: var(--blue-tint);
    transition: all .25s ease;
    cursor: pointer;
    align-self: flex-start;
  }
  .service-detail-btn svg { transition: transform .25s ease; }
  .service-detail-btn:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(12,110,109,.28);
  }
  .service-detail-btn:hover svg { transform: translateX(3px); }
}

/* =========================================================
   SERVICE MODAL
   ========================================================= */
@layer service-modal {
  .service-modal {
    padding: 0;
    border: none;
    border-radius: var(--r-xl);
    overflow: hidden;
    max-width: min(900px, 95vw);
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 32px 80px rgba(0,0,0,.3);
  }
  .service-modal::backdrop {
    background: rgba(8,15,35,.65);
    backdrop-filter: blur(8px);
  }

  .service-modal-inner {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    max-height: 90vh;
    overflow: hidden;
  }

  .service-modal-left {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    min-height: 300px;
  }
  .service-modal-left img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }

  .service-modal-right {
    padding: clamp(28px, 4vw, 48px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    background: var(--white);
  }

  .service-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    transition: all var(--t);
    cursor: pointer;
    z-index: 2;
  }
  .service-modal-close:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    transform: rotate(90deg) scale(1.05);
  }
  .service-modal-close svg { width: 16px; height: 16px; }

  .service-modal-right h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--text);
    padding-right: 44px;
    line-height: 1.2;
    margin: 0;
  }

  .service-modal-right > p {
    font-size: .97rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
  }

  .service-modal-features {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .service-modal-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .92rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
  }
  .service-modal-features li::before {
    content: '';
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231f6fb2' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  }

  .service-modal-cta { align-self: flex-start; }
}

/* =========================================================
   GALLERY
   ========================================================= */
@layer gallery {
  .gallery { background: var(--linen); }

  .gallery > .container {
    max-width: 1800px;
    padding-inline: clamp(20px, 4vw, 48px);
  }

  /* ── Header ── */
  .gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }
  .gallery-header-left h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.12;
  }
  .gallery-header-left h2 span { color: var(--teal); }

  .gallery-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    max-width: 400px;
  }
  .gallery-header-right > p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
    text-align: right;
  }

  /* Stats row */
  .gallery-stats {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .gallery-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .gallery-stat strong {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
  }
  .gallery-stat span {
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
  }
  .gallery-stat-sep {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
  }

  /* ── Grid ── */
  .gallery-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 230px 230px 190px;
    gap: 14px;
  }

  .gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
    border: 1px solid var(--border);
  }
  .gallery-item--tall { grid-row: span 2; }
  .gallery-item--wide { grid-column: span 2; }

  /* ── Image ── */
  .gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
  }

  .gallery-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s ease, filter .4s ease;
    filter: brightness(.9) saturate(.9);
    display: block;
  }
  .gallery-item:hover .gallery-image img {
    transform: scale(1.06);
    filter: brightness(.65) saturate(.8);
  }

  /* ── Overlay (always a gradient, zoom btn appears on hover) ── */
  .gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(11,32,74,.3);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .gallery-item:hover .gallery-overlay { opacity: 1; }

  .gallery-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff;
    transform: scale(.8);
    transition: transform .3s ease, background .3s ease;
  }
  .gallery-item:hover .gallery-zoom-btn {
    transform: scale(1);
    background: rgba(255,255,255,.28);
  }

  /* ── Caption (always visible, sits on gradient) ── */
  .gallery-item figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 22px 22px 20px;
    color: var(--white);
    z-index: 3;
    background: linear-gradient(to top, rgba(11,32,74,.88) 0%, rgba(11,32,74,.4) 55%, transparent 100%);
    transition: padding .3s ease;
  }
  .gallery-item:hover figcaption { padding-bottom: 26px; }

  .gallery-tag {
    display: inline-block;
    padding: 3px 11px;
    background: var(--teal);
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--white);
    margin-bottom: 8px;
  }

  .gallery-item h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.25;
  }
  .gallery-item--tall h3 { font-size: 1.2rem; }
  .gallery-item--wide h3 { font-size: 1.15rem; }

  .gallery-item figcaption p {
    font-size: .78rem;
    color: rgba(255,255,255,.72);
    line-height: 1.45;
    margin: 0;
  }

  /* ── Footer CTA ── */
  .gallery-footer {
    margin-top: 22px;
    display: flex;
    justify-content: center;
  }
  .gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 10px;
    transition: background .2s, transform .2s, gap .2s;
  }
  .gallery-cta:hover {
    background: var(--teal);
    transform: translateY(-2px);
    gap: 12px;
  }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
@layer testimonials {
  .testimonials { background: var(--white); }

  .testimonials-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .testimonials-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    flex: 1;
    padding-block: 8px;
  }
  .testimonials-track::-webkit-scrollbar { display: none; }

  .testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all var(--t);
    position: relative;
  }
  .testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px; right: 24px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(12,110,109,.15);
    font-family: Georgia, serif;
    font-weight: 900;
    pointer-events: none;
  }
  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31,111,178,.22);
  }

  .testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .testimonial-card blockquote p {
    font-size: .97rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.7;
    margin: 0;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), #0d9e9c);
    color: var(--white);
    font-size: .82rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .testimonial-author strong {
    display: block;
    font-size: .95rem;
    color: var(--text);
  }
  .testimonial-author span {
    font-size: .8rem;
    color: var(--muted);
  }

  .testimonials-arrow {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    transition: all var(--t);
    box-shadow: var(--shadow-sm);
  }
  .testimonials-arrow svg { width: 20px; height: 20px; }
  .testimonials-arrow:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    transform: scale(1.06);
  }
  .testimonials-arrow:disabled { opacity: .35; pointer-events: none; }

  .testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
  }
  .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    transition: all var(--t);
    cursor: pointer;
  }
  .dot.active {
    background: var(--teal);
    width: 24px;
    border-radius: 4px;
  }
}

/* =========================================================
   PROCESS
   ========================================================= */
@layer process {
  .process { background: var(--linen); }

  .steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    list-style: none;
    counter-reset: steps;
  }
  .step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 28px);
    transition: all var(--t);
    transition-delay: var(--delay, 0s);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(12,110,109,.28);
  }
  .step-num {
    font-size: .78rem;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: .12em;
    padding: 6px 12px;
    background: var(--teal-light);
    border-radius: 999px;
    width: fit-content;
  }
  .step-content h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
  .step-content p { font-size: .9rem; margin: 0; }

  .step-connector {
    display: flex;
    align-items: center;
    color: var(--border);
  }
  .step-connector svg { width: 36px; height: 24px; }
}

/* =========================================================
   ZONE
   ========================================================= */
@layer zone {
  .zone { background: var(--white); }

  .zone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
  }
  .chip {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text);
    transition: all var(--t);
  }
  .chip:hover {
    background: var(--teal-light);
    border-color: rgba(12,110,109,.34);
    color: var(--teal);
  }
  .chip--main {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
  }
  .chip--more {
    background: transparent;
    color: var(--muted);
    border-style: dashed;
  }

  .zone-note {
    text-align: center;
    font-size: .92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
  }
  .zone-note svg { color: var(--teal); flex-shrink: 0; }
  .zone-note a { color: var(--teal); font-weight: 600; text-decoration: underline; }
}

/* =========================================================
   CONTACT
   ========================================================= */
@layer contact {

  /* ── True split-panel: section IS the grid ── */
  .contact {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: calc(100vh - 70px);
    padding: 0 !important; /* override .section */
  }

  /* ── Left panel: dark navy ── */
  .contact-panel-left {
    background: linear-gradient(160deg, #081a3e 0%, #0B204A 60%, #0c2a58 100%);
    padding: clamp(32px, 4vw, 52px) clamp(28px, 3vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .contact-panel-left::before {
    content: '';
    position: absolute;
    bottom: -80px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(ellipse, rgba(12,110,109,.22) 0%, transparent 65%);
    pointer-events: none;
  }

  .contact-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
  }

  .contact-eyebrow {
    color: var(--gold) !important;
    background: rgba(255,147,7,.12) !important;
    border-color: rgba(255,147,7,.28) !important;
    align-self: flex-start;
  }

  .contact-title {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0;
  }
  .contact-title span { color: #0d9e9c; }

  .contact-subtitle {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    margin: -8px 0 0;
  }

  /* Contact cards */
  .contact-cards { display: flex; flex-direction: column; gap: 8px; }
  .contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    transition: background var(--t), border-color var(--t), transform var(--t);
    color: rgba(255,255,255,.85);
  }
  a.contact-card:hover {
    background: rgba(255,255,255,.11);
    border-color: rgba(12,110,109,.4);
    transform: translateX(4px);
    color: #fff;
  }
  .contact-card-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .contact-card-icon svg { width: 15px; height: 15px; color: var(--gold); }
  .contact-card-label {
    display: block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1px;
  }
  .contact-card-value {
    font-size: .84rem;
    font-weight: 600;
    color: rgba(255,255,255,.88);
    line-height: 1.3;
  }

  /* Trust grid */
  .contact-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .contact-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
  }
  .contact-trust-item svg { width: 13px; height: 13px; flex-shrink: 0; color: #0d9e9c; }
  .contact-trust-item span { font-size: .73rem; font-weight: 600; color: rgba(255,255,255,.7); }

  /* ── Right panel: light, form ── */
  .contact-panel-right {
    background: #f3f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 3vw, 44px) clamp(32px, 4vw, 64px);
  }

  .contact-form-wrap {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e4eaf2;
    box-shadow: 0 4px 24px rgba(11,32,74,.07);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
  }
  .contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
  }

  .contact-form { display: flex; flex-direction: column; gap: 14px; }

  /* Form sections */
  .form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f5;
  }
  .form-section:last-of-type { border-bottom: none; padding-bottom: 0; }

  .form-section-head { display: flex; align-items: center; gap: 8px; }
  .form-section-num {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: .64rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .form-section-head h4 { font-size: .82rem; font-weight: 700; color: var(--navy); margin: 0; }
  .form-section-hint { font-size: .7rem; color: var(--muted); }

  /* Bien toggles */
  .form-bien-group { display: flex; gap: 8px; }
  .form-bien-btn { cursor: pointer; flex: 1; position: relative; }
  .form-bien-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
  .form-bien-btn span {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 6px;
    border: 1.5px solid #dde3ec;
    border-radius: 8px;
    font-size: .78rem; font-weight: 600;
    color: #8493a6;
    background: #f8fafc;
    transition: all .18s ease;
    width: 100%; cursor: pointer;
  }
  .form-bien-btn span svg { width: 14px; height: 14px; color: #8493a6; transition: color .18s; }
  .form-bien-btn input:checked ~ span {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(12,110,109,.15);
  }
  .form-bien-btn input:checked ~ span svg { color: #fff; }
  .form-bien-btn:hover span { border-color: var(--teal); color: var(--navy); }

  /* Chips */
  .form-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .form-chip { cursor: pointer; position: relative; }
  .form-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
  .form-chip span {
    display: inline-flex; align-items: center;
    padding: 5px 11px;
    border: 1.5px solid #dde3ec;
    border-radius: 999px;
    font-size: .74rem; font-weight: 600;
    color: #8493a6; background: #f8fafc;
    transition: all .15s ease; user-select: none;
  }
  .form-chip input:checked ~ span { border-color: var(--teal); background: var(--teal); color: #fff; }
  .form-chip:hover span { border-color: var(--teal); color: var(--teal); }

  /* Inputs */
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-group { display: flex; flex-direction: column; gap: 4px; }
  .form-label {
    font-size: .65rem; font-weight: 700;
    color: #8493a6; text-transform: uppercase; letter-spacing: .05em;
  }
  .form-group:focus-within .form-label { color: var(--teal); }

  .form-input {
    width: 100%; height: 38px; padding: 0 11px;
    border: 1.5px solid #dde3ec;
    border-radius: 7px;
    font-size: .84rem; color: var(--text);
    background: #f8fafc; font-family: inherit;
    transition: border-color .18s, box-shadow .18s, background .18s;
    appearance: none; -webkit-appearance: none;
  }
  .form-input:focus {
    outline: none; border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(12,110,109,.1);
  }
  .form-input.error { border-color: var(--error); }
  .form-input.valid { border-color: var(--success); }
  .form-group:has(.form-input.error) .form-label { color: var(--error); }

  .form-textarea { height: auto; min-height: 64px; resize: none; padding: 9px 11px; }
  .form-select option:first-child { display: none; }

  .form-error { font-size: .7rem; color: var(--error); font-weight: 600; display: block; }
  .form-char-count { font-size: .68rem; color: var(--muted); text-align: right; display: block; }

  .form-privacy {
    display: flex; align-items: center; gap: 5px;
    font-size: .68rem; color: var(--muted); justify-content: center;
  }
  .form-privacy svg { color: var(--teal); flex-shrink: 0; }

  /* Submit */
  .btn-submit { width: 100%; padding: 12px 20px; font-size: .9rem; position: relative; overflow: hidden; }
  .btn-spinner {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff; border-radius: 50%;
  }
  .btn-submit.loading .btn-text { display: none; }
  .btn-submit.loading .btn-spinner { display: block; animation: spin .7s linear infinite; }
  .btn-submit.loading .btn-icon { display: none; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Success */
  .form-success { text-align: center; padding: 40px 20px; }
  .form-success-icon {
    width: 60px; height: 60px; background: #e8f7ef;
    border: 2px solid #a7d7bc; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    animation: popIn .5s cubic-bezier(.34,1.56,.64,1);
  }
  .form-success-icon svg { width: 28px; height: 28px; color: var(--success); }
  @keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .form-success h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 10px; }
  .form-success p { margin-bottom: 24px; }
}

/* =========================================================
   PRE-FOOTER CTA
   ========================================================= */
@layer footer {
  .pre-footer-cta {
    background: var(--teal);
    background-image:
      radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
    padding: clamp(48px, 7vw, 80px) 0;
  }
  .pre-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  .pre-footer-text {
    flex: 1;
    min-width: 280px;
  }
  .pre-footer-text h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .4em;
    text-wrap: balance;
  }
  .pre-footer-text p {
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
  }
  .pre-footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
  }
  .pre-footer-cta .btn-gold {
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
  }
  .pre-footer-cta .btn-white {
    border-color: rgba(255,255,255,.35);
  }

/* =========================================================
   FOOTER
   ========================================================= */
  .site-footer { background: var(--navy); color: rgba(255,255,255,.4); }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(32px, 5vw, 60px);
    padding-block: clamp(56px, 7vw, 80px);
  }

  .footer-brand { display: flex; flex-direction: column; gap: 18px; }
  .footer-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.1);
  }
  .footer-brand-text { display: flex; flex-direction: column; gap: 8px; }
  .footer-brand-text p {
    font-size: .82rem;
    color: rgba(255,255,255,.38);
    line-height: 1.72;
    max-width: 300px;
    margin: 0;
  }
  .footer-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: rgba(255,255,255,.28);
  }
  .footer-address svg { flex-shrink: 0; opacity: .5; }

  .footer-nav h4, .footer-contact h4 {
    color: rgba(255,255,255,.5);
    font-size: 10px;
    letter-spacing: .12em;
  }
  .footer-nav ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
  .footer-nav a, .footer-contact a {
    font-size: .88rem;
    color: rgba(255,255,255,.4);
    transition: color var(--t);
  }
  .footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
  .footer-contact li { font-size: .88rem; color: rgba(255,255,255,.4); }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-block: 22px;
  }
  .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  .copyright { font-size: .78rem; margin: 0; color: rgba(255,255,255,.2); }
  .footer-legal {
    display: flex;
    gap: 24px;
  }
  .footer-legal a {
    font-size: .78rem;
    color: rgba(255,255,255,.2);
    transition: color var(--t);
  }
  .footer-legal a:hover { color: rgba(255,255,255,.55); }
}

/* =========================================================
   FABs
   ========================================================= */
@layer fab {
  .fab-group {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
  }
  .fab-group.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .fab {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
    transition: all var(--t);
    position: relative;
  }
  .fab svg { width: 24px; height: 24px; }
  .fab:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(0,0,0,.28); }

  .fab-whatsapp { background: var(--whatsapp); color: var(--white); }
  .fab-phone { background: var(--teal); color: var(--white); }

  .fab::before {
    content: attr(aria-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    white-space: nowrap;
    background: var(--dark);
    color: var(--white);
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    opacity: 0;
    pointer-events: none;
    transition: all var(--t);
  }
  .fab:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
@layer lightbox {
  .lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    background: rgba(8,12,20,.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .lightbox[open] { opacity: 1; pointer-events: auto; }

  .lightbox::backdrop {
    background: rgba(8,12,20,.85);
    backdrop-filter: blur(8px);
  }

  .lightbox-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1000px;
    padding: 24px;
    height: 100%;
    position: relative;
  }

  .lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t);
    z-index: 10;
  }
  .lightbox-close svg { width: 18px; height: 18px; }
  .lightbox-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }

  .lightbox-media {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-height: 90vh;
  }
  .lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--r-md);
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    animation: lightboxIn .3s ease;
  }
  @keyframes lightboxIn {
    from { transform: scale(.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .lightbox-caption {
    text-align: center;
  }
  .lightbox-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.8);
    margin-bottom: 8px;
  }
  #lightboxCaption {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    margin: 0;
  }

  .lightbox-nav {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t);
  }
  .lightbox-nav svg { width: 20px; height: 20px; }
  .lightbox-nav:hover { background: rgba(255,255,255,.22); transform: scale(1.1); }

  .lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .82rem;
    color: rgba(255,255,255,.45);
    font-weight: 600;
    letter-spacing: .06em;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@layer animations {
  .js-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity .65s ease,
      transform .65s ease;
    transition-delay: var(--delay, 0s);
  }
  .js-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@layer responsive {
  @media (max-width: 1024px) {
    .stats-grid {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
    }
    .stat-divider { display: none; }

    .steps {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
    }
    .step-connector { display: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
  }

  @media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; padding-top: calc(36px + var(--logo-height, 80px) + 20px); min-height: auto; }
    .hero-right { min-height: 420px; }
    .hero-right-wrap { position: relative; height: 100%; min-height: 420px; }
    .hero-left { padding-block: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .svc-header { flex-direction: column; align-items: flex-start; }
    .svc-header-right { align-items: flex-start; }
    .svc-header-right p { text-align: left; }
    .gallery-header { flex-direction: column; align-items: flex-start; }
    .gallery-header-right { align-items: flex-start; max-width: 100%; }
    .gallery-header-right > p { text-align: left; }
    .gallery-stats { align-self: flex-start; }
    .contact { grid-template-columns: 1fr; min-height: auto; }
    .contact-panel-right { order: -1; }
    .contact-panel-left { justify-content: flex-start; }
    .form-bien-group { flex-direction: row; }
    .pre-footer-inner { flex-direction: column; text-align: center; }
    .pre-footer-actions { justify-content: center; }
    .pre-footer-text p { margin: 0 auto; }
  }

  @media (max-width: 768px) {
    .topbar { display: none; }
    .site-header { top: 0; }
    .logo-link { top: 10px; }
    /* no topbar on mobile */
    .hero { padding-top: calc(var(--logo-height, 80px) + 20px); }

    .hero-img-frame { inset: 10px; }

    .service-modal-inner { grid-template-columns: 1fr; }
    .service-modal-left { min-height: 200px; max-height: 200px; }

    .burger { display: flex; }
    .nav-list {
      position: fixed;
      top: 0;
      inset-inline: 0;
      z-index: 590;
      flex-direction: column;
      background: var(--white);
      padding: 90px 24px 32px;
      gap: 8px;
      box-shadow: var(--shadow-lg);
      transform: translateX(100%);
      opacity: 0;
      pointer-events: none;
      transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s ease;
      height: 100dvh;
      overflow-y: auto;
    }
    .nav-list.open {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
    }
    .nav-list li { width: 100%; }
    .nav-list a:not(.btn) {
      display: block;
      padding: 14px 0;
      font-size: 1.1rem;
      border-bottom: 1px solid var(--border);
    }
    .nav-list .btn { width: 100%; margin-top: 12px; }

    .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .svc-bottom { padding: 22px 24px; }

    .gallery-header { flex-direction: column; align-items: flex-start; }
    .gallery-header-right { align-items: flex-start; max-width: 100%; }
    .gallery-header-right > p { text-align: left; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item--tall { grid-row: auto; }
    .gallery-item--wide { grid-column: auto; }
    .gallery-image { aspect-ratio: 4/3; }
    .gallery-item--tall .gallery-image,
    .gallery-item--wide .gallery-image { aspect-ratio: 4/3; height: auto; }

    .testimonial-card { flex: 0 0 calc(100% - 0px); }
    .testimonials-arrow { display: none; }

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

    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 16px; flex-wrap: wrap; }
    .hero-trust { gap: 12px; }
    .hero-right { min-height: 300px; }

    .pre-footer-actions .btn { width: 100%; justify-content: center; }
  }

  @media (max-width: 480px) {
    .hero { padding-top: calc(var(--logo-height, 80px) + 16px); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item { flex-direction: column; text-align: center; }
    .services-grid { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .svc-card-img { height: 160px; }
    .svc-card-body { padding: 16px 14px 14px; }
    .svc-bottom { flex-direction: column; align-items: flex-start; }
    .svc-bottom-actions { width: 100%; }
    .svc-btn-gold, .svc-btn-ghost { flex: 1; justify-content: center; }
    .contact-form-wrap { padding: 24px 18px; }
    .logo { height: var(--logo-height, 56px); }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .slide-bg { transition: none !important; }
  }
}
