/* ========================================
   PHO ZONE — Editorial Restaurant Site
   Teal + Slate Grey | Playfair Display + Inter
======================================== */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --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;
    --cream: #fafaf8;
    --warm-white: #fefdfb;

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

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background: var(--warm-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--teal-700);
    color: white;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 0.875rem;
    transition: top 0.2s;
}
.skip-link:focus {
    top: var(--space-sm);
}

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    background: var(--teal-800);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    color: var(--teal-200);
    animation: loaderPulse 1s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-900);
    transition: color 0.3s;
}
.logo--footer { color: white; }
.logo-mark {
    color: var(--teal-600);
    flex-shrink: 0;
}
.logo--footer .logo-mark { color: var(--teal-400); }

/* NAV */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.nav-toggle:hover { background: var(--slate-100); }
.hamburger {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
}
.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger::before { top: 0; }
.hamburger span { top: 6px; }
.hamburger::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    letter-spacing: 0.02em;
    transition: color 0.2s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal-600);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--teal-700); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--teal-700);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
    background: var(--teal-800);
    color: white;
    transform: translateY(-1px);
}

/* MOBILE NAV */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: var(--warm-white);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-md);
        padding: var(--space-xl);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-link { font-size: 1.125rem; color: var(--slate-800); }
    .nav-cta { font-size: 1rem; padding: 0.75rem 1.5rem; }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 98;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .nav-overlay.visible { opacity: 1; visibility: visible; }
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        var(--teal-900) 0%,
        var(--teal-700) 35%,
        var(--teal-600) 60%,
        #0f6b63 80%,
        var(--teal-800) 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.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0,0,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    pointer-events: none;
}
.hero-content {
    position: relative;
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    max-width: 800px;
}
.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-200);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.5s forwards;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: white;
    margin-bottom: var(--space-lg);
}
.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}
.hero-title .line:nth-child(1) { animation: fadeUp 0.8s 0.6s forwards; }
.hero-title .line:nth-child(2) { animation: fadeUp 0.8s 0.75s forwards; }
.hero-title .accent {
    font-style: italic;
    color: var(--teal-200);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.9s forwards;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 1.05s forwards;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}
.btn-primary {
    background: white;
    color: var(--teal-800);
}
.btn-primary:hover {
    background: var(--teal-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* SCROLL INDICATOR */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeUp 0.8s 1.3s forwards;
    opacity: 0;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.4; }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* INTRO STRIP */
.intro-strip {
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    padding: var(--space-lg) 0;
}
.intro-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.intro-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-700);
}
.intro-icon {
    color: var(--teal-600);
}
.intro-divider {
    width: 1px;
    height: 24px;
    background: var(--slate-300);
}
@media (max-width: 640px) {
    .intro-divider { display: none; }
    .intro-grid { gap: var(--space-sm); }
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: var(--space-sm);
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--slate-900);
}
.section-title em {
    font-style: italic;
    color: var(--teal-700);
}

/* MENU */
.menu {
    padding: var(--space-3xl) 0;
    background: var(--warm-white);
}
.menu-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}
.menu-cat {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-500);
    border: 1.5px solid var(--slate-200);
    transition: all 0.25s ease;
}
.menu-cat:hover {
    color: var(--teal-700);
    border-color: var(--teal-200);
    background: var(--teal-50);
}
.menu-cat.active {
    color: white;
    background: var(--teal-700);
    border-color: var(--teal-700);
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}
.menu-col { display: contents; }
.menu-col[hidden] { display: none; }
.menu-item {
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.menu-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.item-header { }
.item-name {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.3rem;
}
.item-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.5;
}
.menu-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-400);
    font-style: italic;
    margin-bottom: var(--space-lg);
}
.btn-menu-cta {
    display: inline-flex;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .menu-grid { grid-template-columns: 1fr; }
}

/* ABOUT */
.about {
    padding: var(--space-3xl) 0;
    background: var(--slate-50);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}
.about-image-wrap {
    position: relative;
}
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-image-accent {
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid var(--teal-200);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.about-content { padding: var(--space-md) 0; }
.about-content .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}
.about-content p {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}
.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--slate-200);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-700);
}
.stat-label {
    font-size: 0.8125rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrap { max-height: 400px; }
    .about-content .section-title { text-align: center; }
    .about-content p { text-align: center; }
    .about-stats { justify-content: center; }
}

/* GALLERY */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--warm-white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: var(--space-sm);
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item--large { grid-column: span 5; grid-row: span 2; }
.gallery-item--tall { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(5) { grid-column: span 3; }
.gallery-item:nth-child(6) { grid-column: span 4; }

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item,
    .gallery-item--large,
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 200px;
    }
    .gallery-item:nth-child(1) { grid-column: span 2; height: 240px; }
}

/* VISIT */
.visit {
    padding: var(--space-3xl) 0;
    background: var(--slate-900);
    color: white;
}
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}
.visit .section-eyebrow { color: var(--teal-400); }
.visit .section-title { color: white; text-align: left; }
.visit-details {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.visit-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}
.detail-icon {
    color: var(--teal-400);
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-400);
    margin-bottom: 0.2rem;
}
.detail-value {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}
.detail-value a {
    color: var(--teal-300);
    transition: color 0.2s;
}
.detail-value a:hover { color: var(--teal-200); }
.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
    .visit-grid { grid-template-columns: 1fr; }
    .visit .section-title { text-align: center; }
    .visit-map { min-height: 300px; }
}

/* FOOTER */
.site-footer {
    background: var(--slate-900);
    border-top: 1px solid var(--slate-800);
    padding: var(--space-2xl) 0 var(--space-md);
    color: white;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--slate-800);
}
.footer-brand p {
    color: var(--slate-400);
    font-size: 0.9375rem;
    margin-top: var(--space-sm);
    max-width: 280px;
    line-height: 1.6;
}
.footer-links h4,
.footer-contact h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--slate-400);
    margin-bottom: var(--space-sm);
}
.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--teal-400);
    padding-left: 4px;
}
.footer-contact li:not(:last-child) a { padding-left: 0; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    font-size: 0.8125rem;
    color: var(--slate-500);
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* SCROLL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    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; }

/* SELECTION */
::selection {
    background: var(--teal-200);
    color: var(--teal-900);
}
