/* ==========================================================================
   1. THEME CONFIGURATION (EDIT ME!)
   ========================================================================== */
:root {
    /* ---------------- COLORS ---------------- */
    /* Main Brand Color (Deep Coffee) - Headings, Footer, Borders */
    /* Sampled from the "OLD OAK" text in the image */
    --primary-color: #3e2b22;

    /* Accent/Action Color (Forest/Moss Green) */
    /* A natural green that pairs beautifully with the dark brown and cream */
    --accent-color: #5d6e38;

    /* Hover Color (Darker Green) */
    --accent-hover: #455229;

    /* Backgrounds */
    --bg-white: #fdfbf5;    /* Main Background  */
    --bg-light: #fdfbf5;    /* Secondary Background  */

    /* Text Colors */
    --text-dark: #2a1f1d;   /* Very dark brown for body text */
    --text-light: #5c504a;  /* Muted warm brown */
    --text-white: #ffffff;  /* Text on dark backgrounds */

    /* Status Colors */
    --success-color: #5d6e38; /* Using the brand green */
    --error-color: #a63737;   /* Brick Red */
    --border-color: #d6d0c5;  /* Warm beige lines */

    /* ---------------- TYPOGRAPHY ---------------- */
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Inter', sans-serif;          
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* ---------------- LAYOUT & SPACING ---------------- */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --section-spacing: 4rem;
    --border-radius: 4px; /* Slightly sharper corners to match the square logo */

    /* ---------------- SHADOWS ---------------- */
    --shadow-soft: 0 25px 50px -12px rgba(42, 31, 27, 0.25), 0 2px 4px -1px rgba(62, 43, 34, 0.04);
    --shadow-hover: 0 10px 15px -3px rgba(62, 43, 34, 0.12), 0 4px 6px -2px rgba(62, 43, 34, 0.06);
    --shadow-deep: 0 25px 50px -12px rgba(62, 43, 34, 0.25);
    
    --transition-fast: 0.3s ease;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: var(--line-height-base);
    overflow-x: hidden;
    
    /* STICKY FOOTER MAGIC */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Pushes footer to bottom */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

/* =========================================
   3. UTILITIES & ICONS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section { padding: var(--section-spacing) 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Icons */
.icon-inline {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
}

.logo-img {
    height: 85px;
    width: auto;
    border-radius: 0px; 
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--text-white);
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--text-white);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   4. NAVIGATION
   ========================================= */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    height: 100px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%; 
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    justify-self: start;
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-self: center;
}

.nav-links a { font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent-color); }

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    justify-self: end;
}

@media (max-width: 900px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 1.5rem;
        box-shadow: var(--shadow-soft);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
}

/* =========================================
   5. HOME PAGE SECTIONS
   ========================================= */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../assets/images/placeholder-1600x900.svg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
}

.hero h1 { color: var(--text-white); font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 600px; margin-inline: auto; }

/* Services Grid (UPDATED) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    
    /* REQUIREMENT 1: Accent Lines */
    border-top: 5px solid var(--accent-color);
    border-bottom: 1px solid var(--border-color); /* Subtle bottom line for balance */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom: 1px solid var(--accent-color); /* Bottom turns green on hover */
}

/* =========================================
   TESTIMONIALS (NEW CAROUSEL STYLE)
   ========================================= */
.testimonial-section {
    background-color: var(--bg-light);
    overflow: hidden; /* Hides the scrollbar */
    padding: 6rem 0;
}

/* The window we see the cards through */
.testimonial-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Fade effect on left and right edges */
.testimonial-wrapper::before,
.testimonial-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.testimonial-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.testimonial-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

/* The long track moving sideways */
.testimonial-track {
    display: flex;
    gap: 2rem;
    width: calc(400px * 6); /* Width = Card width * number of cards */
    animation: scroll 20s linear infinite; /* The "Spinning Slowly" effect */
}

/* Pause on hover ONLY for devices with a mouse (prevents sticky hover on mobile) */
@media (hover: hover) {
    .testimonial-track:hover {
        animation-play-state: paused;
    }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 3 - 6rem)); } /* Moves by half the track length */
}

/* The Individual Card Styling */
.testimonial-card {
    width: 400px; /* Fixed width for carousel stability */
    flex-shrink: 0;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    
    /* REQUIREMENT 2: Outline + Shadow */
    border: 1px solid var(--accent-color);
    box-shadow: var(--shadow-soft);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.star-rating {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Adjustment for Carousel */
@media (max-width: 768px) {
    .testimonial-card { width: 300px; }
    .testimonial-track { width: calc(300px * 6); }
    @keyframes scroll {
        100% { transform: translateX(calc(-300px * 3 - 6rem)); }
    }
}


/* Mini Gallery (Home) */
.mini-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mini-gallery img {
    flex: 0 1 350px; 
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.mini-gallery img:hover { transform: scale(1.03); }

/* =========================================
   6. GALLERY PAGE (CARDS & MODAL)
   ========================================= */
.gallery-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.gallery-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--accent-color);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-bottom: 1px solid var(--accent-color);
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
}

.gallery-card-title {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
}

.gallery-card-title h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.gallery-card-title p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.gallery-modal.open { display: block; opacity: 1; }

.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 3001;
    transition: transform 0.2s;
    line-height: 1;
}

.modal-close-btn:hover { color: var(--accent-color); transform: scale(1.1); }

.modal-content { max-width: 1200px; margin: 40px auto; }

.modal-title {
    text-align: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.modal-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

#gallery-source-data { display: none; }

/* =========================================
   7. CONTACT PAGE (ENHANCED FORM)
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start; /* Aligns form to top */
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

/* The Enhanced Contact Form Box */
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem; /* Default Desktop Padding */
    border-radius: var(--border-radius);
    
    /* NEW: Deep Shadow */
    box-shadow: var(--shadow-deep);
    
    /* NEW: Top Accent Border for 'pop' */
    border-top: 5px solid var(--accent-color);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- MOBILE RESPONSIVENESS FIX --- */
@media (max-width: 768px) {
    .contact-wrapper { 
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 3rem; 
    }

    .contact-form {
        padding: 1.5rem; /* Reduce padding so input fields aren't squished */
    }
}

@media (max-width: 480px) {
    /* Rules for very small phones */
    .container {
        padding: 0 1rem; /* Give more width to content */
    }

    .contact-form {
        padding: 1.25rem; /* Minimal padding to maximize input width */
    }
    
    .hero h1 {
        font-size: 2.2rem; /* Ensure hero text doesn't break layout */
    }
}
/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 1.5rem 0 1rem 0; 
    margin-top: auto;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.footer-address h3 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.footer-address p { color: #ccc; margin: 0; }

.footer-nav { display: flex; gap: 1.2rem; }
.footer-nav a { color: #ccc; }
.footer-nav a:hover { color: var(--accent-color); text-decoration: underline; }

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; }
}

/* =========================================
   LIGHTBOX (FULL SCREEN IMAGE VIEWER)
   ========================================= */
.lightbox-modal {
    position: fixed;
    z-index: 4000; /* Higher than gallery modal (3000) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 4001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 40px; height: 40px; font-size: 1.2rem; padding: 0.5rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}