/* ========================================
   Cactus Creek Café — Stylesheet
   Classic & Elegant · Forest Green + Off-White
   ======================================== */

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

:root {
    --forest-dark: #0f3a1e;
    --forest-mid: #1a5c32;
    --forest-light: #2d7a4a;
    --forest-pale: #e8f5ec;
    --cream: #faf8f4;
    --cream-dark: #f0ece4;
    --warm-brown: #8b6f4e;
    --warm-gold: #c9a86c;
    --text-dark: #1a1a1a;
    --text-mid: #4a4a4a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15, 58, 30, 0.06);
    --shadow-md: 0 8px 30px rgba(15, 58, 30, 0.10);
    --shadow-lg: 0 20px 60px rgba(15, 58, 30, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

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

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

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

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest-mid);
    margin-bottom: 16px;
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--forest-mid);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--forest-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--forest-mid);
    border-color: var(--forest-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 248, 244, 0.97);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--forest-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--warm-gold);
}

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

.nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.85);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-mid);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--warm-gold);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--forest-dark);
}

.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.82rem;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--forest-dark);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--forest-dark) 0%,
        #0d4a24 25%,
        #156b3a 50%,
        #1a7a45 70%,
        var(--forest-light) 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 108, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(45, 122, 74, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gold);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-title em {
    font-style: italic;
    color: var(--warm-gold);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-deco {
    position: absolute;
    color: rgba(255,255,255,0.08);
    z-index: 1;
}

.deco-1 {
    top: 20%;
    left: 8%;
    animation: float 6s ease-in-out infinite;
}

.deco-2 {
    bottom: 25%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ---------- About ---------- */
.about {
    background: var(--cream);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--forest-pale);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    color: var(--text-mid);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(15, 58, 30, 0.1);
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--forest-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ---------- Bakery ---------- */
.bakery {
    background: var(--white);
}

.bakery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.bakery-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.bakery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.bakery-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.bakery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.bakery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 58, 30, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.bakery-card:hover .bakery-card-overlay {
    opacity: 1;
}

.bakery-card-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--white);
}

.bakery-card-content {
    padding: 28px;
}

.bakery-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--forest-dark);
}

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

/* ---------- Grocery ---------- */
.grocery {
    background: var(--forest-pale);
}

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

.grocery-content .section-title {
    margin-bottom: 20px;
}

.grocery-text {
    color: var(--text-mid);
    margin-bottom: 32px;
    font-size: 1.02rem;
}

.grocery-features {
    list-style: none;
    margin-bottom: 36px;
    display: grid;
    gap: 14px;
}

.grocery-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-dark);
}

.grocery-features li svg {
    color: var(--forest-mid);
    flex-shrink: 0;
}

.grocery-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---------- Quote ---------- */
.quote-section {
    background: var(--forest-dark);
    padding: 80px 0;
    text-align: center;
}

.quote-content {
    max-width: 700px;
    margin: 0 auto;
}

.quote-icon {
    color: var(--warm-gold);
    margin-bottom: 24px;
    opacity: 0.6;
}

.quote-content blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 24px;
}

.quote-content cite {
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gold);
}

/* ---------- Visit ---------- */
.visit {
    background: var(--white);
}

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

.contact-cards {
    display: grid;
    gap: 24px;
    margin-top: 40px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--cream);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-dark);
    border-radius: var(--radius-sm);
    color: var(--warm-gold);
    flex-shrink: 0;
}

.contact-card h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-card a {
    color: var(--forest-mid);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--forest-dark);
    text-decoration: underline;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 400px;
}

/* ---------- Newsletter ---------- */
.newsletter {
    background: var(--cream-dark);
}

.newsletter-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content .section-title {
    margin-bottom: 16px;
}

.newsletter-text {
    color: var(--text-mid);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    border: 2px solid rgba(15, 58, 30, 0.15);
    border-radius: 50px;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group input:focus {
    border-color: var(--forest-mid);
    box-shadow: 0 0 0 4px rgba(26, 92, 50, 0.1);
}

.form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 24px;
    background: var(--forest-pale);
    border-radius: var(--radius-md);
    color: var(--forest-dark);
    font-weight: 600;
}

.form-success.show {
    display: flex;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--forest-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

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

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

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

.footer-links h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-gold);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.footer-links a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--forest-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: grid;
    gap: 24px;
}

.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
}

.mobile-menu a:hover {
    color: var(--warm-gold);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .grocery-layout,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 360px;
    }

    .grocery-image img,
    .about-image {
        height: 360px;
    }

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

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

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

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

    .about-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }
}

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

    .section {
        padding: 56px 0;
    }

    .contact-card {
        padding: 20px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
