:root {
    --primary-color: #4A5D4E; /* Sage green */
    --primary-dark: #2C3830;
    --accent-color: #D4AF37; /* Warm gold */
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #FDFBF7; /* Warm off-white */
    --bg-card: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

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

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    width: 100%;
    z-index: 100;
}

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

.logo span {
    color: var(--accent-color);
    font-style: italic;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.hamburger {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

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

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

/* Buttons and Links */
.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74, 93, 78, 0.2);
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 93, 78, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark) !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    background-color: rgba(74, 93, 78, 0.05);
    transform: translateY(-2px);
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link-primary:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    display: flex;
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    align-items: center;
    gap: 4rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1.1;
    animation: fadeUp 1s ease-out;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    flex: 0.9;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: fadeIn 1.2s ease-out;
    height: 600px;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.bg-white {
    background-color: var(--bg-card);
}

.bg-offwhite {
    background-color: var(--bg-main);
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Features / Storefront Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background-color: var(--bg-main);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    background-color: var(--bg-card);
    border-color: rgba(74, 93, 78, 0.1);
}

.feature-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--accent-color);
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.feature-card:hover .card-link {
    color: var(--primary-color);
}

/* About Box */
.about-box {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    max-width: 900px;
    margin: 0 auto;
}

.about-box h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-box p:last-child {
    margin-bottom: 0;
}

/* Gallery Slider */
.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    width: 100%; /* Force full width */
}

.gallery-track {
    display: flex;
    /* Width is set dynamically by JS based on item count */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item {
    flex: 1 0 0%;
    width: 100%;
    height: 500px;
    background-color: #E9DFD1;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .gallery-item {
        height: 350px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

.note {
    display: none;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.admin-mode .note {
    display: block;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    background: rgba(212, 175, 55, 0.05);
    padding: 1rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        padding-top: 10rem;
        height: auto;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-image {
        width: 100%;
        height: 400px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-main);
        z-index: 200;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links.open li a {
        font-size: 1.4rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 300;
        padding: 4px;
    }

    .hamburger span {
        display: block;
        width: 26px;
        height: 2px;
        background: var(--primary-dark);
        border-radius: 2px;
        transition: var(--transition);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .about-box {
        padding: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .section {
        padding: 4rem 0;
    }
}
