:root {
  --primary: #4a5d4e;
  --secondary: #e8ede9;
  --accent: #d4a373;
  --text-main: #2c3e35;
  --text-light: #5f7367;
  --bg-color: #fcfdfc;
  --card-bg: #ffffff;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

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

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(252, 253, 252, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.3rem 0;
  transition: all 0.3s ease;
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.logo-img {
  height: 90px;
  width: auto;
  display: block;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary);
  color: #fff;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.social-link {
  color: var(--primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* Sections */
/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-color) 100%);
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background-color: rgba(212, 163, 115, 0.15); /* Accent with opacity */
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 163, 115, 0.3);
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Social Proof */
.social-proof {
  padding: 4rem 0;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* Section Common */
.section {
  padding: 8rem 0;
}

.section-bg {
  background-color: var(--secondary);
}

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

.section-header h2 {
  font-size: 2.5rem;
}

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

/* Book Showcase */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

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

.book-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.book-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.book-sales {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.book-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.book-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.card .btn {
  width: 100%;
}

.bundle-card {
  border: 2px solid var(--accent);
}

.bundle-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* About Author */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.author-image-container {
  position: relative;
}

.author-image {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  filter: grayscale(100%);
  transition: all 0.5s ease;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.author-image:hover {
  filter: grayscale(0%);
}

.about-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

.about-bullets {
  list-style: none;
  margin-top: 2.5rem;
}

.about-bullets li {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.1rem;
}

.about-bullets li::before {
  content: "✦";
  color: var(--accent);
  font-size: 1.2rem;
}

/* Video Section */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.video-frame {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.video-frame:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--secondary);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

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

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--secondary);
}

.quote-icon {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--secondary);
  position: absolute;
  top: 1.5rem;
  left: 2.5rem;
  opacity: 0.5;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  color: var(--text-main);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Lead Generation */
.lead-gen {
  background: var(--primary);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  border-radius: 30px;
  margin: 4rem 2rem;
  box-shadow: var(--shadow-md);
}

.lead-gen h2 {
  color: #fff;
  font-size: 2.8rem;
}

.lead-gen p {
  color: var(--secondary);
  margin-bottom: 3rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.form-group {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.form-input {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  outline: none;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-sm);
}

.lead-gen .btn {
  background: var(--accent);
  color: #fff;
  padding: 1rem 2.5rem;
}

.lead-gen .btn:hover {
  background: #fff;
  color: var(--primary);
}

/* Checkout Page */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.checkout-form {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.checkout-form h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.input-group input, .input-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--secondary);
  border-radius: 10px;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: #fff;
}

.order-summary {
  background: var(--secondary);
  padding: 3rem;
  border-radius: 20px;
  height: fit-content;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.summary-item img {
  width: 60px;
  border-radius: 5px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: var(--bg-color);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

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

.footer-links a {
  color: var(--text-light);
  font-weight: 500;
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--secondary);
  padding-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .books-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .hero-content, .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    padding-top: 4rem;
  }
  .hero-image-wrapper img {
    max-height: 500px;
    object-fit: cover;
  }
  .about-bullets {
    display: inline-block;
    text-align: left;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }
  .books-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .lead-gen {
    margin: 2rem 1rem;
    padding: 4rem 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* In a real app, add a hamburger menu */
  }
  .video-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .form-group {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Academy Ad Section */
.academy-ad {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin: 4rem auto;
    max-width: 1000px;
    border: 1px solid var(--secondary);
}

.ad-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    flex: 1.5;
    padding: 3rem;
}

.ad-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.ad-content p {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .academy-ad {
        flex-direction: column;
    }
    .ad-image-wrapper {
        height: 250px;
    }
    .ad-content {
        padding: 2rem;
    }
    .ad-content h3 {
        font-size: 1.6rem;
    }
}

/* Curriculum Ad Section */
.curriculum-section {
    padding: 6rem 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.curriculum-header {
    margin-bottom: 4rem;
}

.curriculum-header h2 {
    font-size: 2.8rem;
    color: #000;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.curriculum-header p {
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.curriculum-tagline {
    color: #f59e0b;
    font-weight: 600;
    font-size: 1.15rem;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

.curriculum-card {
    background: #fff;
    border: 1px solid var(--secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.curriculum-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.curriculum-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.curriculum-card-content h3 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.curriculum-card-content p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.6;
}

.curriculum-btn {
    background: #f59e0b;
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.curriculum-btn:hover {
    background: #d97706;
}

/* App Promo Section */
.app-promo-section {
    padding: 4rem 0;
    background: #fdfdfd;
    border-top: 1px solid var(--secondary);
    border-bottom: 1px solid var(--secondary);
}

.app-promo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.app-promo-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.app-promo-image img {
    max-width: 350px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    border-radius: 40px;
}

.app-promo-content {
    flex: 1.2;
}

.app-promo-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.app-promo-content p {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.app-promo-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #fff;
}

@media (max-width: 992px) {
    .app-promo-content h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .app-promo-grid {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .app-promo-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float .wa-bubble {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.whatsapp-float .wa-bubble svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* Pulsing ring animation */
.whatsapp-float .wa-bubble::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2.2s ease-out infinite;
}

.whatsapp-float .wa-bubble::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.2);
    animation: wa-pulse 2.2s ease-out 0.4s infinite;
}

@keyframes wa-pulse {
    0%   { transform: scale(0.95); opacity: 1; }
    70%  { transform: scale(1.3);  opacity: 0; }
    100% { transform: scale(1.3);  opacity: 0; }
}

/* Tooltip label */
.whatsapp-float .wa-tooltip {
    background: rgba(30, 30, 30, 0.88);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
    order: -1;
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

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

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .whatsapp-float .wa-bubble {
        width: 54px;
        height: 54px;
    }
    .whatsapp-float .wa-tooltip {
        display: none;
    }
}

/* ============================================
   Sale Price Display
   ============================================ */
.price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.price-original {
    font-size: 0.95rem;
    color: #888;
    text-decoration: line-through;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.price-sale {
    font-size: 1.4rem;
    font-weight: 800; /* Extra bold */
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.sale-badge {
    background: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}
