@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-logo {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loader-line {
    width: 100px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    animation: loading 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

:root {
    /* Color Palette */
    --primary-dark: #1b4332;
    --primary-main: #2d6a4f;
    --primary-light: #95d5b2;
    --secondary-main: #e07a5f;
    --accent-gold: #d4af37;
    --bg-light: #f8f9fa;
    --bg-cream: #f4f1de;
    --text-ink: #0a1d1d;
    --text-muted: #6c757d;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 5%;
    --header-height: 80px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-ink);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-dark);
}

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

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

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

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-main);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid var(--primary-main);
}

.btn:hover {
    background: transparent;
    color: var(--primary-main);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 106, 79, 0.2);
}

.btn-alt {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-alt:hover {
    color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* --- Reveal Animations --- */
[data-reveal] {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="up"], [data-reveal]:not([data-reveal="left"]):not([data-reveal="right"]):not([data-reveal="scale"]) {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-50px);
}

[data-reveal="right"] {
    transform: translateX(50px);
}

[data-reveal="scale"] {
    transform: scale(0.8);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1) !important;
}

/* Staggered Delay Helpers */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Philosophy --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.philosophy-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- Sections --- */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Cards Hover --- */
.service-preview-card, .service-card {
    transition: var(--transition-smooth);
}

.service-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-main);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .service-card {
        flex-direction: column !important;
        gap: 30px;
    }
    .service-img {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 5%;
    }
    .hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    header.hero { height: 100vh; }
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* --- Footer --- */
footer {
    background: linear-gradient(rgba(27, 67, 50, 0.9), rgba(27, 67, 50, 0.8)), url('../assets/footer_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 80px 5% 40px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-col ul li:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}
