:root {
  --navy: #001D4A;
  --navy-deep: #001433;
  --navy-soft: #0a2f6b;
  --orange: #F39200;
  --orange-hot: #ff9f0a;
  --orange-deep: #d67d00;
  --ink: #0f1b2d;
  --muted: #5a6a7e;
  --line: #d8e0ea;
  --surface: #f3f6fa;
  --white: #ffffff;
  --wa: #25D366;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 29, 74, .12);
  --font: "Manrope", sans-serif;
  --display: "Sora", sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
h1,h2,h3,h4 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
  color: var(--navy);
}
p { margin: 0 0 1rem; }

.container { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--orange); color: #000; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .6rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 2px solid transparent; border-radius: 999px;
  padding: .85rem 1.35rem; font-weight: 700; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #1a1000; }
.btn-primary:hover { background: var(--orange-hot); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.05); }

.text-link { color: var(--orange-deep); font-weight: 700; }
.pill {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--navy); background: rgba(243,146,0,.15);
  padding: .3rem .65rem; border-radius: 999px; margin-bottom: .6rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,29,74,.08);
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-logo { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav > a, .nav-dropdown-btn {
  font-weight: 600; color: var(--navy); background: none; border: 0; cursor: pointer; padding: .35rem 0;
}
.site-nav > a.is-active, .nav-dropdown-btn.is-active { color: var(--orange-deep); }
.nav-cta { display: flex; gap: .5rem; margin-left: .5rem; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + .7rem); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .5rem; display: none;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a { padding: .65rem .8rem; border-radius: 8px; font-weight: 600; color: var(--navy); }
.nav-dropdown-menu a:hover { background: var(--surface); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; align-items: end; color: #fff; overflow: hidden;
  background: var(--navy-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(243,146,0,.35), transparent 55%),
    linear-gradient(160deg, #001D4A 0%, #001433 45%, #0a234f 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: url("../img/hero-pattern.svg");
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 7rem 0 4.5rem;
  animation: rise .8s ease both;
}
.hero-brand { width: min(280px, 70vw); margin-bottom: 1.5rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
.hero h1, .page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch; }
.hero-lead { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(243,146,0,.28), transparent 50%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 4.5rem 0 3.2rem;
}
.page-hero .hero-lead { margin-bottom: 0; }
.page-hero-sm { padding: 3.5rem 0 2.6rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0;
}
.trust-item { display: grid; gap: .15rem; }
.trust-item strong { font-family: var(--display); color: var(--navy); font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: .92rem; }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 2rem; max-width: 36rem; }
.section-head-row {
  max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap;
}

.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.service-block {
  padding: 1.5rem 1.4rem 1.35rem;
  border-top: 3px solid var(--orange);
  background: linear-gradient(180deg, #fff, var(--surface));
  transition: transform .25s ease;
}
.service-block:hover { transform: translateY(-4px); }
.service-icon {
  width: 48px; height: 48px; color: var(--orange);
  margin-bottom: 1rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-block h3 { font-size: 1.2rem; }
.service-block p { color: var(--muted); min-height: 4.2em; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project-card { overflow: hidden; }
.project-media {
  display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--navy);
  position: relative;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-body { padding: 1rem 0 0; }
.project-body h3 { font-size: 1.15rem; }
.project-body p { color: var(--muted); }

.before-after {
  position: relative; width: 100%; height: 100%; overflow: hidden;
}
.before-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-label {
  position: absolute; bottom: .7rem; z-index: 2;
  background: rgba(0,29,74,.82); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem .5rem; border-radius: 4px;
}
.ba-label-before { left: .7rem; }
.ba-label-after { right: .7rem; }
.before-after-lg { aspect-ratio: 16/10; border-radius: 12px; margin-bottom: 1.5rem; }
.detail-cover { width: 100%; border-radius: 12px; margin-bottom: 1.5rem; aspect-ratio: 16/10; object-fit: cover; }

.why-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.check-list { display: grid; gap: .75rem; margin: 1.25rem 0 1.5rem; }
.check-list li {
  position: relative; padding-left: 1.6rem; font-weight: 600; color: var(--navy);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: .85rem; height: .85rem;
  border-radius: 50%; background: var(--orange);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
}
.why-panel {
  display: grid; gap: 1rem;
  background: var(--navy); color: #fff; padding: 1.75rem; border-radius: var(--radius);
}
.why-stat strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--orange); }
.why-stat span { opacity: .85; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.blog-grid-lg { grid-template-columns: repeat(2, 1fr); }
.blog-card {
  padding: 1.35rem; background: #fff; border-left: 3px solid var(--orange);
  box-shadow: 0 1px 0 var(--line);
}
.blog-card h3 { font-size: 1.1rem; }
.blog-card p { color: var(--muted); }

.content-grid { display: grid; grid-template-columns: 1.4fr .75fr; gap: 2rem; align-items: start; }
.prose { color: var(--ink); }
.prose h2 { margin-top: 2rem; }
.prose p { color: var(--muted); }
.side-cta-box {
  background: var(--navy); color: #fff; padding: 1.5rem; border-radius: var(--radius);
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.side-cta-box h2 { color: #fff; font-size: 1.35rem; }
.side-cta-box p, .side-cta-box a { color: rgba(255,255,255,.88); }
.side-cta-box .btn { margin-top: .65rem; }
.side-cta-box .btn-outline-dark { border-color: rgba(255,255,255,.4); color: #fff; }
.side-cta-box .btn-outline-dark:hover { background: #fff; color: var(--navy); }

.process-list { display: grid; gap: 1rem; }
.process-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: #fff; padding: 1.1rem 1.2rem; border-radius: 12px;
}
.process-num {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #1a1000; font-weight: 800; font-family: var(--display);
}
.process-list p { color: var(--muted); margin: .25rem 0 0; }

.faq-list { display: grid; gap: .75rem; }
.faq-item {
  background: var(--surface); border-radius: 12px; padding: 1rem 1.15rem;
}
.faq-item summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq-item p { margin: .7rem 0 0; color: var(--muted); }

.pill-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-links a {
  padding: .7rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; color: var(--navy);
}
.pill-links a:hover { border-color: var(--orange); color: var(--orange-deep); }

.contact-form, .quote-form { display: grid; gap: .9rem; }
.contact-form label, .quote-form label { display: grid; gap: .35rem; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea,
.quote-form input, .quote-form select, .quote-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid rgba(243,146,0,.35); border-color: var(--orange);
}
.alert { padding: 1rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: #e8f8ee; color: #0f5c32; }
.alert-error { background: #fdecea; color: #8a1f11; }
.map-placeholder, .map-embed {
  margin-top: 1rem; min-height: 220px; border-radius: 12px; background: var(--surface);
  display: grid; place-items: center; color: var(--muted); overflow: hidden;
}
.map-embed iframe { width: 100%; height: 240px; border: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); margin-top: 2rem; }
.footer-cta-band {
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  color: #1a1000;
}
.footer-cta-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.75rem 0; flex-wrap: wrap;
}
.footer-cta-band h2 { color: #1a1000; font-size: clamp(1.3rem, 3vw, 1.8rem); max-width: 22ch; margin: 0; }
.footer-cta-band .eyebrow { color: #4a2e00; }
.footer-cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.5rem; padding: 3rem 0 2rem;
}
.footer-brand p { max-width: 28ch; opacity: .8; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer a:hover { color: var(--orange); }
.footer-contact li, .site-footer li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0 1.4rem; font-size: .9rem; }

/* Floating */
.float-wa, .float-call {
  position: fixed; z-index: 90; right: 1rem; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow);
}
.float-wa { bottom: 1rem; background: var(--wa); }
.float-call { bottom: 4.6rem; background: var(--navy); }
.scroll-cta {
  position: fixed; z-index: 90; left: 50%; bottom: 1rem; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 999px; padding: .45rem .5rem .45rem 1rem;
  display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--navy);
}
.scroll-cta[hidden] { display: none; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,20,50,.55); }
.modal-panel {
  position: relative; width: min(440px, 100%); background: #fff; border-radius: 16px;
  padding: 1.5rem; box-shadow: var(--shadow); animation: rise .35s ease both;
}
.modal-close {
  position: absolute; top: .6rem; right: .8rem; border: 0; background: transparent;
  font-size: 1.6rem; cursor: pointer; color: var(--muted);
}
.modal-lead { color: var(--muted); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .service-block, .project-card, .blog-card {
    animation: rise .7s ease both;
  }
  .service-block:nth-child(2), .project-card:nth-child(2), .blog-card:nth-child(2) { animation-delay: .08s; }
  .service-block:nth-child(3), .project-card:nth-child(3), .blog-card:nth-child(3) { animation-delay: .16s; }
  .service-block:nth-child(4), .project-card:nth-child(4) { animation-delay: .24s; }
  .service-block:nth-child(5) { animation-delay: .32s; }
}

@media (max-width: 980px) {
  .service-grid, .project-grid, .blog-grid, .trust-grid, .footer-grid, .why-grid, .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-ghost-dark { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 1rem;
    border-bottom: 1px solid var(--line); display: none; gap: .35rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: 0; display: grid; padding-left: .5rem; }
  .nav-cta { margin: .5rem 0 0; flex-direction: column; }
  .hero { min-height: 86vh; align-items: center; }
  .hero-content { padding: 5.5rem 0 3rem; }
  .trust-grid, .service-grid, .project-grid, .blog-grid, .blog-grid-lg,
  .footer-grid, .why-grid, .content-grid { grid-template-columns: 1fr; }
  .scroll-cta { width: calc(100% - 2rem); justify-content: space-between; }
  .float-call { display: none; }
}
