/*
 * Google Fonts: Playfair Display (Serif), Inter (Sans-Serif)
*/

:root {
    /* New Premium Color Palette */
    --primary-color: #1D2D50; /* Deep, rich navy blue */
    --secondary-color: #131B3F; /* Even darker navy for depth */
    --accent-color: #C89666; /* Warm, sophisticated gold/ochre */
    --text-color: #333333; /* Dark grey for body text */
    --text-light: #666666; /* Lighter grey for subtitles */
    --background-light: #F8F7F4; /* Warm off-white for backgrounds */
    --white: #ffffff;

    /* New Premium Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;

    /* Global Styles */
    --border-radius: 8px;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- General & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography Styles --- */
h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 3.5rem; margin-bottom: 20px; }
h2 { font-size: 2.8rem; margin-bottom: 40px; text-align: center; }
h3 { font-size: 1.8rem; margin-bottom: 15px; }
h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--secondary-color); }

p {
    margin-bottom: 20px;
    max-width: 700px; /* Improve readability */
}

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

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

hr {
    border: none;
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

section {
    padding: 100px 0; /* Generous white space */
    overflow: hidden; /* For animations */
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 70px;
    width: auto;
    display: block;
}

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

.navbar .nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--accent-color);
}

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

.nav-toggle { display: none; } /* Hide hamburger on desktop */


/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(29, 45, 80, 0.8), rgba(19, 27, 63, 0.8)), url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 18px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 16px 30px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- General Content Sections --- */
.how-we-help, .why-us {
    background-color: var(--background-light);
}

.how-we-help p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card h3 {
    color: var(--accent-color);
}

.differentiators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 60px;
}


/* --- About Page --- */
.team {
    background-color: var(--background-light);
}
.team-member {
    text-align: center;
}

.team-member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    box-shadow: var(--shadow-medium);
}

.team-member h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.linkedin-icon svg {
    width: 24px; height: 24px;
    fill: var(--text-light);
    transition: fill 0.3s ease;
}

.linkedin-icon:hover svg {
    fill: var(--accent-color);
}

/* --- Services Page --- */
.services-main-content {
    background-color: var(--background-light);
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-link {
    padding: 15px 30px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 50px;
    background-color: var(--white);
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.tab-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tab-link.active {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-soft);
}

.tab-content {
    display: none; /* Hidden by default */
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}
.tab-content.active { display: block; }
.tab-content ul { list-style-position: inside; padding-left: 0; }

.package-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.package-card, .nested-accordion {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--shadow-soft);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 30px;
    transition: background-color 0.3s ease;
}
.accordion-header:hover { background-color: #fafafa; }

.accordion-icon { font-size: 1.5rem; color: var(--accent-color); transition: transform 0.3s ease; }

.package-card.active .accordion-header .accordion-icon,
.nested-accordion.active .accordion-header .accordion-icon {
    transform: rotate(45deg);
}


.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding: 0 30px;
}
.accordion-content .content-inner { padding-bottom: 30px; }

.accordion-content .content-inner h4 {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
}
.accordion-content .content-inner h4:first-of-type { margin-top: 0; }
.accordion-content .content-inner ul { list-style-type: none; padding-left: 0; }
.accordion-content .content-inner ul li { margin-bottom: 10px; }


.nested-accordion .accordion-header {
    padding: 20px 30px;
    background-color: #fafafa;
}

.nested-accordion .accordion-header h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-family: var(--body-font);
    font-weight: 600;
}


/* --- Contact Form --- */
.contact-form {
    background: var(--white);
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(200, 150, 102, 0.2);
}


/* --- CTA Section --- */
.cta-section {
    background-color: var(--background-light);
}

.cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 550px;
    margin-bottom: 30px;
}

/* --- Clients Section --- MOVED TO CORRECT LOCATION --- */
.clients {
    background-color: var(--background-light);
    padding: 80px 0 40px; /* 80px top, 40px bottom */
}

.clients h2 {
    margin-bottom: 50px;
}

.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
}

.client-logos img {
    max-height: 90px;  /* Increased logo size */
    max-width: 300px;  /* Adjusted max-width for new size */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* The .logo-inverted rule has been removed as it is no longer needed. */

.client-logos a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.client-logos .logo-inverted img {
    filter: invert(1) grayscale(100%);
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 50px 0;
}

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

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }

    .navbar {
        background-color: var(--white);
        backdrop-filter: none;
    }
    
    .navbar .nav-links {
        display: none;
        position: fixed;
        background-color: var(--white);
        z-index: 1000;
        top: 0;
        right: 0;
        bottom: 0;
        left: 30%;
        flex-direction: column;
        padding-top: 100px;
        align-items: center;
        gap: 25px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
    }

    .navbar .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: block;
        background: transparent;
        border: 0;
        cursor: pointer;
        z-index: 1001; /* Above nav links */
    }
    
    .hamburger {
        display: block;
        position: relative;
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.2s ease-in-out;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        left: 0;
        transition: all 0.2s ease-in-out;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .service-cards, .differentiators, .team-members, .package-cards {
        grid-template-columns: 1fr;
    }
    
    .tab-nav { flex-direction: column; }

    /* Make client logos wrap on mobile */
    .client-logos {
        flex-wrap: wrap;
    }
}