/* ============================================
   emsmentorship.com — Global Styles
   Navy / Teal / Gold Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-deep: #111D35;
  --teal: #2A7B88;
  --teal-light: #358E9C;
  --gold: #C9A84C;
  --gold-light: #D4B965;
  --cream: #FAF8F4;
  --warm-white: #FEFDFB;
  --light-bg: #F3F1EC;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
  --text-muted: #8A8A8A;
  --border: #E2DFD8;
}

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

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

body {
  font-family: 'Source Sans 3', Georgia, serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ---- Navigation ---- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 2px solid var(--gold);
  padding: 0.9rem 2rem;
}

nav .nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .nav-brand {
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav .nav-brand span {
  color: var(--gold);
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  opacity: 1;
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.2s;
}

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

.hero {
  background: var(--navy-deep);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(42, 123, 136, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 0.6rem;
  font-size: 3rem;
}

.hero .subtitle {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero p {
  color: rgba(250, 248, 244, 0.8);
  max-width: 620px;
  margin: 0 auto 1.2rem;
  font-size: 1.05rem;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 2rem auto;
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250, 248, 244, 0.4);
}

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

.btn--teal {
  background: var(--teal);
  color: var(--cream);
}

.btn--teal:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(42, 123, 136, 0.3);
}

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

/* ---- Two-book section ---- */

.two-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.book-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(27, 42, 74, 0.08);
}

.book-card .book-cover {
  width: 180px;
  height: 270px;
  background: var(--light-bg);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

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

.book-card h3 {
  margin-bottom: 0.8rem;
}

.book-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.book-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.2rem;
}

.tag--available {
  background: rgba(42, 123, 136, 0.1);
  color: var(--teal);
  border: 1px solid rgba(42, 123, 136, 0.2);
}

.tag--coming {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

/* ---- Blockquote / Endorsement ---- */

.endorsement {
  background: var(--light-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.endorsement blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  position: relative;
}

.endorsement blockquote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  position: absolute;
  top: -2rem;
  left: -0.5rem;
  line-height: 1;
  opacity: 0.4;
}

.endorsement .attribution {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.endorsement .attribution-title {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Email Signup ---- */

.signup {
  background: var(--navy-deep);
  padding: 4rem 2rem;
  text-align: center;
}

.signup h2 {
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.signup p {
  color: rgba(250, 248, 244, 0.7);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}

.signup-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid rgba(250, 248, 244, 0.15);
  background: rgba(250, 248, 244, 0.05);
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input[type="email"]::placeholder {
  color: rgba(250, 248, 244, 0.35);
}

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

.signup-form button {
  white-space: nowrap;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-photo {
  width: 200px;
  height: 240px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

/* ---- Book Page Hero ---- */

.book-hero {
  background: var(--navy-deep);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.book-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(42, 123, 136, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 30%, rgba(201, 168, 76, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.book-hero > * { position: relative; z-index: 1; }

.book-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: center;
}

.book-hero-cover {
  width: 260px;
  height: 390px;
  background: var(--light-bg);
  border: 1px solid rgba(250, 248, 244, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 248, 244, 0.3);
  font-size: 0.8rem;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3);
}

.book-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-hero-text h1 {
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-size: 2.6rem;
}

.book-hero-text .subtitle {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.book-hero-text p {
  color: rgba(250, 248, 244, 0.75);
  font-size: 1rem;
  max-width: 500px;
}

/* ---- Content Sections ---- */

.content-section h2 {
  margin-bottom: 1.2rem;
}

.content-section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.6rem;
}

/* ---- Endorsement Cards ---- */

.endorsement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.endorsement-card {
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--light-bg);
}

.endorsement-card blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.endorsement-card .attribution {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.endorsement-card .attribution-title {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.endorsement-placeholder {
  border-left: 3px solid var(--border);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--light-bg);
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ---- Buy Section ---- */

.buy-section {
  background: var(--light-bg);
  text-align: center;
  padding: 4rem 2rem;
}

.buy-section h2 {
  margin-bottom: 0.8rem;
}

.buy-section h2::after {
  margin: 0.6rem auto 0;
}

.buy-section p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ---- Bridge / Companion ---- */

.bridge {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--warm-white);
}

.bridge h3 {
  margin-bottom: 0.8rem;
}

.bridge p {
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

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

footer {
  background: var(--navy-deep);
  border-top: 2px solid var(--gold);
  padding: 2rem;
  text-align: center;
}

footer p {
  color: rgba(250, 248, 244, 0.4);
  font-size: 0.8rem;
  margin: 0;
}

footer a {
  color: rgba(250, 248, 244, 0.6);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

/* ---- Coming Soon Page ---- */

.coming-soon-badge {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
}

/* ---- Animations ---- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.fade-up-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-d2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-d3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-d4 { animation-delay: 0.4s; opacity: 0; }
.fade-up-d5 { animation-delay: 0.5s; opacity: 0; }

/* ---- Responsive ---- */

@media (max-width: 768px) {
  html { font-size: 16px; }

  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.4rem; }
  .book-hero-text h1 { font-size: 2.2rem; }

  nav .nav-links { display: none; }
  nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--gold);
  }
  .nav-toggle { display: block; }

  .two-books {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .book-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .book-hero-cover {
    margin: 0 auto;
    width: 200px;
    height: 300px;
  }

  .book-hero-text p { margin: 0 auto 1.2rem; }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo { margin: 0 auto; }

  .signup-form {
    flex-direction: column;
  }

  .endorsement blockquote {
    font-size: 1.1rem;
  }

  section { padding: 3.5rem 0; }
}
