/* --- 1. FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

:root {
    /* Palette: Cool & Balanced */
    --navy-bg: #1B263B;      /* Deep Academic Navy */
    --navy-card: #25324B;    /* Slightly lighter for cards */
    --gold-accent: #C5A059;  /* Spiritual/Premium Gold */
    --teal-muted: #778DA9;   /* Balancing Cool Tone */
    --text-light: #E0E1DD;   /* Soft White text */
    --text-dark: #1B263B;    /* Dark text for white sections */
    --glass: rgba(27, 38, 59, 0.75);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--navy-bg);
    color: var(--text-light);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* --- 2. GLASSMORPHISM NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-cta {
    display: none;
}

.hamburger {
    width: 28px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Class added by JS on scroll - KEEPS IT DARK NAVY */
.navbar.scrolled {
    background: rgba(27, 38, 59, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 5px;
}

.logo-img {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1;
    letter-spacing: 2px;
    font-weight: 700;
    margin-top: -54px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold-accent);
    transition: 0.3s;
}

.nav-links a:hover { color: var(--gold-accent); }
.nav-links a:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 150%;
    left: -20px;
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(20px);
    min-width: 240px;
    padding: 15px 0;
    list-style: none;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    top: 100%;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    font-size: 14px;
    color: #ccc;
}
.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--gold-accent);
    padding-left: 30px; /* Slide effect */
}

/* Button */
.btn-gold {
    padding: 12px 35px;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--gold-accent);
    transition: 0.3s;
    z-index: -1;
    border-radius: 50px;
}

.btn-gold:hover { color: var(--navy-bg); }
.btn-gold:hover::before { width: 100%; }

/* --- 3. ANIMATION UTILITIES --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4. HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(27, 38, 59, 0.6), rgba(27, 38, 59, 0.4)),
                url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=2070&auto=format&fit=crop'); /* Starry/Cosmic bg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* --- 5. SERVICES GRID --- */
.section-padding { padding: 100px 8%; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--navy-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 3px;
    background: var(--gold-accent);
    transform: scaleX(0);
    transition: 0.4s;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-15px);
    background: #2a3b55;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card i {
    font-size: 32px;
    color: var(--gold-accent);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}
.service-card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- 6. STATS (LIGHT THEME) --- */
.stats-section {
    background-color: #F4F5F7; /* Light background break */
    color: var(--navy-bg);
}

.stat-box {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 4rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--navy-bg);
    display: inline;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy-bg);
    font-weight: 700;
    margin-top: 10px;
}

/* --- 7. FOOTER --- */
footer {
    background-color: #111;
    padding: 80px 8% 30px;
    position: relative;
    margin-top: 100px;
}

footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #111;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 { font-size: 2rem; color: #fff; }
.footer-brand p { color: #888; max-width: 300px; margin-top: 15px; }

.footer-links h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links a { display: block; color: #888; margin-bottom: 12px; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--gold-accent); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #555;

    font-size: 0.8rem;
}

/* --- RESPONSIVE --- */
@media(max-width: 1024px) {
    .navbar { padding: 20px 40px; }
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 4rem; }
}

@media(max-width: 768px) {
    .navbar { 
        padding: 15px 20px; 
        background: rgba(27, 38, 59, 0.98);
        backdrop-filter: blur(15px);
    }
    
    .logo-img {
        width: 140px;
    }
    
    .logo-text {
        font-size: 1.1rem;
        margin-top: -30px;
    }
    
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy-bg);
        flex-direction: column;
        padding: 80px 0 30px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav-links > li > a {
        font-size: 17px;
        display: block;
        padding: 18px 30px;
        color: rgba(255,255,255,0.9);
    }
    
    .nav-links > li > a::after {
        display: none;
    }
    
    .mobile-cta {
        display: block;
        border-top: 2px solid rgba(255,255,255,0.1);
        border-bottom: none;
        padding: 0;
        margin-top: 10px;
    }
    
    .mobile-cta .btn-gold {
        width: calc(100% - 60px);
        margin: 20px 30px;
        display: block;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        pointer-events: all;
        transform: none;
        margin: 0;
        padding: 0;
        background: rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-menu li {
        border-bottom: none;
    }
    
    .dropdown-menu li a {
        padding: 15px 30px 15px 50px !important;
        font-size: 15px;
        color: rgba(255,255,255,0.7) !important;
        background: transparent !important;
    }
    
    .dropdown-menu li a:hover {
        color: var(--gold-accent) !important;
        padding-left: 55px !important;
        background: rgba(255,255,255,0.03) !important;
    }
    
    .navbar .btn-gold {
        display: none;
    }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }
    
    .grid-container { grid-template-columns: 1fr; }
    .stats-section .grid-container { grid-template-columns: 1fr; gap: 40px; }
    
    .section-padding { padding: 60px 5%; }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .logo-img { width: 120px !important; }
    .logo-text { font-size: 1rem !important; }
    .stat-number { font-size: 3rem; }
    .nav-links {
        max-width: 280px;
    }
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    background: var(--navy-bg); /* Dark background for contrast */
    color: #fff;
    position: relative;
    overflow: hidden;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05); /* Glass-morphism effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* The Hover Animation */
.testimonial-card:hover {
    transform: translateY(-10px); /* Lifts the card up */
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--gold-accent);
}

/* Large Gold Quote Icon */
.testimonial-card::before {
    content: '\201C'; /* Unicode for opening quote */
    font-family: serif;
    font-size: 8rem;
    color: var(--gold-accent);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ddd;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.client-name {
    font-weight: 700;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-name::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--gold-accent);
}

/* Staggered Animation Delay for the Reveal */
.testimonial-card:nth-child(1) { transition-delay: 0.1s; }
.testimonial-card:nth-child(2) { transition-delay: 0.3s; }
.testimonial-card:nth-child(3) { transition-delay: 0.5s; }


/* --- PRICING SECTION --- */
.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.pricing-row-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .pricing-row-top { grid-template-columns: repeat(2, 1fr); }
    .pricing-row-bottom { max-width: 100%; }
}

@media (max-width: 580px) {
    .pricing-row-top { grid-template-columns: 1fr; }
    .pricing-row-bottom { grid-template-columns: 1fr; }
}

.pricing-card {
    background: var(--navy-card);
    border-radius: 16px;
    padding: 40px 35px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-accent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.pricing-card--featured {
    border-color: var(--gold-accent);
    background: linear-gradient(145deg, #2a3a55, var(--navy-card));
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-accent);
    color: var(--navy-bg);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pricing-icon i {
    font-size: 1.6rem;
    color: var(--gold-accent);
}

.pricing-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.pricing-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-accent);
    line-height: 1;
}

.pricing-unit {
    color: var(--teal-muted);
    font-size: 0.85rem;
    margin-top: 6px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
    width: 100%;
    text-align: left;
}

.pricing-features li {
    color: #ccc;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li i {
    color: var(--gold-accent);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    display: block;
}

/* Service cards: 3 top, 2 bottom centered */
#services .grid-container-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Center the bottom 2 cards */
#services .service-card:nth-child(4) { grid-column: 1; }
#services .service-card:nth-child(5) { grid-column: 2; }

@media (max-width: 900px) {
    #services [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 580px) {
    #services [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}
