/* --- CSS VARIABLES --- */
:root {
    --deep-blue: #0a2540;
    --gold: #c9a03d;
    --gold-light: #e6c26c;
    --white: #ffffff;
    --off-white: #f5f4f0;
    --gray-text: #6b7a8a;
    --light-gray: #e8e6e0;
    --card-shadow: 0 4px 20px -6px rgba(10, 37, 64, 0.06);
    --hover-shadow: 0 12px 35px -10px rgba(10, 37, 64, 0.1);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--deep-blue);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; font-weight: 700; }

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--deep-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}
.loader-content { text-align: center; animation: fadeInLoader 1s ease-in; }
.loader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.loader-line {
    width: 0;
    height: 2px;
    background: var(--gold-light);
    margin: 0 auto;
    animation: loadLine 1.5s ease-in-out forwards;
}
@keyframes loadLine { to { width: 100px; } }
@keyframes fadeInLoader { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.8rem 5%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}
.nav-links li a {
    text-decoration: none;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    transition: 0.25s;
    font-size: 0.85rem;
    position: relative;
}
.nav-links li a:hover { color: white; }
.btn-nav {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    color: white !important;
    font-weight: 400;
    font-size: 0.85rem !important;
}
.btn-nav:hover { 
    background: white; 
    color: var(--deep-blue) !important;
    border-color: white;
    transform: translateY(-2px);
}
.btn-nav::after { display: none; }
.menu-icon { display: none; font-size: 1.6rem; color: white; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 100px 5% 80px;
    overflow: hidden;
    background: url('https://images.pexels.com/photos/338504/pexels-photo-338504.jpeg?auto=compress&cs=tinysrgb&w=1600') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 37, 64, 0.1) 0%, rgba(10, 37, 64, 0.5) 60%, rgba(10, 37, 64, 0.8) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin-left: auto;
    text-align: right;
    padding-bottom: 2rem;
    animation: fadeUpHero 1s ease-out forwards;
    opacity: 0;
}
@keyframes fadeUpHero {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.hero h1 span { color: var(--gold-light); }
.hero p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
    font-weight: 300;
    max-width: 420px;
    margin-left: auto;
}
.hero-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

/* --- BUTTONS --- */
.btn-gold {
    background: var(--gold);
    color: var(--deep-blue);
    border: none;
    padding: 0.65rem 1.8rem;
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-gold:hover { background: #b3862f; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,160,61,0.2); }
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.65rem 1.8rem;
    font-weight: 400;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-outline:hover {
    background: white;
    color: var(--deep-blue);
    transform: translateY(-2px);
    border-color: white;
}

/* --- CONTAINER --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* --- SECTION SPACING (FIXED) --- */
.section-spacing {
    padding-top: 4rem;
}
section:first-of-type.section-spacing { 
    padding-top: 0; 
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
    font-size: 2rem;
    color: var(--deep-blue);
    font-weight: 600;
    letter-spacing: -0.5px;
}
.section-header h2:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0.8rem auto 0;
}
.section-subtitle {
    color: var(--gray-text);
    max-width: 550px;
    margin: 1rem auto 0;
    font-size: 0.95rem;
    font-weight: 300;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}
.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--deep-blue);
    transition: 0.3s;
}
.service-card:hover .service-icon {
    background: var(--gold);
    color: white;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.service-card p {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 300;
}
.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--gold);
    transition: 0.2s;
}
.service-link i { transition: 0.2s; }
.service-card:hover .service-link i { transform: translateX(4px); }

/* --- ABOUT --- */
.about-wrapper {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: var(--card-shadow);
}
.about-wrapper p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 300;
}
.about-wrapper p:last-child { margin-bottom: 0; }

/* --- TESTIMONIALS --- */
.testimonials-section {
    padding: 4rem 0;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    transition: 0.3s;
    position: relative;
}
.testimonial-card:hover {
    border-color: var(--gold);
    box-shadow: var(--card-shadow);
}
.testimonial-quote {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    opacity: 0.4;
}
.testimonial-text {
    font-size: 0.95rem;
    color: var(--deep-blue);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 300;
}
.testimonial-author {
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 0.9rem;
}
.testimonial-title {
    font-size: 0.75rem;
    color: var(--gray-text);
    margin-top: 2px;
    font-weight: 300;
}

/* --- UPDATES FORM --- */
.updates-wrapper {
    max-width: 550px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: var(--card-shadow);
}
.form-group { margin-bottom: 1.2rem; }
.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
    background: var(--off-white);
    font-size: 0.9rem;
    color: var(--deep-blue);
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(201,160,61,0.06);
}
.form-input::placeholder { color: #b0b0b0; }
.form-note {
    font-size: 0.7rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--gray-text);
}

/* --- FOOTER --- */
footer {
    background: var(--deep-blue);
    margin-top: 3rem;
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.footer-col h4 { 
    color: white; 
    margin-bottom: 1rem; 
    font-size: 0.95rem;
    font-weight: 500;
}
.footer-col a { 
    color: rgba(255,255,255,0.5); 
    text-decoration: none; 
    display: block; 
    margin: 0.4rem 0; 
    transition: 0.2s; 
    font-size: 0.85rem;
    font-weight: 300;
}
.footer-col a:hover { color: white; transform: translateX(3px); }
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    transition: 0.3s;
    margin: 0;
}
.social-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.copyright { 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    margin-top: 2rem; 
    padding-top: 1.5rem; 
    font-size: 0.75rem; 
    opacity: 0.4;
    font-weight: 300;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    background: var(--deep-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--deep-blue); transform: translateY(-3px); }

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 60px rgba(0,0,0,0.2);
    animation: fadeInModal 0.4s ease;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}
.modal-content h2 {
    font-size: 1.8rem;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}
.modal-content h2 span { color: var(--gold); }
.modal-content p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    font-weight: 300;
}
.modal-close-btn {
    background: var(--gold);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--deep-blue);
    cursor: pointer;
    transition: 0.3s;
}
.modal-close-btn:hover { background: #b3862f; transform: scale(1.02); }

/* --- TOAST --- */
.toast-msg {
    position: fixed; bottom: 100px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--deep-blue); color: white;
    padding: 0.8rem 1.8rem; border-radius: 50px;
    font-weight: 400; z-index: 2000;
    opacity: 0; transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- SPINNER --- */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--deep-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- FADE-UP ANIMATION --- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .services-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid { flex-direction: column; }
    .hero { 
        align-items: center;
        justify-content: center;
        text-align: center;
        background-position: 60% center;
        min-height: 70vh;
    }
    .hero-content { 
        text-align: center; 
        max-width: 100%;
        margin: 0;
        padding-bottom: 0;
    }
    .hero h1 { font-size: 1.8rem; }
    .hero p { max-width: 100%; margin: 0 auto 1.5rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-overlay {
        background: linear-gradient(135deg, rgba(10, 37, 64, 0.6) 0%, rgba(10, 37, 64, 0.8) 100%);
    }
    .nav-links { display: none; }
    .menu-icon { display: block; }
    .nav-links.mobile-open {
        display: flex; flex-direction: column;
        position: absolute; top: 65px; left: 0; width: 100%;
        background: rgba(10,37,64,0.98); backdrop-filter: blur(12px);
        padding: 1.5rem 2rem; gap: 1.2rem; text-align: center;
    }
    .section-spacing { padding-top: 2.5rem; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.7rem; }
    .updates-wrapper { padding: 2rem 1.5rem; }
    .about-wrapper { padding: 2rem 1.5rem; }
    .testimonial-card { padding: 1.5rem; }
    .testimonials-section { padding: 2.5rem 0; }
}
@media (min-width: 768px) { .hero h1 { font-size: 2.6rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3rem; } }
