/* ==========================================================================
   The Kingdom Wife Blueprint — Phase 1 stylesheet
   Visual system mirrors the book interior typography (Playfair / Cinzel /
   Cormorant Garamond / Montserrat) translated for a luxury feminine web brand.
   ========================================================================== */

:root {
  --ivory: #faf7f0;
  --cream: #f3ede0;
  --cream-deep: #ece4d2;
  --blush: #e8d5d0;
  --blush-soft: #f2e2dd;
  --sage: #a8b5a0;
  --sage-deep: #8a9982;
  --charcoal: #2a2a2a;
  --charcoal-soft: #4a4a4a;
  --gray-mid: #7a7770;
  --gray-line: rgba(42, 42, 42, 0.12);
  --gold: #b8985a;
  --gold-soft: #d4be8c;

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-stage:   "Cinzel", "Playfair Display", Georgia, serif;
  --font-body:    "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui:      "Montserrat", "Lato", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-soft: 0 20px 60px -30px rgba(42, 42, 42, 0.18);
  --shadow-lift: 0 30px 80px -40px rgba(42, 42, 42, 0.28);

  --max-w: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--charcoal); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.25em; max-width: 65ch; }

.eyebrow {
  font-family: var(--font-stage);
  font-size: .8rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.lead {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--charcoal-soft);
  line-height: 1.6;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--gray-mid);
  font-weight: 400;
}

/* ---------- Layout helpers ---------- */

.section {
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad-x);
  position: relative;
}

.section-narrow { max-width: 760px; margin: 0 auto; }
.container { max-width: var(--max-w); margin: 0 auto; }

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

.divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  position: relative;
}
.divider::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

.divider-left {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0 1.5rem;
}

/* Subtle blueprint grid backdrop (atmospheric, never industrial) */
.bg-blueprint {
  position: relative;
  overflow: hidden;
}
.bg-blueprint::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(42,42,42,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42,42,42,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}

.bg-cream { background: var(--cream); }
.bg-blush { background: linear-gradient(180deg, var(--blush-soft) 0%, var(--cream) 100%); }
.bg-sage  { background: linear-gradient(180deg, var(--ivory) 0%, #eef0e9 100%); }
.bg-charcoal { background: var(--charcoal); color: var(--cream); }
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3 { color: var(--cream); }
.bg-charcoal .eyebrow { color: var(--gold-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1.1rem 2.25rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-gold {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Site header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem var(--pad-x);
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-line);
  transition: padding .2s ease;
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header__brand {
  font-family: var(--font-stage);
  font-size: .85rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
}
.site-header__brand a { color: inherit; }
.site-header__nav {
  display: flex;
  gap: 2rem;
  font-family: var(--font-ui);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.site-header__nav a { color: var(--charcoal); }
.site-header__nav a:hover { color: var(--gold); }

@media (max-width: 760px) {
  .site-header__nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem var(--pad-x) 6rem;
  background:
    linear-gradient(180deg, rgba(250,247,240,.85) 0%, rgba(243,237,224,.95) 100%),
    radial-gradient(circle at 70% 30%, rgba(232,213,208,.5) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  font-size: 1.25rem;
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 30em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__book {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__book img {
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lift);
  border-radius: 2px;
  transform: perspective(1200px) rotateY(-6deg);
  transition: transform .6s ease;
}
.hero__book:hover img { transform: perspective(1200px) rotateY(0); }

.hero__book::after {
  content: "";
  position: absolute;
  bottom: -30px; left: 10%; right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(42,42,42,.2) 0%, transparent 70%);
  filter: blur(8px);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__book { order: -1; }
  .hero__book img { max-width: 240px; }
}

/* ---------- Book showcase ---------- */

.showcase {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
}
.showcase__cover img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: var(--shadow-lift);
  border-radius: 2px;
}
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; text-align: center; }
  .showcase .divider-left { margin-left: auto; margin-right: auto; }
}

/* ---------- Who This Is For ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 3rem auto 0;
}
.card {
  background: var(--ivory);
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.card__mark {
  font-family: var(--font-stage);
  font-size: .75rem;
  letter-spacing: .25em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.card p { margin: 0; font-style: italic; color: var(--charcoal-soft); }

/* ---------- The 5 stages ---------- */

.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-w);
  margin: 4rem auto 0;
  counter-reset: stage;
}
.stage {
  background: var(--ivory);
  padding: 3rem 1.75rem 2.5rem;
  text-align: center;
  border: 1px solid var(--gray-line);
  position: relative;
  counter-increment: stage;
  transition: all .3s ease;
}
.stage::before {
  content: "0" counter(stage);
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  opacity: .7;
}
.stage__label {
  font-family: var(--font-stage);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: block;
  margin-bottom: .75rem;
}
.stage__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  letter-spacing: .02em;
}
.stage__desc {
  font-size: 1.15rem;
  color: var(--gray-mid);
  line-height: 1.55;
  font-style: italic;
}
.stage:hover {
  background: var(--cream);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
}
.about__portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--blush-soft), var(--cream-deep));
  border: 1px solid var(--gray-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-stage);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gray-mid);
  position: relative;
}
.about__portrait::after {
  content: "";
  position: absolute; inset: 1rem;
  border: 1px solid var(--gold);
  opacity: .4;
  pointer-events: none;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 320px; margin: 0 auto; }
}

/* ---------- Testimonials placeholder ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 3rem auto 0;
}
.testimonial {
  padding: 2.5rem 2rem;
  background: var(--ivory);
  border-left: 2px solid var(--gold);
  font-style: italic;
  color: var(--gray-mid);
  position: relative;
}
.testimonial__placeholder {
  font-family: var(--font-stage);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-style: normal;
  display: block;
  margin-top: 1.25rem;
}

/* ---------- Featured endorsement ---------- */

.endorsement-row {
  max-width: var(--max-w);
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.featured-endorsement {
  padding: 3.5rem 2rem 2.5rem;
  background: var(--cream);
  border: 1px solid var(--gray-line);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.featured-endorsement::before,
.featured-endorsement::after {
  content: "";
  position: absolute;
  left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.featured-endorsement::before { top: 1.5rem; }
.featured-endorsement::after  { bottom: 1.5rem; }

.featured-endorsement__mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: .35;
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.featured-endorsement blockquote {
  margin: 2rem 0 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  line-height: 1.55;
  color: var(--charcoal);
  flex: 1 0 auto;
}

.featured-endorsement__attribution {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: center;
  margin-top: auto;
}
.featured-endorsement__name {
  font-family: var(--font-stage);
  font-size: .9rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.featured-endorsement__role {
  font-family: var(--font-ui);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--gray-mid);
  font-style: italic;
}

@media (max-width: 860px) {
  .endorsement-row {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 1.75rem;
  }
}

@media (max-width: 600px) {
  .featured-endorsement { padding: 3rem 1.5rem 2.25rem; }
}

/* ---------- Invitation ---------- */

.invitation {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.invitation__prayer {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--gold-soft);
  line-height: 1.3;
  margin: 2.5rem 0;
  display: block;
}

/* ---------- Email signup ---------- */

.signup {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.signup__form {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.signup__form input[type="email"],
.signup__form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--gray-line);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--charcoal);
  border-radius: 2px;
  transition: border-color .2s ease;
}
.signup__form input[type="email"]:focus,
.signup__form input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
}
.signup__form input[type="text"] {
  flex: 0 1 180px;
}
.signup__form .btn {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .signup__form { flex-direction: column; }
  .signup__form input,
  .signup__form .btn { width: 100%; flex: 1 1 auto; }
}
.signup__promise {
  font-family: var(--font-ui);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 1.5rem;
}

/* ---------- Future teaser ---------- */

.future {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 3rem auto 0;
}
.future__item {
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(212, 190, 140, .5);
  background: rgba(250, 247, 240, .4);
}
.future__item h4 {
  font-family: var(--font-display);
  color: var(--cream);
  margin-bottom: .5rem;
}
.future__item p {
  font-size: .9rem;
  color: rgba(243, 237, 224, .7);
  font-style: italic;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem var(--pad-x) 2.5rem;
  text-align: center;
}
.site-footer__brand {
  font-family: var(--font-stage);
  font-size: 1rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.site-footer__nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.site-footer__nav a { color: var(--gold-soft); }
.site-footer__nav a:hover { color: var(--ivory); }
.site-footer__fine {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: rgba(243, 237, 224, .5);
  letter-spacing: .05em;
  margin-top: 2rem;
}

/* ---------- Password toggle (pre-built for Phase 2 auth) ---------- */

.field-password { position: relative; }
.field-password input { padding-right: 3rem; }
.password-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .25rem;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover { color: var(--charcoal); }

/* ---------- Scroll cue ---------- */

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gray-mid);
  animation: cue 2.5s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Print niceties ---------- */
@media print {
  .site-header, .site-footer, .hero__cta, .signup__form { display: none; }
}
