/* ============================================
   AWAY CAFE — Editorial Bakery & Café Site
   Color Palette: Emerald Green + Cream
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-emerald-950: #042f2e;
    --color-emerald-900: #064e3b;
    --color-emerald-800: #065f46;
    --color-emerald-700: #047857;
    --color-emerald-600: #059669;
    --color-cream-50:  #fffbe6;
    --color-cream-100: #fff8d6;
    --color-cream-200: #fff3c4;
    --color-cream-300: #fef0a8;
    --color-cream-400: #fde68a;
    --color-text-dark:  #1a1a1a;
    --color-text-muted: #4a4a4a;
    --color-text-light: #f5f0e8;
    --color-white:      #ffffff;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container-max: 1200px;
    --section-pad:   clamp(4rem, 10vw, 8rem);
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     20px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-dark);
    background-color: var(--color-cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

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

.section-eyebrow.light {
    color: var(--color-cream-300);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-emerald-950);
    margin-bottom: 1.5rem;
}

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

.section-title em {
    font-style: italic;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-emerald-900);
    color: var(--color-cream-50);
}

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

.btn-ghost {
    background: transparent;
    color: var(--color-cream-100);
    border: 1.5px solid rgba(255, 251, 230, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 251, 230, 0.1);
    border-color: var(--color-cream-200);
}

.btn-map {
    margin-top: 2rem;
    background: var(--color-cream-50);
    color: var(--color-emerald-900);
}

.btn-map:hover {
    background: var(--color-cream-200);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 251, 230, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.875rem 0;
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-cream-50);
    transition: color 0.3s;
}

.site-header.scrolled .logo {
    color: var(--color-emerald-950);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-emerald-700);
    color: var(--color-cream-50) !important;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-cream-200);
    position: relative;
    transition: color 0.3s;
}

.site-header.scrolled .main-nav a {
    color: var(--color-text-dark);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-emerald-600);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.site-header.scrolled .main-nav a::after {
    background: var(--color-emerald-700);
}

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

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-cream-50);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.site-header.scrolled .hamburger-line {
    background: var(--color-emerald-950);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Nav Overlay --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-emerald-950);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav-overlay-link {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-cream-50);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.open .nav-overlay-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay.open .nav-overlay-link:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.open .nav-overlay-link:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.open .nav-overlay-link:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.open .nav-overlay-link:nth-child(4) { transition-delay: 0.25s; }

.nav-overlay-link:hover {
    color: var(--color-emerald-400);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient-1 {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, var(--color-emerald-800) 0%, var(--color-emerald-950) 70%);
}

.hero-gradient-2 {
    position: absolute;
    width: 80vw;
    height: 80vw;
    top: -20%;
    right: -20%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.3) 0%, transparent 60%);
    animation: heroFloat 12s ease-in-out infinite;
}

.hero-gradient-3 {
    position: absolute;
    width: 60vw;
    height: 60vw;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(253, 230, 138, 0.08) 0%, transparent 60%);
    animation: heroFloat 16s ease-in-out infinite reverse;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.97); }
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
    max-width: 860px;
}

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

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-cream-50);
    margin-bottom: 1.75rem;
}

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

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--color-cream-200);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

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

.hero-accent {
    position: absolute;
    bottom: 2.5rem;
    right: clamp(1.25rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 1;
}

.hero-accent-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-cream-300));
}

.hero-accent-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-cream-300);
    writing-mode: vertical-rl;
}

/* --- Section Base --- */
.section {
    padding: var(--section-pad) 0;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(6, 78, 59, 0.12);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-image-secondary {
    position: absolute;
    bottom: -2rem;
    right: -1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.15);
    border: 4px solid var(--color-cream-50);
}

.about-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-text-col {
    padding: clamp(1rem, 3vw, 2rem) 0;
}

.about-text-col p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(6, 78, 59, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* --- Menu --- */
.menu {
    background: var(--color-white);
}

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

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

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

.menu-card {
    background: var(--color-cream-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(6, 78, 59, 0.12);
}

.menu-card-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.menu-card-body {
    padding: 1.5rem;
}

.menu-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-emerald-950);
}

.menu-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    background: rgba(6, 78, 59, 0.08);
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
}

.menu-card-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* --- Craft --- */
.craft {
    position: relative;
    background: var(--color-emerald-950);
    overflow: hidden;
}

.craft-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fffbe6' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.craft-content {
    position: relative;
    z-index: 1;
}

.craft-content .section-title {
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.craft-item {
    padding: 2rem;
    border: 1px solid rgba(255, 251, 230, 0.08);
    border-radius: var(--radius-md);
    transition: border-color 0.3s, background 0.3s;
}

.craft-item:hover {
    border-color: rgba(255, 251, 230, 0.18);
    background: rgba(255, 251, 230, 0.03);
}

.craft-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 251, 230, 0.08);
    line-height: 1;
    margin-bottom: 1rem;
}

.craft-item-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-cream-100);
    margin-bottom: 0.75rem;
}

.craft-item-desc {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--color-cream-300);
    font-weight: 300;
}

/* --- Visit --- */
.visit {
    background: var(--color-cream-50);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.visit-info {
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(6, 78, 59, 0.06);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

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

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

.visit-detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.visit-detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-emerald-950);
    line-height: 1.5;
}

.visit-detail a.visit-detail-value {
    color: var(--color-emerald-700);
    transition: color 0.2s;
}

.visit-detail a.visit-detail-value:hover {
    color: var(--color-emerald-900);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 8px 40px rgba(6, 78, 59, 0.08);
}

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

/* --- Footer --- */
.site-footer {
    background: var(--color-emerald-950);
    padding: 3rem 0 2rem;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 251, 230, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand .logo-mark {
    background: var(--color-emerald-700);
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-cream-100);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-cream-300);
    font-weight: 300;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-cream-300);
    opacity: 0.6;
}

.footer-bottom a {
    color: var(--color-cream-300);
    transition: color 0.2s;
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .craft-grid .craft-item:last-child {
        grid-column: span 2;
    }
}

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

    .main-nav {
        display: none;
    }

    .hero .container {
        padding-top: 4rem;
    }

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

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

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

    .hero-accent {
        display: none;
    }

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

    .about-image-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }

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

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

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

    .craft-grid .craft-item:last-child {
        grid-column: span 1;
    }

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

    .visit-map {
        min-height: 300px;
    }

    .visit-map iframe {
        min-height: 300px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
    }

    .section-title {
        font-size: clamp(1.875rem, 7vw, 2.5rem);
    }
}
