/* SYMMETRY ADVISORY SOLUTIONS - Main Stylesheet
    Table of Contents:
    1. Root Variables & Typography
    2. Global Layout
    3. Navigation (Desktop & Mobile)
    4. Page Headers & Banners
    5. Content Sections & Typography
    6. UI Components (Cards, Buttons, Icons)
    7. Footer
*/

/* ==========================================================================
   1. Root Variables & Typography
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    /* Symmetry Brand Purple */
    --brand-purple-dark: #4d2e64;
    --brand-purple-medium: #62397a;
    --brand-purple: #7a4491;
    --brand-purple-light: #9365a3;
    --brand-purple-lighter: #ad80b6;
    --brand-purple-pale: #c799c9;

    /* Symmetry Brand Blue */
    --brand-blue-dark: #104f70;
    --brand-blue-medium: #146b98;
    --brand-blue: #1987c0;
    --brand-blue-light: #3b9fd0;
    --brand-blue-lighter: #5db8e0;
    --brand-blue-pale: #bfdae4;

    /* Symmetry Accent Colors */
    --brand-black: #231f20;
    --brand-accent-red: #e6461b;
    --brand-accent-dark-gray: #686868;
    --brand-accent-light-gray: #c0bfc0;
}

* {
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

/* ==========================================================================
   2. Global Layout
   ========================================================================== */
main {
    min-height: 100vh;
    background-color: #F7F4F9;
}

/* ==========================================================================
   3. Navigation (Custom Navbar)
   ========================================================================== */
.navbar-custom {
    background-color: white;
    border-bottom: 3px solid var(--brand-blue);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--brand-purple);
    font-weight: 400;
    font-size: 1.25rem;
}

.navbar-custom .nav-link:hover {
    color: var(--brand-blue);
    font-weight: bold;
}

/* Active State */
.navbar-custom .nav-link.active {
    background-color: var(--brand-purple-pale); 
    color: var(--brand-black) !important; 
    border-radius: 20px; 
    font-weight: bold; 
}

/* Dropdown Menu Base (Desktop Defaults) */
.navbar-custom .dropdown-menu {
    background-color: white;
    border: 2px solid var(--brand-purple-pale);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0;
    margin-top: 0.7rem !important;
    min-width: 240px;
}

.navbar-custom .dropdown-item {
    color: var(--brand-purple);
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.7rem 1.2rem;
    transition: all 0.2s ease;
}

.navbar-custom .dropdown-item:hover {
    color: var(--brand-blue);
    font-weight: bold;
    background-color: transparent;
}

/* Bootstrap Dropdown Override (Active States) */
.dropdown-item.active, 
.dropdown-item:active {
    color: var(--brand-black) !important;
    background-color: var(--brand-purple-pale) !important;
    font-weight: bold;
}

/* --- Desktop Hover Animation --- */
@media (min-width: 992px) {
    .navbar-custom .dropdown-menu {
        display: block; 
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .navbar-custom .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Bridge to prevent menu closing during hover travel */
    .navbar-custom .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }
}

/* --- Mobile / Offcanvas Behavior --- */
@media (max-width: 991px) {
    .offcanvas-header {
        background-color: var(--brand-blue);
        color: white;
    }
    
    .offcanvas-header .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    .navbar-custom .nav-link {
        padding: 15px 10px !important;
        border-bottom: 1px solid #eee;
        margin: 0 !important;
        display: block;
    }

    .navbar-custom .dropdown-menu {
        background-color: #f9f9f9;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0 !important;
        border-radius: 0;
    }

    .navbar-custom .dropdown-item {
        padding: 12px 30px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-custom .nav-link.active {
        border-radius: 0;
    }
}

/* ==========================================================================
   4. Page Headers & Banners
   ========================================================================== */
.page-header {
    background: linear-gradient(145deg, var(--brand-purple) 20%, var(--brand-purple-pale) 80%);
    position: relative;
    min-height: 350px;
    color: #fff;
}

.page-header-small {
    min-height: 250px;
}

.page-header .header-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

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

.page-header .header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
}

.banner {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

/* ==========================================================================
   5. Content Sections & Typography
   ========================================================================== */
.section-title {
    color: var(--brand-purple-dark);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 2.1rem;
}

.section-description {
    color: var(--brand-black);
    line-height: 1.6;
    font-size: 1.3rem;
}

.section-link {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: bold;
}

.section-link:hover {
    color: var(--brand-blue-dark);
}

li {
    font-size: 1.3rem;
}

/* ==========================================================================
   6. UI Components (Cards, Buttons, Icons)
   ========================================================================== */
/* Service Cards */
.solutions-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solutions-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.solutions-card h5 {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--brand-blue-medium);
}

.solutions-card p {
    margin: 0;
    color: var(--brand-accent-dark-gray);
}

.solutions-card-icon {
    font-size: 1.3rem;
    color: var(--brand-purple);
}

/* Action Buttons */
.symmetry-btn {
    display: inline-block;
    background-color: var(--brand-purple);
    color: #fff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.symmetry-btn:hover {
    background-color: var(--brand-purple-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.footer {
    background-color: white; 
    color: var(--brand-purple);
    font-size: 1.3rem;
    border-top: 2px solid var(--brand-blue);
}

.footer a.footer-link {
    color: var(--brand-purple);
    text-decoration: none;
}

.footer a.footer-link:hover {
    color: var(--brand-blue);
}

.footer p { margin: 0; }

/* Social Icons */
.social-icon i {
    font-size: 1.6rem;
    color: var(--brand-purple);
    transition: 0.2s ease-in-out;
}

.social-icon i:hover {
    color: var(--brand-blue);
    transform: scale(1.1);
}