/* ========================================
   My Tyme Cafe — Styles
   Palette: Emerald Green + Cream
   Fonts: Playfair Display + Lora + Inter
======================================== */

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

:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-100: #faf8f2;
    --cream-200: #f5f0e6;
    --cream-300: #e8dfc8;
    --cream-400: #d4c5a9;
    --gold-500: #c9a84c;
    --gold-600: #b8943f;
    --text-dark: #1a1a1a;
    --text-medium: #3d3d3d;
    --text-light: #6b6b6b;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', 'Georgia', serif;
    --font-ui: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.08);
    --shadow-md: 0 4px 20px rgba(6, 78, 59, 0.1);
    --shadow-lg: 0 10px 40px rgba(6, 78, 59, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream-100);
    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;
}

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

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--emerald-900);
    margin-bottom: 20px;
}

.section-title em {
    font-style: italic;
    color: var(--emerald-600);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
}

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

.btn-secondary {
    background: var(--cream-200);
    color: var(--emerald-900);
    border: 1.5px solid var(--cream-300);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--cream-300);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.1rem;
    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-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-900);
}

.logo-accent {
    color: var(--emerald-600);
    font-style: italic;
}

/* --- Nav --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--emerald-600);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--emerald-700);
}

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

.nav-cta {
    background: var(--emerald-800);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8125rem !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--emerald-700);
    color: #fff !important;
    transform: translateY(-1px);
}

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

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background: var(--emerald-900);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--emerald-950);
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(4, 47, 35, 0.97) 0%,
            rgba(6, 78, 59, 0.93) 40%,
            rgba(4, 120, 87, 0.85) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    color: #fff;
    max-width: 520px;
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-400);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
}

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

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 440px;
}

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

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.hero-detail svg {
    color: var(--cream-400);
    flex-shrink: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
}

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

.hero-img-accent {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    border: 4px solid rgba(250,248,242,0.3);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cream-100);
    color: var(--emerald-900);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    width: fit-content;
}

.hero-badge svg {
    color: var(--emerald-600);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

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

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

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

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

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

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 60%;
    height: 40%;
    background: var(--emerald-800);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

.about-content {
    padding: 20px 0;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--cream-300);
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    background: var(--cream-300);
    align-self: stretch;
}

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

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

.menu-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

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

.menu-tab {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 28px;
    border: 1.5px solid var(--cream-300);
    border-radius: 50px;
    background: transparent;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
}

.menu-tab.active {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    color: #fff;
}

.menu-panel {
    display: none;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.menu-item {
    background: var(--cream-100);
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1px solid var(--cream-300);
    transition: all 0.3s ease;
}

.menu-item:hover {
    border-color: var(--emerald-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 6px;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.menu-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--cream-300);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.menu-footer p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* --- Atmosphere --- */
.atmosphere {
    padding: 120px 0;
    background: var(--cream-100);
}

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

.atm-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 80px;
}

.atm-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

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

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

.atm-wide {
    grid-row: 1 / 3;
    aspect-ratio: 9/16;
    min-height: 500px;
}

.atm-wide img {
    height: 100%;
}

.atm-small {
    aspect-ratio: 4/3;
}

.atm-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 24px;
    background: linear-gradient(transparent, rgba(4, 47, 35, 0.8));
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
}

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

.atm-feature {
    text-align: center;
    padding: 32px 24px;
}

.atm-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-200);
    border-radius: 50%;
    color: var(--emerald-700);
}

.atm-feature h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 10px;
}

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

/* --- Testimonials --- */
.testimonials {
    padding: 120px 0;
    background: var(--emerald-900);
    color: #fff;
}

.testimonials .section-eyebrow {
    color: var(--cream-400);
}

.testimonials .section-title {
    color: #fff;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.testimonials .section-title em {
    color: var(--cream-400);
}

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

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--emerald-500);
    margin-bottom: 8px;
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}

.testimonial-source {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: var(--cream-400);
    font-weight: 500;
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: var(--cream-100);
}

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

.visit-info {
    padding: 20px 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-200);
    border-radius: 50%;
    color: var(--emerald-700);
}

.visit-detail-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.visit-detail-value {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.visit-link {
    color: var(--emerald-700);
    text-decoration: underline;
    text-decoration-color: rgba(5, 150, 105, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.visit-link:hover {
    text-decoration-color: var(--emerald-600);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.site-footer {
    background: var(--emerald-950);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-phone {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--cream-400);
    transition: color 0.2s ease;
}

.footer-phone:hover {
    color: #fff;
}

.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-400);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
}

.footer-hours li span:first-child {
    color: rgba(255,255,255,0.5);
}

.footer-hours li span:last-child {
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease;
}

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

/* --- Scroll Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .about-grid {
        gap: 48px;
    }

    .atm-features {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-details {
        align-items: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

    .atm-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .atm-wide {
        grid-row: auto;
        aspect-ratio: 16/9;
        min-height: auto;
    }

    .atm-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .atm-feature {
        text-align: left;
        display: flex;
        gap: 20px;
        align-items: start;
    }

    .atm-feature-icon {
        flex-shrink: 0;
        margin: 0;
    }

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

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream-100);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: right 0.4s ease;
        z-index: 1000;
    }

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

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

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-img-accent {
        display: none;
    }

    .about,
    .menu,
    .atmosphere,
    .testimonials,
    .visit {
        padding: 80px 0;
    }

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

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

    .menu-tabs {
        gap: 6px;
    }

    .menu-tab {
        padding: 10px 20px;
        font-size: 0.8125rem;
    }

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

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

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

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

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}
