/* ============================================
   يوميات مديرة مدرسة — Landing Page Styles
   Premium Saudi Elegant Style | RTL
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --green-primary: #2D7A5F;
  --green-dark: #1E5A44;
  --green-light: #E8F5EE;
  --navy: #1B2A4A;
  --navy-light: #2C3E6B;
  --ivory: #FAF8F3;
  --gold: #C9A96E;
  --gold-light: #E8D5A3;
  --text-body: #3D3D3D;
  --text-muted: #7A7A7A;
  --white: #FFFFFF;
  --shadow: rgba(27, 42, 74, 0.08);
  --gold-gradient: linear-gradient(135deg, #C9A96E 0%, #E8D5A3 50%, #C9A96E 100%);

  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --font-accent: 'IBM Plex Sans Arabic', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --container-max: 1200px;
  --container-padding: clamp(1rem, 5vw, 3rem);

  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 8px 30px rgba(27, 42, 74, 0.1);
  --shadow-lg: 0 20px 60px rgba(27, 42, 74, 0.14);
  --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --z-base: 1;
  --z-nav: 100;
  --z-sticky-cta: 90;
  --z-whatsapp: 95;
  --z-modal: 200;
}

/* ===== 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(--text-body);
  background-color: var(--ivory);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 72px; /* space for fixed nav */
}

/* scroll offset so section headings aren't hidden behind the nav */
section[id] {
  scroll-margin-top: 80px;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Animate utility classes */
.animate {
  opacity: 0;
}

.animate.animated {
  animation-fill-mode: both;
}

.animate.fadeInUp.animated {
  animation-name: fadeInUp;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

.animate.fadeInRight.animated {
  animation-name: fadeInRight;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

.animate.fadeInLeft.animated {
  animation-name: fadeInLeft;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

.animate.fadeIn.animated {
  animation-name: fadeIn;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

/* Delay variants */
.animate[data-delay="0.1"] { animation-delay: 0.1s; }
.animate[data-delay="0.2"] { animation-delay: 0.2s; }
.animate[data-delay="0.25"] { animation-delay: 0.25s; }
.animate[data-delay="0.3"] { animation-delay: 0.3s; }
.animate[data-delay="0.4"] { animation-delay: 0.4s; }
.animate[data-delay="0.55"] { animation-delay: 0.55s; }
.animate[data-delay="0.6"] { animation-delay: 0.6s; }
.animate[data-delay="0.8"] { animation-delay: 0.8s; }

/* ===== Shared Components ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.gold-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto var(--space-md);
}

.gold-line-sm {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-left: var(--space-sm);
}

.cards-grid {
  display: grid;
  gap: var(--space-lg);
}

.cards-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== Modern Sticky Navigation ===== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
              box-shadow 0.35s ease, border-color 0.35s ease;
}

.sticky-nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(27, 42, 74, 0.09);
  border-bottom-color: rgba(201, 169, 110, 0.18);
}

/* ── Container ── */
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ── Logo ── */
.nav-logo a {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 44px;
  width: auto;
  transition: opacity 0.2s ease;
}

.nav-logo img:hover {
  opacity: 0.82;
}

/* ── Desktop Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0.8rem;
  left: 0.8rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--green-primary);
  background: rgba(45, 122, 95, 0.06);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--green-primary);
  font-weight: 600;
}

/* ── Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--gold-gradient);
  color: var(--navy);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(201, 169, 110, 0.28);
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(201, 169, 110, 0.42);
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.nav-hamburger:hover {
  background: rgba(27, 42, 74, 0.07);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu ── */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.12);
  padding: var(--space-md) var(--container-padding) var(--space-lg);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.nav-mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.nav-mobile-link {
  display: block;
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy);
  padding: 0.75rem var(--space-sm);
  border-radius: var(--radius-sm);
  border-right: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-mobile-link:hover {
  background: var(--green-light);
  color: var(--green-primary);
  border-right-color: var(--green-primary);
}

.nav-mobile-cta {
  display: block;
  background: var(--gold-gradient);
  color: var(--navy);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem var(--space-sm);
  border-radius: var(--radius-full);
  text-align: center;
  box-shadow: var(--shadow-gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 169, 110, 0.42);
}

/* ── Nav responsive breakpoints ── */
@media (max-width: 1024px) {
  .nav-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.55rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .nav-cta {
    display: none;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background: var(--ivory);
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.hero-bg-pattern {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at bottom right, rgba(45, 122, 95, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Hero Text */
.hero-text {
  order: 2;
}

.hero-quote {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  border-right: 3px solid var(--gold);
  padding-right: var(--space-md);
}

.hero-quote p {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 1rem;
  color: var(--green-primary);
  line-height: 1.7;
}

.quote-accent {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--navy);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201, 169, 110, 0.45);
}

/* Hero Image */
.hero-image-col {
  order: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-bg {
  position: absolute;
  width: 360px;
  height: 360px;
  background: var(--green-light);
  border-radius: 50%;
  z-index: 0;
}

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

.hero-book {
  max-width: 320px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  animation: float 4s ease-in-out infinite;
}

.hero-book-accent {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.hero-star {
  position: absolute;
  top: 10%;
  left: 10%;
  z-index: 2;
  animation: rotateSlow 20s linear infinite;
}

/* ===== Core Message Section ===== */
.core-message {
  position: relative;
  padding: var(--space-2xl) 0;
  background: var(--green-light);
  overflow: hidden;
}

.core-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(201, 169, 110, 0.03) 35px, rgba(201, 169, 110, 0.03) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(45, 122, 95, 0.03) 35px, rgba(45, 122, 95, 0.03) 70px);
  pointer-events: none;
}

.core-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
  border-top: 4px solid var(--gold);
  text-align: center;
}

.quote-mark {
  position: absolute;
  top: -10px;
  right: 30px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  user-select: none;
}

.core-card blockquote {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--navy);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.core-card cite {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1rem;
  color: var(--green-primary);
  font-style: normal;
}

/* ===== Book Anatomy Section ===== */
.book-anatomy {
  padding: var(--space-2xl) 0;
  background: var(--ivory);
}

.anatomy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
}

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

.anatomy-card:nth-child(1) {
  border-bottom: 4px solid var(--green-primary);
}

.anatomy-card:nth-child(2) {
  border-bottom: 4px solid #8B6F47;
}

.anatomy-card:nth-child(3) {
  border-bottom: 4px solid var(--gold);
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.card-icon.icon-green {
  background: var(--green-light);
  color: var(--green-primary);
}

.card-icon.icon-brown {
  background: #F5EDE3;
  color: #8B6F47;
}

.card-icon.icon-gold {
  background: #FDF6E9;
  color: var(--gold);
}

.card-icon .lucide {
  width: 36px;
  height: 36px;
}

.anatomy-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.anatomy-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* Feature Box */
.feature-box {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  justify-content: center;
}

.feature-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.feature-icon .lucide {
  width: 32px;
  height: 32px;
}

.feature-box p {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.8;
}

.feature-label {
  font-weight: 600;
}

/* ===== Target Audience Section ===== */
.target-audience {
  padding: var(--space-2xl) 0;
  background: var(--green-light);
}

.audience-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.audience-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.audience-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.audience-icon .lucide {
  width: 40px;
  height: 40px;
}

.audience-icon.icon-green-bg {
  background: var(--green-light);
  color: var(--green-primary);
}

.audience-icon.icon-navy-bg {
  background: var(--ivory);
  color: var(--navy);
}

.audience-icon.icon-gold-bg {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
}

.audience-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.audience-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* ===== Book Gallery Section ===== */
.book-gallery {
  padding: var(--space-2xl) 0;
  background: var(--ivory);
}

.gallery-slider {
  max-width: 900px;
  margin: 0 auto;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  padding: var(--space-lg);
}

.slide img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.slide img:hover {
  transform: scale(1.03);
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.slider-arrow:hover {
  background: var(--green-primary);
}

.slider-arrow .lucide {
  width: 24px;
  height: 24px;
}

.slider-prev {
  right: var(--space-sm);
}

.slider-next {
  left: var(--space-sm);
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--gold);
  opacity: 1;
  transform: scale(1.2);
}

.dot:hover {
  opacity: 0.7;
}

/* ===== Primary CTA Section ===== */
.primary-cta {
  position: relative;
  padding: var(--space-2xl) 0;
  background: var(--navy);
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 20px,
      rgba(201, 169, 110, 0.03) 20px,
      rgba(201, 169, 110, 0.03) 40px
    );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-star {
  margin-bottom: var(--space-md);
  animation: rotateSlow 20s linear infinite;
  display: inline-block;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--white);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.cta-main-btn {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--navy);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1.25rem 3rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
}

.cta-main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(201, 169, 110, 0.5);
}

/* ===== Author Section ===== */
.author {
  padding: var(--space-2xl) 0;
  background: var(--green-light);
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.author-info {
  order: 1;
}

.author-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gold);
}

.author-bio {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.author-follow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.social-icon {
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-name {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.social-handle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: auto;
}

/* Author Visual */
.author-visual {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.author-logo {
  max-width: 200px;
  border-radius: var(--radius-sm);
}

.author-book-collage {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 200px;
}

.collage-img {
  position: absolute;
  width: 140px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.collage-img.img-1 {
  top: 0;
  right: 20px;
  transform: rotate(-5deg);
}

.collage-img.img-2 {
  top: 30px;
  left: 20px;
  transform: rotate(5deg);
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.footer-quote {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-separator {
  width: 100px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 0 auto;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--white);
  opacity: 0.7;
  margin-top: var(--space-md);
}

/* ===== Sticky Bottom CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(27, 42, 74, 0.1);
  border-top: 2px solid var(--gold);
  padding: var(--space-sm) var(--container-padding);
  z-index: var(--z-sticky-cta);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta.hidden {
  display: none;
}

.sticky-cta-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.sticky-cta-content p {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.sticky-cta-btn {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--navy);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.625rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sticky-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.sticky-cta-close {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.sticky-cta-close:hover {
  color: var(--navy);
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 96px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: var(--z-whatsapp);
  animation: pulse 2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-base);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--green-primary);
}

.scroll-top .lucide {
  width: 20px;
  height: 20px;
}

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

/* Tablet: 640px - 1024px */
@media (max-width: 1024px) {
  .hero-container {
    gap: var(--space-lg);
  }
  
  .hero-book {
    max-width: 280px;
  }
  
  .hero-image-bg {
    width: 300px;
    height: 300px;
  }
  
  .author-grid {
    gap: var(--space-lg);
  }
}

/* Mobile: < 640px */
@media (max-width: 640px) {
  :root {
    --space-2xl: 4rem;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-image-col {
    order: 1;
    margin-bottom: var(--space-lg);
  }
  
  .hero-book {
    max-width: 240px;
  }
  
  .hero-image-bg {
    width: 280px;
    height: 280px;
  }
  
  .hero-quote {
    justify-content: center;
    border-right: none;
    border-bottom: 3px solid var(--gold);
    padding-right: 0;
    padding-bottom: var(--space-md);
  }
  
  .hero-star {
    display: none;
  }
  
  /* Cards Grid */
  .cards-grid.three-col {
    grid-template-columns: 1fr;
  }
  
  /* Feature Box */
  .feature-box {
    flex-direction: column;
    text-align: center;
  }
  
  /* Gallery */
  .slide {
    padding: var(--space-sm);
  }
  
  .slide img {
    max-height: 350px;
  }
  
  .slider-arrow {
    display: none;
  }
  
  /* Author */
  .author-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .author-info {
    order: 2;
  }
  
  .author-visual {
    order: 1;
  }
  
  .social-links {
    align-items: center;
  }
  
  .social-link {
    width: 100%;
    max-width: 300px;
  }
  
  .author-book-collage {
    margin: 0 auto;
  }
  
  /* Sticky CTA */
  .sticky-cta-content {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .sticky-cta-content p {
    font-size: 0.8rem;
  }
  
  /* WhatsApp position */
  .whatsapp-float {
    bottom: 80px;
    left: 16px;
    width: 48px;
    height: 48px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  
  /* Scroll top */
  .scroll-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  
  /* Core card */
  .core-card {
    padding: var(--space-xl) var(--space-md);
  }
  
  .quote-mark {
    font-size: 3rem;
    right: 20px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .sticky-nav,
  .sticky-cta,
  .whatsapp-float,
  .scroll-top,
  .slider-arrow,
  .slider-dots {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    page-break-after: always;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
