/* ===================================================================
   Zestra Capital - Final Stylesheet
   Version: 3.0
   Description: A complete rewrite focusing on modern design principles,
   fluid typography, enhanced component styles, and clear organization.
=================================================================== */

/* ===================================================================
   1. Global Setup & Variables
=================================================================== */
:root {
    /* Colors */
    --primary-color: #FFA726;
    --primary-dark-color: #F57C00;
    --dark-color: #212529;
    --text-color-headings: #1a1a1a;
    --text-color-body: #555;
    --light-color: #F8F9FA;
    --white-color: #FFFFFF;
    --border-color: #EAECEF;
    --primary-gradient: linear-gradient(45deg, var(--primary-color), var(--primary-dark-color));

    /* Typography */
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Sizing & Spacing */
    --border-radius: 12px;
    --section-padding: 100px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* ===================================================================
   2. Base & Typography
=================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color-body);
    background: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color-headings);
}

/* Fluid Typography for smooth scaling */
h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }


a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================================================
   3. Layout & Helpers
=================================================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 15px auto 0;
}

.bg-light {
    background: var(--light-color);
}

/* ===================================================================
   4. Components (Buttons, Cards, Forms)
=================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-headings);
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white-color);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.4);
}

.btn-secondary {
    background: var(--dark-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background: #000;
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* ===================================================================
   5. Header & Navigation
=================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--primary-dark-color);
    background-color: rgba(255,167,38, 0.1);
}

.nav-link.active {
    color: var(--white-color);
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-color); transition: all var(--transition-speed) ease-in-out; border-radius: 2px; }

/* ===================================================================
   6. Footer
=================================================================== */
.footer {
    background: var(--dark-color);
    color: #a0a0a0;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col ul li a {
    color: #a0a0a0;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex; height: 44px; width: 44px; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1); margin-right: 10px; border-radius: 50%;
    color: var(--white-color); transition: all var(--transition-speed) ease; font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-4px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

/* ===================================================================
   7. Page: Home
=================================================================== */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('img/hero-background.jpg') no-repeat center center/cover;
}

.hero-content h1 {
    color: var(--white-color);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 25px auto 40px;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { text-align: center; } /* Uses .card base style */
.feature-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 25px; }

.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background: var(--primary-gradient); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-icon {
    position: absolute; width: 50px; height: 50px; background: var(--white-color);
    border: 4px solid var(--primary-color); border-radius: 50%; top: 20px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: var(--primary-color); z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-icon { right: -25px; }
.timeline-item:nth-child(even) .timeline-icon { left: -25px; }
.timeline-content { padding: 25px; background-color: white; position: relative; border-radius: var(--border-radius); box-shadow: var(--shadow-md); }

/* ===================================================================
   8. Page: Products
=================================================================== */
.page-header { background: var(--primary-gradient); color: var(--white-color); padding: 80px 0; text-align: center; }
.page-header h1, .page-header p { color: var(--white-color); }

.featured-product-banner {
    padding: 80px 0; position: relative; background-size: cover; background-position: center;
    background-image: linear-gradient(to right, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.2) 100%), url('img/featured-itel-a90.jpg');
    color: var(--white-color);
}
.featured-product-banner .featured-info { max-width: 600px; }
.featured-product-banner h1 { color: var(--white-color); }
.featured-product-banner .featured-tag {
    display: inline-block; background: var(--primary-color); color: var(--white-color); padding: 6px 15px;
    border-radius: 50px; font-size: 0.9rem; font-weight: 700; margin-bottom: 20px;
}
.featured-product-banner .key-features { display: flex; flex-wrap: wrap; gap: 15px; margin: 30px 0; }
.featured-product-banner .feature { background: rgba(255, 255, 255, 0.1); padding: 10px 15px; border-radius: 8px; font-weight: 600; display: flex; align-items: center; }
.featured-product-banner .feature i { color: var(--primary-color); margin-right: 10px; font-size: 1.2rem; }

.brands-section { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.brands-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 30px; }
.brands-grid img { max-height: 40px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: var(--transition-speed) ease all; }
.brands-grid img:hover { filter: grayscale(0%); opacity: 1; }

.product-category { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.product-category:nth-child(even) .product-image { order: 2; }
.product-image img { border-radius: var(--border-radius); box-shadow: var(--shadow-lg); transition: var(--transition-speed) ease all; }
.product-image img:hover { transform: scale(1.05); }
.product-info h2 i { margin-right: 15px; color: var(--primary-color); }
.product-examples { margin-top: 20px; }
.product-examples li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.product-examples li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); font-weight: 700; }

/* ===================================================================
   9. Page: Agent
=================================================================== */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.benefit-card { text-align: center; } /* Uses .card base style */
.benefit-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.benefit-card:hover { border-color: var(--primary-color); }

.table-container { overflow-x: auto; background: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--shadow-md); }
.commission-table { width: 100%; border-collapse: collapse; text-align: left; }
.commission-table th, .commission-table td { padding: 18px 20px; border-bottom: 1px solid var(--border-color); }
.commission-table th { font-family: var(--font-headings); background-color: var(--light-color); }
.commission-table tbody tr:hover { background-color: #fff8f0; }
.commission-table .total-row { background-color: var(--dark-color); font-weight: 700; }
.commission-table .total-row td { color: var(--white-color); font-size: 1.1rem; }
.table-disclaimer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #999; }

.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.testimonial-card { background: var(--light-color); padding: 40px; border-radius: var(--border-radius); border-left: 5px solid var(--primary-color); }
.testimonial-card .stars { color: var(--primary-dark-color); font-size: 1.2rem; margin-bottom: 15px; }
.testimonial-card blockquote { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; border: none; padding: 0; }
.testimonial-card cite { font-weight: 700; font-family: var(--font-headings); color: var(--dark-color); }

.agent-cta-final { background: var(--primary-gradient); color: var(--white-color); text-align: center; }
.agent-cta-final h2, .agent-cta-final p, .agent-cta-final .cta-contact p { color: var(--white-color); }
.agent-cta-final .btn-primary { background: var(--white-color); color: var(--primary-dark-color); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.agent-cta-final .btn-primary:hover { transform: translateY(-4px) scale(1.05); background: var(--white-color); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }


/* ===================================================================
   10. Page: Contact
=================================================================== */
.contact-grid { display: grid; grid-template-columns: 2fr 1.5fr; gap: 50px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color);
    font-family: var(--font-body); font-size: 1rem; transition: var(--transition-speed) ease all;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 167, 38, 0.2);
}
.contact-info-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.contact-info-item i { font-size: 1.5rem; color: var(--primary-color); margin-right: 20px; margin-top: 5px; }
.map-section iframe { border-radius: var(--border-radius); box-shadow: var(--shadow-md); }

/* ===================================================================
   11. Page: Legal
=================================================================== */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 60px; align-items: flex-start; }
.legal-nav { position: sticky; top: 120px; }
.legal-nav ul { border-left: 3px solid var(--border-color); }
.legal-nav-link {
    display: block; padding: 12px 20px; color: var(--text-color-body); font-weight: 600;
    font-family: var(--font-headings); border-left: 3px solid transparent; margin-left: -3px;
    transition: var(--transition-speed) ease all;
}
.legal-nav-link:hover { color: var(--dark-color); background-color: var(--light-color); }
.legal-nav-link.active { color: var(--primary-dark-color); border-left-color: var(--primary-dark-color); transform: translateX(3px); }
.legal-content .legal-disclaimer { background: #fff8f0; border: 1px solid var(--secondary-color); padding: 20px; border-radius: var(--border-radius); margin-bottom: 40px; }
.legal-article { margin-bottom: 80px; scroll-margin-top: 120px; }
.legal-article h2 { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; }
.legal-article h3 { margin-top: 30px; margin-bottom: 15px; }
.legal-article ul { padding-left: 20px; }
.legal-article ul li { list-style-type: disc; margin-bottom: 10px; }

/* ===================================================================
   12. Animations
=================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   13. Responsive Design
=================================================================== */
@media(max-width: 992px) {
    .feature-grid, .steps-grid, .checklist-grid { grid-template-columns: repeat(2, 1fr); }
    .product-category, .contact-grid, .agent-grid, .testimonial-grid, .legal-layout { grid-template-columns: 1fr; }
    .product-category:nth-child(even) .product-image { order: 1; }
    .product-image { margin-bottom: 30px; }
    .footer-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .legal-nav { position: static; margin-bottom: 40px; }
}

@media(max-width: 768px) {
    body { text-align: left; }
    .section-padding { padding: 80px 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu {
        position: fixed; left: -100%; top: 74px; flex-direction: column;
        background-color: var(--white-color); width: 100%; text-align: center;
        transition: 0.3s; box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { left: 0; }
    .nav-item { padding: 0.5rem 0; }
    .nav-link { width: 100%; border-radius: 0; }
    .feature-grid, .steps-grid, .checklist-grid, .footer-grid, .benefits-grid { grid-template-columns: 1fr; }
    .timeline::after { left: 25px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 15px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-icon { left: 0; }
    .featured-product-banner { padding: 60px 0; text-align: center; }
    .featured-product-banner .key-features { justify-content: center; }
    .cta-contact { flex-direction: column; gap: 15px; }
    .legal-nav ul { flex-wrap: wrap; }
}


/* How It Works (Simplified Steps) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.step-card {
    /* This uses the base .card style now for consistency */
    position: relative;
    text-align: center;
}
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-headings);
    border: 3px solid var(--white-color);
    box-shadow: var(--shadow-sm);
}
.step-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Add this to the responsive section at the bottom of the CSS file */
@media(max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr; /* This was missing for smaller screens */
    }
}


/* ===================================================================
   11.5. Page: Sitemap
=================================================================== */
.sitemap-container {
    padding: 40px 50px;
}

.sitemap-list, .sitemap-sublist {
    list-style: none;
    padding-left: 0;
}

.sitemap-list > li {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.sitemap-list > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sitemap-list > li > a {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    display: inline-block;
}

.sitemap-list i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
}

.sitemap-list p {
    margin-left: 55px;
    color: var(--text-color-body);
}

.sitemap-sublist {
    margin-top: 20px;
    margin-left: 55px;
    padding-left: 25px;
    border-left: 2px solid var(--primary-color);
}

.sitemap-sublist li {
    margin-bottom: 10px;
}

.sitemap-sublist li a {
    font-weight: 600;
}