/* ============================================================
   Who Was Born On This Day? – Custom Stylesheet
   Palette: Deep navy + rich gold + warm cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ── RESET / BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #0d1b35;
  --navy-mid: #132347;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #fdf8ef;
  --text: #2a2e3b;
  --muted: #6c757d;
  --radius: 12px;
  --card-shadow: 0 8px 40px rgba(13, 27, 53, .18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  margin: 0;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.site-nav {
  background: #fff;
  border-bottom: 2px solid #e8e0cc;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: .75rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.site-nav .navbar-brand {
  font-family: 'Playfair Display', serif;
  color: var(--navy) !important;
  font-size: 1.35rem;
  letter-spacing: .02em;
  transform: translateY(-2px);
}

.site-nav .nav-link {
  color: var(--navy) !important;
  font-weight: 500;
  transition: color .2s;
}

.site-nav .nav-link:hover {
  color: var(--gold) !important;
}

/* Ensure Order Now button is vertically centred with nav links */
.site-nav .navbar-nav {
  align-items: center;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f5e 60%, #0a1525 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, .12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.hero-tagline span {
  color: var(--gold);
}

.hero-sub {
  color: rgba(255, 255, 255, .75);
  font-size: 1.12rem;
  font-weight: 400;
  max-width: 520px;
  margin-top: .75rem;
}

/* Floating book mockup */
.book-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  box-shadow: -12px 20px 60px rgba(0, 0, 0, .6), 6px 6px 0 var(--gold);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-16px) rotate(-2deg);
  }
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: .8rem 2.2rem;
  font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s, filter .2s;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, .45);
  filter: brightness(1.07);
  color: var(--navy);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── ORDER CARD ───────────────────────────────────────────── */
.order-section {
  background: linear-gradient(180deg, #f5eedd 0%, var(--cream) 100%);
  padding: 5rem 0;
}

.order-card {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(201, 168, 76, .3);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

.order-card h2 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.9rem;
}

.form-label {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}

.form-select,
.form-control {
  border: 1.5px solid #d0d8e8;
  border-radius: 10px;
  padding: .65rem 1rem;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .2);
  outline: none;
}

/* ── PRICE BADGE ──────────────────────────────────────────── */
.price-summary {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.price-summary .label {
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
}

.price-summary .amount {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.3rem;
}

.price-summary .total-label {
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  font-weight: 600;
}

.price-summary .total-amount {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.65rem;
}

.price-divider {
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin: .75rem 0;
}

/* ── DISPATCH BADGE ───────────────────────────────────────── */
.dispatch-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #e8f5e9;
  border: 1.5px solid #81c784;
  color: #2e7d32;
  border-radius: 50px;
  padding: .45rem 1rem;
  font-size: .9rem;
  font-weight: 600;
}

/* ── PREVIEW / FEATURES ───────────────────────────────────── */
.features-section {
  padding: 5rem 0;
  background: var(--navy);
}

.features-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2rem;
}

.features-section p {
  color: rgba(255, 255, 255, .75);
}

.preview-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.preview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.preview-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}

.preview-card:hover img {
  transform: scale(1.07);
}

.preview-card .caption {
  padding: .9rem 1.1rem;
  color: rgba(255, 255, 255, .8);
  font-size: .92rem;
}

/* Feature icons */
.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-item {
  color: rgba(255, 255, 255, .85);
}

.feature-item h5 {
  color: #fff;
  font-weight: 600;
}

/* ── TRUST BAR ────────────────────────────────────────────── */
.trust-bar {
  background: #f5eedd;
  border-top: 2px solid rgba(201, 168, 76, .3);
  border-bottom: 2px solid rgba(201, 168, 76, .3);
  padding: 1.5rem 0;
}

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

.trust-item .icon {
  font-size: 1.8rem;
}

.trust-item small {
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-top: .2rem;
  font-size: .82rem;
}

.trust-item strong {
  color: var(--navy);
  font-size: .96rem;
  display: block;
}

/* ── CHECKOUT PAGE ────────────────────────────────────────── */
.checkout-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f5e 100%);
  padding: 3.5rem 0 2.5rem;
  color: #fff;
}

.checkout-hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
}

.checkout-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.order-line:last-child {
  border-bottom: none;
}

.order-line .label {
  color: var(--muted);
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0;
  margin-top: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  border-top: 2px solid var(--navy);
}

#paypal-button-container {
  margin-top: 1.5rem;
}

/* ── SUCCESS / CANCEL ─────────────────────────────────────── */
.result-hero {
  background: linear-gradient(135deg, var(--navy), #1a2f5e);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.result-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 3rem;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.result-card h1 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 2.1rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: #080f1e;
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .footer-brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: .4rem;
}