/* ============================================
   The Gruene Haus - Style Sheet
   ============================================ */

:root {
    --cream: #FAF6F0;
    --cream-dark: #F0EBE1;
    --brown-light: #C4A882;
    --brown: #8B6F47;
    --brown-dark: #5C4A2E;
    --charcoal: #2D2A26;
    --rust: #A0522D;
    --sage: #7A8B6F;
    --sage-light: #E8EDE4;
    --white: #FFFFFF;
    --shadow: rgba(45, 42, 38, 0.08);
    --shadow-md: rgba(45, 42, 38, 0.12);
    --transition: 0.3s ease;
    --radius: 4px;
    --radius-lg: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Lato", sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: "Playfair Display", serif;
    line-height: 1.3;
    font-weight: 600;
}

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

a:hover {
    color: var(--rust);
}

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

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

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: "Lato", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

.btn-primary:hover {
    background: var(--brown-dark);
    border-color: var(--brown-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--brown);
    border-color: var(--brown);
}

.btn-outline:hover {
    background: var(--brown);
    color: var(--white);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(196, 168, 130, 0.2);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.logo-the {
    font-family: "Lato", sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brown-light);
}

.logo-name {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brown);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--brown);
}

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

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    transition: color var(--transition);
    padding: 4px;
}

.cart-btn:hover {
    color: var(--brown);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--rust);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg,
            #5C4A2E 0%,
            #8B6F47 25%,
            #A0522D 50%,
            #7A8B6F 75%,
            #5C4A2E 100%);
    background-size: 400% 400%;
    animation: heroShift 20s ease infinite;
    overflow: hidden;
    margin-top: 72px;
}

@keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(196, 168, 130, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(122, 139, 111, 0.2) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 42, 38, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: 40px 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-content .btn-primary {
    background: var(--white);
    color: var(--brown-dark);
    border-color: var(--white);
}

.hero-content .btn-primary:hover {
    background: var(--cream);
    border-color: var(--cream);
}

/* ============================================
   Features
   ============================================ */

.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sage-light);
    color: var(--sage);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--brown-dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* ============================================
   Shop Section
   ============================================ */

.shop-section {
    padding: 80px 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.4rem;
    color: var(--brown-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: #777;
    max-width: 560px;
    margin: 0 auto;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-family: "Lato", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--brown-light);
    border-radius: 30px;
    background: transparent;
    color: var(--brown);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-md);
}

.product-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.product-image-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brown-light);
    margin-bottom: 6px;
}

.product-name {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rust);
    margin-bottom: 14px;
}

.product-card .btn-small {
    width: 100%;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, #C4A882 0%, #8B6F47 40%, #7A8B6F 70%, #5C4A2E 100%);
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

.about-content h2 {
    font-size: 2.4rem;
    color: var(--brown-dark);
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 18px;
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
}

.about-content .btn-outline {
    margin-top: 12px;
}

/* ============================================
   Visit Section
   ============================================ */

.visit-section {
    padding: 80px 0;
    background: var(--cream-dark);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.visit-info h2 {
    font-size: 2.4rem;
    color: var(--brown-dark);
    margin-bottom: 32px;
}

.visit-detail {
    margin-bottom: 28px;
}

.visit-detail h4 {
    font-size: 0.8rem;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brown);
    margin-bottom: 8px;
}

.visit-detail p {
    color: #555;
    line-height: 1.8;
}

.map-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--cream) 50%, var(--sage-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 168, 130, 0.3);
}

.map-placeholder p {
    font-family: "Playfair Display", serif;
    color: var(--brown);
    font-size: 1.1rem;
}

.map-placeholder p:last-child {
    font-size: 0.9rem;
    color: #888;
    margin-top: 4px;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    border: 1px solid #D5CFC5;
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--charcoal);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--sage-light);
    color: var(--sage);
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
}

.form-success.visible {
    display: block;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo-the,
.footer-brand .logo-name {
    display: block;
}

.footer-brand .logo-the {
    color: var(--brown-light);
}

.footer-brand .logo-name {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    font-family: "Lato", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links a,
.footer-social a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--brown-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Cart Drawer
   ============================================ */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right var(--transition);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #EEE;
}

.cart-header h3 {
    font-size: 1.3rem;
    color: var(--brown-dark);
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color var(--transition);
    padding: 4px;
}

.cart-close:hover {
    color: var(--charcoal);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-style: italic;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F0F0F0;
    align-items: flex-start;
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: "Playfair Display", serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--rust);
    font-weight: 700;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #CCC;
    font-size: 0.8rem;
    transition: color var(--transition);
    padding: 4px;
    margin-top: 4px;
}

.cart-item-remove:hover {
    color: var(--rust);
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #EEE;
    background: var(--cream);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brown-dark);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right var(--transition);
        box-shadow: -4px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-placeholder {
        height: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-header h2,
    .about-content h2,
    .visit-info h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .category-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .product-image {
        height: 200px;
    }
}
