/* ============================================
   COCOFEET — Classic & Elegant Bakery Site
   Palette: Emerald Green + Cream
   Fonts: Cormorant Garamond + Karla
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --cream-50:  #fefdf8;
    --cream-100: #fef9ef;
    --cream-200: #fef3c7;
    --cream-300: #fde68a;
    --warm-50:   #faf8f4;
    --warm-100:  #f5f0e8;
    --warm-200:  #e8e0d0;
    --warm-300:  #d4c9b8;
    --text-dark:  #1a1a1a;
    --text-mid:   #3d3d3d;
    --text-light: #6b6b6b;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:  'Karla', 'Helvetica Neue', Arial, sans-serif;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--emerald-900);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1.25rem;
    color: var(--emerald-900);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.8;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--emerald-800);
    color: #fff;
    border-color: var(--emerald-800);
}

.btn-primary:hover {
    background-color: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--emerald-900);
    border-color: #fff;
}

.btn-full { width: 100%; }

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--warm-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--emerald-800);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--emerald-800);
    border-radius: 50%;
}

.logo-word {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--emerald-900);
    letter-spacing: 0.02em;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.primary-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--emerald-700);
    transition: width var(--transition);
}

.primary-nav a:hover {
    color: var(--emerald-800);
}

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

.btn-nav {
    padding: 0.5rem 1.25rem !important;
    background: var(--emerald-800);
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.8125rem !important;
}

.btn-nav::after { display: none !important; }

.btn-nav:hover {
    background: var(--emerald-700) !important;
    color: #fff !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--emerald-900);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--emerald-900);
    left: 0;
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--emerald-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/27175868/pexels-photo-27175868.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1280') center center / cover no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 78, 59, 0.72) 0%,
        rgba(6, 78, 59, 0.55) 50%,
        rgba(6, 30, 20, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-200);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    font-style: italic;
    color: var(--cream-200);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(254, 249, 239, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- ABOUT ---------- */
.about {
    padding: 7rem 0;
    background: var(--cream-50);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    border: 4px solid var(--cream-50);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.accent-line {
    width: 3px;
    height: 80px;
    background: var(--emerald-700);
    border-radius: 2px;
    flex-shrink: 0;
}

.accent-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--emerald-800);
    line-height: 1.5;
}

.about-text p {
    color: var(--text-mid);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--warm-200);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--emerald-800);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 0.35rem;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--warm-200);
}

/* ---------- BAKERY ---------- */
.bakery {
    padding: 7rem 0;
    background: var(--warm-100);
}

.section-header {
    margin-bottom: 3.5rem;
}

.bakery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.bakery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.bakery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.bakery-card-img {
    overflow: hidden;
    height: 260px;
}

.bakery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bakery-card:hover .bakery-card-img img {
    transform: scale(1.06);
}

.bakery-card-body {
    padding: 1.75rem;
}

.bakery-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.bakery-card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.bakery-note {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ---------- PANTRY ---------- */
.pantry {
    padding: 7rem 0;
    background: var(--cream-50);
}

.pantry-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pantry-visual {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.pantry-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pantry-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pantry-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-mid);
}

.pantry-icon {
    color: var(--emerald-700);
    flex-shrink: 0;
}

/* ---------- VISIT ---------- */
.visit {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.visit-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/39217607/pexels-photo-39217607.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=900') center center / cover no-repeat;
}

.visit-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(6, 78, 59, 0.90) 0%,
        rgba(6, 78, 59, 0.75) 100%
    );
}

.visit-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.visit-eyebrow { color: var(--cream-200) !important; }
.visit-title { color: #fff !important; }

.visit-sub {
    color: rgba(254, 249, 239, 0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

.visit-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}

.visit-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.visit-icon {
    color: var(--cream-200);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.visit-detail p {
    color: rgba(254, 249, 239, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.visit-detail a {
    color: var(--cream-200);
    transition: color var(--transition);
}

.visit-detail a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 7rem 0;
    background: var(--warm-100);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-direct {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--emerald-700);
}

.contact-direct p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-direct a {
    color: var(--emerald-700);
    font-weight: 500;
    transition: color var(--transition);
}

.contact-direct a:hover {
    color: var(--emerald-900);
    text-decoration: underline;
}

/* ---------- FORM ---------- */
.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--warm-200);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream-50);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--warm-300);
}

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

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 4px;
    color: var(--emerald-800);
    font-size: 0.95rem;
    text-align: center;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--emerald-900);
    color: rgba(254, 249, 239, 0.7);
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo-mark {
    border-color: var(--cream-200);
    color: var(--cream-200);
}

.footer-brand .logo-word {
    color: #fff;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(254, 249, 239, 0.7);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--cream-200);
}

.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(254, 249, 239, 0.7);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--cream-200);
}

.footer-bottom {
    border-top: 1px solid rgba(254, 249, 239, 0.12);
    padding: 1.5rem 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(254, 249, 239, 0.45);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .pantry-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-images {
        max-width: 500px;
    }

    .pantry-visual {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream-50);
        box-shadow: -8px 0 32px rgba(0,0,0,0.12);
        padding: 5rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 999;
    }

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

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .primary-nav a {
        font-size: 1.1rem;
    }

    .btn-nav {
        margin-top: 0.5rem;
    }

    .hero-content {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .bakery-grid {
        grid-template-columns: 1fr;
    }

    .visit-details {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img-secondary {
        right: 0;
        bottom: -1.5rem;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .about, .bakery, .pantry, .visit, .contact {
        padding: 4rem 0;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }
}
