:root {
  --bg: #f7f0ef;
  --bg-deep: #efe1df;
  --bg-warm: #f3e8e5;
  --text: #2c1e22;
  --text-muted: #6f5c61;
  --accent: #9e5f74;
  --accent-dark: #7f475a;
  --accent-soft: rgba(158, 95, 116, 0.12);
  --accent-gold: #c7a27b;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(76, 41, 52, 0.1);
  --shadow-soft: 0 8px 24px rgba(76, 41, 52, 0.06);
  --radius: 24px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --header-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, #fbf6f5 0%, var(--bg) 40%, #fcf8f7 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(251, 246, 245, 0.94);
  border-bottom: 1px solid rgba(44, 30, 34, 0.06);
}

@supports (backdrop-filter: blur(8px)) {
  .header {
    background: rgba(251, 246, 245, 0.82);
    backdrop-filter: blur(8px);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white) !important;
  box-shadow: 0 8px 24px rgba(158, 95, 116, 0.2);
}

.nav__cta:hover {
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 210;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 2rem);
  align-items: center;
}

.hero__copy {
  max-width: 700px;
}

.hero__label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  animation: fadeUp 0.8s ease both;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  animation: fadeUp 0.9s ease 0.1s both;
}

.hero__text {
  margin: 0 0 1.75rem;
  max-width: 560px;
  font-size: clamp(0.98rem, 2.5vw, 1.08rem);
  color: var(--text-muted);
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
  animation: fadeUp 0.9s ease 0.4s both;
}

.hero__meta span {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(158, 95, 116, 0.12);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hero__card {
  position: relative;
  padding: clamp(1.35rem, 4vw, 2rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(158, 95, 116, 0.12);
  box-shadow: var(--shadow);
  animation: fadeUp 1s ease 0.25s both, cardFloat 7s ease-in-out 1.2s infinite;
  will-change: transform;
}

.hero-note__label {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-note h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.1;
}

.hero-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-badge__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
}

.hero-badge__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(158, 95, 116, 0.35);
  animation: pulseRing 2.4s ease-out infinite;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
  will-change: transform, opacity;
}

.hero__glow--one {
  top: -80px;
  right: -60px;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: radial-gradient(circle, rgba(158, 95, 116, 0.28) 0%, rgba(158, 95, 116, 0) 68%);
  animation: glowDrift 10s ease-in-out infinite;
}

.hero__glow--two {
  bottom: -100px;
  left: -40px;
  width: min(340px, 60vw);
  height: min(340px, 60vw);
  background: radial-gradient(circle, rgba(199, 162, 123, 0.26) 0%, rgba(199, 162, 123, 0) 68%);
  animation: glowDrift 12s ease-in-out infinite reverse;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(158, 95, 116, 0.22);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(158, 95, 116, 0.16);
  color: var(--accent-dark);
}

.btn--large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

@media (hover: hover) {
  .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(158, 95, 116, 0.28);
  }

  .btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
  }
}

.btn:active {
  transform: scale(0.98);
}

/* Sections */

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.section__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
}

.section__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section__eyebrow--center,
.section__title--center {
  text-align: center;
}

.section__subtitle {
  margin: -0.25rem auto 2.5rem;
  max-width: 520px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* About */

.about {
  background: rgba(255, 255, 255, 0.88);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about__content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about__card {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-warm) 0%, #f8f1ef 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(158, 95, 116, 0.1);
}

.about__quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
}

/* Topics */

.topics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(158, 95, 116, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 500;
}

.topic-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (hover: hover) {
  .topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }
}

/* Process */

.process {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-deep) 100%);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(158, 95, 116, 0.1);
  box-shadow: var(--shadow-soft);
}

.process-step__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent);
}

.process-step h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 500;
}

.process-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Packages */

.packages__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.package-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(158, 95, 116, 0.1);
  box-shadow: var(--shadow-soft);
}

.package-card--featured {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(243, 232, 229, 0.95));
  border-color: rgba(158, 95, 116, 0.22);
}

.package-card__label {
  margin: 0;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.package-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.package-card p {
  margin: 0;
  color: var(--text-muted);
}

.package-card ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.package-card li + li {
  margin-top: 0.35rem;
}

.package-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Docs */

.docs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.doc-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(158, 95, 116, 0.1);
  box-shadow: var(--shadow-soft);
}

.doc-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 500;
}

.doc-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.doc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Assistant & Contact */

.assistant__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(158, 95, 116, 0.12);
  box-shadow: var(--shadow-soft);
}

.assistant__actions {
  text-align: center;
}

.assistant__note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact__inner {
  text-align: center;
  max-width: 560px;
}

.contact__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact__text {
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

.contact__note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Footer */

.footer {
  padding: 1.75rem 0 calc(1.75rem + var(--safe-bottom));
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer a:hover {
  color: var(--accent-dark);
}

/* Mobile sticky CTA */

.mobile-cta {
  display: none;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-child {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-child.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Motion */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes glowDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(0, 14px, 0) scale(1.05);
    opacity: 0.7;
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Tablet */

@media (max-width: 1024px) {
  .nav {
    gap: 1rem;
  }

  .nav a:not(.nav__cta) {
    font-size: 0.85rem;
  }

  .topics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */

@media (max-width: 768px) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .menu-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(44, 30, 34, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 160;
    width: min(320px, 88vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 1rem) 1.25rem 1.5rem;
    background: #fbf6f5;
    box-shadow: -12px 0 40px rgba(44, 30, 34, 0.12);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }

  .nav--open {
    transform: translate3d(0, 0, 0);
  }

  .nav a {
    padding: 0.95rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(44, 40, 37, 0.06);
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center;
    padding: 0.9rem 1rem;
  }

  .hero__inner,
  .about__grid,
  .assistant__inner,
  .process__steps,
  .packages__grid,
  .docs__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .contact__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn,
  .contact__actions .btn,
  .assistant__actions .btn {
    width: 100%;
  }

  .hero__card {
    animation: fadeUp 1s ease 0.25s both;
  }

  .about__card {
    order: -1;
  }

  .topics__grid {
    grid-template-columns: 1fr;
  }

  .assistant__actions {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .doc-card__actions {
    flex-direction: column;
  }

  .doc-card__actions .btn {
    width: 100%;
  }

  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem calc(0.65rem + var(--safe-bottom));
    background: rgba(251, 246, 245, 0.96);
    border-top: 1px solid rgba(158, 95, 116, 0.12);
    box-shadow: 0 -8px 30px rgba(44, 30, 34, 0.08);
  }

  .mobile-cta .btn {
    flex: 1;
    min-height: 44px;
    padding: 0.7rem 0.5rem;
    font-size: 0.82rem;
  }

  body {
    padding-bottom: calc(72px + var(--safe-bottom));
  }
}

@media (max-width: 380px) {
  .hero__meta span {
    font-size: 0.76rem;
  }

  .logo {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
