/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #e6c4a8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c94428;
}

/* Selection */
::selection {
    background: #e6c4a8;
    color: #2C2420;
}

/* Navbar */
.nav-text {
    color: #2C2420;
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-text {
    color: #2C2420;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #db5a3a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
#mobileMenuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero-bg {
    will-change: transform;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Buttons */
.cta-primary {
    display: inline-flex;
    align-items: center;
    background: #db5a3a;
    color: #fff;
    padding: 14px 32px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #c94428;
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-primary:hover::before {
    left: 0;
}

.cta-primary:hover {
    box-shadow: 0 10px 40px rgba(219, 90, 58, 0.3);
    transform: translateY(-2px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #f3e9d8;
    padding: 14px 32px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    border: 1px solid rgba(243, 233, 216, 0.4);
    transition: all 0.4s ease;
}

.cta-secondary:hover {
    background: rgba(243, 233, 216, 0.1);
    border-color: rgba(243, 233, 216, 0.8);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Section Styles */
.section-label {
    letter-spacing: 0.3em;
    font-size: 11px;
    text-transform: uppercase;
    color: #db5a3a;
    font-weight: 400;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.section-desc {
    font-weight: 300;
    line-height: 1.8;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #db5a3a, #e6c4a8);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* About Section */
.about-img-wrapper {
    position: relative;
    z-index: 1;
}

.about-img-secondary {
    z-index: 2;
    box-shadow: 0 20px 60px rgba(44, 36, 32, 0.2);
}

.about-accent {
    z-index: 0;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 32, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(44, 36, 32, 0.15);
}

/* Philosophy Section */
.philosophy-bg {
    background-attachment: fixed;
}

/* Contact Form */
#contactForm input:focus,
#contactForm textarea:focus {
    border-color: #e6c4a8 !important;
    box-shadow: 0 0 0 3px rgba(230, 196, 168, 0.2);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Parallax helper */
.parallax-slow {
    will-change: transform;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .philosophy-bg {
        background-attachment: scroll;
    }
    
    .about-img-secondary {
        display: none;
    }
    
    .about-accent {
        display: none;
    }
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, .hero-scroll {
        display: none !important;
    }
}
