/* ============================================================
   DAVEC — Construcción · Vías · Infraestructura
   Sistema visual: navy profundo + dorado + verde sostenibilidad
   ============================================================ */

:root {
  /* Color */
  --navy-900: #0a1c2b;
  --navy-800: #0e2538;
  --navy-700: #14304a;
  --navy-600: #1d4060;
  --gold:     #c7a24e;
  --gold-soft:#d8bd7e;
  --gold-deep:#a9863a;
  --green:    #2e7b4f;
  --green-soft:#3c9263;
  --cream:    #faf8f3;
  --cream-2:  #f2efe6;
  --paper:    #ffffff;
  --ink:      #14222e;
  --ink-soft: #4a5965;
  --line:     #e4e0d4;
  --line-dk:  rgba(255,255,255,0.12);

  /* Type */
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --display: "Archivo", system-ui, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14,37,56,.06), 0 4px 16px rgba(14,37,56,.05);
  --shadow-md: 0 10px 40px rgba(14,37,56,.10);
  --shadow-lg: 0 30px 80px rgba(10,28,43,.30);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

/* Eyebrow / overline */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--gold-soft); }

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

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 8px 24px rgba(199,162,78,.30); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(199,162,78,.40); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-800); transform: translateY(-2px); }
.btn-ghost-dk { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-dk:hover { border-color: #fff; background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-outline-gold { background: transparent; color: var(--gold-soft); border-color: rgba(199,162,78,.45); }
.btn-outline-gold:hover { border-color: var(--gold); background: rgba(199,162,78,.08); }

/* ===================== Navbar ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex: none; object-fit: contain; }
.footer .brand-mark { background: #fff; border-radius: 9px; padding: 5px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 23px;
  letter-spacing: 0.06em; color: var(--navy-800);
}
.brand-tag {
  font-size: 8.5px; letter-spacing: 0.22em; font-weight: 700;
  color: var(--gold-deep); text-transform: uppercase; margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-weight: 600; font-size: 15.5px; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .28s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; color: var(--navy-800);
}
.nav-toggle svg { width: 100%; height: 100%; }

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 78px 0 auto 0; z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 18px clamp(20px,5vw,56px) 28px;
  flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-weight: 600; font-size: 18px; padding: 14px 4px;
  border-bottom: 1px solid var(--line); color: var(--navy-800);
}
.mobile-menu .btn { margin-top: 16px; }

/* ===================== Hero ===================== */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(46,123,79,.16), transparent 55%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 75%);
  opacity: .5; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 104px) clamp(120px, 13vw, 168px);
}
.hero-overline {
  color: var(--gold-soft); font-weight: 700; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.hero-overline svg { width: 16px; height: 16px; color: var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02;
  letter-spacing: -0.03em; font-weight: 800;
}
.hero h1 .accent { color: var(--gold-soft); }
.hero-sub {
  font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.78);
  max-width: 34em; margin-top: 26px; line-height: 1.65;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-visual { position: relative; }
.hero-visual image-slot, .hero-visual .hero-photo-fixed {
  width: 100%; height: clamp(360px, 42vw, 540px);
  box-shadow: var(--shadow-lg);
}
.hero-visual .hero-photo-fixed { object-fit: cover; display: block; border-radius: 20px; }
.hero-badge {
  position: absolute; left: -22px; bottom: 38px;
  background: var(--paper); color: var(--navy-800);
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px; max-width: 250px;
}
.hero-badge .hb-num { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--green); line-height: 1; }
.hero-badge .hb-txt { font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); font-weight: 600; }

/* Pillars card overlapping hero */
.pillars {
  position: relative; z-index: 5; margin-top: -84px;
}
.pillars-card {
  background: var(--navy-700);
  border: 1px solid var(--line-dk);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.pillar {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 28px 26px;
  border-right: 1px solid var(--line-dk);
}
.pillar:last-child { border-right: 0; }
.pillar-ico {
  width: 44px; height: 44px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(199,162,78,.14); color: var(--gold-soft);
  border: 1px solid rgba(199,162,78,.28);
}
.pillar-ico svg { width: 23px; height: 23px; }
.pillar h4 { color: #fff; font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 5px; }
.pillar p { color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.4; }

/* ===================== About / Nosotros ===================== */
.about { background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about h2 { font-size: clamp(32px, 3.6vw, 48px); margin-top: 18px; }
.about-lead { font-size: 19px; color: var(--ink); margin-top: 24px; font-weight: 500; }
.about-body { color: var(--ink-soft); margin-top: 18px; font-size: 16.5px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag {
  font-size: 13.5px; font-weight: 700; color: var(--navy-700);
  background: var(--paper); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
}
.tag.green { color: var(--green); border-color: rgba(46,123,79,.3); background: rgba(46,123,79,.06); }
.about-visual { position: relative; }
.about-visual image-slot { width: 100%; height: clamp(340px, 40vw, 500px); box-shadow: var(--shadow-md); }
.about-visual .about-photo-fixed { width: 100%; height: clamp(340px, 40vw, 500px); object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-md); display: block; }
.about-stat {
  position: absolute; right: -18px; top: 32px;
  background: var(--navy-800); color: #fff; border-radius: 14px;
  padding: 18px 22px; box-shadow: var(--shadow-md); max-width: 220px;
}
.about-stat .as-k { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--gold-soft); }
.about-stat .as-v { font-size: 13.5px; color: rgba(255,255,255,.72); margin-top: 4px; line-height: 1.4; }

/* ===================== Services ===================== */
.services { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: clamp(44px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 3.8vw, 50px); margin-top: 18px; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin-top: 16px; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc-card {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.svc-media { position: relative; }
.svc-media image-slot { width: 100%; height: 230px; }
.svc-media .svc-img-fixed { width: 100%; height: 230px; object-fit: cover; display: block; }
.svc-num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--display); font-weight: 800; font-size: 15px;
  color: #fff; background: rgba(10,28,43,.55); backdrop-filter: blur(4px);
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3);
}
.svc-ico {
  position: absolute; left: 22px; bottom: -26px;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--navy-800); color: var(--gold-soft);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  border: 1px solid var(--line-dk);
}
.svc-ico svg { width: 28px; height: 28px; }
.svc-body { padding: 40px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 22px; }
.svc-body p { color: var(--ink-soft); font-size: 15.5px; margin-top: 12px; flex: 1; }
.svc-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.svc-list li { font-size: 12.5px; font-weight: 600; color: var(--navy-700); background: var(--paper); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; font-size: 15px; color: var(--gold-deep); }
.svc-link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* ===================== Proceso / Modelo de trabajo ===================== */
.process {
  background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: #fff; position: relative; overflow: hidden;
}
.process .section-head h2 { color: #fff; }
.process .section-head p { color: rgba(255,255,255,.72); }
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative; margin-top: 20px;
}
.steps::before {
  content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(199,162,78,.5) 12%, rgba(199,162,78,.5) 88%, transparent);
}
.step { text-align: center; padding: 0 16px; position: relative; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 999px;
  background: var(--navy-700); border: 2px solid var(--gold);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800;
  font-size: 24px; color: var(--gold-soft); position: relative; z-index: 2;
}
.step h4 { color: #fff; font-size: 17.5px; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.5; }

/* ===================== Proyectos (portafolio escalable) ===================== */
.project { background: var(--cream); }
.project-note {
  margin-top: 26px; font-size: 13px; color: var(--ink-soft); font-style: italic;
  border-left: 3px solid var(--gold); padding-left: 14px; line-height: 1.5;
}

/* category filter chips */
.proj-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(36px,4vw,52px); }
.chip {
  font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink-soft);
  background: var(--paper); border: 1.5px solid var(--line); padding: 10px 20px;
  border-radius: 999px; cursor: pointer; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--navy-800); transform: translateY(-2px); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* portfolio grid */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.proj-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), opacity .4s var(--ease);
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.proj-card.hide { display: none; }
.proj-media { position: relative; overflow: hidden; }
.proj-media image-slot { width: 100%; height: 250px; transition: transform .6s var(--ease); }
.proj-card:hover .proj-media image-slot { transform: scale(1.04); }
.proj-badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .04em;
  background: var(--gold); color: var(--navy-900); padding: 7px 14px; border-radius: 999px;
}
.proj-badge.soon { background: rgba(14,37,56,.62); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); }
.proj-info { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.proj-cat { font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.proj-info h3 { font-size: 22px; margin-top: 10px; }
.proj-info p { color: var(--ink-soft); font-size: 15px; margin-top: 12px; flex: 1; }
.proj-checks { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.proj-checks li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--navy-700); background: var(--cream); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.proj-checks .ck { width: 16px; height: 16px; color: var(--green); flex: none; }
.proj-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; font-size: 14.5px; color: var(--gold-deep); }
.proj-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.proj-card:hover .proj-link svg { transform: translateX(5px); }

/* featured card spans full width, horizontal on desktop */
.proj-card.featured { grid-column: 1 / -1; flex-direction: row; }
.proj-card.featured .proj-media { flex: 1.1; }
.proj-card.featured .proj-media image-slot { height: 100%; min-height: 340px; }
.proj-card.featured .proj-info { flex: 1; padding: clamp(30px,3.5vw,48px); justify-content: center; }
.proj-card.featured .proj-info h3 { font-size: clamp(26px,2.6vw,34px); }
.proj-card.featured .proj-info p { flex: none; font-size: 16.5px; }

@media (max-width: 900px) {
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-card.featured { flex-direction: column; }
  .proj-card.featured .proj-media image-slot { min-height: 260px; height: 260px; }
  .proj-card.featured .proj-gallery .proj-main-img { min-height: 260px; }
}
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }

/* fixed project gallery (Vivienda unifamiliar) */
.proj-gallery { display: flex; flex-direction: column; height: 100%; }
.proj-gallery .proj-main-img {
  width: 100%; flex: 1; min-height: 340px; object-fit: cover; display: block;
  transition: opacity .35s var(--ease);
}
.proj-gallery .proj-thumbs {
  display: flex; gap: 8px; padding: 8px; background: var(--paper);
  border-top: 1px solid var(--line);
}
.proj-gallery .pthumb {
  flex: 1; height: 62px; padding: 0; margin: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 9px; overflow: hidden;
  background: none; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.proj-gallery .pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-gallery .pthumb:hover { transform: translateY(-2px); }
.proj-gallery .pthumb.active { border-color: var(--gold); }

/* ===== Carrusel del proyecto (Swiper) ===== */
.proj-swiper {
  width: 100%; height: 100%; min-height: 340px;
  --swiper-theme-color: var(--gold);
  --swiper-navigation-color: #fff;
  --swiper-pagination-color: var(--gold);
  --swiper-pagination-bullet-inactive-color: #ffffff;
  --swiper-pagination-bullet-inactive-opacity: .55;
}
.proj-swiper .swiper-slide { overflow: hidden; }
.proj-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-swiper .swiper-button-prev,
.proj-swiper .swiper-button-next {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(14,37,56,.5); backdrop-filter: blur(5px);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.proj-swiper .swiper-button-prev:hover,
.proj-swiper .swiper-button-next:hover { background: rgba(14,37,56,.85); transform: scale(1.06); }
.proj-swiper .swiper-button-prev::after,
.proj-swiper .swiper-button-next::after { font-size: 17px; font-weight: 800; }
.proj-swiper .swiper-pagination { bottom: 12px; }
.proj-swiper .swiper-pagination-bullet { width: 9px; height: 9px; }
@media (max-width: 880px) {
  .proj-swiper { min-height: 260px; }
  .proj-swiper .swiper-button-prev, .proj-swiper .swiper-button-next { width: 40px; height: 40px; }
  .proj-swiper .swiper-button-prev::after, .proj-swiper .swiper-button-next::after { font-size: 15px; }
}

/* ===================== Por qué DAVEC ===================== */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
.why-card { padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(199,162,78,.12); color: var(--gold-deep); border: 1px solid rgba(199,162,78,.25); }
.why-ico svg { width: 26px; height: 26px; }
.why-card h4 { font-size: 19px; margin-bottom: 10px; }
.why-card p { color: var(--ink-soft); font-size: 15px; }

/* ===================== CTA + contacto ===================== */
.contact { background: var(--cream-2); }
.contact-card {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
}
.contact-card::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(80% 80% at 0% 0%, rgba(46,123,79,.22), transparent 60%);
  pointer-events:none;
}
.contact-info { padding: clamp(40px, 5vw, 64px); position: relative; z-index: 2; }
.contact-info h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); margin-top: 16px; }
.contact-info p { color: rgba(255,255,255,.74); margin-top: 18px; font-size: 17px; }
.contact-details { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.contact-details li { display: flex; align-items: center; gap: 15px; color: rgba(255,255,255,.9); font-size: 15.5px; font-weight: 500; }
.contact-details .cd-ico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--gold-soft); border: 1px solid var(--line-dk); }
.contact-details .cd-ico svg { width: 19px; height: 19px; }
.contact-details a { color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 15px; transition: color .2s var(--ease); }
.contact-details a:hover { color: var(--gold-soft); }
.wa-btn {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 30px;
  background: #1faf54; color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; transition: transform .25s var(--ease), background .25s var(--ease);
}
.wa-btn:hover { background: #25c462; transform: translateY(-2px); }
.wa-btn svg { width: 21px; height: 21px; }
.form-alt { display: flex; align-items: center; text-align: center; color: var(--ink-soft); font-size: 13px; margin: 16px 0; }
.form-alt::before, .form-alt::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-alt span { padding: 0 14px; }
.wa-alt { width: 100%; color: #1a9b4a; border-color: rgba(31,175,84,.4); }
.wa-alt:hover { border-color: #1faf54; background: rgba(31,175,84,.06); }
.wa-alt svg { width: 19px; height: 19px; }

.contact-form { background: var(--paper); padding: clamp(36px, 4.5vw, 56px); position: relative; z-index: 2; }
.contact-form h3 { font-size: 24px; margin-bottom: 6px; }
.contact-form .cf-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-700); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  padding: 13px 16px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--cream); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199,162,78,.16); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .btn { width: 100%; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.wa-fallback { margin-top: 16px; padding: 16px; border-radius: 12px; background: rgba(31,175,84,.08); border: 1px solid rgba(31,175,84,.25); }
.wa-fallback p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.wa-fallback .btn { width: 100%; background: #1faf54; color: #fff; box-shadow: none; }
.wa-fallback .btn:hover { background: #25c462; }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok.show { display: block; }
.form-ok .ok-ico { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 999px; display: grid; place-items: center; background: rgba(46,123,79,.12); color: var(--green); }
.form-ok h3 { color: var(--green); }

/* ===================== Footer ===================== */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(54px, 6vw, 80px) 48px; }
.footer .brand-name { color: #fff; }
.footer-about { margin-top: 20px; font-size: 14.5px; max-width: 30ch; line-height: 1.6; }
.footer-col h5 { font-family: var(--display); color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: 11px; font-size: 14.5px; margin-bottom: 13px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold-soft); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line-dk); padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13.5px; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { font-size: 13.5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line-dk); color: rgba(255,255,255,.8); transition: all .2s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(7px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); will-change: opacity, transform, filter; }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.from-left.in, .reveal.from-right.in { transform: none; }
.reveal.zoom { transform: translateY(28px) scale(.96); }
.reveal.zoom.in { transform: none; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  z-index: 200; transition: width .1s linear;
}

/* Hero entrance + ambient motion */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-badge { animation: floatY 5s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Animated process connector line */
.steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .2s; }
.steps.in::before { transform: scaleX(1); }
.step-num { transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.step:hover .step-num { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(199,162,78,.35); background: var(--gold); color: var(--navy-900); }

/* Card lift micro-interaction already on hover; add icon pop */
.svc-card:hover .svc-ico, .why-card:hover .why-ico, .pillar:hover .pillar-ico { transform: translateY(-3px) scale(1.06); }
.svc-ico, .why-ico, .pillar-ico { transition: transform .3s var(--ease); }
.pillar { transition: background .3s var(--ease); }
.pillar:hover { background: rgba(255,255,255,.04); }
.tag { transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.tag:hover { transform: translateY(-2px); border-color: var(--gold); }

/* ===================== WhatsApp floating button ===================== */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 210;
  width: 62px; height: 62px; border-radius: 999px;
  background: #1faf54; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(31,175,84,.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: waPulse 2.8s infinite;
}
.wa-fab:hover { transform: scale(1.08); background: #25c462; }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab .wa-tip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--navy-800); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 10px; white-space: nowrap; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.wa-fab .wa-tip::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 10px; height: 10px; background: var(--navy-800); }
.wa-fab:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,175,84,.5), 0 12px 30px rgba(31,175,84,.4); }
  70%  { box-shadow: 0 0 0 18px rgba(31,175,84,0), 0 12px 30px rgba(31,175,84,.4); }
  100% { box-shadow: 0 0 0 0 rgba(31,175,84,0), 0 12px 30px rgba(31,175,84,.4); }
}
@media (max-width: 560px) { .wa-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; } .wa-fab .wa-tip { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .wa-fab { animation: none; }
  .hero-title .line-i { transform: none !important; }
  .hero-rise { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ===================== Kinetic hero headline ===================== */
.hero-title { display: block; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line-i { display: block; transform: translateY(118%); transition: transform 1s var(--ease); }
body.loaded .hero-title .line-i { transform: none; }
.hero-title .line:nth-child(2) .line-i { transition-delay: .12s; }
.hero-title .line:nth-child(3) .line-i { transition-delay: .24s; }
.hero-title .accent {
  background: linear-gradient(100deg, var(--gold) 18%, #f4e2b0 42%, #fff 50%, #f4e2b0 58%, var(--gold) 82%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5.5s linear infinite;
}
@keyframes shimmer { 0% { background-position: 180% 0; } 100% { background-position: -180% 0; } }

/* Hero rise (overline, sub, cta, visual) on load */
.hero-rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.loaded .hero-rise { opacity: 1; transform: none; }
.hero-rise.d1 { transition-delay: .36s; }
.hero-rise.d2 { transition-delay: .48s; }
.hero-rise.d3 { transition-delay: .6s; }
.hero-rise.d4 { transition-delay: .2s; }

/* ===================== Marquee strip ===================== */
.marquee {
  background: var(--navy-800); overflow: hidden; position: relative;
  padding: 26px 0; border-top: 1px solid var(--line-dk); border-bottom: 1px solid var(--line-dk);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-800), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-800), transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: scrollX 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: .02em; padding: 0 30px; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.34); text-transform: uppercase; white-space: nowrap;
}
.marquee-item.fill { color: var(--gold-soft); -webkit-text-stroke: 0; }
.marquee-dot { width: 9px; height: 9px; flex: none; transform: rotate(45deg); background: var(--gold); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ===================== Curved divider ===================== */
.curve { display: block; width: 100%; height: clamp(50px, 7vw, 100px); line-height: 0; }
.curve svg { display: block; width: 100%; height: 100%; }
.curve-services { background: var(--paper); margin-top: -1px; }
.curve-process { background: var(--navy-900); margin-top: -1px; }

/* ===================== 3D tilt cards ===================== */
.svc-card { transform-style: preserve-3d; will-change: transform; }
.svc-card .svc-glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.28), transparent 60%);
  transition: opacity .3s var(--ease); border-radius: var(--radius);
}
.svc-card.tilting .svc-glare { opacity: 1; }
.svc-card .svc-body, .svc-card .svc-media { transform: translateZ(0.01px); }

/* Magnetic button wrapper keeps transition smooth */
.btn.magnetic { will-change: transform; }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .pillars-card { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--line-dk); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .mobile-menu { display: flex; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: clamp(96px,16vw,128px); }
  .hero-visual { order: -1; }
  .about-grid, .project-grid, .contact-card { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .steps::before { display: none; }
  .about-stat { position: static; margin-top: 16px; max-width: none; }
  .contact-card { border-radius: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pillars-card { grid-template-columns: 1fr; }
  .pillar { border-right: 0 !important; border-bottom: 1px solid var(--line-dk); }
  .pillar:last-child { border-bottom: 0; }
  .svc-grid, .why-grid, .form-row, .gallery { grid-template-columns: 1fr; }
  .gallery { height: auto; }
  .gallery image-slot { height: 220px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .hero-cta .btn, .hero-cta { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
