:root {
    /* Brand Colors - INSS Theme (Blue) */
    /* Note: 'green-dark' is kept as variable name to avoid breaking index.php, but it now holds the Navy Blue */
    --color-green-dark: #0d253f; 
    
    --color-gold-primary: #B99850;
    --color-gold-highlight: #E6D37E;
    --color-grey-metallic: #9EA7A6;
    --color-grey-light: #D1D1D1;
    --color-white: #FFFFFF;

    --font-primary: 'Inter', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--color-green-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.text-gold {
    color: var(--color-gold-primary);
}

/* This class name is preserved for HTML compatibility but now applies the Blue Brand Color */
.text-green {
    color: var(--color-green-dark);
}

.bg-green {
    background-color: var(--color-green-dark);
    color: var(--color-white);
}

.bg-gold {
    background-color: var(--color-gold-primary);
    color: var(--color-white);
}

/* Button Styles */
.btn-gold {
    background-color: var(--color-gold-primary);
    color: #0d253f; /* Text color matched to blue for contrast */
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 6px;
}

.btn-gold:hover {
    background-color: var(--color-gold-highlight);
    color: #0d253f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(185, 152, 80, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--color-gold-primary);
    color: var(--color-gold-primary);
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--color-gold-primary);
    color: var(--color-green-dark);
}

/* Card Styles */
.card-custom {
    border: 1px solid rgba(185, 152, 80, 0.3);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-white);
    height: 100%;
    padding: 2rem;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 37, 63, 0.1);
    border-color: var(--color-gold-primary);
}


/* Hero Section */
.hero-section {
    /* Gradient: Navy Blue (#0d253f) to transparent */
    background: linear-gradient(to right, #0d253f 45%, rgba(13, 37, 63, 0.85) 65%, rgba(13, 37, 63, 0) 100%), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 0 100px 0;
    /* Extra padding top for fixed header */
    color: var(--color-white);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--color-grey-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Helper utilities */
.display-4 {
    font-weight: 800;
    letter-spacing: -1px;
}

.lead {
    font-weight: 400;
    color: #4a5568;
}

.bg-green .lead {
    color: var(--color-grey-light);
}

/* Animation Classes with Progressive Enhancement */
.reveal {
    /* Default state is VISIBLE so content shows if JS fails */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* JS will add this class to prepare animation */
.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* Custom Icon Lists */
.icon-list {
    list-style: none;
    padding-left: 0;
}

.icon-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.icon-list li::before {
    content: '\f00c';
    /* FontAwesome Check Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-gold-primary);
    position: absolute;
    left: 0;
    top: 4px;
}

/* Specific Card Tweaks */
.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-green-dark);
    font-weight: 700;
}


/* Accordion Customization */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: var(--color-green-dark);
    background-color: #fff;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: var(--color-gold-primary);
    background-color: var(--color-green-dark);
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    /* Make default chevron white */
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(185, 152, 80, 0.3);
}


/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}


/* Hover Utilities */
.hover-gold {
    transition: color 0.3s ease;
}

.hover-gold:hover {
    color: var(--color-gold-primary) !important;
}

/* Force Color Utilities (Must be at end to override components) */
.bg-green {
    background-color: var(--color-green-dark) !important;
    color: var(--color-white) !important;
}

.bg-gold {
    background-color: var(--color-gold-primary) !important;
    color: var(--color-white) !important;
}

.text-gold {
    color: var(--color-gold-primary) !important;
}

.text-green {
    color: var(--color-green-dark) !important;
}

/* Increased Section Spacing */
section {
    padding: 100px 0;
}

@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Mobile Tweaks */
@media (max-width: 991px) {

    /* CUSTOM MOBILE HEADER FLEX */
    .custom-mobile-header {
        flex-direction: column !important;
        text-align: center;
    }

    .custom-mobile-header .navbar-brand {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .custom-mobile-header .navbar-toggler {
        margin: 0 auto;
    }

    /* Hero Section Spacing - Increased to compensate bigger header */
    .hero-section {
        padding-top: 240px;
        /* Increased from 180px to clear the bigger logo */
        padding-bottom: 60px;
    }

    /* Logo Header Bigger on Mobile */
    .navbar-brand img {
        height: 100px !important;
        /* Force resize on mobile */
    }

    /* Offcanvas Menu Styling */
    .offcanvas-header {
        justify-content: center !important;
        /* Center Logo in menu */
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .offcanvas-body {
        padding-left: 0 !important;
        /* Reset padding to handle item borders full width */
        text-align: left;
    }

    /* Bigger Items with separator */
    .offcanvas-body .nav-item {
        margin-bottom: 0;
        /* Remove margin used before */
        border-bottom: 1px solid #f8f9fa;
        /* Very light thin line */
    }

    .offcanvas-body .nav-link {
        font-size: 1.2rem;
        /* Bigger font */
        padding: 1.2rem 2rem;
        /* Bigger touch target + Left padding restored here */
        display: block;
        font-weight: 600;
        color: var(--color-green-dark);
    }

    /* Button inside menu */
    .offcanvas-body .btn-gold {
        margin: 2rem 2rem 0 2rem;
        /* Margin to separate from lines */
        width: calc(100% - 4rem) !important;
        /* Width minus margins */
        padding: 15px;
        font-size: 1.1rem;
    }

    /* Justify specific About Text */
    #sobre .text-justify-mobile {
        text-align: justify !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Center Button About */
    #sobre .btn-outline-gold {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    /* Centralize Section 2 Titles */
    .section-title-center-mobile h2,
    .section-title-center-mobile p {
        text-align: center;
    }

    /* Cards Icons */
    .card-custom .card-icon-header {
        text-align: center;
        font-size: 3rem;
        /* Slightly larger */
        margin-bottom: 1rem;
    }

    .card-custom .card-body h3 {
        text-align: center;
    }

    /* About Section */
    #sobre h2,
    #sobre .lead,
    #sobre p:not(.text-start-mobile) {
        text-align: center;
    }

    #sobre .icon-list {
        display: inline-block;
        text-align: left;
        /* Keep list left aligned but container centered */
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
    }

    /* Footer Tweaks */
    footer {
        text-align: center;
    }

    /* Center Footer Logo */
    footer img {
        margin: 0 auto;
        display: block;
        height: 70px !important;
        /* Smaller symbol for mobile */
    }

    /* Center Specialisation Text and increase slightly */
    footer p.text-white-50.small {
        font-size: 1rem;
        margin-top: 10px;
    }

    /* Footer Social Icons Center */
    footer .d-flex {
        justify-content: center;
    }

    /* Footer Nav Padding */
    footer .col-lg-3 {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Small Copyright */
    footer p.small.text-white-50.mb-0 {
        font-size: 0.7rem !important;
        line-height: 1.2;
    }
}

/* DESKTOP OFFCANVAS RESET (Fix Desktop Layout) */
@media (min-width: 992px) {

    /* Reset Offcanvas to behave like a normal Navbar */
    .offcanvas {
        position: static !important;
        z-index: auto !important;
        flex-grow: 1 !important;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        background-color: transparent !important;
        border: 0 !important;
        transform: none !important;
        transition: none !important;
        display: flex !important;
        flex-direction: row !important;
        /* Force row */
        padding: 0 !important;
        justify-content: flex-end !important;
        /* Align to right */
    }

    .offcanvas-header {
        display: none !important;
    }

    .offcanvas-body {
        padding: 0 !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: row !important;
        /* Force items in a row */
        width: auto !important;
        /* Allow auto width */
        align-items: center !important;
    }

    /* Reset Nav Items to Horizontal */
    .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem;
        /* Spacing between items */
    }

    .navbar-nav .nav-item {
        border: none !important;
        /* Remove mobile borders */
        margin: 0 !important;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        /* Standard padding */
        font-size: 1rem !important;
        /* Standard font */
    }

    /* Reset Button */
    .offcanvas-body .btn-gold {
        margin: 0 !important;
        width: auto !important;
        display: inline-block !important;
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }

    .navbar-toggler {
        display: none !important;
    }
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}