/* ===================================
   Panda Tea House — Stylesheet
   Classic & Elegant / Emerald + Cream
   =================================== */

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

:root {
    --emerald-deep: #064e3b;
    --emerald: #047857;
    --emerald-light: #065f46;
    --emerald-muted: #a7f3d0;
    --cream: #faf8f5;
    --cream-dark: #f5f0e8;
    --cream-mid: #e8e0d4;
    --gold: #b8860b;
    --gold-light: #d4a574;
    --text-dark: #1a1a1a;
    --text-mid: #3d3d3d;
    --text-light: #6b6b6b;
    --text-muted: #999;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --radius: 4px;
    --radius-lg: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
}

.text-accent {
    color: var(--emerald);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--emerald);
    color: #fff;
    border-color: var(--emerald);
}

.btn-primary:hover {
    background: var(--emerald-deep);
    border-color: var(--emerald-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--emerald);
    border-color: var(--emerald);
}

.btn-outline:hover {
    background: var(--emerald);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(250,248,245,0.4);
}

.btn-ghost:hover {
    background: rgba(250,248,245,0.1);
    border-color: rgba(250,248,245,0.8);
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 16px;
    position: relative;
    padding-left: 32px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1.5px;
    background: var(--emerald);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 24px;
    font-weight: 500;
}

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

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-tag {
    padding-left: 0;
}

.section-header.centered .section-tag::before {
    display: none;
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,248,245,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6,78,59,0.08);
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--emerald-deep);
    letter-spacing: 0.01em;
}

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

.logo-icon {
    color: var(--emerald);
}

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

.nav a {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--emerald);
    transition: width var(--transition);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -4px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/27175868/pexels-photo-27175868.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1200') center center / cover no-repeat;
    transform: scale(1.02);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6,78,59,0.82) 0%,
        rgba(4,120,87,0.72) 50%,
        rgba(6,78,59,0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding-top: 76px;
}

.hero-tag {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 28px;
}

.hero-accent {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 400;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 44px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--cream);
}

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

.about-accent-box {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--emerald);
    color: #fff;
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.accent-number {
    display: block;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald-muted);
    margin-bottom: 4px;
}

.accent-year {
    display: block;
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
}

.about-accent-box p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    letter-spacing: 0.04em;
}

.about-text .section-tag {
    margin-bottom: 12px;
}

.about-text .section-title {
    margin-bottom: 28px;
}

.about-text > p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.85;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
}

.feature-item svg {
    color: var(--emerald);
    flex-shrink: 0;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-top: 64px;
}

.menu-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.menu-card--large {
    grid-row: 1 / 3;
}

.menu-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.menu-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
}

.menu-card-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.menu-card-content h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
}

.menu-card-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.menu-card-list {
    list-style: none;
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.menu-card-list li {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    padding-left: 14px;
    position: relative;
}

.menu-card-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold-light);
}

/* --- Experience --- */
.experience {
    padding: 120px 0;
    background: var(--cream);
}

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

.experience-text .section-tag {
    margin-bottom: 12px;
}

.experience-text .section-title {
    margin-bottom: 24px;
}

.experience-text > p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 48px;
}

.experience-items {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.exp-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
}

.exp-number {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--emerald);
    line-height: 1;
    padding-top: 4px;
}

.exp-item h4 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.exp-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
}

.experience-images {
    position: relative;
}

.exp-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.exp-img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.exp-img-grid img:hover {
    transform: scale(1.02);
}

.exp-img-grid img:first-child {
    grid-row: 1 / 3;
    height: 100%;
    min-height: 400px;
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: var(--cream-dark);
}

.visit-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visit-text {
    background: var(--emerald-deep);
    color: #fff;
    padding: 64px;
}

.visit-text .section-tag {
    color: var(--gold-light);
}

.visit-text .section-tag::before {
    background: var(--gold-light);
}

.visit-text .section-title {
    color: #fff;
    margin-bottom: 18px;
}

.visit-text .section-title .text-accent {
    color: var(--gold-light);
}

.visit-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin-bottom: 44px;
}

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

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

.visit-detail svg {
    color: var(--gold-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.visit-detail span {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

.visit-map {
    position: relative;
    min-height: 480px;
}

.visit-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    margin-top: 64px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-dark);
    border: 1.5px solid var(--cream-mid);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(4,120,87,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(4,120,87,0.08);
    border: 1px solid rgba(4,120,87,0.2);
    border-radius: var(--radius);
    color: var(--emerald);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--cream-dark);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h4 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 14px;
    color: var(--emerald-deep);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-mid);
    transition: color var(--transition);
    margin-bottom: 8px;
}

.contact-link:hover {
    color: var(--emerald);
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Footer --- */
.footer {
    background: var(--emerald-deep);
    color: #fff;
    padding: 64px 0 32px;
}

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

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}

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

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .experience-grid {
        gap: 48px;
    }

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

    .menu-card--large {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(250,248,245,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid rgba(6,78,59,0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

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

    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-img-secondary {
        right: -16px;
        bottom: -24px;
    }

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

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

    .visit-text {
        padding: 40px 28px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .exp-img-grid {
        grid-template-columns: 1fr 1fr;
    }

    .exp-img-grid img:first-child {
        grid-row: auto;
        min-height: 200px;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .about,
    .menu,
    .experience,
    .visit,
    .contact {
        padding: 80px 0;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .about-img-secondary {
        right: 0;
        bottom: -16px;
    }

    .about-accent-box {
        right: 16px;
        top: -12px;
        padding: 14px 18px;
    }

    .accent-year {
        font-size: 1.8rem;
    }

    .footer-links {
        gap: 16px;
    }
}
