 /* --- VARIABLES & THEME --- */
 :root {
    --primary-dark: #071121;
    --primary: #0a192f;
    --primary-light: #112240;
    --gold: #d4af37;
    --gold-hover: #b5952f;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
    overflow-x: hidden; 
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- TYPOGRAPHY & UTILITIES --- */
.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 60px);
}

.section-header span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--primary-dark);
    line-height: 1.2;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 48px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--bg-white);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 1px solid var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: #ffffff;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 1001; 
}

.logo-mark {
    background: var(--primary);
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a.nav-item:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    position: relative;
    padding: 8px 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px; 
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

/* --- PAGE ROUTING LOGIC (SPA) --- */
.page {
    display: none;
    opacity: 0;
    animation: fadeInPage 0.5s forwards;
    padding-top: 75px; 
}

.page.active {
    display: block;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.9)), url('image-2.png') center/cover;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    margin-top: -75px; 
    padding-top: 75px;
    padding-bottom: 40px;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.hero h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--bg-white);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: clamp(60px, 10vw, 100px) 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 30px);
}

/* Single Service Detail View Overrides */
.services-grid.detail-view {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid.detail-view .service-card {
    transform: none !important; /* Disables hover lift in detail view */
    cursor: default;
}

#back-to-services-btn {
    display: none;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

#back-to-services-btn:hover {
    color: var(--gold);
}

.service-card {
    background: var(--bg-white);
    padding: clamp(30px, 6vw, 40px) clamp(20px, 5vw, 30px);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card.clickable {
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

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

.service-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: transparent;
}

.service-card:hover .learn-more {
    color: var(--gold-hover);
    transform: translateX(5px);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--gold);
}

.service-card h4 {
    font-size: clamp(1.15rem, 3vw, 1.25rem);
    margin-bottom: 12px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.learn-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    transition: var(--transition);
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: clamp(60px, 10vw, 100px) 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 60px);
    align-items: center;
}

.about-image {
    position: relative;
    padding-bottom: 20px; 
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -15px;
    width: 50%;
    height: 50%;
    border: 4px solid var(--gold);
    border-radius: 8px;
    z-index: -1;
}

.about-content h3 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: clamp(60px, 10vw, 100px) 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    background: var(--primary);
    color: var(--bg-white);
    padding: clamp(40px, 8vw, 60px);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.1);
}

.contact-info h3 {
    color: var(--bg-white);
    margin-bottom: 35px;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item svg {
    width: 36px;
    height: 36px;
    fill: var(--gold);
    margin-bottom: 12px;
}

.info-item h5 {
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item a, .info-item p {
    font-size: 1.05rem;
    color: var(--bg-white);
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--gold-hover);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-dark);
    color: var(--bg-light);
    padding: clamp(50px, 8vw, 60px) 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 15px;
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 15px; 
}

.footer-links ul a {
    color: #94a3b8;
    display: inline-block; 
    padding: 2px 0;
}

.footer-links ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- ANIMATIONS (Scroll) --- */
.animate-up {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- ROBUST MOBILE BREAKPOINTS --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 20px; }
    .about-image::after { right: -5px; bottom: 5px; } 
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: absolute; 
        top: 75px; 
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        max-height: 0; 
        overflow: hidden;
        opacity: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out;
    }

    .nav-links.active {
        max-height: 450px; 
        opacity: 1;
        padding: 20px 0 30px;
        border-top: 1px solid #f1f5f9;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a.nav-item {
        font-size: 1.1rem; 
        display: block;
        padding: 10px 20px;
    }

    .nav-links a.btn {
        margin: 15px auto 0 auto;
        width: 80%; 
        max-width: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero { text-align: center; justify-content: center; }
    .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .hero-btns { justify-content: center; width: 100%; }
    .hero-btns .btn { width: 100%; max-width: 300px; } 
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-brand p { margin: 15px auto 0; }
    .footer-links ul a { padding: 8px 0; } 
}