/* ========================================
   The Copper Kettle — Custom Styles
   ======================================== */

:root {
    /* Cafe palette */
    --cafe-cream: #FAF8F3;
    --cafe-terracotta: #C17851;
    --cafe-sage: #8B9E7D;
    --cafe-text: #2C2C2C;
    --cafe-pale: #F5E6D3;

    /* Bar palette */
    --bar-navy: #1A1F2E;
    --bar-burgundy: #6B2E3D;
    --bar-gold: #D4AF37;
    --bar-text: #F5F5F0;
    --bar-dark: #3D2C2C;
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--cafe-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

/* ---- Split Screen Landing ---- */
.split-landing {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    overflow: hidden;
}

.split-side {
    position: relative;
    width: 50%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.split-side__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.split-side:hover .split-side__bg {
    transform: scale(1.05);
}

.split-side__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.split-side--cafe .split-side__overlay {
    background: rgba(250, 248, 243, 0.82);
}

.split-side--bar .split-side__overlay {
    background: rgba(26, 31, 46, 0.82);
}

.split-side__svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.split-side--cafe .split-side__svg {
    color: var(--cafe-terracotta);
}

.split-side--bar .split-side__svg {
    color: var(--bar-gold);
}

.split-side__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.split-side--cafe .split-side__title {
    color: var(--cafe-text);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.split-side--bar .split-side__title {
    color: var(--bar-text);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.split-side__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.split-side--cafe .split-side__subtitle {
    color: var(--cafe-terracotta);
}

.split-side--bar .split-side__subtitle {
    color: var(--bar-gold);
}

.split-side__cta {
    margin-top: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border: 2px solid;
    transition: all 0.3s ease;
}

.split-side--cafe .split-side__cta {
    color: var(--cafe-terracotta);
    border-color: var(--cafe-terracotta);
}

.split-side--cafe .split-side__cta:hover {
    background: var(--cafe-terracotta);
    color: #fff;
}

.split-side--bar .split-side__cta {
    color: var(--bar-gold);
    border-color: var(--bar-gold);
}

.split-side--bar .split-side__cta:hover {
    background: var(--bar-gold);
    color: var(--bar-navy);
}

/* Divider line */
.split-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.15);
    z-index: 10;
    pointer-events: none;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* SVG line animation */
.svg-line-art path,
.svg-line-art line,
.svg-line-art circle,
.svg-line-art ellipse,
.svg-line-art polyline {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 0.8s ease;
}

.split-side:hover .svg-line-art path,
.split-side:hover .svg-line-art line,
.split-side:hover .svg-line-art circle,
.split-side:hover .svg-line-art ellipse,
.split-side:hover .svg-line-art polyline {
    stroke-dashoffset: 0;
}

/* Steam animation */
.steam-line {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.split-side--cafe:hover .steam-line {
    opacity: 1;
    animation: steamFloat 2s ease-in-out infinite;
}

@keyframes steamFloat {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.steam-line:nth-child(2) { animation-delay: 0.3s; }
.steam-line:nth-child(3) { animation-delay: 0.6s; }

/* Pour animation */
.pour-line {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.split-side--bar:hover .pour-line {
    opacity: 1;
    animation: pourDrop 1.5s ease-in-out infinite;
}

@keyframes pourDrop {
    0% { transform: translateY(-4px); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(6px); opacity: 0; }
}

.pour-line:nth-child(2) { animation-delay: 0.4s; }
.pour-line:nth-child(3) { animation-delay: 0.8s; }

/* ---- Sticky Nav ---- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.4s ease, background-color 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-nav.is-visible {
    transform: translateY(0);
}

.site-nav--cafe {
    background: rgba(250, 248, 243, 0.92);
    border-bottom: 1px solid rgba(193, 120, 81, 0.15);
}

.site-nav--bar {
    background: rgba(26, 31, 46, 0.92);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nav-link {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

.nav-link.is-active::after {
    width: 100%;
}

.site-nav--cafe .nav-link { color: var(--cafe-text); }
.site-nav--cafe .nav-link:hover { color: var(--cafe-terracotta); }
.site-nav--cafe .nav-link::after { background: var(--cafe-terracotta); }

.site-nav--bar .nav-link { color: var(--bar-text); }
.site-nav--bar .nav-link:hover { color: var(--bar-gold); }
.site-nav--bar .nav-link::after { background: var(--bar-gold); }

/* ---- Section Styles ---- */
.section-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.section-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* ---- Cafe Section ---- */
.cafe-section {
    background: var(--cafe-cream);
    color: var(--cafe-text);
}

.cafe-section .section-hero__overlay {
    background: linear-gradient(to bottom, rgba(250,248,243,0.3), rgba(250,248,243,0.85));
}

/* ---- Bar Section ---- */
.bar-section {
    background: var(--bar-navy);
    color: var(--bar-text);
}

.bar-section .section-hero__overlay {
    background: linear-gradient(to bottom, rgba(26,31,46,0.3), rgba(26,31,46,0.85));
}

/* ---- Menu Styles ---- */
.menu-category-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.menu-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
}

.cafe-section .menu-category-title::after {
    background: var(--cafe-terracotta);
}

.bar-section .menu-category-title::after {
    background: var(--bar-gold);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid;
}

.cafe-section .menu-item {
    border-color: rgba(44, 44, 44, 0.08);
}

.bar-section .menu-item {
    border-color: rgba(245, 245, 240, 0.08);
}

.menu-item__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.15rem;
}

.menu-item__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.15rem;
}

.menu-item__price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1.5rem;
}

.cafe-section .menu-item__price { color: var(--cafe-terracotta); }
.bar-section .menu-item__price { color: var(--bar-gold); }

/* ---- Instagram Grid ---- */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

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

.insta-item:hover img {
    transform: scale(1.08);
}

.insta-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(193, 120, 81, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-item:hover .insta-item__overlay {
    opacity: 1;
}

/* ---- Event Card ---- */
.event-card {
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
    border-color: var(--bar-gold);
    transform: translateY(-2px);
}

.event-card__day {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bar-gold);
}

.event-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

.event-card__time {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.event-card__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 0.75rem;
    opacity: 0.8;
}

/* ---- Order Tier Card ---- */
.order-card {
    border: 1px solid rgba(44, 44, 44, 0.12);
    border-radius: 2px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.order-card:hover {
    border-color: var(--cafe-terracotta);
    box-shadow: 0 8px 32px rgba(193, 120, 81, 0.1);
    transform: translateY(-4px);
}

/* ---- Forms ---- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    border: 1px solid rgba(44, 44, 44, 0.15);
    border-radius: 2px;
    background: #fff;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--cafe-terracotta);
}

.btn-primary {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.875rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cafe {
    background: var(--cafe-terracotta);
    color: #fff;
}

.btn-cafe:hover {
    background: #a86440;
}

.btn-bar {
    background: var(--bar-gold);
    color: var(--bar-navy);
}

.btn-bar:hover {
    background: #b8952f;
}

/* ---- GSAP reveal states ---- */
.reveal-up {
    visibility: hidden;
}

body.gsap-ready .reveal-up {
    visibility: hidden;
}

/* ---- Mobile hamburger ---- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 31, 46, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.is-open {
    transform: translateX(0);
}

.mobile-menu-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--bar-text);
    padding: 0.75rem 0;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--bar-gold);
}

/* ---- Decorative borders ---- */
.ornament-line {
    width: 60px;
    height: 1px;
    margin: 0 auto;
}

.cafe-section .ornament-line { background: var(--cafe-terracotta); }
.bar-section .ornament-line { background: var(--bar-gold); }

/* ---- Visit section ---- */
.visit-section {
    background: var(--cafe-cream);
    color: var(--cafe-text);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bar-navy);
    color: var(--bar-text);
}

.footer-link {
    color: rgba(245, 245, 240, 0.6);
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
}

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

/* ---- Newsletter ---- */
.newsletter-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    border: 2px solid rgba(193, 120, 81, 0.2);
    border-radius: 2px;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--cafe-terracotta);
}

/* ---- Social Links ---- */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link--cafe {
    color: var(--cafe-terracotta);
    background: rgba(193, 120, 81, 0.08);
    border: 1px solid rgba(193, 120, 81, 0.15);
}

.social-link--cafe:hover {
    background: var(--cafe-terracotta);
    color: white;
    border-color: var(--cafe-terracotta);
}

.social-link--bar {
    color: var(--bar-gold);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.social-link--bar:hover {
    background: var(--bar-gold);
    color: var(--bar-navy);
    border-color: var(--bar-gold);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .split-landing {
        flex-direction: column;
    }

    .split-side {
        width: 100% !important;
        height: 50%;
    }

    .split-divider {
        display: none;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-hero {
        height: 40vh;
        min-height: 280px;
    }
}

@media (max-width: 375px) {
    .split-side__title {
        font-size: 1.5rem;
    }

    .split-side__svg {
        width: 56px;
        height: 56px;
    }
}
