@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Prata&display=swap');

:root {
  --ink: #1b2320;
  --forest: #123028;
  --forest-deep: #0d211c;
  --paper: #f7f3ec;
  --paper-light: #fbf8f3;
  --gold: #b0793c;
  --gold-light: #e4c79a;
  --muted: #6b7a73;
  --line: rgba(18, 48, 40, 0.14);
  --shadow: 0 22px 70px rgba(13, 33, 28, 0.12);
  --serif: 'Prata', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper-light);
  color: var(--forest);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 800;
  width: 0;
  height: 3px;
  background: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, .94);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1280px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}
.brand { display: grid; line-height: 1; text-decoration: none; flex: 0 0 auto; }
.brand-name { font: 400 23px/1.1 var(--serif); letter-spacing: .035em; color: var(--forest); }
.brand-note { margin-top: 5px; color: var(--gold); font-size: 8px; letter-spacing: .25em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 28px); flex: 1; }
.main-nav a {
  color: #22322c;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--gold); }
.header-phone { color: var(--forest); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  background: var(--forest);
  color: var(--paper-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { border-color: var(--gold); background: var(--gold); color: #fff; transform: translateY(-1px); }
.button-gold { border-color: var(--gold-light); background: var(--gold-light); color: var(--forest-deep); }
.button-ghost { border-color: rgba(251,248,243,.55); background: transparent; color: var(--paper-light); }
.button-ghost:hover { border-color: var(--gold-light); background: transparent; color: var(--gold-light); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.breadcrumbs {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 7px; opacity: .42; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }

.hero {
  position: relative;
  width: min(1280px, calc(100% - 36px));
  min-height: clamp(480px, 72vh, 720px);
  margin: 18px auto 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 3px;
  background: var(--forest);
  isolation: isolate;
}
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11,26,22,.44), rgba(11,26,22,.18) 34%, rgba(11,26,22,.88));
}
.hero:not(.has-image)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 82% 18%, rgba(228,199,154,.23), transparent 30%), linear-gradient(135deg, #173c32, #0d211c);
}
.hero-content { width: min(920px, 100%); padding: clamp(34px, 6vw, 72px); }
.eyebrow { display: block; margin-bottom: 18px; color: var(--gold-light); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
.hero h1 {
  max-width: 960px;
  margin: 0;
  color: var(--paper-light);
  font: 400 clamp(38px, 6vw, 76px)/1.08 var(--serif);
  text-wrap: balance;
}
.hero-lead { max-width: 720px; margin: 23px 0 0; color: rgba(251,248,243,.86); font-size: clamp(15px, 1.4vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 5vw, 62px); margin-top: 34px; padding-top: 23px; border-top: 1px solid rgba(251,248,243,.2); }
.hero-stat strong { display: block; color: var(--paper-light); font: 400 clamp(22px, 2.8vw, 32px)/1.1 var(--serif); }
.hero-stat span { color: rgba(251,248,243,.68); font-size: 11px; letter-spacing: .07em; }

.article-shell {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(54px, 8vw, 108px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(220px, 1fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}
.article-content { min-width: 0; }
.article-content > :first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 {
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
}
.article-content h2 { margin: clamp(54px, 7vw, 82px) 0 22px; font-size: clamp(29px, 4vw, 48px); }
.article-content h3 { margin: 42px 0 15px; font-size: clamp(23px, 3vw, 32px); }
.article-content h4 { margin: 32px 0 12px; font-size: 21px; }
.article-content p { margin: 0 0 1.35em; }
.article-content ul, .article-content ol { margin: 0 0 1.7em; padding-left: 1.35em; }
.article-content li { margin: .48em 0; padding-left: .25em; }
.article-content li::marker { color: var(--gold); }
.article-content a { font-weight: 600; }
.article-content figure, .article-content > img, .article-content p > img {
  display: block;
  margin: clamp(30px, 5vw, 58px) 0;
}
.article-content figure { width: 100%; }
.article-content figure img, .article-content > img, .article-content p > img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.article-content figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.article-content blockquote {
  margin: 50px 0;
  padding: 4px 0 4px clamp(24px, 4vw, 42px);
  border-left: 2px solid var(--gold);
  color: var(--forest);
  font: 400 clamp(20px, 3vw, 29px)/1.5 var(--serif);
}
.article-content hr { margin: 58px 0; border: 0; border-top: 1px solid var(--line); }
.article-content table { width: 100%; border-collapse: collapse; margin: 34px 0 48px; background: var(--paper-light); font-size: 14px; }
.article-content th, .article-content td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { color: var(--forest); font-weight: 700; }
.article-content iframe { width: 100%; min-height: 440px; border: 0; }
.article-content details { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.article-content details:last-child { border-bottom: 1px solid var(--line); }
.article-content summary { color: var(--forest); font-weight: 700; cursor: pointer; }
.article-content details > :last-child { margin-bottom: 0; }
.article-content .gallery, .article-content [data-gallery] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.article-content .gallery img, .article-content [data-gallery] img { height: 100%; min-height: 240px; object-fit: cover; margin: 0; }

.article-aside { position: sticky; top: 112px; display: grid; gap: 18px; }
.aside-card { padding: 26px; border: 1px solid var(--line); background: rgba(251,248,243,.62); }
.aside-card-dark { border-color: var(--forest); background: var(--forest); color: rgba(251,248,243,.8); }
.aside-kicker { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.aside-card h2 { margin: 10px 0 14px; color: var(--forest); font: 400 24px/1.25 var(--serif); }
.aside-card-dark h2 { color: var(--paper-light); }
.aside-card p { margin: 0 0 18px; font-size: 13px; }
.aside-links { display: grid; gap: 10px; }
.aside-links a { padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; }

.consultation {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(70px, 10vw, 132px) auto 0;
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  background: var(--forest-deep);
  color: rgba(251,248,243,.8);
}
.consultation h2 { margin: 10px 0 18px; color: var(--paper-light); font: 400 clamp(32px, 4.5vw, 54px)/1.18 var(--serif); }
.consultation p { max-width: 620px; margin: 0; }
.consultation-form { display: grid; gap: 12px; }
.consultation-form label { display: grid; gap: 5px; color: var(--gold-light); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.consultation-form input, .consultation-form textarea, .consultation-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(251,248,243,.24);
  border-radius: 0;
  background: rgba(251,248,243,.07);
  color: var(--paper-light);
  outline: none;
}
.consultation-form textarea { min-height: 90px; resize: vertical; }
.consultation-form input:focus, .consultation-form textarea:focus, .consultation-form select:focus { border-color: var(--gold-light); }
.consultation-form select option { color: var(--ink); }

.site-footer { margin-top: clamp(72px, 9vw, 128px); background: var(--forest-deep); color: rgba(239,231,218,.76); }
.footer-grid {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 82px) 0 42px;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: clamp(28px, 5vw, 70px);
}
.footer-brand .brand-name { color: var(--paper-light); font-size: 27px; }
.footer-brand p { max-width: 340px; margin: 16px 0 0; font-size: 13px; }
.footer-title { display: block; margin-bottom: 15px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: rgba(239,231,218,.76); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(239,231,218,.13);
  color: rgba(239,231,218,.48);
  font-size: 12px;
}
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 450;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: 999px;
  background: #1f8f5f;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.whatsapp-float:hover { background: #16744c; color: #fff; }
.whatsapp-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.15); }

.error-page { width: min(720px, calc(100% - 36px)); margin: 12vh auto; text-align: center; }
.error-page strong { color: var(--gold); font: 400 92px/1 var(--serif); }
.error-page h1 { color: var(--forest); font: 400 clamp(34px, 6vw, 58px)/1.2 var(--serif); }

@media (max-width: 1080px) {
  .header-phone { display: none; }
  .main-nav { gap: 16px; }
  .article-shell { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; margin-left: auto; }
  .header-inner > .button { display: none; }
  .main-nav {
    position: fixed;
    inset: 76px 0 auto;
    max-height: calc(100vh - 76px);
    padding: 28px 24px 36px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    overflow: auto;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .main-nav a { font: 400 23px/1.35 var(--serif); }
  .menu-open .main-nav { display: flex; }
  .hero { min-height: 560px; }
  .consultation { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .header-inner, .breadcrumbs, .hero, .article-shell, .consultation, .footer-grid, .footer-bottom { width: min(100% - 24px, 1280px); }
  .header-inner { min-height: 68px; }
  .main-nav { inset: 68px 0 auto; max-height: calc(100vh - 68px); }
  .hero { min-height: 520px; }
  .hero-content { padding: 30px 22px; }
  .hero-actions .button { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { margin-top: 48px; }
  .article-content h2 { margin-top: 50px; }
  .article-content iframe { min-height: 240px; }
  .article-aside { grid-template-columns: 1fr; }
  .consultation { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float span:last-child { display: none; }
  .whatsapp-float { width: 54px; height: 54px; justify-content: center; padding: 0; }
}

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