/* ========================================
   The Grind Cafe — Stylesheet
   Classic & Elegant · Forest Green + Off-White
======================================== */

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

:root {
    --color-forest: #1a3c2a;
    --color-forest-light: #2a5c42;
    --color-forest-dark: #0f2419;
    --color-cream: #f5f0e8;
    --color-cream-light: #faf7f2;
    --color-cream-dark: #e8e0d0;
    --color-gold: #c9a96e;
    --color-gold-light: #d4b87a;
    --color-text: #2c2c2c;
    --color-text-light: #5a5a5a;
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

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

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

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

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

ul {
    list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-forest);
}

em {
    font-style: italic;
    color: var(--color-gold);
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
    display: block;
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    color: var(--color-forest);
}

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

.btn-primary {
    background-color: var(--color-forest);
    color: var(--color-cream-light);
    border-color: var(--color-forest);
}

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

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

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

.btn-full {
    width: 100%;
}

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

.navbar.scrolled {
    background-color: rgba(26, 60, 42, 0.97);
    padding: 14px 0;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cream-light);
    letter-spacing: 0.02em;
}

.logo-dot {
    color: var(--color-gold);
    font-size: 2rem;
    line-height: 1;
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.8);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.75rem;
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-forest-dark);
}

.nav-links .btn-primary:hover {
    background-color: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

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

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-cream-light);
    transition: all var(--transition);
    border-radius: 2px;
}

.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);
}

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

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

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-cream-light);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-cream-light);
    transition: color var(--transition);
}

.mobile-link:hover {
    color: var(--color-gold);
}

.mobile-cta {
    margin-top: 16px;
    padding: 12px 32px;
    background-color: var(--color-gold);
    color: var(--color-forest-dark);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 36, 25, 0.55) 0%,
        rgba(26, 60, 42, 0.7) 50%,
        rgba(15, 36, 25, 0.85) 100%
    );
    z-index: 1;
}

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

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-cream-light);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(245, 240, 232, 0.85);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 300;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(245,240,232,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background-color: var(--color-cream-light);
}

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

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

.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    border-radius: 4px;
    z-index: 0;
}

.about-image-wrap img {
    position: relative;
    z-index: 1;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--color-gold);
    margin-top: 2px;
}

.feature-item h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--color-forest);
}

.feature-item p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ---------- Menu ---------- */
.menu {
    padding: 120px 0;
    background-color: var(--color-forest);
}

.menu .section-eyebrow {
    color: var(--color-gold);
}

.menu .section-title {
    color: var(--color-cream-light);
}

.menu-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.menu-intro {
    color: rgba(245, 240, 232, 0.7);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 32px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: rgba(245, 240, 232, 0.6);
    border: 1px solid rgba(245, 240, 232, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--color-cream-light);
    border-color: rgba(245, 240, 232, 0.4);
}

.tab-btn.active {
    background-color: var(--color-gold);
    color: var(--color-forest-dark);
    border-color: var(--color-gold);
}

.menu-content {
    max-width: 900px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.menu-category h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    color: var(--color-gold);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
}

.menu-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
    transition: background-color var(--transition);
}

.menu-item:hover {
    background-color: rgba(245, 240, 232, 0.03);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.item-name {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    color: var(--color-cream-light);
    font-weight: 600;
}

.item-desc {
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.5);
    font-weight: 300;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 120px 0;
    background-color: var(--color-cream-light);
}

.gallery-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 36, 25, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 4px;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ---------- Testimonial ---------- */
.testimonial {
    padding: 100px 0;
    background-color: var(--color-cream);
    text-align: center;
}

.quote-icon {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    margin: 0 auto 32px;
    opacity: 0.6;
}

.testimonial blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: var(--color-forest);
    max-width: 750px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.testimonial-source {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background-color: var(--color-cream-light);
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-gold);
    margin-top: 4px;
}

.contact-item h4 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    margin-bottom: 4px;
    color: var(--color-forest);
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

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

.contact-form-wrap {
    background-color: var(--color-white);
    padding: 48px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-forest);
    margin-bottom: 32px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-cream-light);
    border: 1px solid var(--color-cream-dark);
    border-radius: 4px;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-forest);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(26, 60, 42, 0.1);
}

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

.form-note {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--color-forest);
    margin: 0 auto 16px;
}

.form-success p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-forest);
}

/* ---------- Map ---------- */
.map-section {
    height: 400px;
    filter: grayscale(40%) contrast(1.1);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--color-forest-dark);
    padding: 80px 0 0;
}

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

.footer-brand .logo {
    font-size: 1.75rem;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9375rem;
    line-height: 1.8;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--color-cream-light);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(245, 240, 232, 0.6);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.8;
    margin-bottom: 4px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 232, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 240, 232, 0.4);
}

.footer-bottom a {
    color: rgba(245, 240, 232, 0.4);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--color-gold);
}

/* ---------- Scroll Animations ---------- */
.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.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }
    
    .contact-grid {
        gap: 48px;
    }
    
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-wrap {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .about,
    .menu,
    .gallery,
    .contact {
        padding: 80px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
