/* ============================================
   I Pho — Vietnamese Restaurant Website
   Color Palette: Midnight Blue + Mint
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --midnight: #0A1F3F;
    --midnight-light: #132D54;
    --midnight-dark: #061529;
    --mint: #7ED4C1;
    --mint-light: #A8E6D8;
    --mint-dark: #5BB8A5;
    --cream: #F7F3EE;
    --cream-dark: #EDE8E0;
    --warm-white: #FDFCFA;
    --text-dark: #0A1F3F;
    --text-mid: #3D5A80;
    --text-light: #6B82A0;
    --text-muted: #9AB0C8;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --shadow-sm: 0 2px 8px rgba(10, 31, 63, 0.06);
    --shadow-md: 0 8px 30px rgba(10, 31, 63, 0.10);
    --shadow-lg: 0 20px 60px rgba(10, 31, 63, 0.14);
    --shadow-mint: 0 8px 30px rgba(126, 212, 193, 0.25);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    font-weight: 600;
}

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

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

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 243, 238, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 31, 63, 0.06);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(247, 243, 238, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--midnight);
}

.logo-text {
    letter-spacing: -0.02em;
}

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

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--midnight);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: 100px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--midnight);
    background: rgba(10, 31, 63, 0.06);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn--accent {
    background: var(--mint);
    color: var(--midnight);
    box-shadow: var(--shadow-mint);
}
.btn--accent:hover {
    background: var(--mint-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(126, 212, 193, 0.35);
}

.btn--light {
    background: var(--warm-white);
    color: var(--midnight);
    box-shadow: var(--shadow-md);
}
.btn--light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline-light {
    background: transparent;
    color: var(--warm-white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn--dark {
    background: var(--midnight);
    color: var(--warm-white);
    box-shadow: var(--shadow-md);
}
.btn--dark:hover {
    background: var(--midnight-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    background: var(--midnight);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(126, 212, 193, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 20px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: rgba(126, 212, 193, 0.12);
    border: 1px solid rgba(126, 212, 193, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--mint);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    color: var(--warm-white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

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

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-trust {
    display: flex;
    align-items: center;
    gap: 24px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mint);
}

.trust-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(126, 212, 193, 0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 680px;
}

.hero-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 85%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.hero-img-float {
    position: absolute;
    bottom: 40px;
    left: -10%;
    width: 42%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--midnight);
}

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

.hero-badge {
    position: absolute;
    top: 30px;
    left: 10%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--warm-white);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--midnight);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--mint);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--midnight);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

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

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.8;
}

/* ============================================
   STORY
   ============================================ */
.story {
    padding: 100px 0;
    background: var(--cream);
}

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

.story-images {
    position: relative;
}

.story-img-large {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-img-large img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.story-img-small {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--cream);
}

.story-img-small img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.story-accent {
    position: absolute;
    top: -20px;
    right: 40px;
    opacity: 0.5;
}

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

.story-content p {
    font-size: 1.02rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 18px;
}

.story-signature {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.signature-line {
    width: 60px;
    height: 2px;
    background: var(--mint);
    border-radius: 2px;
}

.signature-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   MENU
   ============================================ */
.menu {
    padding: 100px 0 120px;
    background: var(--cream-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-desc {
    margin: 0 auto;
}

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

.menu-card {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.menu-card--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.menu-card--featured .menu-card-img {
    height: 100%;
    min-height: 400px;
}

.menu-card--featured .menu-card-img img {
    height: 100%;
}

.menu-card--featured .menu-card-body {
    padding: 32px;
}

.menu-card--featured .menu-card-title {
    font-size: 2rem;
}

.menu-card--featured .menu-card-desc {
    font-size: 1rem;
}

.menu-card-img {
    height: 220px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

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

.menu-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(126, 212, 193, 0.15);
    color: var(--mint-dark);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 12px;
}

.menu-card-title {
    font-size: 1.3rem;
    color: var(--midnight);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

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

.menu-footer-text {
    font-size: 0.92rem;
    color: var(--text-light);
    max-width: 480px;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why {
    padding: 100px 0;
    background: var(--midnight);
    position: relative;
    overflow: hidden;
}

.why::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(126, 212, 193, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(126, 212, 193, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.why-item {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(126, 212, 193, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.why-item:hover {
    background: rgba(126, 212, 193, 0.06);
    border-color: rgba(126, 212, 193, 0.2);
    transform: translateY(-4px);
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(126, 212, 193, 0.1);
}

.why-title {
    font-size: 1.1rem;
    color: var(--warm-white);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.why-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

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

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

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

.visit-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(126, 212, 193, 0.12);
    border-radius: var(--radius-sm);
}

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

.visit-detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--midnight);
    font-weight: 500;
    line-height: 1.6;
}

.visit-detail-value:hover {
    color: var(--mint-dark);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 520px;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--midnight-dark);
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    color: var(--warm-white);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 4px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--mint);
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-hours-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mint);
}

.footer-hours p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================
   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);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    
    .hero-visual {
        height: 560px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .menu-card--featured .menu-card-img {
        min-height: 280px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-grid {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }
    
    .nav-links .btn {
        margin-top: 12px;
        justify-content: center;
        width: 100%;
    }
    
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(10, 31, 63, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-visual {
        height: 420px;
        order: 2;
    }
    
    .hero-img-main {
        width: 100%;
        height: 100%;
    }
    
    .hero-img-float {
        width: 50%;
        left: -5%;
        bottom: -20px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-trust {
        gap: 20px;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .story-images {
        order: -1;
    }
    
    .story-img-large img {
        height: 360px;
    }
    
    .story-img-small {
        right: -10px;
        bottom: -30px;
        width: 55%;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-card--featured {
        grid-column: span 1;
    }
    
    .menu-card--featured .menu-card-img {
        min-height: 240px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .visit-map {
        order: -1;
    }
    
    .map-placeholder iframe {
        height: 320px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 340px;
    }
    
    .hero-img-float {
        width: 55%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .story-img-large img {
        height: 280px;
    }
    
    .story-img-small img {
        height: 200px;
    }
}
