/* ========== COLOR & FONT VARIABLES ========== */
:root {
    /* Core Palette (Client Suggested) */
    --primary-color: #AD573A;         /* Sage Green */
    --secondary-color: #F9F7F1;       /* Cream */
    --accent-color: #AD573A;          /* Deep Maroon */
    --accent-gold: #AD573A;           /* Gold */
    --text-heading: #36454F;          /* Charcoal Gray */
    --text-body: #555A5D;             /* Lighter Charcoal Gray */
    --bg-light: #FAF0F2;
    --bg-color:#ffffea;              /* Soft Blush Pink */
    --bg-card: #FFFFFF;               /* Kept White as requested */
    --border-color: #E6E1E8;          /* Muted Lavender */
    --shadow: rgba(54, 69, 79, 0.08); /* Charcoal Shadow */

    /* Derived Variables for System UI (Matches the Core Palette) */
    --overlay-bg: rgba(54, 69, 79, 0.6); /* Derived from text-heading */
}

html,
body,
body * {
    font-family: 'Poppins', sans-serif !important;
}

.fa,
.fas,
.far,
.fal,
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}


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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    position: relative;
    background-color: var(--bg-light);
    color: var(--text-body);
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* ========== GLOBAL TYPOGRAPHY & FORMS ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
}

p {
    color: var(--text-body);
}

a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

input, textarea, select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Ensures forms fit their containers */
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(95, 127, 110, 0.15); /* Soft primary glow */
}

label {
    color: var(--text-heading);
    font-weight: 500;
}

/* ========== GLOBAL SECTIONS (Alternating Backgrounds) ========== */
header, nav, .navbar, .faq-section, .experts-section, .contact-section {
    background-color: var(--bg-card);
    padding-left: 5%;
    padding-right: 5%;
}

.services-section, .blog-section {
    background-color: var(--bg-light);
    padding-left: 5%;
    padding-right: 5%;
}

footer, .footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-left: 5%;
    padding-right: 5%;
}

footer a, .footer a { color: var(--secondary-color); }
footer a:hover, .footer a:hover { color: var(--accent-gold); }
footer h1, footer h2, footer h3, footer h4, .footer h3 { color: var(--secondary-color); }

/* ========== HERO SECTION ========== */
.hero-section {
    background-color: #ffffea37;
    background-image: url("https://www.transparenttextures.com/patterns/arches.png");
    padding: 130px 5% 50px;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-text {
    text-align: left;
    max-width: 50%;
    flex-shrink: 0;
}

.hero-image {
    max-width: 45%;
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

.hero-heading {
    font-size: 48px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-heading .blue {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

.hero-buttons .btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; 
    align-items: center;
    gap: 8px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--shadow);
}

/* ========== BUTTONS ========== */
.btn.blue {
    position: relative;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    z-index: 1;
    transition: color 0.8s ease;
    overflow: hidden;
}

.btn.blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: -1;
    transform: translateX(-50%);
    transition: width 1s ease;
}

.btn.blue:hover::before {
    width: 220%;
}

.btn.blue:hover {
    color: var(--primary-color) !important;
}

.btn.black {
    position: relative;
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    z-index: 1;
    transition: color 1s ease;
    overflow: hidden;
    margin-bottom: 50px;
}

.btn.black::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transform: translateX(-50%);
    transition: width 1s ease;
}

.btn.black:hover::before {
    width: 220%;
}

.btn.black:hover {
    color: var(--secondary-color) !important;
}

/*================= INFO CARDS ==================*/
.info-cards {
    background-color: #ffffea37;
    padding: 60px 5% 0;
    margin-top: -150px;
    position: relative;
    z-index: 10;
}

.card-container {
    display: flex;
    background-color: var(--bg-card); /* Cards stay white */
    border-radius: 15px;
    padding: 20px 10px;
    box-shadow: 0 10px 20px -5px var(--shadow);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.card-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.info-cards .card {
    flex: 1;
    background-color: transparent;
    color: var(--text-body);
    padding: 20px;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    position: relative;
    border-right: 1px solid var(--border-color);
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.info-cards .card:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.info-cards .card:last-child {
    border-right: none;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.info-cards .card i {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: transform 0.4s ease, color 0.3s ease;
}

.info-cards .card:hover i {
    transform: scale(1.2) rotate(-5deg);
    color: var(--accent-gold); 
}

.info-cards .card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.learn-more {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.learn-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.learn-more:hover {
    color: var(--accent-gold);
}

.learn-more:hover::after {
    width: 100%;
    background-color: var(--accent-gold);
}

/*================= FOUNDER SECTION ==================*/
.founder-section {
    padding: 90px 5%;
}

.founder-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.founder-divider {
    text-align: center;
    margin-bottom: 60px;
}

.founder-divider img {
    width: 170px;
    border-radius: 50%;
    
}

.founder-card {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 50px;

    background-color: #f4f1e7;
    border: 2px solid #AD573A;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 45px var(--shadow);
}

.founder-image {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.founder-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;

    border-radius: 0 30px 30px 0;
}

.founder-content {
    flex: 1.2;
    padding: 50px; /* Reduced padding from 60px */
}

.quote-icon {
    font-size: 70px;
    color: var(--accent-gold);
    line-height: 1;
}

.founder-content h2 {
    font-size: 32px; /* Smaller heading for balanced look */
    margin: 10px 0 25px;
    line-height: 1.3;
}

.founder-content p {
    font-size: 16px; /* Adjusting font size to fit nicely */
    line-height: 1.9;
    margin-bottom: 18px;
}

.founder-name {
    margin-top: 30px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
}

.founder-role {
    color: var(--accent-color);
    margin-top: 5px;
    margin-bottom: 30px;
}

.founder-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: inset 0 0 0 2px var(--primary-color);
    transition: .3s;
}

.founder-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ========== UTILITY ========== */
.highlight-link {
    color: var(--accent-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.highlight-link:hover {
    color: var(--accent-gold);
}

/* ========== ANIMATION-ON-SCROLL STYLES ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
/* Tablet & Small Desktop */
@media (max-width: 992px) {
    .hero-container { 
        flex-direction: column-reverse; 
        text-align: center;
        gap: 50px;
    }
    
    .hero-text { 
        max-width: 100%; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image { 
        max-width: 70%; 
    }
    
    .hero-heading { font-size: 40px; }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .founder-card { flex-direction: column; gap: 0; }
    .founder-image { width: 100%; }
    
    /* FIX: Image space issue */
    .founder-image img { 
        width: 100%;
        height: 400px; 
        max-height: none;
        object-fit: cover; /* Cover removes white space on sides */
        object-position: top center; /* Focuses face */
    }
    
    .founder-content { padding: 45px; }
}

/* Standard Mobile */
@media (max-width: 768px) {
    header, nav, .navbar, .faq-section, .experts-section, .contact-section,
    .services-section, .blog-section, footer, .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section {
        padding-top: 120px;
        text-align: center;
        min-height: auto;
        padding-bottom: 180px; 
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-image {
        max-width: 90%;
    }

    .hero-heading {
        font-size: 32px;
        text-align: center;
    }
    
    .highlight-link {
        text-align: center;
    }

    .info-cards {
        margin-top: -150px;
        padding: 0 20px; 
    }

    .card-container {
        flex-direction: column;
        gap: 0;
        padding: 10px;
    }

    .info-cards .card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 30px 15px;
        border-radius: 0 !important; 
    }

    .info-cards .card:last-child {
        border-bottom: none;
    }
    
    .info-cards .card:hover {
        transform: none; 
    }
    
    .founder-section {
        padding: 40px 20px; /* Reduced from 70px to optimize space */
    }

    .founder-title { font-size: 34px; }
    .founder-divider img { width: 130px; }
    
    /* FIX: Image space issue */
    .founder-image img { 
        width: 100%;
        height: 350px; 
        max-height: none;
        object-fit: cover; 
        object-position: top center;
        border-radius: 30px 30px 0 0;
    }
    
    .founder-content { padding: 30px 20px; }
    
    .quote-icon { font-size: 50px; }
    .founder-content h2 { font-size: 28px; }
    .founder-content p { font-size: 16px; }
    .founder-name { font-size: 21px; }
    
    .founder-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile (Extra padding safety & font adjustments) */
@media (max-width: 480px) {
    .hero-heading { font-size: 28px; }
    .hero-text p { font-size: 15px; }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
    }
    
    .hero-buttons .btn { 
        width: 100%; 
        justify-content: center; 
    }
    
    .info-cards { margin-top: -100px; }
    
    .founder-title { font-size: 28px; }
    .founder-content h2 { font-size: 24px; }
    
    /* FIX: Complete Portrait display for Founder on ultra-small screens */
    .founder-image img { 
        height: 280px; 
        object-position: top center; /* Focuses on the face explicitly avoiding crops */
    }
}

/* ========================================================= */
/* ADDED: USER REQUESTED CUSTOM UPDATE FOR COUNTERS #ffffea  */
/* ========================================================= */
.stat-item i, 
.stat-item h3, 
.stat-item p, 
.stat-item span.counter {
    color: #ffffea !important;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-text {
    text-align: left;
    max-width: 55%; 
    flex-shrink: 0;
}

.hero-image {
    max-width: 40%;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; 
    align-items: center; 
    padding-bottom: 60px; 
}

.hero-buttons .btn,
.mobile-nav-buttons .btn {
    margin: 0 !important; 
    padding: 12px 22px !important; 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 992px) {
    .hero-text { max-width: 100%; }
    .hero-image { max-width: 70%; }
}

@media (max-width: 768px) {
    .hero-heading span {
        white-space: normal !important;
        display: inline !important;
    }

    .hero-image {
        display: none !important;
    }
    
    .hero-service-wrapper {
        display: none !important;
    }

    .hero-section {
        min-height: auto !important;
        padding-bottom: 30px !important; 
    }
    
    .info-cards {
        margin-top: 15px !important; 
        margin-bottom: 60px !important; 
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 15px; 
        padding-bottom: 0px; 
    }
    .hero-buttons .btn,
    .mobile-nav-buttons .btn {
        width: 100%; 
    }
    
    .hero-section {
        padding-bottom: 15px !important; 
    }
    
    .info-cards {
        margin-bottom: 50px !important; 
    }
}