/* ========================================
   Grounded Coffee Co. — Custom Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
    --forest: #064e3b;
    --forest-light: #065f46;
    --forest-dark: #022c22;
    --off-white: #faf9f6;
    --cream: #f5f2eb;
    --accent-lime: #d9f99d;
    --accent-lime-dark: #a3e635;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(6, 78, 59, 0.08);
    --shadow-md: 0 8px 32px rgba(6, 78, 59, 0.12);
    --shadow-lg: 0 16px 64px rgba(6, 78, 59, 0.16);
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

ul {
    list-style: none;
}

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

/* --- Background Shapes --- */
.bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--forest);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-lime);
    border-radius: 50%;
    bottom: 10%;
    left: -100px;
}

.bg-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--forest);
    border-radius: 50%;
    top: 50%;
    right: 5%;
    opacity: 0.04;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--forest);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--forest);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-lime);
}

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

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

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

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

.nav-links a:not(.btn):hover {
    color: var(--forest);
}

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

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

.btn-secondary:hover {
    background: var(--forest);
    color: var(--off-white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- Tags --- */
.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.tag-green {
    background: var(--forest);
    color: var(--accent-lime);
}

/* --- Section Titles --- */
.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--forest);
    line-height: 1.15;
    margin-top: 8px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    color: var(--forest-dark);
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-title .accent {
    color: var(--forest);
    font-style: italic;
    position: relative;
}

.hero-title .accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent-lime);
    z-index: -1;
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* Hero Image Stack */
.hero-visual {
    position: relative;
}

.hero-image-stack {
    position: relative;
    height: 580px;
}

.img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 85%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.img-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 45%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--off-white);
}

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

.geo-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent-lime);
    top: 10%;
    left: 5%;
    z-index: -1;
    opacity: 0.7;
}

.geo-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(var(--forest) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.3;
    bottom: 30%;
    right: -10%;
    z-index: -1;
    transform: rotate(15deg);
}

/* ========================================
   FEATURES
   ======================================== */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(6, 78, 59, 0.1);
    background: var(--off-white);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--forest);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-lime);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--forest-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

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

/* ========================================
   MENU
   ======================================== */
.menu-section {
    padding: 100px 0;
    background: var(--forest);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--accent-lime);
    border-radius: 50%;
    opacity: 0.05;
}

.menu-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: var(--accent-lime);
    border-radius: 50%;
    opacity: 0.04;
}

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

.menu-text .section-title {
    color: var(--off-white);
}

.menu-text .section-header {
    margin-bottom: 24px;
}

.menu-desc {
    color: rgba(250, 249, 246, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.menu-highlights {
    margin-bottom: 36px;
}

.menu-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--off-white);
    font-size: 1rem;
    border-bottom: 1px solid rgba(250, 249, 246, 0.1);
}

.menu-highlights li:last-child {
    border-bottom: none;
}

.menu-highlights .bullet {
    color: var(--accent-lime);
    font-size: 0.7rem;
}

.menu-visual {
    position: relative;
}

.menu-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.menu-img {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-img:hover img {
    transform: scale(1.05);
}

.menu-img-1 {
    grid-row: span 2;
    min-height: 320px;
}

.menu-img-2 {
    min-height: 150px;
}

.menu-img-3 {
    min-height: 150px;
}

/* Menu section buttons */
.menu-section .btn-primary {
    background: var(--accent-lime);
    color: var(--forest-dark);
    border-color: var(--accent-lime);
}

.menu-section .btn-primary:hover {
    background: var(--accent-lime-dark);
    border-color: var(--accent-lime-dark);
    box-shadow: 0 8px 32px rgba(163, 230, 53, 0.3);
}

/* ========================================
   LOCATION
   ======================================== */
.location-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.location-info .section-title {
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
}

.contact-item strong {
    display: block;
    color: var(--forest-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--forest);
    transition: color 0.2s ease;
}

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

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    border: 4px solid var(--off-white);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.cta-box {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 64px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid rgba(6, 78, 59, 0.08);
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--forest-dark);
    margin-bottom: 16px;
}

.cta-box > p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-form {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(6, 78, 59, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--off-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.08);
}

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

.form-success {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: rgba(6, 78, 59, 0.08);
    border-radius: var(--radius-sm);
    color: var(--forest);
    font-weight: 600;
    text-align: center;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--forest-dark);
    color: var(--off-white);
    padding: 64px 0 32px;
    position: relative;
    z-index: 1;
}

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

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

.footer-brand .logo-icon {
    background: var(--accent-lime);
    color: var(--forest-dark);
}

.footer-brand p {
    color: rgba(250, 249, 246, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-lime);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(250, 249, 246, 0.6);
    padding: 6px 0;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.footer-contact p {
    color: rgba(250, 249, 246, 0.6);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(250, 249, 246, 0.6);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--accent-lime);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 249, 246, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(250, 249, 246, 0.4);
    font-size: 0.85rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-stack {
        height: 400px;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .menu-layout {
        grid-template-columns: 1fr;
    }

    .menu-visual {
        order: -1;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid rgba(6, 78, 59, 0.08);
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-image-stack {
        height: 320px;
    }

    .img-main {
        width: 80%;
        height: 80%;
    }

    .img-accent {
        width: 55%;
        height: 50%;
    }

    .cta-box {
        padding: 40px 24px;
    }

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

    .menu-image-grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu-img-1 {
        grid-row: span 1;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .menu-image-grid {
        grid-template-columns: 1fr;
    }

    .menu-img-1,
    .menu-img-2,
    .menu-img-3 {
        min-height: 200px;
    }
}
