﻿:root {
    /* --- Palette Premium --- */
    --navy: #050c18;
    --navy-light: #0f172a;
    --bronze: #b45309;
    --bronze-light: #d97706;
    --bronze-soft: #fff7ed;
    --teal: #006a6a;
    --teal-dark: #004d4d;
    --slate: #475569;
    --slate-light: #94a3b8;
    --white: #ffffff;
    --ice: #f8fafc;
    --error: #ef4444;
    --success: #10b981;

    /* --- Typography --- */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* --- Dimensions --- */
    --nav-height: 100px;
    --nav-scroll-height: 80px;
    --container-width: 1200px;
    --border-radius: 8px;

    /* --- Shadows --- */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-bronze: 0 10px 30px rgba(180, 83, 9, 0.15);

    /* --- Transitions --- */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--slate);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--white);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bronze);
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    z-index: 1000;
}

header.scrolled-bg {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: var(--nav-scroll-height);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-base);
}

header.scrolled-bg .logo-img {
    height: 40px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
}

.brand-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bronze);
    font-weight: 600;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bronze);
    transition: var(--transition-base);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--bronze);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--navy);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(5, 12, 24, 0.7), rgba(5, 12, 24, 0.8)),
        url('../images/hero-bg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    text-align: center;
    padding-top: var(--nav-height);
    padding-bottom: 80px;
}

.hero-content {
    max-width: 900px;
    padding: 0 5%;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 16px 45px;
    background: var(--bronze);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border-radius: 2px;
    transition: var(--transition-base);
    border: 1px solid var(--bronze);
    box-shadow: var(--shadow-bronze);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-5px);
}

.btn-form {
    display: inline-block;
    padding: 16px 45px;
    background: var(--bronze);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border-radius: 2px;
    transition: var(--transition-base);
    border: 1px solid var(--bronze);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.btn-form:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- Stats Section --- */
.stats-bar {
    background: var(--white);
    padding: 60px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--ice);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--bronze);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* --- Services Preview --- */
.services-section {
    padding: 100px 5%;
    background: var(--ice);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--slate);
    font-size: 1.05rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bronze);
}

.card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--slate);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--bronze);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.card-link i,
.card-link svg {
    transition: var(--transition-base);
}

.card-link:hover i,
.card-link:hover svg {
    transform: translateX(5px);
}

/* --- About Preview --- */
.about-preview {
    padding: 100px 5%;
    background: var(--white);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    align-items: center;
}

.about-img-group {
    position: relative;
}

.main-img {
    width: 90%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.badge-img {
    position: absolute;
    bottom: -30px;
    right: 0;
    background: var(--navy);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--white);
}

.badge-img strong {
    display: block;
    font-size: 2.2rem;
    color: var(--bronze);
    line-height: 1;
}

.badge-img span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    transform: none !important;
    opacity: 1 !important;
}

.about-text h2,
.about-text p,
.about-text .card-link {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

.about-text.active h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.about-text.active p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.about-text.active .card-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
    /* Slightly more delay for the link */
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--slate);
    font-size: 1.05rem;
}

/* --- Inner Pages --- */
.page-header {
    background: linear-gradient(rgba(5, 12, 24, 0.85), rgba(5, 12, 24, 0.9)), url('../images/page-header-bg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px;
    padding: 140px 5% 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-section {
    padding: 100px 5%;
}

.text-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Centralized text container */
.text-container h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.text-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--bronze);
    margin: 15px auto 0;
}

.text-container h3 {
    font-size: 1.5rem;
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--navy);
}

.text-container p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.8;
    text-align: left;
}

.text-container p:last-child {
    margin-bottom: 0;
}

/* --- Mission, Vision, Objectives (MVO) --- */
.mvo-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.mvo-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mvo-item h3 {
    color: var(--bronze) !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mvo-icon {
    flex-shrink: 0;
    color: var(--bronze);
    display: inline-block;
}

/* --- Objectives & Pillars --- */
.objectives-section {
    margin-top: 40px;
    background: var(--ice);
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--bronze);
    text-align: left;
}

.objectives-section h3 {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

.objectives-list {
    list-style: none;
    padding: 0;
}

.objectives-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.objectives-list li i,
.objectives-list li svg {
    color: var(--teal);
    margin-top: 5px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.objectives-list li strong {
    color: var(--navy);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.contact-info-box {
    background: var(--navy);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info-box h2,
.contact-info-box h3 {
    color: var(--white);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i,
.info-item svg {
    color: var(--bronze);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ice);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: 0.3s;
    font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--bronze);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 400px;
}

/* --- Footer --- */
footer {
    background: var(--navy);
    color: var(--slate-light);
    padding: 80px 0 30px;
    border-top: 4px solid var(--bronze);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px 60px;
}

.footer-brand h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-text {
    max-width: 300px;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--bronze);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 35px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--bronze);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-content {
    position: relative;
    display: inline-block;
}

.crown-icon {
    position: absolute;
    top: -12px;
    left: -8px;
    color: #ffd700;
    transform: rotate(-25deg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo-img {
        height: 45px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-tag {
        font-size: 0.55rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
        /* Above the side menu */
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: auto;
        min-width: 250px;
        height: 100vh;
        background: var(--white);
        padding: 100px 40px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .hero {
        height: auto;
        padding: 160px 5% 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .stats-bar {
        padding: 40px 0;
        margin-top: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-img-group {
        order: -1;
        margin-bottom: 30px;
    }

    .badge-img {
        padding: 20px;
        bottom: -20px;
    }

    .content-section {
        padding: 60px 5%;
    }

    .text-container h2 {
        font-size: 1.8rem;
    }

    .mvo-grid {
        gap: 20px;
    }

    .mvo-item {
        padding: 20px;
    }

    .objectives-section {
        padding: 30px 20px;
    }

    .objectives-list li {
        gap: 10px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-header {
        height: auto;
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-info-box,
    .contact-form {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-text {
        margin: 0 auto 25px auto;
    }

    .footer-links a {
        justify-content: center;
    }
}