/* ============================================================
   CoachingTuCorazon — style.css
   Palette: warm rose gold, cream, deep mahogany, soft blush
   Inspired by: the ladies gathering, golden faith, organic warmth
   ============================================================ */

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

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --cream:        #FDF6EE;
  --blush:        #F5E0D3;
  --rose:         #D4907A;
  --rose-dark:    #B5694F;
  --gold:         #C9944A;
  --gold-light:   #E8C07A;
  --mahogany:     #5C2D00;
  --mahogany-mid: #7B3F00;
  --brown-soft:   #A0522D;
  --text:         #3D1C00;
  --text-mid:     #6B3A22;
  --white:        #FFFFFF;
  --shadow-warm:  rgba(92,45,0,.12);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.3s ease;
  --max-w:        1140px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script:  'Dancing Script', cursive;
  --font-body:    'Nunito', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--rose-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

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

/* ── Layout Utilities ───────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt { background: var(--blush); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 40px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--mahogany);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }

.script-heading {
  font-family: var(--font-script);
  color: var(--rose-dark);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  display: block;
  margin-bottom: 8px;
}

p { margin-bottom: 1em; color: var(--text-mid); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose-dark);
  color: var(--white);
  border-color: var(--rose-dark);
  box-shadow: 0 4px 16px rgba(181,105,79,.35);
}
.btn-primary:hover {
  background: var(--mahogany-mid);
  border-color: var(--mahogany-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,105,79,.4);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,148,74,.35);
}
.btn-gold:hover {
  background: var(--mahogany-mid);
  border-color: var(--mahogany-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--rose-dark);
  border-color: var(--rose-dark);
}
.btn-outline:hover {
  background: var(--rose-dark);
  color: var(--white);
}

.btn-amazon {
  background: #FF9900;
  color: #111;
  border-color: #FF9900;
  font-size: 0.85rem;
}
.btn-amazon:hover {
  background: #e68a00;
  border-color: #e68a00;
  color: #111;
}

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,246,238,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,148,74,.25);
  padding: 14px 0;
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: 0 4px 20px var(--shadow-warm); }

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

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--mahogany);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--rose-dark); }

.nav-cta { margin-left: 8px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mahogany);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FDF0E5 0%, #F5E5D5 40%, #F0D8C5 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(212,144,122,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(201,148,74,.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative petals */
.hero::after {
  content: '✦';
  position: absolute;
  top: 15%;
  right: 8%;
  font-size: 5rem;
  color: rgba(201,148,74,.12);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-text { z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '—';
  color: var(--gold-light);
}

.hero h1 { margin-bottom: 16px; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: 36px;
  font-style: italic;
  font-family: var(--font-display);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-books {
  position: relative;
  display: flex;
  gap: -20px;
}

.book-cover {
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(92,45,0,.3), 0 4px 12px rgba(0,0,0,.15);
  transition: transform var(--transition);
}
.book-cover:first-child {
  transform: rotate(-4deg) translateY(10px);
  z-index: 2;
}
.book-cover:last-child {
  transform: rotate(3deg) translateX(-30px);
  z-index: 1;
}
.book-cover:first-child:hover { transform: rotate(-1deg) translateY(0) scale(1.03); z-index: 3; }
.book-cover:last-child:hover  { transform: rotate(1deg) translateX(-30px) scale(1.03); z-index: 3; }

/* ── Section Headings ───────────────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-header p { font-size: 1.05rem; max-width: 620px; margin: 0 auto; }

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 3px;
  margin: 16px auto 24px;
}

/* ── Book Cards ─────────────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-warm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(201,148,74,.15);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(92,45,0,.2);
}

.book-card-img {
  background: linear-gradient(135deg, #F5E8D8, #E8D0C0);
  padding: 36px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.book-card-img img {
  max-height: 240px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.book-card-body { padding: 28px; }
.book-card-body h3 { margin-bottom: 8px; font-size: 1.4rem; }
.book-card-body .price {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--rose-dark);
  font-weight: 600;
  margin: 12px 0;
}
.book-card-body .price small { font-size: 0.85rem; color: var(--text-mid); font-family: var(--font-body); font-weight: 400; }

.book-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--blush);
}

/* ── About Section ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(92,45,0,.25);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-photo-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--rose-dark);
  color: var(--white);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(181,105,79,.4);
  border: 3px solid var(--white);
}

.about-text blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--rose-dark);
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  line-height: 1.5;
}

.about-text ul {
  list-style: none;
  padding: 0;
}
.about-text ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text-mid);
}
.about-text ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

/* ── Husband's Book ─────────────────────────────────────────── */
.husband-section {
  background: linear-gradient(135deg, var(--mahogany) 0%, #3D1C00 100%);
  color: var(--cream);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.husband-section::before {
  content: '✦';
  position: absolute;
  top: 20px;
  right: 5%;
  font-size: 8rem;
  color: rgba(201,148,74,.08);
  pointer-events: none;
}

.husband-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: center;
}

.husband-inner h2 { color: var(--gold-light); font-size: 2.2rem; }
.husband-inner p   { color: rgba(253,246,238,.85); }

.husband-book-img {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.husband-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-light);
  margin: 16px 0 28px;
  line-height: 1.6;
}

/* ── Gallery / Ladies ───────────────────────────────────────── */
.gallery-section { background: var(--blush); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gallery-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-warm);
}

.gallery-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-img:hover img { transform: scale(1.04); }

.gallery-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}

/* ── Bakery Link ────────────────────────────────────────────── */
.bakery-banner {
  background: var(--cream);
  border: 2px solid rgba(201,148,74,.3);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.bakery-logo { max-width: 140px; }

.bakery-text h4 { margin-bottom: 6px; }
.bakery-text p  { margin: 0 0 16px; font-size: 0.95rem; }

/* ── Contact Section ────────────────────────────────────────── */
.contact-section { background: var(--blush); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 20px; }

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--rose-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}

.contact-method-body strong { display: block; color: var(--mahogany); }
.contact-method-body span   { font-size: 0.9rem; color: var(--text-mid); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mahogany-mid);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(201,148,74,.3);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(181,105,79,.15);
}

textarea { resize: vertical; min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Flash Messages ─────────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #4CAF50; }
.alert-error   { background: #FBE9E7; color: #B71C1C; border-left: 4px solid #EF5350; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--mahogany);
  color: rgba(253,246,238,.8);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,148,74,.2);
}

.footer-brand .nav-logo { color: var(--gold-light); font-size: 1.8rem; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; color: rgba(253,246,238,.65); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(253,246,238,.7); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(253,246,238,.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Modal (Stripe Checkout) ────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61,28,0,.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 72px rgba(0,0,0,.3);
  position: relative;
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--blush);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--mahogany);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--rose); color: var(--white); }

.modal h3 { margin-bottom: 6px; }
.modal .price-display {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--rose-dark);
  font-weight: 600;
  margin: 16px 0;
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #F5E0D3 0%, #EAD0BC 100%);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '✦';
  position: absolute;
  bottom: -20px;
  right: 5%;
  font-size: 6rem;
  color: rgba(201,148,74,.1);
}

/* ── Testimonial / Quote Cards ──────────────────────────────── */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 16px var(--shadow-warm);
  border-left: 4px solid var(--rose);
}
.quote-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-mid);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner         { grid-template-columns: 1fr; text-align: center; }
  .hero-visual        { order: -1; }
  .hero-sub           { margin: 0 auto 32px; }
  .hero-actions       { justify-content: center; }
  .book-cover         { width: 160px; }
  .about-grid         { grid-template-columns: 1fr; }
  .about-photo-wrap   { max-width: 340px; margin: 0 auto; }
  .husband-inner      { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .gallery-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section              { padding: 56px 0; }
  .nav-links            { display: none; flex-direction: column; gap: 12px; }
  .nav-links.open       { display: flex; position: absolute; top: 65px; left: 0; right: 0; background: var(--cream); padding: 20px 24px; border-bottom: 1px solid rgba(201,148,74,.2); box-shadow: 0 8px 20px var(--shadow-warm); }
  .nav-toggle           { display: flex; }
  .nav-inner            { position: relative; }
  .nav-cta              { display: none; }
  .books-grid           { grid-template-columns: 1fr; }
  .footer-grid          { grid-template-columns: 1fr; }
  .form-row             { grid-template-columns: 1fr; }
  .bakery-banner        { flex-direction: column; text-align: center; padding: 28px 24px; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp .7s ease forwards;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .25s; }
.delay-3 { animation-delay: .4s; }
.delay-4 { animation-delay: .55s; }

/* ── Stripe spinner ─────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin { to { transform: rotate(360deg); } }
