/* ==========================================================================
   HEARTH & OAK - ARTISANAL COFFEE ROASTERS
   ========================================================================== */

:root {
    --bg-primary: #faf6f0;  /* Oat Milk / Cream */
    --bg-secondary: #f0e7d5; /* Latte */
    --text-dark: #2b201a;    /* Espresso Dark */
    --accent: #bc6c25;       /* Burnt Sienna / Rust */
    --accent-hover: #9c591c;
    --border: #d4c8b6;       /* Soft Sand */
    
    --font-heading: 'Lora', serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.3s;
}

a:hover { color: var(--accent); }
ul { list-style: none; }

h1, h2, h3, h4, h5, .brand {
    font-family: var(--font-heading);
    font-weight: 400;
}

i { font-style: italic; color: var(--accent); }

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.full { width: 100%; }

section { padding: 8rem 0; position: relative; }

/* Announcement Bar */
.announcement {
    background-color: var(--text-dark);
    color: var(--bg-primary);
    text-align: center;
    padding: 0.6rem 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Animations engine */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: 0.4s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-hover); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(188, 108, 37, 0.2); }

.btn-outline { background: transparent; border-color: var(--border); color: var(--text-dark); }
.btn-outline:hover { background: var(--bg-primary); color: var(--accent); border-color: var(--accent); }

.btn-dark { background: var(--text-dark); color: var(--bg-primary); }
.btn-dark:hover { background: #1a130f; color: #fff; }

.kicker {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Navbar */
.navbar {
    position: absolute;
    width: 100%;
    top: 36px; /* Below announcement */
    padding: 2rem 0;
    z-index: 1000;
    transition: 0.4s ease;
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    padding: 1rem 0;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--text-dark);
}
.brand span { font-family: var(--font-body); font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { color: var(--text-dark); font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }

.nav-icons { display: flex; gap: 1.5rem; font-size: 1.2rem; align-items: center; }
.nav-icons i { cursor: pointer; color: var(--text-dark); font-style: normal; transition: 0.3s; }
.nav-icons i:hover { color: var(--accent); }

.cart-wrapper { position: relative; }
.cart-badge {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--accent); color: #fff;
    font-size: 0.65rem; padding: 2px 6px; border-radius: 50%; font-weight: 600;
}

#mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0;
    background: var(--bg-primary); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    transform: translateX(-100%); transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.open { transform: translateX(0); }
.menu-close { position: absolute; top: 2rem; right: 2rem; font-size: 2rem; cursor: pointer; color: var(--text-dark); }
.m-links { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.m-links a { font-family: var(--font-heading); font-size: 2.5rem; color: var(--text-dark); }
.m-links a:hover { color: var(--accent); font-style: italic; }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-img-wrapper {
    position: absolute; top: 0; right: 0; width: 55%; height: 100%;
}
.hero-img-wrapper img { width: 100%; height: 100%; object-fit: cover; border-bottom-left-radius: 40px; }
.dark-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(250, 246, 240, 1) 0%, rgba(250, 246, 240, 0) 100%); }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-left: 5%;
}

h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1.1; margin-bottom: 2rem; color: var(--text-dark); }
.hero-content p { font-size: 1.25rem; color: #5a4b43; margin-bottom: 3rem; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.curved-divider {
    position: absolute; bottom: -5px; left: 0; width: 100%; z-index: 3; line-height: 0;
}
.curved-divider svg { width: 100%; height: auto; display: block; }
.curved-divider-bottom svg { width: 100%; height: auto; display: block; margin-bottom: -5px; }

/* Subscriptions Section */
.subscription { background: var(--bg-primary); padding-top: 4rem; }

.sub-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.sub-text h2 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }
.sub-text p { font-size: 1.1rem; color: #5a4b43; margin-bottom: 2.5rem; max-width: 500px; }
.sub-image img { width: 100%; height: auto; border-radius: 20px; box-shadow: 20px 20px 0 var(--bg-secondary); }

/* Shop - Product Carousel */
.shop { background: var(--bg-secondary); padding-bottom: 0; }
.shop-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 4rem; }
.shop-header h2 { font-size: 3.5rem; }

.carousel-wrapper { position: relative; display: flex; align-items: center; }

.c-arrow {
    background: #fff; color: var(--text-dark); border: 1px solid var(--border);
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: 0.3s; z-index: 10;
    position: absolute; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.c-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.left-arrow { left: 2vw; }
.right-arrow { right: 2vw; }

.product-carousel {
    display: flex; gap: 2rem; padding: 2rem 5vw 4rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
    width: 100%;
}
.product-carousel::-webkit-scrollbar { display: none; }

.p-card {
    min-width: 320px; flex: 0 0 320px;
    background: #fff; padding: 2.5rem; border-radius: 12px; text-align: center; position: relative; transition: 0.4s;
    box-shadow: 0 10px 30px rgba(43, 32, 26, 0.05);
}
.p-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(43, 32, 26, 0.1); }

.badge {
    position: absolute; top: 1.5rem; left: 1.5rem;
    background: var(--bg-secondary); color: var(--text-dark);
    font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; letter-spacing: 1px;
}
.badge.new { background: #ddebdb; color: #2e5926; }
.badge.best { background: #fcebd2; color: #b86f0d; }

.p-img { height: 280px; margin-bottom: 1.5rem; padding: 1rem; }
.p-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); transition: 0.5s; }
.p-card:hover .p-img img { transform: scale(1.05); }

.p-card h3 { font-size: 1.4rem; font-family: var(--font-heading); margin-bottom: 0.5rem; }
.tasting-notes { font-size: 0.85rem; color: #7a6e65; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.price { display: block; font-size: 1.25rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1.5rem; }
.add-btn { background: var(--bg-primary); border: 1px solid var(--border); width: 100%; padding: 0.8rem; border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.3s; color: var(--text-dark);}
.add-btn:hover { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }

/* Process */
.process { background: #ffffff; padding-top: 2rem; }
.process-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.process-text h2 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }
.process-text p { font-size: 1.1rem; color: #5a4b43; }

.steps-grid { display: flex; flex-direction: column; gap: 3rem; }
.step { border-left: 2px solid var(--bg-secondary); padding-left: 2rem; position: relative; }
.step-icon {
    position: absolute; left: -26px; top: 0;
    background: #fff; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--bg-secondary);
    display: flex; justify-content: center; align-items: center; color: var(--accent); font-size: 1.2rem; i { font-style: normal;}
}
.step h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { font-size: 1rem; color: #7a6e65; }

/* Cafe / Testimonials */
.cafe { background: var(--bg-primary); padding-top: 4rem; overflow: hidden; position: relative; }

.quote-mark { font-size: 3rem; color: var(--bg-secondary); margin-bottom: 1rem; font-style: normal; }
.testimonial { max-width: 800px; margin: 0 auto 6rem; }
.t-text { font-family: var(--font-heading); font-size: 1.8rem; font-style: italic; color: var(--text-dark); margin-bottom: 1rem; line-height: 1.4;}
.t-author { font-weight: 600; color: var(--accent); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

.cafe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; background: #fff; padding: 4rem; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.03); }
.cafe-info h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.info-list { margin-top: 2rem; }
.info-list li { margin-bottom: 1rem; display: flex; gap: 1rem; color: #5a4b43; }
.info-list i { color: var(--accent); font-style: normal; margin-top: 4px;}

.cafe-form h3 { font-size: 1.5rem; margin-bottom: 2rem; }
#wholesale-form input, #wholesale-form textarea {
    width: 100%; border: 1px solid var(--border); padding: 1rem; margin-bottom: 1rem; border-radius: 4px;
    font-family: var(--font-body); outline: none; transition: 0.3s; background: var(--bg-primary);
}
#wholesale-form input:focus, #wholesale-form textarea:focus { border-color: var(--accent); }

/* Footer */
.footer { background: var(--text-dark); color: #fff; padding-top: 6rem; margin-top: 4rem; }
.f-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,0.1); }

.f-brand .brand { color: #fff; margin-bottom: 1rem; display: block; }
.f-brand p { color: #a59b95; font-size: 0.95rem; margin-bottom: 2rem; }

.social-icons { display: flex; gap: 1.5rem; }
.social-icons a { color: #fff; background: rgba(255,255,255,0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.social-icons a:hover { background: var(--accent); }
.social-icons a i { font-style: normal; color: #fff;}

.f-links h4, .f-newsletter h4 { color: var(--bg-secondary); font-size: 1.1rem; margin-bottom: 1.5rem; letter-spacing: 1px; font-weight: 600; font-family: var(--font-body);}
.f-links a { display: block; color: #a59b95; margin-bottom: 0.8rem; font-size: 0.95rem; }
.f-links a:hover { color: #fff; transform: translateX(5px); }

.f-newsletter p { color: #a59b95; font-size: 0.9rem; margin-bottom: 1.5rem; }
.nl-box { display: flex; }
.nl-box input { flex: 1; padding: 0.8rem 1rem; border: none; outline: none; background: rgba(255,255,255,0.1); color: #fff; border-radius: 4px 0 0 4px; font-family: var(--font-body);}
.nl-box button { padding: 0.8rem 1.2rem; background: var(--accent); border: none; color: #fff; cursor: pointer; border-radius: 0 4px 4px 0; transition: 0.3s; }
.nl-box button:hover { background: var(--accent-hover); }

.f-bottom { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0; font-size: 0.85rem; color: #887e78; }
.f-legal { display: flex; gap: 2rem; }
.f-legal a { color: #887e78; }
.f-legal a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-img-wrapper { position: relative; width: 100%; height: 500px; order: 1; border-radius: 0; margin-bottom: 2rem; }
    .hero { flex-direction: column; padding-top: 100px; text-align: center; justify-content: flex-start; }
    .hero-content { padding-left: 0; order: 2; margin: 0 auto; padding-bottom: 4rem;}
    .hero-actions { justify-content: center; }
    .dark-overlay { background: rgba(250, 246, 240, 0.4); }
    
    .sub-wrap, .process-wrap, .cafe-grid { grid-template-columns: 1fr; text-align: center; }
    .sub-image { order: -1; }
    .step { border-left: none; border-top: 2px solid var(--bg-secondary); padding-left: 0; padding-top: 2rem; text-align: center; }
    .step-icon { left: 50%; top: -26px; transform: translateX(-50%); }
    .f-top { grid-template-columns: repeat(2, 1fr); text-align: center; }
    .social-icons { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    #mobile-toggle { display: block; }
    h1 { font-size: 3rem; }
    section { padding: 5rem 0; }
    .p-card { min-width: 280px; flex: 0 0 280px; }
    .t-text { font-size: 1.3rem; }
    .f-top { grid-template-columns: 1fr; }
    .f-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
