/* === CHIANG MAI NIMMAN - Zen/Organic Thai Design === */

:root {
    --teal: #1a6b5a;
    --teal-dark: #0f4d40;
    --teal-deep: #0a302a;
    --gold: #c9a23c;
    --gold-dim: rgba(201, 162, 60, 0.12);
    --leaf: #e8f0e4;
    --cream: #faf8f0;
    --white: #ffffff;
    --dark: #1a2a22;
    --text-dark: #1a2a22;
    --text-mid: #5a6a5e;
    --text-light: rgba(250, 248, 240, 0.6);
    --text-dim: rgba(250, 248, 240, 0.3);
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === FLOATING NAV PILL === */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    top: 16px;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 12px 32px;
    background: rgba(10, 48, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(201, 162, 60, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.nav-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
}

/* Mobile nav */
.mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99;
    background: rgba(10, 48, 42, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    height: 100vh;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open { transform: translateY(0); }

.mobile-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: 3px;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, var(--teal-deep) 0%, var(--dark) 100%);
}

.hero-ambient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201, 162, 60, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(26, 107, 90, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(201, 162, 60, 0.03) 0%, transparent 40%);
    animation: ambientShift 15s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% { opacity: 1; filter: hue-rotate(0deg); }
    100% { opacity: 0.8; filter: hue-rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 32px;
}

.hero-lotus-ring {
    position: relative;
    width: 200px; height: 200px;
    margin: 0 auto 40px;
}

.lotus-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}

.hero-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110px; height: 110px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
}

.hero-thai {
    font-size: 1.8rem;
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: 16px;
    letter-spacing: 8px;
}

.hero h1 { margin-bottom: 28px; }

.h1-thin {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.h1-main {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 2;
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--cream));
    pointer-events: none;
}

/* === IMAGE STRIP === */
.image-strip {
    display: flex;
    gap: 12px;
    padding: 0 12px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.strip-item {
    flex: 1;
    height: 200px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.strip-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    border-radius: var(--radius);
}

.strip-item span {
    position: absolute;
    bottom: 16px; left: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    z-index: 1;
}

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

.story-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.lotus-small {
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: 12px;
}

.lotus-small.light { color: var(--gold); opacity: 0.3; }

.story-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.story-label.light { color: var(--text-light); }

.story-top h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 48px;
}

.story-lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--teal-dark);
    line-height: 1.9;
    margin-bottom: 32px;
}

.story-divider {
    width: 40px; height: 1px;
    background: var(--teal);
    margin: 0 auto 32px;
    opacity: 0.3;
}

.story-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    text-align: left;
    margin-bottom: 60px;
}

.story-cols p {
    font-size: 0.88rem;
    color: var(--text-mid);
    font-weight: 300;
    line-height: 1.9;
}

.story-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.badge-item {
    text-align: center;
}

.badge-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.badge-item span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.5px;
}

/* === THAI BANNER === */
.thai-banner {
    padding: 100px 0;
    background: var(--teal-deep);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.thai-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 162, 60, 0.04) 0%, transparent 70%);
}

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

.tb-thai {
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    margin-bottom: 16px;
}

.tb-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic;
    color: var(--cream);
    letter-spacing: 1px;
}

/* === MENU === */
.menu-section {
    padding: 120px 0;
    background: var(--leaf);
}

.menu-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

.menu-header {
    text-align: center;
    margin-bottom: 70px;
}

.menu-header h2, h2.light {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.2;
}

h2.light { color: var(--cream); }

.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.menu-cat {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: transform 0.4s, box-shadow 0.4s;
}

.menu-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.menu-cat.reverse { grid-template-columns: 1fr 280px; }
.menu-cat.reverse .cat-visual { order: 2; }

.cat-visual {
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.cat-content {
    padding: 40px 36px;
}

.cat-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 24px;
}

.cat-items {
    display: flex;
    flex-direction: column;
}

.cat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 42, 34, 0.06);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 400;
}

.cat-row:last-child { border-bottom: none; }

.cat-row.divider {
    border-bottom: none;
    padding: 4px 0;
}

.cat-row span:last-child {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--teal);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-left: 16px;
}

.cat-row em {
    font-style: normal;
    font-size: 0.75rem;
}

.cat-row small {
    display: inline-block;
    background: var(--gold);
    color: white;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.cat-row.highlight {
    background: rgba(201, 162, 60, 0.04);
    margin: 0 -12px;
    padding: 10px 12px;
    border-radius: 8px;
    border-bottom: none;
}

/* === TRADITION === */
.tradition {
    padding: 120px 0;
    background: var(--teal-deep);
}

.tradition-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

.tradition-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trad-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201, 162, 60, 0.08);
    border-radius: var(--radius);
    padding: 44px 28px;
    text-align: center;
    transition: all 0.4s;
}

.trad-card:hover {
    border-color: rgba(201, 162, 60, 0.2);
    background: rgba(201, 162, 60, 0.03);
    transform: translateY(-4px);
}

.trad-thai {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 16px;
}

.trad-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.trad-card p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.9;
    font-weight: 300;
}

/* === FOOTER === */
.footer {
    background: #071e19;
    padding: 80px 0 32px;
    border-top: 1px solid rgba(201, 162, 60, 0.06);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.fb-name {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--cream);
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.8;
}

.footer-contact h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--cream);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-contact p {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-legal a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.68rem;
    transition: color 0.3s;
}

.footer-legal a:hover { color: var(--gold); }
.footer-legal span { color: rgba(201, 162, 60, 0.15); font-size: 0.6rem; }

.footer-bottom p {
    font-size: 0.6rem;
    color: rgba(250, 248, 240, 0.15);
    letter-spacing: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-pill { gap: 0; justify-content: space-between; min-width: 200px; }

    .hero-lotus-ring { width: 150px; height: 150px; }
    .hero-logo { width: 80px; height: 80px; }
    .hero-thai { font-size: 1.2rem; }

    .image-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }
    .strip-item { min-width: 180px; height: 160px; flex: none; }

    .story-cols { grid-template-columns: 1fr; gap: 16px; }
    .story-badges { flex-direction: column; gap: 20px; }

    .menu-cat, .menu-cat.reverse {
        grid-template-columns: 1fr;
    }
    .menu-cat.reverse .cat-visual { order: 0; }
    .cat-visual { min-height: 200px; }
    .cat-content { padding: 28px 24px; }

    .tradition-cards { grid-template-columns: 1fr; }

    .footer-top { flex-direction: column; gap: 32px; }

    .story, .menu-section, .tradition { padding: 80px 0; }
    .tb-thai { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .h1-main { font-size: 2rem !important; }
    .nav-pill { padding: 10px 20px; }

    .cat-row { flex-direction: column; gap: 2px; }
    .cat-row span:last-child { margin-left: 0; }
}
