/* ============================================
   The Tea Shack — Styles
   Palette: Terracotta (#b06953) + Sand (#f5f0e8)
   Fonts: Cormorant Garamond (serif) + Inter (sans)
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #3a2e28;
    background-color: #faf7f2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #b06953;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 0;
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
}

/* ---------- Custom Properties ---------- */
:root {
    --terracotta: #b06953;
    --terracotta-dark: #965540;
    --sand: #f5f0e8;
    --sand-light: #faf7f2;
    --sand-dark: #e8e0d4;
    --text: #3a2e28;
    --text-light: #7a6a60;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.5rem;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: 2px;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--terracotta {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn--terracotta:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(176, 105, 83, 0.25);
}

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

.btn--outline:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sand-dark);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(58, 46, 40, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-mark {
    width: 28px;
    height: 28px;
    color: var(--terracotta);
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-list a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-cta {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.menu-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all var(--transition);
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0 6rem;
}

.hero-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-title em.thin {
    font-style: italic;
    color: var(--terracotta);
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 440px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image-frame {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(58, 46, 40, 0.1);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-frame:hover img {
    transform: scale(1.02);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand-dark);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand-dark);
}

.hero-line {
    height: 1px;
    background: linear-gradient(to right, var(--terracotta), transparent);
    margin: 0 2rem;
    opacity: 0.3;
}

/* ---------- About ---------- */
.about {
    padding: 8rem 0;
}

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

.about-image-col {
    position: relative;
}

.about-image {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--terracotta);
    border-radius: 4px;
    opacity: 0.2;
    z-index: 0;
}

.about-content {
    padding: 1rem 0;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--sand-dark);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.value-icon {
    width: 20px;
    height: 20px;
    color: var(--terracotta);
    flex-shrink: 0;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-item span:last-child {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 400;
}

/* ---------- Menu ---------- */
.menu {
    padding: 6rem 0 8rem;
    background: var(--sand);
}

.menu-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 4rem;
}

.menu-lead {
    color: var(--text-light);
    font-size: 1.05rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.menu-category {
    background: var(--white);
    border-radius: 4px;
    padding: 2.5rem;
    border: 1px solid var(--sand-dark);
    transition: all var(--transition);
}

.menu-category:hover {
    box-shadow: 0 8px 30px rgba(58, 46, 40, 0.06);
    transform: translateY(-2px);
}

.category-icon {
    width: 36px;
    height: 36px;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sand-dark);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.item-name {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text);
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 300;
    text-align: right;
}

.category-note {
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
    padding-top: 1rem;
    border-top: 1px solid var(--sand);
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 8rem 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
}

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

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item--tall {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-item--tall img {
    height: 100%;
    min-height: 400px;
}

.gallery-item--wide {
    grid-column: span 8;
}

.gallery-item--wide img {
    height: 100%;
    min-height: 200px;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    grid-column: span 4;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) img {
    height: 100%;
    min-height: 200px;
}

/* ---------- Visit ---------- */
.visit {
    padding: 8rem 0;
    background: var(--sand);
}

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

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

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-icon {
    width: 22px;
    height: 22px;
    color: var(--terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-icon svg {
    width: 100%;
    height: 100%;
}

.detail-item strong {
    display: block;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.detail-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.detail-item a {
    color: var(--terracotta);
    transition: color var(--transition);
}

.detail-item a:hover {
    color: var(--terracotta-dark);
    text-decoration: underline;
}

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 8px 30px rgba(58, 46, 40, 0.08);
    border: 1px solid var(--sand-dark);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-tagline {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--terracotta);
}

.footer-contact li:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text);
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--terracotta);
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }

    .about-grid {
        gap: 3rem;
    }

    .menu-grid {
        gap: 1.5rem;
    }

    .footer-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-list,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 0 4rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-frame {
        max-height: 400px;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-col {
        max-width: 480px;
    }

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

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

    .gallery-item--tall,
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: span 1;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

    .gallery-item img {
        min-height: 200px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-line {
        margin: 0 1.5rem;
    }
}

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

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

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .menu-category {
        padding: 2rem 1.5rem;
    }
}
