/* ---------- Tokens ---------- */
:root {
  --bg: #faf3ee;
  --bg-alt: #f4e6dd;
  --surface: #fffdfb;
  --ink: #4a3c38;
  --ink-soft: #7d6a63;
  --ink-faint: #a4938c;
  --accent: #a8604a;
  --accent-soft: #dba692;
  --accent-bg: #f6e3d8;
  --deep: #5c4640;
  --line: rgba(74, 60, 56, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px -32px rgba(74, 60, 56, 0.3);
  --container: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 12px; color: var(--ink-soft); }

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fffaf2;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 250, 242, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(168, 96, 74, 0.55);
}

.btn-primary:hover::after { left: 130%; }

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-nav { padding: 12px 22px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 238, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 26px;
  margin-right: auto;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .btn-nav { display: none; }
  .burger { display: flex; }
  .header-inner { justify-content: space-between; }

  .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 0 24px;
    border-bottom: 1px solid transparent;
    gap: 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
  }

  .nav.open {
    max-height: 320px;
    opacity: 1;
    padding: 20px 24px 28px;
    border-bottom-color: var(--line);
    pointer-events: auto;
  }
}

/* ---------- Hero ---------- */
.hero { padding-top: 64px; padding-bottom: 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-sub {
  max-width: 46ch;
  font-size: 1.08rem;
}

.hero-copy .btn { margin-top: 8px; }

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 11; }
}

/* ---------- Help / bento ---------- */
.help { background: var(--bg-alt); }

.help-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.help-card {
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.help-card h3 { margin-bottom: 8px; }
.help-card p { margin: 0; }

.help-card-photo {
  grid-row: span 2;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
}

.help-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.help-card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74, 60, 56, 0) 40%, rgba(74, 60, 56, 0.8) 100%);
}

.help-card-photo .help-card-text {
  position: relative;
  padding: 28px;
  color: #fffaf2;
}

.help-card-photo h3 { color: #fffaf2; }
.help-card-photo p { color: rgba(255, 250, 242, 0.85); }

.help-card-tint { display: flex; flex-direction: column; justify-content: center; }

.tint-a { background: var(--accent-bg); }
.tint-b { background: var(--surface); border: 1px solid var(--line); }
.tint-c { background: var(--accent); }
.tint-c h3, .tint-c p { color: #fffaf2; }

.tint-d { background: var(--surface); border: 1px solid var(--line); }

@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .help-card-photo { grid-row: auto; min-height: 280px; }
}

/* ---------- Process ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line);
}

.process-step { position: relative; }

.process-num {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .process-track { grid-template-columns: 1fr; gap: 32px; }
  .process-track::before { display: none; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-copy p { max-width: 58ch; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.price-card-accent {
  background: var(--deep);
  border-color: var(--deep);
}

.price-card-accent h3,
.price-card-accent .price-desc,
.price-card-accent .price-meta span:first-child {
  color: rgba(255, 250, 242, 0.82);
}

.price-card-accent .price-value { color: #fffaf2; }

.price-desc { min-height: 72px; }

.price-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.price-value { font-family: 'Unbounded', sans-serif; font-size: 1.1rem; color: var(--accent); }
.price-value em { display: block; font-family: 'Manrope', sans-serif; font-style: normal; font-size: 0.72rem; font-weight: 500; color: var(--ink-faint); margin-top: 2px; }

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

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-alt); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--line);
}

.review p {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.review cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-weight: 600;
}

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

/* ---------- CTA ---------- */
.cta {
  background: var(--deep);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta h2, .cta p { color: #fffaf2; }
.cta p { color: rgba(255, 250, 242, 0.75); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

.footer-note { width: 100%; opacity: 0.8; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(74, 60, 56, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal-backdrop[hidden] { display: none; }

.modal-backdrop.is-open { opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 32px 32px;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.modal-sub {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover { background: var(--accent-bg); }
.modal-close:active { transform: scale(0.92); }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.field input:invalid.touched,
.field input.has-error {
  border-color: #b3413a;
}

.field-error {
  min-height: 16px;
  font-size: 0.78rem;
  color: #b3413a;
}

.modal-submit { width: 100%; margin-top: 4px; }

.modal-success h3 { margin-bottom: 12px; }
.modal-success p { margin-bottom: 24px; }
.modal-success .btn { width: 100%; }

@media (max-width: 480px) {
  .modal { padding: 32px 22px 24px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .btn-primary::after { display: none; }
  .modal-backdrop, .modal { transition: none; }
}
