/* ============================================
   The Cup L.L.C — Café & Bar
   Classic & Elegant · Charcoal + Coral
   ============================================ */

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

:root {
    --charcoal: #2C2C2C;
    --charcoal-deep: #1A1A1A;
    --charcoal-light: #3D3D3D;
    --coral: #E87461;
    --coral-soft: #F29B8A;
    --coral-muted: #D4604E;
    --cream: #F7F4F0;
    --cream-dark: #EDE8E0;
    --warm-white: #FEFCF9;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-muted: #8A8A8A;
    --text-light: #B0B0B0;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --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-primary);
    background-color: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Typography ---------- */
.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--coral);
    color: #fff;
    border: 1.5px solid var(--coral);
}

.btn--primary:hover {
    background-color: var(--coral-muted);
    border-color: var(--coral-muted);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 116, 97, 0.35);
}

.btn--ghost {
    background-color: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}

.btn--ghost:hover {
    background-color: var(--charcoal);
    color: #fff;
    transform: translateY(-1px);
}

.btn--full {
    width: 100%;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background-color: rgba(254, 252, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.875rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
}

.nav__logo-icon {
    color: var(--coral);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--coral);
    transition: width var(--transition);
}

.nav__link:hover {
    color: var(--charcoal);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--charcoal);
    color: #fff !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--coral);
    color: #fff !important;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--charcoal);
    transition: all var(--transition);
    transform-origin: center;
}

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

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

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

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(232,116,97,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.25rem;
}

.hero__headline {
    font-family: var(--serif);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero__description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

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

.hero__image {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/750;
}

.hero__image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--coral);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.5;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: float 2s ease-in-out infinite;
}

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

/* ---------- About ---------- */
.about {
    padding: 7rem 2rem;
    background-color: var(--warm-white);
}

.about__container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.about__text {
    max-width: 520px;
}

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

.about__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--cream-dark);
}

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

.stat__number {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.about__image-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
}

.about__image-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 500/600;
}

.about__image-secondary {
    position: absolute;
    bottom: -2rem;
    left: -1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--warm-white);
}

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

/* ---------- Divider ---------- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.divider__line {
    flex: 1;
    height: 1px;
    background-color: var(--cream-dark);
}

.divider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--coral);
    opacity: 0.6;
}

/* ---------- Menu ---------- */
.menu {
    padding: 7rem 2rem;
    background-color: var(--charcoal);
    color: #fff;
}

.menu__container {
    max-width: 1080px;
    margin: 0 auto;
}

.menu__header {
    text-align: center;
    margin-bottom: 3rem;
}

.menu__header .section-eyebrow {
    color: var(--coral-soft);
}

.menu__header .section-title {
    color: #fff;
}

.menu__subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.menu__tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.menu__tab {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.menu__tab:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.menu__tab.active {
    background-color: var(--coral);
    color: #fff;
    border-color: var(--coral);
}

.menu__panels {
    position: relative;
    min-height: 200px;
}

.menu__panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.menu__panel.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu__column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu__item {
    padding: 1.25rem 1.5rem;
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.menu__item:hover {
    background-color: rgba(255,255,255,0.07);
    border-color: rgba(232,116,97,0.3);
    transform: translateX(4px);
}

.menu__item-header h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.375rem;
}

.menu__item-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 7rem 2rem;
    background-color: var(--cream);
}

.gallery__container {
    max-width: 1280px;
    margin: 0 auto;
}

.gallery__header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img {
    transform: scale(1.04);
}

.gallery__item--large {
    grid-column: span 7;
    aspect-ratio: 600/400;
}

.gallery__item--tall {
    grid-column: span 5;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery__item:not(.gallery__item--large):not(.gallery__item--tall) {
    aspect-ratio: 400/300;
}

/* ---------- Visit ---------- */
.visit {
    padding: 7rem 2rem;
    background-color: var(--warm-white);
}

.visit__container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.visit__text {
    max-width: 480px;
}

.visit__details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

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

.visit__detail svg {
    color: var(--coral);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.visit__detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.visit__detail-value a {
    color: var(--coral);
}

.visit__detail-value a:hover {
    color: var(--coral-muted);
    text-decoration: underline;
}

.visit__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
}

.visit__map iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Contact ---------- */
.contact {
    padding: 7rem 2rem;
    background-color: var(--charcoal);
    color: #fff;
}

.contact__container {
    max-width: 960px;
    margin: 0 auto;
}

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

.contact__text {
    max-width: 360px;
}

.contact__text .section-title {
    color: #fff;
}

.contact__body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.form__input {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: #fff;
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form__input::placeholder {
    color: var(--text-muted);
}

.form__input:focus {
    border-color: var(--coral);
    background-color: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(232,116,97,0.15);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%238A8A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form__select option {
    background-color: var(--charcoal);
    color: #fff;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    background-color: rgba(232,116,97,0.12);
    border: 1px solid rgba(232,116,97,0.3);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--coral-soft);
    margin-top: 0.5rem;
}

.form__success.show {
    display: flex;
}

/* ---------- Footer ---------- */
.footer {
    padding: 4rem 2rem 2rem;
    background-color: var(--charcoal-deep);
    color: #fff;
}

.footer__container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.footer__logo-icon {
    color: var(--coral);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 300px;
}

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

.footer__col-title {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-soft);
    margin-bottom: 1rem;
}

.footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__col a,
.footer__col span {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: color var(--transition);
    line-height: 1.5;
}

.footer__col a:hover {
    color: var(--coral-soft);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer__bottom a {
    color: var(--text-muted);
}

.footer__bottom a:hover {
    color: var(--coral-soft);
}

/* ---------- Mobile Menu ---------- */
@media (max-width: 900px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--warm-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right var(--transition);
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    }

    .nav__menu.open {
        right: 0;
    }

    .nav__link {
        font-size: 1rem;
    }

    .nav__link--cta {
        margin-top: 0.5rem;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0,0,0,0.4);
        z-index: 999;
    }

    .mobile-overlay.show {
        display: block;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__image {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .about__image-group {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .gallery__item--large {
        grid-column: span 2;
    }

    .gallery__item--tall {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 400/300;
    }

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

    .visit__map {
        aspect-ratio: 16/9;
    }

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

    .contact__text {
        max-width: 100%;
    }

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

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

    .footer__links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 7rem 1.25rem 3rem;
    }

    .hero__scroll {
        display: none;
    }

    .about, .menu, .gallery, .visit, .contact {
        padding: 5rem 1.25rem;
    }

    .about__stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .gallery__item--large {
        grid-column: span 1;
    }

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

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

/* ---------- Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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