:root {
  --navy: #0b2440;
  --navy-2: #07192c;
  --navy-3: #102f50;
  --gold: #d8b56b;
  --gold-2: #ead8ad;
  --cream: #f4efe5;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #17212d;
  --muted: #66717d;
  --line: rgba(11, 36, 64, 0.12);
  --shadow: 0 28px 70px rgba(7, 25, 44, 0.13);
  --radius: 26px;
  --container: 1180px;
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(216, 181, 107, 0.55);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--navy-2);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-cream {
  background: var(--cream);
}

.content-narrow {
  max-width: 780px;
}

.content-narrow-lg {
  max-width: 820px;
}

.section-heading-space {
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  flex: 0 0 34px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 720px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.btn {
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-2);
}

.btn-primary:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-3);
  transform: translateY(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(7, 25, 44, 0.06);
}

.navbar {
  position: relative;
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: 190px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
  font-size: 0.86rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.navbar.menu-open .menu-toggle span {
  background: transparent;
}

.navbar.menu-open .menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar.menu-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 95px 0 90px;
  background: var(--navy-2);
  color: var(--white);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(216, 181, 107, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.page-hero p {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.68);
}

.page-hero .eyebrow {
  margin-bottom: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 15px 40px rgba(7, 25, 44, 0.05);
}

.cta-band {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 56px 60px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 32px;
  background: var(--navy);
  color: var(--white);
}

.cta-band::after {
  content: "§";
  position: absolute;
  top: -60px;
  right: 24px;
  color: rgba(255, 255, 255, 0.035);
  font-family: Georgia, serif;
  font-size: 220px;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 700px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.cta-band p {
  max-width: 560px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.66);
}

.cta-band .actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.site-footer {
  padding: 70px 0 30px;
  background: var(--navy-2);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.8fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-brand img {
  width: 230px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand p {
  max-width: 470px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-title {
  margin-bottom: 18px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
}

.whatsapp {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1200;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.3);
  transition: transform 0.25s ease;
}

.whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
}

.whatsapp svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 18px;
  }

  .nav-cta .btn {
    padding-inline: 18px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 76px;
  }

  .section {
    padding: 76px 0;
  }

  .section-sm {
    padding: 54px 0;
  }

  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .brand img {
    width: 164px;
    height: 54px;
  }

  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar.menu-open .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: -18px;
    right: -18px;
    display: flex;
    max-height: calc(100dvh - var(--header-h));
    padding: 18px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 22px 36px rgba(7, 25, 44, 0.1);
  }

  .navbar.menu-open .nav-links a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(11, 36, 64, 0.07);
  }

  .navbar.menu-open .nav-links a::after {
    display: none;
  }

  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .footer-grid {
    gap: 42px;
  }

  .cta-band {
    padding: 42px 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .page-hero {
    padding: 66px 0 64px;
  }

  .page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.25rem);
  }

  .cta-band {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .cta-band .actions,
  .cta-band .actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .whatsapp {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .brand img {
    width: 148px;
  }

  .btn {
    width: 100%;
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
