/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --accent-color: #FFA500;
    --accent-hover-color: #e69500;
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --background-color: #FFFFFF;
    --light-gray-bg: #f8f9fa;
    --border-color: #dee2e6;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.bg-light {
    background-color: var(--light-gray-bg);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* --- Header & Navigation --- */
.site-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-affiliate-link {
    background-color: var(--accent-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border-bottom: none !important;
    transition: background-color 0.3s;
}

.nav-affiliate-link:hover {
    background-color: var(--accent-hover-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}


/* --- Hero Section (UPDATED) --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    color: white;
    background: url('https://images.pexels.com/photos/209266/pexels-photo-209266.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0 30px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    border: none;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Generic Page Styles --- */
.page-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}
.page-header h1 {
    font-size: 3rem;
}

.content-section .content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.content-section .content-image img {
    border-radius: var(--border-radius);
}
.content-section .content-text ul {
    list-style-position: inside;
    padding-left: 0;
}
.content-section .content-text ul li {
    margin-bottom: 10px;
}

.text-container {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.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 var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}
.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

/* --- Affiliate Page --- */
.affiliate-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}
.affiliate-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.affiliate-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}
.affiliate-headline {
    font-size: 3.2rem;
    font-weight: 700;
}
.affiliate-description {
    font-size: 1.2rem;
    margin: 20px 0 30px;
}
.btn-affiliate-cta {
    background-color: var(--accent-color);
    color: white;
    padding: 18px 36px;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.4);
}
.btn-affiliate-cta:hover {
    background-color: var(--accent-hover-color);
    color: white;
    transform: translateY(-3px);
}
.affiliate-disclaimer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}


/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}
.site-footer a {
    color: #ccc;
}
.site-footer a:hover {
    color: white;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-about h4, .footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.footer-contact i {
    margin-right: 10px;
    margin-top: 4px;
    color: var(--primary-color);
}
.affiliate-disclaimer-footer {
    font-size: 0.8rem;
    font-style: italic;
    color: #999;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .content-section .content-container {
        grid-template-columns: 1fr;
    }
     .content-section .content-image {
        margin-bottom: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 71px;
        left: 0;
        width: 100%;
        background: white;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin-bottom: 15px;
    }
    .hamburger {
        display: block;
    }
    .hero-content h1, .affiliate-headline {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        text-align: center;
    }
    .footer-contact p {
        justify-content: center;
    }
}