/* ===== CSS Variables ===== */
:root {
  --color-ocean-deep: #0a2342;
  --color-ocean-mid: #1a3a5c;
  --color-ocean-light: #2e6b8a;
  --color-sand: #f5efe6;
  --color-sand-dark: #e8dfd0;
  --color-gold: #c9a84c;
  --color-gold-light: #dfc06e;
  --color-coral: #e07a5f;
  --color-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-text-muted: #8a8a8a;

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

  --max-width: 1200px;
  --section-padding: 6rem 2rem;
}

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

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(10,35,66,0.85) 0%, rgba(46,107,138,0.75) 50%, rgba(10,35,66,0.9) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900"><defs><linearGradient id="g1" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" stop-color="%230a2342"/><stop offset="50%25" stop-color="%231a5276"/><stop offset="100%25" stop-color="%230a2342"/></linearGradient></defs><rect fill="url(%23g1)" width="1440" height="900"/><g opacity="0.15"><circle cx="200" cy="300" r="80" fill="%2346a9c4"/><circle cx="600" cy="500" r="120" fill="%2346a9c4"/><circle cx="1000" cy="200" r="60" fill="%2346a9c4"/><circle cx="1200" cy="600" r="100" fill="%2346a9c4"/><circle cx="400" cy="700" r="50" fill="%2346a9c4"/></g></svg>') center/cover no-repeat;
  background-color: var(--color-ocean-deep);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(46,107,138,0.3) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-tagline {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero-authors {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-ocean-deep);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-nav {
  background: var(--color-gold);
  color: var(--color-ocean-deep);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
}

.btn-nav:hover {
  background: var(--color-gold-light);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 35, 66, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.nav.visible {
  transform: translateY(0);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s;
}

/* ===== Section Styles ===== */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-ocean-deep);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 1rem auto 0;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 0 auto;
}

.divider-light {
  background: rgba(255,255,255,0.5);
}

/* ===== About Section ===== */
.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-text .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-ocean-deep);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.about-text strong {
  color: var(--color-ocean-mid);
  font-weight: 600;
}

/* Book Cover Image */
.book-cover-img {
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.book-cover-img:hover {
  transform: scale(1.02);
}

/* ===== Quote Banner ===== */
.quote-banner {
  background: var(--color-ocean-deep);
  padding: 5rem 2rem;
  text-align: center;
}

.quote-banner blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--color-white);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.quote-banner cite {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-gold);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ===== Stories Section ===== */
.stories {
  background: var(--color-white);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.story-card {
  background: var(--color-sand);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--color-gold);
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-ocean-light);
  margin-bottom: 1.5rem;
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ocean-deep);
  margin-bottom: 1rem;
}

.story-card-highlight {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Authors Section ===== */
.authors {
  background: var(--color-sand);
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.author-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-ocean-deep), var(--color-ocean-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.author-initials {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
}

.author-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ocean-deep);
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.author-card p:not(.author-credentials) {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  text-align: left;
  margin-bottom: 1.5rem;
}

.author-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-ocean-light);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.author-link:hover {
  border-color: var(--color-ocean-light);
}

/* ===== Download Section ===== */
.download {
  background: linear-gradient(135deg, var(--color-ocean-deep) 0%, var(--color-ocean-mid) 100%);
  color: var(--color-white);
  text-align: center;
}

.download h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.download .lead {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 1.5rem auto 3rem;
}

.download-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.download-option {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
}

.download-icon {
  width: 56px;
  height: 56px;
  color: var(--color-gold);
  margin: 0 auto 1.5rem;
}

.download-option h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.download-option p {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.download-divider {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

/* ===== Footer ===== */
.footer {
  background: #06182e;
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.footer-brand p {
  font-size: 0.8rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1;
  }

  .book-cover-img {
    max-width: 350px;
    margin: 0 auto;
  }

  .authors-grid {
    grid-template-columns: 1fr;
  }

  .download-options {
    flex-direction: column;
  }

  .download-divider {
    transform: rotate(0);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 35, 66, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .author-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
    max-width: 280px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
