/* ===========================
   ROOT VARIABLES
   =========================== */
:root {
    /* Color Palette - Green & Brown Theme */
    --primary-green: #2d5016;
    --secondary-green: #4a7c2f;
    --light-green: #6b9d4a;
    --accent-green: #8fbc5f;
    
    --primary-brown: #6d4c3d;
    --secondary-brown: #8b5a3f;
    --light-brown: #a67c52;
    --cream: #f5f1e8;
    
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #7a7a7a;
    --light-gray: #e8e8e8;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-green);
}

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

/* ===================================================================
   NAVIGATION STYLES
   =================================================================== */
.custom-navbar {
     background: linear-gradient(135deg, var(--primary-green), var(--primary-brown));
    padding: 15px 0;
    /* margin-bottom: 0 !important; */
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffc107 !important;
}

.dropdown-menu {
    border-radius: 10px;
    margin-top: 15px;
}

.dropdown-item {
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color: #ffc107;
    color: #000;
}

/* ===================================================================
   HERO CAROUSEL
   =================================================================== */
.hero-image {
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-image h1 {
        font-size: 2.5rem;
    }
    .hero-image p {
        font-size: 1.1rem;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(97, 92, 92, 0.74);
    border-radius: 50%;
    background-size: 50%;
}

/* ===========================
   SECTION HEADERS
   =========================== */
.section-label {
    display: inline-block;
    color: var(--secondary-brown);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 50px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 2px;
    background: var(--secondary-brown);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

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

/* ===========================
   FOUNDER MESSAGE SECTION
   =========================== */
.founder-section {
    padding: var(--section-padding);
    background: var(--light);
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.founder-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(45, 80, 22, 0.2);
    position: relative;
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
}

.leaf-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.founder-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.founder-quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 25px;
    padding-left: 25px;
    border-left: 4px solid var(--secondary-brown);
    line-height: 1.8;
}

.founder-signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.signature-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.signature-title {
    color: var(--gray);
}

/* ===========================
   WHY CHOOSE US SECTION
   =========================== */
.why-choose-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05), rgba(109, 76, 61, 0.05));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--light);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-brown));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
    padding: var(--section-padding);
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05), rgba(109, 76, 61, 0.05));
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.stat:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.1), rgba(109, 76, 61, 0.1));
}

.stat h3 {
    font-size: 3rem;
    color: var(--primary-brown);
    margin-bottom: 5px;
}

.stat p {
    color: var(--gray);
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.about-image svg {
    width: 100%;
    height: auto;
}

/* ===========================
   SERVICES SECTION
   =========================== */
:root {
    /* Adding variables for consistency if not already defined */
    --primary-green: #2d5016;
    --secondary-green: #4a7c2a;
    --section-padding: clamp(3rem, 8vw, 6rem);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.services-section {
    padding: var(--section-padding);
    /* Modern Mesh Gradient */
    background: radial-gradient(at 0% 0%, rgba(45, 80, 22, 0.05) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(109, 76, 61, 0.05) 0px, transparent 50%);
}

.services-grid {
    display: grid;
    /* Updated minmax for better mobile scaling */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light, #ffffff);
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(45, 80, 22, 0.2);
}

.service-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-bounce);
    /* Performance optimization for transforms */
    will-change: transform;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-8deg);
}

.service-card h3 {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card > p {
    color: var(--gray, #666);
    margin-bottom: 1.5rem;
    line-height: 2;
    /* Balances text better across lines */
    text-wrap: pretty;
}

.service-card ul {
    list-style: none;
    margin-top: auto; /* Pushes list to bottom if content varies */
}

.service-card li {
    padding: 20px 0 10px 20px;
    position: relative;
    color: var(--dark, #333);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.service-card li {
    padding: 12px 0 12px 40px; /* Increased padding for the box */
    position: relative;
    color: var(--dark, #333);
    font-size: 0.95rem;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

/* The Checkbox Container */
.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(45, 80, 22, 0.2); /* Subtle border */
    border-radius: 6px; /* Modern rounded corners */
    background: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Checkmark (Hidden by default) */
.service-card li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: 900;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Interaction: When the card is hovered */
.service-card:hover li::before {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 10px rgba(45, 80, 22, 0.3);
}

.service-card:hover li::after {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    transition-delay: 0.1s; /* Slight delay for a sequenced feel */
}

/* Subtle text shift on hover */
.service-card:hover li {
    color: var(--primary-green);
    transform: translateX(5px);
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05), rgba(109, 76, 61, 0.05));
    padding: 40px;
    border-radius: 15px;
    transition: var(--transition-smooth);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: var(--primary-green);
    opacity: 0.15;
    font-family: var(--font-heading);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.1);
}

.testimonial-stars {
    color: var(--secondary-brown);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(45, 80, 22, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
}

.author-avatar svg {
    width: 100%;
    height: 100%;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.testimonial-author p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.03), rgba(109, 76, 61, 0.03));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light);
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 25px;
    height: 25px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 500px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-brown));
    color: var(--light);
    padding: 60px 0 30px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: .22s;
}

.footer-col a:hover {
    color: var(--light);
    padding-left: 5px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .22s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--light);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 36px auto 0;
    border-top: 1px solid rgba(211, 181, 8, 0.12);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    opacity: .8;
    color: rgba(245, 245, 243, 0.938);
    transition: .22s;
    text-decoration: none;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}


/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-text {
        font-size: 1.2rem;
    }

    .founder-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

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

    .terms-content {
        padding: 40px 25px;
    }

    .terms-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px 0;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-text {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }

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

    .section-header p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

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

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 70px;
}

/* Our Books Section */
.book-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    height: 100%;
}

.book-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3; /* Standard book proportion */
}

.book-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.book-card:hover img {
    transform: scale(1.05);
}

/* Badges */
.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.book-badge.published {
    background: var(--primary-green, #2d5016);
    color: white;
}

.book-badge.expected {
    background: #ffc107;
    color: #000;
}

/* Upcoming Book specific style (Grayscale effect that clears on hover) */
.book-card.upcoming img {
    filter: grayscale(80%);
}

.book-card.upcoming:hover img {
    filter: grayscale(0%);
}

/* Logo Style */
/* Removes the white background from the logo JPEG/WebP */
.nav-logo {
    height: 60px; /* Adjust height as needed */
    width: auto;
    display: block;
    filter: brightness(1.1); /* Optional: makes the logo pop a bit more */
    object-fit: contain;
}

/* Container for logo to ensure it doesn't stretch */
.logo-wrapper {
    background: transparent;
    display: flex;
    align-items: center;
}

/* Brand Text Styling */
.brand-main {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 1.2rem;
    font-weight: 800;
}

