/* ============================================
   Practical Headship — Design System
   ============================================ */

:root {
  --navy:   #1a2744;
  --navy-light: #253560;
  --gold:   #C9983A;
  --gold-light: #E8B84B;
  --cream:  #FAF8F4;
  --slate:  #4A5568;
  --slate-light: #718096;
  --white:  #FFFFFF;
  --border: #E2E0DC;
  --shadow: 0 2px 12px rgba(26,39,68,0.08);
  --shadow-md: 0 4px 24px rgba(26,39,68,0.12);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1160px;
  --section-pad: 80px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  color: var(--slate);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================
   Layout Utilities
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.8); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }

.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; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* ============================================
   Buttons
   ============================================ */

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

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,152,58,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ============================================
   Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(26,39,68,0.06);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.nav-logo span { color: var(--gold); }
.nav-logo:hover { color: var(--navy); }

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--navy);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background: var(--navy);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,152,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-content { color: var(--white); }
.hero-content .eyebrow { margin-bottom: 16px; }
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content .lead { color: rgba(255,255,255,0.8); margin-bottom: 36px; }

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

.hero-image {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}

/* ============================================
   Trust Bar
   ============================================ */

.trust-bar {
  background: var(--cream);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
}

.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ============================================
   Section Headers
   ============================================ */

.section-header { margin-bottom: 48px; }
.section-header .eyebrow { margin-bottom: 10px; }
.section-header p { margin-top: 12px; max-width: 580px; }
.section-header.text-center p { margin: 12px auto 0; }

/* ============================================
   Product Cards
   ============================================ */

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card-image {
  background: var(--cream);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.product-card-image img { width: 100%; height: 100%; object-fit: cover; }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-badge--course { background: var(--gold); }
.product-badge--membership { background: var(--navy-light); }

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.product-card-body p { font-size: 0.9rem; color: var(--slate); flex: 1; margin-bottom: 20px; }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.product-price .per { font-size: 0.8rem; font-weight: 400; color: var(--slate-light); font-family: var(--font-body); }

/* ============================================
   Blog Cards
   ============================================ */

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { box-shadow: var(--shadow); }

.blog-card-image {
  background: var(--cream);
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-image img { transform: scale(1.03); }

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.blog-meta {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.blog-card-body h3 { margin-bottom: 10px; }
.blog-card-body p { font-size: 0.9rem; flex: 1; margin-bottom: 16px; }

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.read-more:hover { color: var(--navy); }

/* ============================================
   Membership Banner
   ============================================ */

.membership-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.membership-banner h2 { color: var(--white); margin-bottom: 12px; }
.membership-banner p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

.membership-perks {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.membership-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.membership-perks li::before {
  content: '✓';
  background: var(--gold);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.membership-cta { flex-shrink: 0; text-align: center; }
.membership-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}
.membership-price .per { font-size: 1rem; font-weight: 400; opacity: 0.7; font-family: var(--font-body); }

/* ============================================
   Author / About Strip
   ============================================ */

.about-strip {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
  font-size: 0.8rem;
  text-align: center;
  flex-shrink: 0;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-content .eyebrow { margin-bottom: 10px; }
.about-content h2 { margin-bottom: 16px; }
.about-content p { margin-bottom: 12px; }

/* ============================================
   Email Signup
   ============================================ */

.signup-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate);
  background: var(--white);
  transition: border-color 0.2s;
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

.signup-form.centered { margin: 0 auto; }

/* ============================================
   Testimonials
   ============================================ */

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 20px;
}

.testimonial blockquote::before { content: '\201C'; }
.testimonial blockquote::after  { content: '\201D'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.testimonial-role { font-size: 0.8rem; color: var(--slate-light); }

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; display: block; }
.footer-brand .nav-logo { color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================
   Utility / Misc
   ============================================ */

.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 16px 0;
}

.divider.centered { margin: 16px auto; }

.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
  :root { --section-pad: 60px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-strip { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .membership-banner { grid-template-columns: 1fr; padding: 40px; }
  .membership-cta { text-align: left; }
}

@media (max-width: 640px) {
  :root { --section-pad: 48px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 48px; }
  .hero-actions { flex-direction: column; }
  .signup-form { flex-direction: column; }
  .membership-banner { padding: 32px 24px; }
  .trust-bar-inner { gap: 24px; }
}
