/* ============================================
   TEA MAGIC — Styles
   Burgundy + Blush | Clean Minimalist
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --burgundy-900: #3D0F18;
    --burgundy-800: #5C1A27;
    --burgundy-700: #7B2D3B;
    --burgundy-600: #9B3D4E;
    --burgundy-500: #B84F62;
    --burgundy-400: #C96B7A;
    --burgundy-300: #D48A96;
    --blush-100: #FDF2F0;
    --blush-200: #FCE8E3;
    --blush-300: #F7D5CC;
    --blush-400: #F0B8AA;
    --cream: #FDF8F6;
    --warm-white: #FEFAF9;
    --sand: #F5EDE8;
    --sand-dark: #E8DDD6;
    --text-primary: #1A0A0E;
    --text-secondary: #4A2530;
    --text-tertiary: #7A5060;
    --text-light: #A07888;
    --white: #FFFFFF;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--warm-white);
    overflow-x: hidden;
}

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

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

address {
    font-style: normal;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--burgundy-700);
    color: var(--white);
    border-radius: 0 0 8px 8px;
    z-index: 200;
    font-size: 0.875rem;
    transition: top 0.2s;
}

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

/* --- Grain Overlay --- */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* --- Section Tags --- */
.section-tag {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy-500);
    margin-bottom: 1rem;
    display: block;
}

/* --- Section Titles --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.accent {
    color: var(--burgundy-600);
    font-style: italic;
}

/* --- Section Subtitle --- */
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-tertiary);
    max-width: 480px;
    line-height: 1.7;
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--burgundy-300);
    opacity: 0.5;
}

.section-divider svg {
    width: 100%;
    max-width: 1200px;
    height: 40px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--burgundy-700);
    color: var(--white);
    border-color: var(--burgundy-700);
}

.btn-primary:hover {
    background: var(--burgundy-800);
    border-color: var(--burgundy-800);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--burgundy-700);
    border-color: var(--burgundy-300);
}

.btn-ghost:hover {
    background: var(--blush-100);
    border-color: var(--burgundy-500);
    transform: translateY(-1px);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.site-header.scrolled {
    padding: 0.875rem 0;
    background: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--blush-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-primary);
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.7;
}

.logo-mark {
    color: var(--burgundy-600);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* --- Navigation --- */
.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list {
    display: none;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
}

.nav-list a:hover {
    color: var(--burgundy-700);
    background: var(--blush-100);
}

.nav-cta {
    background: var(--burgundy-700) !important;
    color: var(--white) !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--burgundy-800) !important;
    color: var(--white) !important;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Mobile Nav Overlay --- */
@media (max-width: 767px) {
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(253, 248, 246, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-overlay .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .nav-overlay .nav-list a {
        font-family: var(--font-display);
        font-size: 1.75rem;
        font-weight: 400;
        color: var(--text-primary);
        padding: 0.75rem 1.5rem;
    }

    .nav-overlay .nav-list a:hover {
        color: var(--burgundy-600);
        background: transparent;
    }

    .nav-overlay .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        background: var(--burgundy-700) !important;
        color: var(--white) !important;
        font-size: 1rem !important;
        font-family: var(--font-body) !important;
        padding: 0.875rem 2rem !important;
        border-radius: 100px;
    }
}

/* --- Hero --- */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--blush-100) 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 10rem;
        padding-bottom: 6rem;
    }
}

.hero-layout {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* --- Hero Content --- */
.hero-content {
    max-width: 520px;
}

.hero-tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy-500);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title .accent {
    font-style: italic;
    color: var(--burgundy-600);
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-tertiary);
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 440px;
}

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

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

.hero-image-wrapper {
    position: relative;
    border-radius: 200px 200px 24px 24px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(92, 26, 39, 0.12);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 520 / 640;
    display: block;
}

.hero-image-accent {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 196px 196px 20px 20px;
    pointer-events: none;
}

/* --- Stat Cards --- */
.hero-stats {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-stats {
        margin-top: 4rem;
    }
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--blush-200);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 4px 16px rgba(92, 26, 39, 0.06);
    transition: all 0.35s var(--ease-out);
    min-width: 120px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(92, 26, 39, 0.1);
    border-color: var(--burgundy-300);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--burgundy-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* --- Collection --- */
.collection {
    padding: 6rem 0;
    background: var(--warm-white);
}

@media (min-width: 768px) {
    .collection {
        padding: 8rem 0;
    }
}

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

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

.collection-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.collection-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--blush-200);
    transition: all 0.4s var(--ease-out);
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(92, 26, 39, 0.1);
    border-color: var(--burgundy-300);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 480;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(61, 15, 24, 0.06) 100%);
    pointer-events: none;
}

.card-body {
    padding: 1.75rem;
}

.card-icon {
    display: inline-flex;
    color: var(--burgundy-500);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--burgundy-600);
    letter-spacing: 0.02em;
    transition: gap 0.3s var(--ease-out);
}

.card-link:hover {
    gap: 0.625rem;
}

.card-link svg {
    flex-shrink: 0;
}

/* --- About --- */
.about {
    padding: 6rem 0 8rem;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.about-layout {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* --- About Images --- */
.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(92, 26, 39, 0.1);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 560 / 700;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -1.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(92, 26, 39, 0.15);
    border: 4px solid var(--cream);
    max-width: 60%;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 400 / 300;
    display: block;
}

.about-pattern {
    position: absolute;
    top: -3rem;
    left: -2rem;
    width: 120px;
    height: 120px;
    opacity: 0.15;
    background-image: radial-gradient(circle, var(--burgundy-400) 1px, transparent 1px);
    background-size: 12px 12px;
    pointer-events: none;
}

/* --- About Content --- */
.about-content {
    max-width: 480px;
}

.about-divider {
    width: 48px;
    height: 1px;
    background: var(--burgundy-400);
    margin-bottom: 1.75rem;
}

.about-text {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--blush-200);
    color: var(--text-light);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.about-signature svg {
    color: var(--burgundy-400);
    opacity: 0.6;
}

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

@media (min-width: 768px) {
    .visit {
        padding: 8rem 0;
    }
}

.visit-layout {
    display: grid;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 768px) {
    .visit-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.visit-divider {
    width: 48px;
    height: 1px;
    background: var(--burgundy-400);
    margin-bottom: 2rem;
}

/* --- Visit Details --- */
.visit-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.detail-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--blush-100);
    color: var(--burgundy-600);
    margin-top: 0.125rem;
}

.detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-row p:last-child {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.detail-row a {
    color: var(--burgundy-600);
    transition: color 0.3s;
}

.detail-row a:hover {
    color: var(--burgundy-800);
    text-decoration: underline;
}

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

/* --- Map --- */
.visit-map {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(92, 26, 39, 0.1);
    border: 1px solid var(--blush-200);
}

.map-wrapper {
    aspect-ratio: 4 / 3;
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--burgundy-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2.5rem;
}

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

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 0.75rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-brand .logo {
        justify-content: flex-start;
    }
}

.footer-brand .logo-mark {
    color: var(--burgundy-300);
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

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

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    line-height: 1.7;
}

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

.reveal.revealed {
    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; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid var(--burgundy-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Selection --- */
::selection {
    background: var(--burgundy-200);
    color: var(--burgundy-900);
}
