/* ============================================
   Beaverton Creamery & Grill — Stylesheet
   Clean Minimalist | Teal + Slate Grey
============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background: #ffffff;
    line-height: 1.6;
    -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;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--slate-100);
    transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--slate-800);
    letter-spacing: -0.01em;
}

.nav-brand-icon {
    color: var(--teal-600);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate-600);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-600);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:not(.nav-cta):hover {
    color: var(--teal-700);
}

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

.nav-cta {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--teal-700) !important;
    border: 1px solid var(--teal-200);
    padding: 8px 18px;
    border-radius: 100px;
    transition: all 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--teal-50);
    border-color: var(--teal-300);
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
}

.nav-toggle-line {
    display: block;
    height: 1.5px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--slate-600);
    padding: 8px;
}

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

.mobile-menu-link {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--slate-700);
    letter-spacing: -0.01em;
    padding: 12px 24px;
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: var(--teal-600);
}

.mobile-menu-cta {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--teal-700);
    padding: 14px 28px;
    border: 1px solid var(--teal-200);
    border-radius: 100px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    /* Explicit dark gradient background for light text */
    background: linear-gradient(160deg, var(--teal-900) 0%, var(--teal-800) 30%, var(--teal-700) 60%, #1a8a7e 100%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13, 148, 136, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(20, 184, 166, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(4, 47, 46, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-200);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-title-accent {
    font-style: italic;
    color: var(--teal-200);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.188rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 100px;
    letter-spacing: 0.01em;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: #ffffff;
    color: var(--teal-800);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--teal-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--teal-700);
    border: 1px solid var(--teal-300);
}

.btn-outline:hover {
    background: var(--teal-50);
    border-color: var(--teal-500);
}

.btn-white {
    background: #ffffff;
    color: var(--teal-800);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
    background: var(--teal-50);
    transform: translateY(-1px);
}

.btn-ghost-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-highlights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.813rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.hero-highlight svg {
    color: var(--teal-300);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.688rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    animation: float 2.5s ease-in-out infinite;
}

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

/* ---------- Section Divider ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 24px;
}

.divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: var(--slate-200);
}

.divider-icon {
    color: var(--teal-400);
    flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.063rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-500);
}

/* ---------- Menu Section ---------- */
.menu-section {
    background: var(--slate-50);
}

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

.menu-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    transition: all 0.35s var(--ease-out);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--teal-100);
}

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

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

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

.menu-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--teal-600);
    color: #ffffff;
    font-size: 0.688rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

.menu-card-body {
    padding: 24px;
}

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--slate-900);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.menu-card-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--slate-500);
}

.menu-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--teal-800);
}

.menu-note svg {
    color: var(--teal-500);
    flex-shrink: 0;
}

.menu-note a {
    color: var(--teal-700);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.menu-note a:hover {
    color: var(--teal-600);
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-image-main {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 13/16;
}

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

.about-image-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border: 4px solid #ffffff;
    aspect-ratio: 4/3;
}

.about-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 80px;
    height: 80px;
    background: var(--teal-100);
    border-radius: 16px;
    z-index: -1;
}

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

.about-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--slate-600);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-100);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--teal-700);
    letter-spacing: -0.02em;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--slate-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--slate-200);
}

/* ---------- Creamery Section ---------- */
.creamery-section {
    background: var(--slate-50);
}

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

.creamery-content {
    order: 1;
}

.creamery-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--slate-600);
    margin-bottom: 32px;
}

.creamery-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.creamery-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.938rem;
    font-weight: 400;
    color: var(--slate-700);
}

.creamery-features svg {
    color: var(--teal-500);
    flex-shrink: 0;
}

.creamery-image {
    order: 2;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 23/27;
}

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

/* ---------- Visit Section ---------- */
.visit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.visit-card {
    background: #ffffff;
    border: 1px solid var(--slate-100);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s var(--ease-out);
}

.visit-card:hover {
    border-color: var(--teal-100);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.visit-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border-radius: 14px;
    color: var(--teal-600);
}

.visit-card-title {
    font-family: var(--font-serif);
    font-size: 1.188rem;
    font-weight: 400;
    color: var(--slate-900);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.visit-card-text {
    font-size: 0.938rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-500);
}

.visit-card-text a {
    color: var(--teal-600);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.visit-card-text a:hover {
    color: var(--teal-700);
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--slate-100);
}

.map-wrapper iframe {
    width: 100%;
    height: 380px;
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    /* Explicit dark background for light text */
    background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-800) 50%, var(--teal-700) 100%);
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(20, 184, 166, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 30%, rgba(13, 148, 136, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: 20px;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.063rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

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

/* ---------- Footer ---------- */
.footer {
    background: var(--slate-900);
    padding: 64px 0 32px;
}

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

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.938rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--teal-400);
}

.footer-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-400);
}

.footer-info,
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.footer-address,
.footer-phone,
.footer-hours-text,
.footer-hours-time {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-300);
}

.footer-phone a {
    color: var(--teal-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-phone a:hover {
    color: var(--teal-300);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--slate-800);
}

.footer-bottom p {
    font-size: 0.813rem;
    font-weight: 300;
    color: var(--slate-500);
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

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

    .about-grid,
    .creamery-layout {
        gap: 48px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 100svh;
        padding: 100px 24px 80px;
    }

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

    .hero-highlights {
        gap: 20px;
    }

    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

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

    .about-grid,
    .creamery-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .creamery-content {
        order: 2;
    }

    .creamery-image {
        order: 1;
        aspect-ratio: 4/3;
    }

    .about-image-secondary {
        right: -12px;
        bottom: -20px;
    }

    .about-image-accent {
        display: none;
    }

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

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

    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

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

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

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .about-stat-divider {
        display: none;
    }
}
