:root {
  --paper: #fbf8f1;
  --linen: #f4eee3;
  --sage: #73846a;
  --sage-soft: #e8efe3;
  --whatsapp: #1f8f55;
  --moss: #2f4031;
  --ink: #263026;
  --rose: #c9a1a1;
  --clay: #a77962;
  --white: #fffdf8;
  --line: rgba(47, 64, 49, 0.16);
  --shadow: 0 20px 60px rgba(47, 64, 49, 0.13);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

img,
svg {
  display: block;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.98) 0%, rgba(251, 248, 241, 0.86) 45%, rgba(251, 248, 241, 0.26) 100%),
    url("assets/hero-money-du-pape.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(251, 248, 241, 0), var(--paper));
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 18px max(24px, calc((100vw - 1120px) / 2));
  color: var(--moss);
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 248, 241, 0.88);
  box-shadow: 0 10px 30px rgba(47, 64, 49, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(47, 64, 49, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, rgba(255, 255, 255, 0.95), rgba(232, 239, 227, 0.55) 70%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.32);
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 18px;
  left: 13px;
  bottom: -16px;
  background: rgba(47, 64, 49, 0.35);
  transform: rotate(-18deg);
  transform-origin: top;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: rgba(115, 132, 106, 0.12);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--moss);
  box-shadow: 0 12px 26px rgba(47, 64, 49, 0.2);
}

.nav-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.nav-links .nav-phone:hover {
  color: var(--white);
  background: #3f533f;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--moss);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 48px));
  padding-top: 25vh;
  margin-left: max(24px, calc((100vw - 1120px) / 2));
  padding-bottom: 140px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--moss);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: 4.7rem;
}

h2 {
  font-size: 3.1rem;
}

h3 {
  font-size: 1.55rem;
}

.hero-text {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(38, 48, 38, 0.78);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.button.primary {
  color: var(--white);
  background: var(--moss);
  box-shadow: 0 16px 32px rgba(47, 64, 49, 0.2);
}

.button.whatsapp {
  color: var(--white);
  background: var(--whatsapp);
  box-shadow: 0 16px 32px rgba(31, 143, 85, 0.2);
}

.button.secondary {
  color: var(--moss);
  background: rgba(255, 253, 248, 0.7);
  border-color: var(--line);
}

.hero-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.floating-pod {
  position: absolute;
  bottom: -80px;
  width: var(--pod-size);
  height: calc(var(--pod-size) * 1.15);
  border: 1px solid rgba(47, 64, 49, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 35%, rgba(255, 255, 255, 0.82), rgba(255, 253, 248, 0.44) 70%),
    rgba(255, 253, 248, 0.34);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.68);
  opacity: 0;
  transform: translateY(0) rotate(var(--pod-rotate));
  animation: pod-rise var(--pod-duration) linear var(--pod-delay) infinite;
}

.floating-pod::after {
  content: "";
  position: absolute;
  top: 14%;
  bottom: 16%;
  left: 50%;
  width: 1px;
  background: rgba(47, 64, 49, 0.12);
}

@keyframes pod-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--pod-rotate));
  }
  12% {
    opacity: 0.62;
  }
  72% {
    opacity: 0.44;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--pod-drift), -112vh, 0) rotate(calc(var(--pod-rotate) + 80deg));
  }
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.presentation {
  padding: 112px 0;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--sage-soft) 100%);
}

.section-heading {
  max-width: 620px;
}

.presentation-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

.presentation-copy {
  padding-top: 6px;
  color: rgba(38, 48, 38, 0.78);
  font-size: 1.02rem;
}

.presentation-copy p {
  margin: 0 0 20px;
}

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

.detail {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(47, 64, 49, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.66);
  box-shadow: 0 16px 42px rgba(47, 64, 49, 0.08);
}

.detail-number {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.detail p {
  margin: 16px 0 0;
  color: rgba(38, 48, 38, 0.72);
  font-size: 0.94rem;
}

.contact {
  position: relative;
  padding: 98px 0;
  background:
    linear-gradient(90deg, rgba(47, 64, 49, 0.94), rgba(47, 64, 49, 0.82)),
    url("assets/hero-money-du-pape.png") center / cover no-repeat;
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.contact h2,
.contact .eyebrow {
  color: var(--white);
}

.contact .eyebrow {
  opacity: 0.82;
}

.contact-copy {
  max-width: 620px;
}

.contact-copy p:last-child {
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.78);
}

.contact-actions {
  display: grid;
  gap: 14px;
  min-width: 330px;
}

.contact-panel {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.12);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease;
}

.contact-panel:hover {
  transform: translateY(-3px);
  background: rgba(255, 253, 248, 0.18);
}

.whatsapp-panel {
  border-color: rgba(31, 143, 85, 0.55);
  background: rgba(31, 143, 85, 0.2);
}

.whatsapp-panel:hover {
  background: rgba(31, 143, 85, 0.28);
}

.contact-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--moss);
  flex: 0 0 auto;
}

.whatsapp-panel .contact-icon {
  color: var(--whatsapp);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-panel strong,
.contact-panel small {
  display: block;
}

.contact-panel strong {
  font-size: 1.45rem;
  line-height: 1.2;
}

.contact-panel small {
  margin-top: 2px;
  color: rgba(255, 253, 248, 0.72);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  padding: 26px 24px;
  color: rgba(38, 48, 38, 0.68);
  background: var(--paper);
  text-align: center;
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 12px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 248, 241, 0.96);
    box-shadow: 0 22px 52px rgba(47, 64, 49, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-header.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    min-height: 44px;
  }

  .hero {
    min-height: 760px;
    background:
      linear-gradient(180deg, rgba(251, 248, 241, 0.98) 0%, rgba(251, 248, 241, 0.9) 52%, rgba(251, 248, 241, 0.42) 100%),
      url("assets/hero-money-du-pape.png") 66% center / cover no-repeat;
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-top: 140px;
    margin-left: 18px;
  }

  h1 {
    max-width: 11ch;
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .presentation {
    padding: 82px 0;
  }

  .section-inner {
    width: calc(100% - 36px);
  }

  .presentation-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .details-list {
    grid-template-columns: 1fr;
  }

  .detail {
    min-height: 0;
  }

  .detail-number {
    margin-bottom: 24px;
  }

  .contact-actions,
  .contact-panel {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.24rem;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .hero {
    min-height: 720px;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-text,
  .presentation-copy {
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }

  .contact-panel {
    align-items: flex-start;
  }

  .contact-panel strong {
    font-size: 1.18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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