:root {
  --navy: #071a33;
  --navy-soft: #0d2749;
  --gold: #c7a35d;
  --gold-bright: #e0c17b;
  --beige: #f5f1e9;
  --paper: #fffdf8;
  --ink: #152033;
  --muted: #647086;
  --line: rgba(14, 35, 64, 0.12);
  --shadow: 0 24px 80px rgba(7, 26, 51, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf8 0%, #f7f8fb 48%, #f5f1e9 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.84);
  border-bottom: 1px solid rgba(199, 163, 93, 0.18);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 11px;
  box-shadow: 0 12px 40px rgba(7, 26, 51, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper);
  background: var(--navy);
  border: 1px solid rgba(199, 163, 93, 0.38);
  border-radius: var(--radius);
  font-family: "Playfair Display", serif;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #25354f;
  font-size: 0.93rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width 180ms ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 14px 34px rgba(7, 26, 51, 0.22);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(199, 163, 93, 0.55);
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.section-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  min-height: calc(100vh - 76px);
  padding: 58px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #886c35;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5.4vw, 5.35rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

h3 {
  font-size: 1.08rem;
}

.hero-subtitle {
  max-width: 690px;
  margin: 22px 0 0;
  color: #4d5c72;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
}

.hero-actions,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.trust-grid span,
.document-grid span,
.why-item {
  border: 1px solid rgba(199, 163, 93, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(7, 26, 51, 0.06);
}

.trust-grid span {
  padding: 13px 14px;
  color: #2d3d58;
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-visual {
  min-height: 520px;
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(7, 26, 51, 0.96), rgba(18, 46, 83, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(224, 193, 123, 0.26), transparent 36%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(224, 193, 123, 0.26);
  border-radius: 14px;
  content: "";
}

.visual-orbit {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 520px;
  place-items: center;
}

.document-card {
  width: min(76%, 380px);
  min-height: 350px;
  padding: 32px;
  color: var(--navy);
  background: linear-gradient(180deg, #fffdf8, #f3ead9);
  border: 1px solid rgba(224, 193, 123, 0.62);
  border-radius: 12px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.3);
  animation: floatDocument 5.8s ease-in-out infinite;
}

.doc-header {
  display: flex;
  justify-content: space-between;
}

.doc-header span {
  width: 52px;
  height: 10px;
  border-radius: 999px;
  background: rgba(199, 163, 93, 0.35);
}

.doc-title {
  margin-top: 48px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 800;
}

.doc-line {
  width: 72%;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.13);
}

.doc-line.wide {
  width: 100%;
  margin-top: 34px;
}

.signature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 58px;
}

.pen-icon,
.seal {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 900;
}

.pen-icon {
  color: #fff;
  background: var(--navy);
}

.seal {
  color: var(--navy);
  border: 1px solid rgba(199, 163, 93, 0.55);
}

.floating-tile {
  position: absolute;
  padding: 12px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(224, 193, 123, 0.3);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
  font-weight: 900;
  animation: drift 6s ease-in-out infinite;
}

.courthouse {
  top: 19%;
  left: 12%;
}

.couple {
  right: 12%;
  top: 32%;
  animation-delay: 0.7s;
}

.badge {
  right: 18%;
  bottom: 19%;
  animation-delay: 1.3s;
}

.credibility-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  color: #fff;
  background: var(--navy);
  border-block: 1px solid rgba(224, 193, 123, 0.28);
}

.credibility-band span {
  padding: 23px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.split-cta,
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 58px 0;
}

.split-cta h2 {
  max-width: 760px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.final-cta p:not(.eyebrow),
.emotional-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

#services,
.documents-section,
.contact-section {
  padding: 78px 0;
}

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

.service-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(7, 26, 51, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(199, 163, 93, 0.5);
  box-shadow: 0 28px 70px rgba(7, 26, 51, 0.13);
}

.service-card p {
  color: var(--muted);
}

.icon-badge {
  display: inline-grid;
  min-width: 46px;
  height: 38px;
  place-items: center;
  margin-bottom: 22px;
  color: var(--navy);
  background: linear-gradient(180deg, #f2e4c7, #fff9ee);
  border: 1px solid rgba(199, 163, 93, 0.45);
  border-radius: var(--radius);
  font-size: 0.77rem;
  font-weight: 900;
}

.process-section,
.why-section,
.faq-section {
  padding: 86px 0;
  background: linear-gradient(180deg, rgba(7, 26, 51, 0.98), rgba(12, 36, 66, 0.96));
}

.process-section h2,
.process-section h3,
.why-section h2,
.why-section h3,
.faq-section h2 {
  color: #fff;
}

.process-section .section-heading p:not(.eyebrow),
.why-section .section-heading p:not(.eyebrow),
.faq-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline::before {
  position: absolute;
  top: 30px;
  left: 6%;
  right: 6%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.timeline-step {
  position: relative;
  padding: 26px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(224, 193, 123, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.timeline-step span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 32px;
  color: var(--navy);
  background: var(--gold-bright);
  border-radius: 50%;
  font-weight: 900;
  animation: pulseRing 2.6s ease-in-out infinite;
}

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

.document-grid span {
  padding: 17px 18px;
  font-weight: 800;
}

.disclaimer {
  margin-top: 24px;
  padding: 18px 20px;
  color: #5f574c;
  background: #fff8e8;
  border: 1px solid rgba(199, 163, 93, 0.35);
  border-radius: var(--radius);
}

.why-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 52px;
  align-items: start;
}

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

.why-item {
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 193, 123, 0.22);
}

.emotional-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
  padding: 84px 0;
}

.emotional-copy p {
  max-width: 640px;
}

.emotional-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8efe0, #ffffff);
  border: 1px solid rgba(199, 163, 93, 0.25);
  box-shadow: 0 20px 70px rgba(7, 26, 51, 0.1);
}

.arch-card {
  position: relative;
  width: min(82%, 430px);
  height: 300px;
  border-radius: 160px 160px 12px 12px;
  background: linear-gradient(160deg, var(--navy), #12355f);
  border: 1px solid rgba(224, 193, 123, 0.35);
  overflow: hidden;
}

.couple-shape {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 164px;
  height: 164px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 38%, #f2d8b7 0 20px, transparent 21px),
    radial-gradient(circle at 65% 38%, #f2d8b7 0 20px, transparent 21px),
    radial-gradient(ellipse at 50% 92%, #e0c17b 0 74px, transparent 75px);
}

.legal-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
}

.legal-panel span {
  padding: 9px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(224, 193, 123, 0.18);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
}

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

details {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(224, 193, 123, 0.22);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  padding: 18px;
  color: #fff;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.final-cta {
  display: block;
  margin-top: 72px;
  margin-bottom: 72px;
  padding: 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #173b67);
  border: 1px solid rgba(224, 193, 123, 0.28);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
}

.contact-meta {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  color: #39485f;
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(7, 26, 51, 0.1);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #25354f;
  font-size: 0.9rem;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #d8deea;
  border-radius: var(--radius);
  outline: none;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 163, 93, 0.13);
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 54px clamp(18px, 4vw, 48px) 92px;
  color: rgba(255, 255, 255, 0.72);
  background: #061426;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 8px;
}

.footer-disclaimer {
  width: min(var(--max), 100%);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  color: #fff;
  background: #16794f;
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(22, 121, 79, 0.34);
  font-weight: 900;
}

.mobile-bar {
  display: none;
}

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

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

@keyframes floatDocument {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(224, 193, 123, 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(224, 193, 123, 0);
  }
}

@media (max-width: 1060px) {
  .site-nav {
    gap: 14px;
    font-size: 0.85rem;
  }

  .card-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 58px;
  }

  .brand span:last-child {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 8px;
  }

  .hero,
  .why-layout,
  .emotional-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .visual-orbit {
    min-height: 430px;
  }

  .credibility-band,
  .document-grid,
  .faq-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-whatsapp {
    display: none;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--navy);
    border-top: 1px solid rgba(224, 193, 123, 0.25);
  }

  .mobile-bar a {
    padding: 14px 10px;
    color: #fff;
    text-align: center;
    font-weight: 900;
  }

  .mobile-bar a + a {
    background: #16794f;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero-actions,
  .contact-buttons {
    display: grid;
  }

  .trust-grid,
  .card-grid,
  .timeline,
  .why-list,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .document-card {
    width: 82%;
    min-height: 310px;
    padding: 24px;
  }

  .floating-tile {
    font-size: 0.74rem;
  }

  .final-cta {
    padding: 30px 22px;
  }

  .full {
    grid-column: auto;
  }
}

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

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