/* --- Global Variables --- */
:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white-color: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- General Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
h1, h2, h3 {
    color: var(--secondary-color);
    font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; margin-bottom: 50px; }
h3 { font-size: 1.5rem; }
img { max-width: 100%; height: auto; display: block; }
section { padding: 80px 0; }
.light-bg { background-color: var(--light-bg); }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons --- */
.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    display: inline-block;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
}
.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 13px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
}
.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* --- Header & Navigation --- */
.header {
    background: var(--white-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger {
    width: 25px;
    height: 2px;
    background: var(--secondary-color);
    display: block;
    position: relative;
    transition: background 0.3s ease;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-open .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Hero Section --- */
.hero, .story-hero, .page-hero {
    color: var(--white-color);
    text-align: center;
    padding: 120px 20px;
}
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.6), rgba(44, 62, 80, 0.6)), url('https://images.unsplash.com/photo-1591610160225-861405867ba3?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
}
.page-hero {
    padding: 100px 20px;
}
.story-hero {
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop');
}
.hero h1, .page-hero h1, .story-hero h1 { 
    color: var(--white-color); 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}
.hero p, .page-hero p, .story-hero p { 
    font-size: 1.2rem; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
    color: var(--white-color);
}


/* --- How It Works Section --- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}
.step .icon {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    font-size: 2.5rem;
}
.step h3 { margin-bottom: 10px; }

/* --- Mission Section --- */
.mission-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.mission-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.mission-text h2 { text-align: left; }

/* --- Impact Calculator --- */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--white-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}
.slider:hover { opacity: 1; }
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}
.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}
.slider-value { text-align: center; font-size: 1.5rem; font-weight: 600; color: var(--primary-color); }
.calculator-results { text-align: center; }
.results-grid { display: flex; justify-content: space-around; margin: 30px 0; }
.result-number { font-size: 3rem; font-weight: 700; color: var(--primary-color); display: block; }
.result-label { color: #777; }

/* --- FAQ Section --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white-color);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}
.faq-item summary {
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-content { padding: 0 20px 20px; }

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 50px 0;
    text-align: center;
}
.footer-logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); text-decoration: none; margin-bottom: 20px; display: inline-block;}
.social-links { list-style: none; padding: 0; margin: 20px 0; }
.social-links li { display: inline-block; margin: 0 15px; }
.social-links a { color: var(--white-color); font-size: 1.5rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--primary-color); }

/* --- Product Page Specific --- */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.gallery-container-product .main-image img,
.gallery-container-product .thumbnail-container img {
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.main-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.thumbnail-container img {
    width: 100%;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.thumbnail-container img:hover, .thumbnail-container img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.product-description { margin: 20px 0; }
.purchase-options .option {
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
}
.purchase-options .option.active { border-color: var(--primary-color); }
.purchase-options .option label {
    display: flex;
    padding: 20px;
    align-items: center;
    cursor: pointer;
}
.purchase-options .option input { display: none; }
.option-title { font-weight: 600; flex-grow: 1; }
.option-price { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); }
.option-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 3px 8px;
    font-size: 0.8rem;
    border-radius: 5px;
}
.delivery-frequency {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    display: none;
}
.delivery-frequency.visible { display: block; }
.delivery-frequency select {
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    margin-left: 10px;
}
.disclaimer { font-size: 0.9rem; color: #777; text-align: center; margin-top: 15px; }

/* --- Kit Details Section --- */
.kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}
.kit-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.kit-item h3 {
    margin-bottom: 10px;
}

/* --- Our Story Page Specific --- */
.story-content { max-width: 800px; margin: 0 auto; }
.story-section { margin-bottom: 60px; text-align: center; }
.story-section img {
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}
.story-section h2 { text-align: center; }
.story-section ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}
.story-section li { padding: 10px 0 10px 30px; position: relative; }
.story-section li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* --- Blog Page Styles --- */
.blog-grid-section { background-color: var(--light-bg); }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.blog-card {
    background: var(--white-color);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.card-image-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}
.card-content h3 a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
.card-content h3 a:hover { color: var(--primary-color); }
.card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}
.read-more {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
    padding-top: 10px;
}
.read-more:hover { text-decoration: underline; }

/* --- Blog Post Styles --- */
.article-content { padding-top: 0; }
.article-header {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    background-color: #eee;
}
.article-header img {
    width: 100%;
    object-fit: cover;
}
.article-body {
    max-width: 750px;
    margin: 0 auto;
    padding: 50px 20px;
}
.article-body h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 10px;
}
.article-meta {
    color: #777;
    margin-bottom: 30px;
}
.article-body p, .article-body li {
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-body h2 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
}
.post-cta {
    text-align: center;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 50px;
}
.post-cta h2 { margin-bottom: 15px; }

/* --- Thank You Page Styles --- */
.thank-you-section {
    text-align: center;
    padding: 100px 20px;
    background-color: var(--light-bg);
}
.thank-you-container {
    max-width: 600px;
}
.thank-you-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background: #2ecc71;
    color: white;
    margin: 0 auto 30px;
}
.thank-you-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Contact Page Styles --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: flex-start;
}
.contact-info h3 { margin-top: 0; }
.contact-info ul {
    list-style: none;
    padding: 0;
}
.contact-info li { margin-bottom: 10px; }
.contact-form h3 { margin-top: 0; }
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box; /* Important for padding */
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}


/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .mission-container, .calculator-container, .product-layout, .contact-container { grid-template-columns: 1fr; }
    .mission-text h2 { text-align: center; margin-top: 30px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
    }
    .nav-open .nav-links { right: 0; }
    .menu-toggle { display: block; }
    .results-grid { flex-direction: column; gap: 30px; }
}
