:root {
  --bg: #f3eee6;
  --bg-soft: #fbf7f1;
  --surface: #fffdf9;
  --text: #1c2a33;
  --muted: #4f6470;
  --primary: #0f4a5f;
  --primary-strong: #0a3443;
  --accent: #d88f3f;
  --line: #d8ccc0;
  --shadow: 0 14px 35px rgba(28, 42, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(216, 143, 63, 0.18), transparent 44%),
    radial-gradient(circle at 96% 12%, rgba(15, 74, 95, 0.13), transparent 42%),
    var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section-pad {
  padding: 5.2rem 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(251, 247, 241, 0.9);
  border-bottom: 1px solid rgba(28, 42, 51, 0.12);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
}

.brand-text {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.15;
}

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

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 180ms ease;
}

.main-nav a:hover,
.site-footer a:hover,
a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.hero {
  padding-top: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  max-width: 1140px;
  align-items: stretch;
}

.hero-logo-stage {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  justify-self: stretch;
  display: flex;
  align-items: stretch;
}

.hero-stage-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
}

.hero-copy {
  text-align: left;
}

.hero-copy .lead {
  margin-left: 0;
  margin-right: 0;
}

.hero-copy h1 {
  margin-left: 0;
  margin-right: 0;
}

.hero-copy .hero-actions {
  justify-content: flex-start;
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 0.85rem;
  line-height: 1.2;
}

h1,
.section-title,
.about-panel h2,
.contact-copy h2 {
  font-family: "DM Serif Display", Georgia, serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 16ch;
}

.lead {
  max-width: 56ch;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  text-decoration: none;
  border-radius: 11px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
  box-shadow: 0 8px 22px rgba(15, 74, 95, 0.25);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.hero-card,
.card,
.about-panel,
.about-quote,
.contact-form,
.timeline-step {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.cards-grid,
.timeline {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.3rem;
}

.card p,
.timeline-step p,
.contact-copy p,
.about-panel p {
  color: var(--muted);
}

.about {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.about-panel,
.about-quote {
  padding: 1.5rem;
}

.about-quote {
  display: grid;
  height: 100%;
  min-height: 360px;
  grid-template-rows: 1fr auto;
  align-content: start;
  gap: 0.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 241, 0.96));
}

.quote-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 700;
}

.quote-context {
  margin: 0;
  color: var(--muted);
}

.quote-rotator {
  transition: opacity 260ms ease, transform 260ms ease;
}

.quote-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 230px;
  gap: 0.8rem;
  align-items: center;
}

.quote-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 74, 95, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.quote-arrow:hover,
.quote-arrow:focus-visible {
  background: rgba(15, 74, 95, 0.08);
  border-color: rgba(15, 74, 95, 0.32);
  transform: translateY(-1px);
  outline: none;
}

.quote-rotator.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.quote-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.quote-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 74, 95, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.quote-dot:hover,
.quote-dot:focus-visible {
  background: rgba(15, 74, 95, 0.5);
  transform: scale(1.08);
  outline: none;
}

.quote-dot.is-active {
  background: var(--primary);
}

.about-quote blockquote {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  color: var(--primary-strong);
}

.quote-author {
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.quote-author-subtitle {
  display: inline-block;
  margin-top: 0.18rem;
  font-size: 0.9em;
  font-weight: 500;
}

.timeline-step {
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
}

.timeline-step span {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-step::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(15, 74, 95, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.contact-form {
  padding: 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.78rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(15, 74, 95, 0.2);
  border-color: var(--primary);
}

.schedule {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.schedule-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.05rem;
}

.calendly-inline-widget {
  width: 100%;
  min-width: 320px;
  height: 860px;
}

.subpage-main {
  padding-top: 1.25rem;
}

.subpage-main .section-pad {
  padding-top: 1.5rem;
}

.payment-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.payment-card,
.payment-help {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.payment-help h2 {
  font-family: "DM Serif Display", Georgia, serif;
}

.payment-lead {
  max-width: 48ch;
}

.payment-card h1 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.invoice-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.invoice-form label {
  font-weight: 600;
}

.invoice-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.78rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.invoice-form input:focus {
  outline: 2px solid rgba(15, 74, 95, 0.2);
  border-color: var(--primary);
}

.paypal-button-container {
  margin-top: 1rem;
}

.payment-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.payment-status {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  font-weight: 600;
}

.payment-status.is-success {
  color: #0f7d36;
}

.payment-status.is-error {
  color: #a12e2e;
}

.site-footer {
  border-top: 1px solid rgba(28, 42, 51, 0.15);
  background: rgba(255, 255, 255, 0.66);
}

.footer-wrap {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 700ms ease;
}

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

.delay-1 {
  transition-delay: 130ms;
}

.delay-2 {
  transition-delay: 220ms;
}

.delay-3 {
  transition-delay: 320ms;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .hero-logo-stage {
    order: -1;
    justify-self: center;
    width: min(100%, 520px);
  }

  .hero-stage-logo {
    height: auto;
    max-height: 230px;
  }

  .cards-grid,
  .about-grid,
  .timeline,
  .contact-grid,
  .payment-wrap {
    grid-template-columns: 1fr;
  }

  .about-quote {
    min-height: 320px;
  }

  .quote-carousel {
    min-height: 210px;
  }

  .main-nav {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem;
  }

  .main-nav a {
    padding: 0.3rem 0.15rem;
  }

  .menu-toggle {
    display: none;
  }

  .calendly-inline-widget {
    height: 760px;
  }

  .brand-text {
    max-width: 24ch;
    font-size: 0.96rem;
  }
}

@media (max-width: 640px) {
  .topbar .container {
    width: 96vw;
  }

  .nav-wrap {
    min-height: 70px;
    gap: 0.75rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    display: none;
  }

  .nav-wrap {
    min-height: auto;
    padding: 0.45rem 0.15rem 0.1rem;
    align-items: center;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.2rem;
  }

  .main-nav a {
    font-size: 0.78rem;
    padding: 0.18rem 0.08rem;
    white-space: nowrap;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .hero.section-pad {
    padding-top: 0;
  }

  .hero {
    padding-top: 0;
  }

  .hero-grid {
    gap: 1.1rem;
  }

  .hero-logo-stage {
    border-radius: 0;
    padding: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero-stage-logo {
    width: 100vw;
    max-height: none;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 18ch;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-copy .lead,
  .hero-copy h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .hero-actions {
    order: -1;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
  }

  .calendly-inline-widget {
    height: 700px;
  }
}

@media (max-width: 420px) {
  .topbar .container {
    width: 98vw;
  }

  .container {
    width: min(1120px, 94vw);
  }

  .section-pad {
    padding: 3.5rem 0;
  }

  .main-nav {
    gap: 0.12rem;
  }

  .main-nav a {
    font-size: 0.7rem;
    padding: 0.14rem 0.04rem;
  }

  .card,
  .about-panel,
  .about-quote,
  .contact-form,
  .timeline-step {
    padding: 1.05rem;
    border-radius: 14px;
  }

  .about-quote {
    min-height: 300px;
  }

  .quote-carousel {
    min-height: 190px;
  }
}
