:root {
  --navy: #0b1f33;
  --navy-2: #12304d;
  --navy-3: #1b4269;
  --accent: #f5b301;
  --accent-dark: #d99a00;
  --text: #1d2733;
  --muted: #5b6b7c;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Montserrat', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.icon-xl { width: 56px; height: 56px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .95rem; transition: .2s; font-family: inherit; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.topbar { background: #071624; font-size: .82rem; color: #b8c6d6; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar a { color: #b8c6d6; text-decoration: none; margin-left: 1.25rem; }
.topbar a:hover { color: var(--accent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { height: 64px; width: auto; }
.site-footer .brand img { height: 110px; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--navy); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .02em; }
.brand-text small { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: #b8c6d6; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a:not(.btn) { color: #dbe5ef; text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--accent); }
.nav-cta { margin-left: .5rem; padding: .6rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; color: #fff; padding: clamp(5rem, 12vw, 9rem) 0; overflow: hidden; background: var(--navy); }
/* Background photo slowly zooms out (Ken Burns) */
.hero::before { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(11,31,51,.95) 30%, rgba(11,31,51,.6)),
    var(--hero-img, linear-gradient(135deg, var(--navy-2), var(--navy-3)));
  background-size: cover; background-position: center;
  animation: hero-zoom 14s ease-out both; }
/* Grid overlay drifts slowly */
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000);
  animation: grid-drift 20s linear infinite; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }

/* Entrance: eyebrow line grows, title words rise in one by one, then text and buttons */
.hero-eyebrow { display: inline-flex; align-items: center; gap: .8rem; animation: fade-up .7s .1s ease-out both; }
.hero-eyebrow::before { content: ''; height: 2px; width: 40px; background: var(--accent); transform-origin: left; animation: line-grow .8s .2s ease-out both; }
.hero h1 .word { display: inline-block; animation: word-in .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.35s + var(--i) * .09s); }
.hero .lead { animation: fade-up .8s 1.1s ease-out both; }
.hero-actions { animation: fade-up .8s 1.35s ease-out both; }
.hero-actions .btn-accent { animation: glow 2.6s 2.4s ease-in-out infinite; }

@keyframes hero-zoom { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes grid-drift { to { background-position: 48px 48px; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.6em) rotate(2deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,179,1,.55); } 50% { box-shadow: 0 0 0 10px rgba(245,179,1,0); } }

/* Inner page banners: gentle fade-up */
.page-hero h1, .page-hero .lead, .page-hero .crumbs { animation: fade-up .7s ease-out both; }
.page-hero h1 { animation-delay: .1s; }
.page-hero .lead { animation-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  .hero *, .hero::before, .hero::after, .page-hero * { animation: none !important; }
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #cfdbe7; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .6rem; }
.eyebrow-light { color: var(--accent); }

.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 3.5rem 0 3rem; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lead { color: #cfdbe7; max-width: 640px; margin: 0; }
.crumbs { font-size: .85rem; color: #9fb3c8; margin-bottom: .6rem; }
.crumbs a { color: #9fb3c8; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Stats */
.stats-band { background: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid rgba(11,31,51,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .9rem; font-weight: 600; color: var(--navy-2); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #cfdbe7; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.prose p { color: inherit; }
.prose { margin-bottom: 1.5rem; }
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 200px; color: rgba(245,179,1,.85);
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); position: relative; }
.placeholder::before { 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: 28px 28px; }
.placeholder svg { position: relative; }
.placeholder-tall { aspect-ratio: 4/3; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.service-card, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card p { color: var(--muted); margin: 0; }
.service-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(245,179,1,.15); color: var(--accent-dark); margin-bottom: 1rem; flex: none; }
.step-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--accent); margin-bottom: .5rem; }

.project-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: .25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.project-card:hover .project-media img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.badge-live { background: var(--accent); color: var(--navy); }
.project-body { padding: 1.2rem 1.4rem 1.4rem; }
.project-body h3 { margin-bottom: .3rem; }
.project-body p { margin: 0; font-size: .92rem; }
.project-body .eyebrow { margin-bottom: .3rem; font-size: .72rem; }

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.client-grid-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.client-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; min-height: 140px; padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); transition: .25s; }
.client-tile:hover { box-shadow: var(--shadow); border-color: transparent; }
.client-tile img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .25s; }
.client-tile:hover img { filter: none; opacity: 1; }
.client-initials { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--accent); font-family: var(--font-head); font-weight: 700; }
.client-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }

.service-list { display: grid; gap: 2rem; }
.service-row { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-row:nth-child(even) { grid-template-columns: 1fr 340px; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media img, .service-row-media .placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.service-row-body { padding: 2rem 2rem 2rem 0; }
.service-row:nth-child(even) .service-row-body { padding: 2rem 0 2rem 2rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem 1.5rem; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; }
.check-list .icon-sm { color: var(--accent-dark); margin-top: 5px; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.chip { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 500; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.project-detail { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.facts { position: sticky; top: 120px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; margin: 0 0 1.5rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #fff; padding: 3.5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { color: #cfdbe7; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list .service-icon { margin: 0; }
.info-list p { margin: 0; color: var(--muted); }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; }
.alert-success { background: #e8f7ee; color: #17663a; border: 1px solid #bfe6cd; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Footer */
.site-footer { background: #071624; color: #9fb3c8; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-tag { margin-top: 1rem; max-width: 320px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon-sm { margin-top: 5px; color: var(--accent); }
.site-footer a { color: #9fb3c8; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.socials { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .85rem; }
.whatsapp { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 60; }
.whatsapp svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: .5rem 16px 1.2rem; display: none; border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-cta { margin: 1rem 0 0; justify-content: center; }
  .split, .two-col, .project-detail, .contact-grid { grid-template-columns: 1fr; }
  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .service-row-body, .service-row:nth-child(even) .service-row-body { padding: 0 1.5rem 1.8rem; }
  .facts { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-right { display: none; }
  .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(11,31,51,.12); }
  .brand-text small { display: none; }
}
