:root {
  --brand: #C05C72;
  --brand-dark: #9C3F56;
  --gold: #E0A458;
  --blush: #F6D3D3;
  --ink: #38222B;
  --ink-soft: #7A5F68;
  --bg: #FDF8F7;
  --card: #FFFFFF;
  --border: #F2E1E3;
  --nav-bg: rgba(253, 248, 247, 0.85);
  --tint: #F9EEEC;
  --glow: rgba(192, 92, 114, 0.35);
  --glow-strong: rgba(192, 92, 114, 0.45);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(156, 63, 86, 0.08);
  --shadow-hover: 0 16px 40px rgba(156, 63, 86, 0.16);
}

.ring-a { stroke: var(--brand); }
.ring-b { stroke: var(--gold); }

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

[id] {
  scroll-margin-top: 80px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
}

p {
  color: var(--ink-soft);
}

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

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-text span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.nav-links a:not(.btn):hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  box-shadow: 0 8px 20px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px var(--glow-strong);
}

.btn-ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
}

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

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.nav-mobile-actions {
  display: contents;
}

.nav-cta-mobile {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 24px 100px;
  text-align: center;
}

.hero-blob {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: linear-gradient(135deg, var(--gold), var(--brand));
  opacity: 0.18;
  border-radius: 50%;
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-dark);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

.hl {
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.12em;
}

.hl-yours {
  text-decoration-color: var(--brand);
}

.hl-ours {
  text-decoration-color: var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 20px auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-perks {
  list-style: none;
  display: flex;
  gap: 10px 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-byline {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-byline a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--blush);
  text-underline-offset: 0.15em;
}

.hero-byline a:hover {
  color: var(--brand);
}

/* How it works — timeline */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  opacity: 0.3;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--bg), var(--shadow);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-when {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-body p:last-child {
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .steps::before {
    top: 24px;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--brand), var(--gold));
  }

  .step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
  }

  .step-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-body {
    align-items: flex-start;
  }
}

.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.how-card h3 {
  font-size: 1.15rem;
}

.how-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* Why section */
.services {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}

.why-card span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.45;
}

/* main "why an agreement" cards — bigger, 2x2 */
.why-grid-main {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.why-grid-main .why-card {
  text-align: left;
  padding: 26px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}

.why-grid-main .why-card span {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.why-grid-main .why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.why-grid-main .why-card p {
  font-size: 0.92rem;
}

.reframe {
  max-width: 640px;
  margin: 44px auto 0;
  text-align: center;
  position: relative;
}

.reframe::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  margin: 0 auto 22px;
}

.reframe p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.group-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: 0.95rem;
}

.pkg-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 3px 0 0;
}

.why-lawyer {
  margin: 56px auto 0;
  max-width: 860px;
}

.why-lawyer h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.not-template {
  text-align: center;
  max-width: 620px;
  margin: 26px auto 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.wills-cta {
  text-align: center;
  margin-top: 44px;
}

.cta-note {
  font-size: 0.85rem;
  margin-top: 12px;
}

.cta-note a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}

.closing-cta {
  text-align: center;
}

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .why-grid, .why-grid-main { grid-template-columns: 1fr; }
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.modes {
  background: linear-gradient(180deg, rgba(224, 164, 88, 0.07), transparent);
}

.price-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.price-note {
  text-align: center;
  max-width: 720px;
  margin: 36px auto 0;
  font-size: 0.95rem;
}

.price-note a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}

/* Your lawyer */
.lawyer {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lawyer-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.lawyer-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff;
  font-weight: 800;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.lawyer-body h3 {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.lawyer-role {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.lawyer-bio {
  font-size: 0.98rem;
  margin: 0 0 16px;
}

.lawyer-creds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .lawyer-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 22px;
  }

  .lawyer-creds {
    justify-content: center;
  }
}

/* Booking */
.book {
  background: linear-gradient(180deg, rgba(192, 92, 114, 0.06), transparent);
}

.booking-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  overflow: hidden;
}

#cal-booking {
  width: 100%;
  min-height: 700px;
  overflow: auto;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  background: white;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */
.footer {
  background: var(--ink);
  color: white;
  text-align: center;
  padding: 48px 24px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-tag {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.footer-email {
  color: var(--gold);
  font-weight: 600;
}

.footer-phone {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
}

.footer-copy {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 18px;
}

.footer-copy strong {
  color: rgba(255,255,255,0.85);
}

/* Reveal animation — content only starts hidden when JS is confirmed running */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .modes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-cta {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-cta-mobile {
    display: inline-flex;
  }

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

@media (max-width: 640px) {
  .contact-grid, .modes-grid {
    grid-template-columns: 1fr;
  }

  .section-inner {
    padding: 60px 20px;
  }
}

/* ---------- package cards ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 34px 0 40px;
  align-items: stretch;
}
.pkg-grid-2 {
  grid-template-columns: 1fr 1fr;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.pkg-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pkg-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}
.pkg-tag {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 18px;
  min-height: 42px;
}
.pkg-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1;
  letter-spacing: -1px;
}
.pkg-unit {
  font-size: .82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 6px 0 14px;
}
.pkg-couple {
  margin-top: auto;
  background: var(--tint);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}
.pkg-featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-hover);
}
.pkg-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--brand), var(--gold));
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .pkg-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pkg-tag { min-height: 0; }
  .pkg-featured { order: -1; }
}
