@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --midnight: #111111;
  --charcoal: #2C2C2C;
  --ember: #C4571A;
  --gold: #D4A843;
  --clay: #8B5E3C;
  --cream: #F8F4EE;
  --parchment: #EDE6D9;
  --fog: #9A9490;
  --white: #FDFBF8;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */

.display-1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  line-height: 1.2;
}

.display-strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ember);
}

.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  line-height: 1.75;
  color: var(--charcoal);
}

.body-text em, .body-text i {
  font-family: var(--font-display);
  font-style: italic;
}

.label-sm {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.label-xs {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--ember);
  color: var(--white);
}

.btn-primary:hover {
  background: #a84a16;
}

.btn-secondary {
  background: transparent;
  color: var(--midnight);
  border: 1.5px solid var(--midnight);
}

.btn-secondary:hover {
  background: var(--cream);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 300;
}

.btn-outline-light:hover {
  border-color: var(--cream);
  background: rgba(255,255,255,0.05);
}

.btn-secondary-ember {
  background: transparent;
  color: var(--ember);
  border: 1.5px solid var(--ember);
}

.btn-secondary-ember:hover {
  background: var(--ember);
  color: var(--white);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--parchment);
}

.site-header.dark {
  background: var(--midnight);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-link svg {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-text strong {
  font-weight: 600;
  color: var(--ember);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  background: var(--cream);
  color: var(--ember);
}

.nav-links a.active {
  color: var(--ember);
}

.dark .nav-links a {
  color: var(--fog);
}

.dark .nav-links a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
}

.dark .nav-links a.active {
  color: var(--ember);
}

.nav-links .btn {
  margin-left: 0.5rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
}

.dark .hamburger { color: var(--cream); }

.hamburger svg { width: 24px; height: 24px; }

/* ── Footer ── */

.site-footer {
  background: var(--midnight);
  color: var(--cream);
  padding: 3.5rem 1.25rem 2rem;
}

.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(253,251,248,0.7);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--ember);
}

.footer-col .contact-line {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(253,251,248,0.7);
  padding: 0.25rem 0;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--fog);
  letter-spacing: 0.08em;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fog);
}

.footer-logo strong {
  color: var(--ember);
  font-weight: 600;
}

/* ── Sections ── */

.section {
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}

.section .inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

.section-dark {
  background: var(--midnight);
  color: var(--cream);
}

.section-dark .section-label {
  color: var(--ember);
}

.section-dark .body-text {
  color: var(--fog);
}

.section-cream {
  background: var(--cream);
}

.section-parchment {
  background: var(--parchment);
}

/* ── Cards ── */

.card {
  background: var(--cream);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.card-dark:hover {
  background: rgba(255,255,255,0.06);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.card p, .card li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--charcoal);
}

.card-dark h3 { color: var(--ember); }
.card-dark p, .card-dark li { color: var(--fog); }

/* ── Hero (dark) ── */

.hero-dark {
  background: var(--midnight);
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero-dark .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-dark .hero-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

.hero-dark h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-dark h1 em {
  font-style: italic;
  color: var(--ember);
}

.hero-dark .hero-text {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--fog);
  margin-bottom: 2.25rem;
  max-width: 360px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Chat Widget ── */

.chat-widget {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-header {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 0.25rem;
}

.chat-msg {
  display: flex;
}

.chat-msg.sent { justify-content: flex-end; }
.chat-msg.received { justify-content: flex-start; }

.chat-bubble {
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  max-width: 78%;
}

.chat-msg.sent .chat-bubble {
  background: var(--charcoal);
}

.chat-msg.received .chat-bubble {
  background: rgba(196,87,26,0.15);
  border-left: 2px solid var(--ember);
}

.chat-bubble-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--cream);
  margin-bottom: 0.125rem;
}

.chat-bubble-sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  color: var(--fog);
}

.chat-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.chat-input-field {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--fog);
}

.chat-input-btn {
  width: 38px;
  height: 38px;
  background: var(--ember);
  border: none;
  border-radius: 4px;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Light Hero ── */

.hero-light {
  background: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
  text-align: center;
}

.hero-light .inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-light h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  color: var(--midnight);
  margin-bottom: 1rem;
}

.hero-light .hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--fog);
  max-width: 680px;
  margin: 0 auto;
}

/* ── Grids ── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.grid-auto-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* ── Badges / Chips ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.5rem 0.875rem;
  border-radius: 2px;
  background: rgba(196,87,26,0.08);
  color: var(--ember);
  border: 1px solid rgba(196,87,26,0.15);
}

.badge-check {
  background: rgba(196,87,26,0.06);
  border: 1px solid rgba(196,87,26,0.12);
  padding: 0.5rem 0.875rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--charcoal);
}

.badge-check::before {
  content: "✓ ";
  color: var(--ember);
  font-weight: 500;
}

.badge-pill {
  background: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--charcoal);
}

/* ── Steps ── */

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ember);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--cream);
  border: 1px solid var(--parchment);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.pricing-card.featured {
  background: var(--white);
  border-color: var(--ember);
  box-shadow: 0 4px 24px rgba(196,87,26,0.1);
  position: relative;
}

.pricing-card.featured::before {
  content: "Recommended";
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ember);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 2px;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--midnight);
  margin: 0.75rem 0;
}

.pricing-card .price-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--fog);
  margin-bottom: 1rem;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
}

.pricing-card li {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--charcoal);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ember);
}

/* ── Feature sub-pages ── */

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.feature-list li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--charcoal);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ember);
}

/* ── Form ── */

.form-card {
  background: var(--cream);
  border: 1px solid var(--parchment);
  border-radius: 4px;
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--midnight);
  background: var(--white);
  border: 1px solid var(--parchment);
  border-radius: 2px;
  transition: border-color 0.15s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ember);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.trust-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--fog);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* ── Back link ── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ember);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* ── Spacing utils ── */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-center { text-align: center; }
.text-ember { color: var(--ember); }
.text-fog { color: var(--fog); }
.text-midnight { color: var(--midnight); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-640 { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--parchment);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .dark .nav-links {
    background: var(--midnight);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

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

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav-links .btn {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .hamburger { display: block; }

  .hero-dark .inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-dark .hero-text { max-width: none; }

  .grid-3, .grid-2, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

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

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

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