:root {
  --cream: #fbf3ec;
  --ivory: #fffaf5;
  --rose: #dcd5f8;
  --rose-deep: #6b5fa8;
  --plum: #2e1720;
  --plum-soft: #4a2c37;
  --gold: #c9a24c;
  --blush: #f1ddd2;
  --line: rgba(46, 23, 32, 0.12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* subtle grain overlay for warmth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

em {
  font-style: normal;
  color: var(--rose-deep);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 236, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo.small { font-size: 18px; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--plum);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--plum);
  color: var(--ivory);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
}

.hero-blob {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blush), var(--rose) 70%);
  opacity: 0.55;
  filter: blur(10px);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 18px;
}

.eyebrow.center { text-align: center; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 0 0 16px;
}

h2.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 640px; }

.hero-sub {
  font-size: 18px;
  color: var(--plum-soft);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-form, .cta-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  flex-wrap: wrap;
}

.hero-form input, .cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px; /* iOS Safari zooms in on focus for inputs under 16px */
  color: var(--plum);
}

.hero-form input:focus, .cta-form input:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
}

.hero-form button, .cta-form button {
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  background: var(--plum);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.hero-form button:hover, .cta-form button:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
}

.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--plum-soft);
  opacity: 0.75;
}

/* Quote strip */
.strip {
  background: var(--plum);
  padding: 56px 0;
}

.strip-inner p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--blush);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Pillars */
.pillars {
  padding: 110px 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.pillar-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(46, 23, 32, 0.25);
}

.pillar-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
}

.pillar-card p {
  font-size: 15px;
  color: var(--plum-soft);
  margin: 0;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--blush), var(--cream) 60%);
  padding: 100px 0 110px;
}

.cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.cta-inner p {
  color: var(--plum-soft);
  font-size: 17px;
  margin: 0 0 32px;
}

.cta-form {
  justify-content: center;
  margin: 0 auto;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  font-size: 13px;
  color: var(--plum-soft);
  margin: 0;
}

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

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 88px 0 72px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .hero-form, .cta-form { flex-direction: column; }
  .hero-form input, .cta-form input { min-width: 0; }
  .hero-form button, .cta-form button { width: 100%; }
  .pillar-card { padding: 30px 24px; }
}
