
:root {
    --primary: #0D2A5E;
    --primary-dark: #091F45;
    --secondary: #C5A059;
    --accent: #7A6C5D;
    --bg-light: #F8FAFC;
    --text-on-dark: #E8EDF2;
    --text-on-light: #1E293B;
    --text-muted-light: #64748B;
    --white: #FFFFFF;
}


html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-on-dark);
    background-color: var(--primary);
    line-height: 1.6;
    margin-bottom: 60px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-on-dark);
}


section:not(.hero-section):not(.footer-section),
.bg-light, .bg-white {
    background-color: var(--bg-light) !important;
    color: var(--text-on-light) !important;
}

    section:not(.hero-section):not(.footer-section) p, .bg-light p, .bg-white p {
        color: #334155 !important;
    }

    section:not(.hero-section):not(.footer-section) .text-muted, .bg-light .text-muted, .bg-white .text-muted {
        color: var(--text-muted-light) !important;
    }

    section:not(.hero-section):not(.footer-section) h2, section:not(.hero-section):not(.footer-section) h3, section:not(.hero-section):not(.footer-section) h4,
    .bg-light h2, .bg-light h3, .bg-light h4, .bg-white h2, .bg-white h3, .bg-white h4, .section-title {
        color: var(--primary) !important;
    }


a:not([class*="btn"]):not([class*="nav-link"]) {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

    a:not([class*="btn"]):not([class*="nav-link"]):hover {
        color: var(--secondary);
        text-decoration: underline;
    }


.btn-main {
    background: var(--secondary);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

    .btn-main:hover {
        background: #B8914D;
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
    }

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

    .btn-outline-primary:hover {
        background-color: var(--primary) !important;
        color: var(--white) !important;
    }

.btn-outline-secondary {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

    .btn-outline-secondary:hover {
        background-color: var(--accent) !important;
        color: var(--white) !important;
    }


.card-custom {
    border: none;
    border-radius: 12px;
    background: var(--white);
    color: var(--text-on-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card-custom:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .card-custom h4 {
        color: var(--primary) !important;
    }

.testimonial-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid var(--secondary);
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    color: var(--text-on-light);
}

    .testimonial-card h5 {
        color: var(--primary) !important;
    }

    .testimonial-card .text-muted {
        color: var(--text-muted-light) !important;
    }


.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 90px 0;
    color: var(--text-on-dark);
}

.hero-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

    .hero-card h1 {
        color: var(--white);
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero-card p {
        font-size: 1.1rem;
        opacity: 0.95;
        color: var(--white) !important;
    }

.footer-section {
    background: var(--primary-dark);
    color: var(--text-on-dark);
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

    .footer-section a {
        color: var(--secondary) !important;
    }

    .footer-section p {
        color: var(--text-on-dark) !important;
    }


.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.25);
}

blockquote {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    color: var(--text-on-light);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

    blockquote cite {
        color: var(--primary);
        font-weight: 600;
    }


.modal-content {
    background-color: var(--white);
    color: var(--text-on-light);
    border: none;
    border-radius: 12px;
}

.modal-header, .modal-body, .modal-footer {
    color: var(--text-on-light) !important;
}

    .modal-header h5.modal-title {
        color: var(--primary) !important;
    }

    .modal-body p, .modal-body div, .modal-body span {
        color: var(--text-on-light) !important;
    }

    .modal-body .text-muted, .modal-body .text-secondary, .modal-body small {
        color: var(--text-muted-light) !important;
    }

    .modal-body .fst-italic {
        color: var(--accent) !important;
    }

    .modal-header .btn-close {
        filter: none;
        opacity: 0.8;
    }


.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 3px;
        background: var(--secondary);
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--secondary);
}


@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-card h1 {
        font-size: 2.2rem;
    }
}
