:root {
  --navy: #0a173a;
  --navy-700: #142555;
  --navy-900: #050d25;
  --green: #005b2b;
  --green-600: #00763a;
  --ink: #1a1f2c;
  --body: #4b4f58;
  --muted: #6b7280;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-muted: #f6f7f9;
  --bg-cream: #f4f1ea;
  --white: #ffffff;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 23, 58, .06), 0 2px 8px rgba(10, 23, 58, .04);
  --shadow-md: 0 8px 24px rgba(10, 23, 58, .10), 0 2px 6px rgba(10, 23, 58, .06);

  --container: 1180px;
  --pad: clamp(1rem, 3vw, 2rem);

  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 5vw + .5rem, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2.5vw + .75rem, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 23, 58, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: .75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  color: #fff;
}
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  letter-spacing: .02em;
}
.brand-sub {
  font-size: .7rem; color: rgba(255, 255, 255, .6);
  text-transform: uppercase; letter-spacing: .18em; margin-top: 4px;
}
.site-header nav { margin-left: auto; }
.nav-list {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-list a:hover { color: #fff; border-bottom-color: var(--green-600); }
.nav-cta { padding-inline: 1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-600); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(0, 118, 58, .18), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(0, 91, 43, .2), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero-copy { max-width: 36rem; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal; color: #fff;
  position: relative; display: inline-block;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em;
  height: 6px; background: var(--green); border-radius: 3px;
}
.hero .lead {
  font-size: 1.15rem; color: rgba(255, 255, 255, .88);
  max-width: 52ch; margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
}
.hero .eyebrow { color: #9ad9b5; }

.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.hero-media::before {
  content: ""; position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero-media-frame {
  position: relative; z-index: 1;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 10px 20px rgba(0, 0, 0, .2);
}
.hero-media-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}

.btn-primary-on-dark {
  background: #fff; color: var(--navy);
}
.btn-primary-on-dark:hover { background: #e8eeff; color: var(--navy); }

/* ===== Sections ===== */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-muted { background: var(--bg-muted); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head .section-sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; background: var(--bg-muted);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.prose h2 { margin-bottom: 1rem; }
.prose p { max-width: 56ch; }

/* ===== Services ===== */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.service {
  background: var(--white); padding: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.service::before {
  content: ""; position: absolute; left: 1.75rem; top: 1.75rem;
  width: 28px; height: 3px; background: var(--green); border-radius: 2px;
}
.service h3 { margin-top: 1.25rem; color: var(--navy); }
.service p { margin: 0; color: var(--body); }
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* ===== Contact ===== */
.contact-card .contact-list {
  margin: 1.5rem 0 2rem; padding: 0;
  display: grid; gap: 1rem;
}
.contact-list div {
  display: grid; grid-template-columns: 110px 1fr; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.contact-list div:last-child { border-bottom: none; }
.contact-list dt {
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.contact-list dd { margin: 0; color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900); color: rgba(255, 255, 255, .75);
  padding-block: 4rem 1.5rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer h4 {
  color: #fff; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .14em; margin-bottom: 1rem;
}
.footer-logo { width: 56px; height: 56px; margin-bottom: 1rem; }
.footer-tag { max-width: 34ch; color: rgba(255, 255, 255, .7); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(255, 255, 255, .55);
}
.credit {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-size: .78rem; letter-spacing: .04em; color: rgba(255, 255, 255, .45);
}
.credit a { display: inline-flex; align-items: center; }
.credit img {
  height: 30px; width: auto;
  opacity: .75;
  transition: opacity .15s;
}
.credit a:hover img { opacity: 1; }

/* ===== WhatsApp floating button ===== */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
  z-index: 60;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, .5);
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-list { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 .media-frame { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 4rem 3.5rem;
  }
  .hero-media { justify-self: center; max-width: 340px; }
  .hero-media::before { inset: 12px -12px -12px 12px; }
  .contact-list div { grid-template-columns: 1fr; gap: .15rem; padding: .6rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
