/* --- 1. ROOT VARIABLES --- */
:root {
    --primary: #8D5B4C;    /* Terracotta */
    --accent: #D4AF37;     /* Indian Gold */
    --dark: #1A1A1A;       /* Charcoal */
    --light: #FDFCFB;      /* Off-white */
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 2. BASE RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* --- 3. NAVIGATION (Glassmorphism) --- */
nav {
    height: var(--nav-height);
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixed to top */
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.6rem;
    letter-spacing: 4px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- 4. HERO SECTION (Corrected Background) --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full Viewport Height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 10%;
    
    /* Background Image Fix */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?q=80&w=2000');
    background-size: cover;      /* Fills screen without stretching */
    background-position: center; /* Centers the image focus */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-content {
    margin-top: var(--nav-height); /* Offset for the fixed nav */
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.btn {
    padding: 1rem 2.5rem;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
}

.btn:hover {
    background: white;
    color: var(--primary);
}

/* --- 5. SLIDER & GRIDS --- */
section {
    padding: 8rem 8%;
}

.bg-alt {
    background-color: #F4F1EE;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Slider Overlap Fix */
.slider-wrapper {
    position: relative;
    padding: 0 60px; /* Space created for buttons */
    max-width: 1400px;
    margin: 0 auto;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.slide {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 320px;
    height: 480px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(141, 91, 76, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
    text-align: center;
}

.slide:hover img, .slide.hover img { transform: scale(1.1); }
.slide:hover .card-overlay, .slide.hover .card-overlay { opacity: 1; }

/* Arrows Outside Images */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    transition: var(--transition);
}

.slide-arrow:hover {
    background: var(--primary);
    color: white;
}

.prev-arrow { left: 0; }
.next-arrow { right: 0; }

/* --- 6. CONTACT & FOOTER --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    padding: 1.2rem;
    border: 1px solid #eee;
    font-family: inherit;
    background: #fafafa;
}

.contact-form button {
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 2px;
}

/* --- 7. ABOUT SECTION --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #666;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

footer {
    background: var(--dark);
    color: #888;
    padding: 4rem 8%;
    text-align: center;
}

/* --- 7. MOBILE RESPONSIVE --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary);
}

@media (max-width: 1100px) {
    .slide { flex: 0 0 calc(50% - 15px); }
}

@media (max-width: 768px) {
    nav { padding: 0 5%; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 3rem;
        text-align: center;
        transform: translateY(-150%);
        transition: 0.5s;
    }
    .nav-links.active { transform: translateY(0); }
    .hamburger { display: flex; }
    
    .hero { background-attachment: scroll; } /* Parallax off for mobile */
    .slider-wrapper { padding: 0 10px; }
    .slide-arrow { display: none; } /* Use swipe on mobile */
    .slide { flex: 0 0 85%; }
    .contact-container { grid-template-columns: 1fr; padding: 2rem; }
    .about-container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .about-stats { justify-content: center; flex-wrap: wrap; }
}

/* --- Stuck effect: brief horizontal/scale motion when last slide reached --- */
.slider-container.stuck .slide:last-child img {
    animation: stuck-zoom 800ms cubic-bezier(.2,.8,.2,1);
}

@keyframes stuck-zoom {
    0% { transform: translateX(0) scale(1.02); }
    30% { transform: translateX(8px) scale(1.03); }
    60% { transform: translateX(-6px) scale(1.02); }
    100% { transform: translateX(0) scale(1.02); }
}