/* ========================================
   Crystal Bay Cafe — Styles
   Charcoal + Coral · Editorial Design
   ======================================== */

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

:root {
    --charcoal-900: #1A1A1A;
    --charcoal-800: #2D2D2D;
    --charcoal-700: #3D3D3D;
    --charcoal-600: #555555;
    --charcoal-500: #6E6E6E;
    --coral-500: #E07A5F;
    --coral-400: #E8917A;
    --coral-300: #F0A896;
    --coral-100: #FDF0EC;
    --cream-50: #FAFAF8;
    --cream-100: #F5F4F0;
    --cream-200: #EDECE8;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal-800);
    background: var(--cream-50);
    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;
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section Eyebrow ---------- */
.section__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral-500);
    margin-bottom: 16px;
}

/* ---------- Section Title ---------- */
.section__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal-900);
    margin-bottom: 48px;
}

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

.btn--primary {
    background: var(--coral-500);
    color: var(--white);
    border-color: var(--coral-500);
}

.btn--primary:hover {
    background: var(--coral-400);
    border-color: var(--coral-400);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

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

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

.btn--light {
    background: var(--white);
    color: var(--charcoal-900);
    border-color: var(--white);
}

.btn--light:hover {
    background: var(--cream-100);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn--large {
    padding: 16px 32px;
    font-size: 0.9375rem;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--charcoal-900);
}

.nav__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--coral-500);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.nav__logo-text {
    display: none;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal-600);
    transition: color 0.2s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--coral-500);
    transition: width 0.3s var(--ease-out);
}

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

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

.nav__link--cta {
    background: var(--charcoal-900);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

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

.nav__link--cta:hover {
    background: var(--charcoal-700);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--charcoal-800);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream-50);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal-900);
    transition: color 0.2s;
}

.mobile-menu__link:hover {
    color: var(--coral-500);
}

.mobile-menu__contact {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--charcoal-600);
    line-height: 1.8;
}

.mobile-menu__contact a {
    color: var(--coral-500);
    font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 72px;
}

.hero__split {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 72px);
}

.hero__split--left {
    padding: 64px 48px 64px 8vw;
    background: var(--cream-50);
}

.hero__split--right {
    position: relative;
    overflow: hidden;
}

.hero__image-wrapper {
    position: absolute;
    inset: 0;
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, var(--cream-50), transparent);
    z-index: 2;
}

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

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--charcoal-900);
    margin-bottom: 32px;
}

.hero__accent {
    font-style: italic;
    font-weight: 400;
    color: var(--coral-500);
}

.hero__body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--charcoal-600);
    max-width: 440px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Divider ---------- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.divider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral-500);
    opacity: 0.5;
}

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

.menu__header {
    text-align: center;
    margin-bottom: 72px;
}

.menu__header .section__title {
    margin-bottom: 0;
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.menu__card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--cream-200);
    transition: all 0.3s var(--ease-out);
}

.menu__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.menu__card--evening {
    background: var(--charcoal-900);
    border-color: var(--charcoal-900);
}

.menu__card--evening .menu__card-title {
    color: var(--white);
}

.menu__card--evening .menu__list li span {
    color: rgba(255, 255, 255, 0.7);
}

.menu__card--evening .menu__list li span:last-child {
    color: rgba(255, 255, 255, 0.4);
}

.menu__card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--coral-100);
    color: var(--coral-500);
    margin-bottom: 24px;
}

.menu__card--evening .menu__card-icon {
    background: rgba(224, 122, 95, 0.15);
    color: var(--coral-300);
}

.menu__card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: 24px;
}

.menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 0.9375rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cream-200);
}

.menu__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu__list li span:first-child {
    font-weight: 500;
    color: var(--charcoal-800);
}

.menu__list li span:last-child {
    font-size: 0.8125rem;
    color: var(--charcoal-500);
    font-style: italic;
    white-space: nowrap;
}

.menu__note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--charcoal-500);
    font-style: italic;
}

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

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

.about__image-group {
    position: relative;
}

.about__image-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

.about__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__image-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border: 4px solid var(--white);
    max-width: 55%;
}

.about__image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__content {
    padding-top: 40px;
}

.about__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 56px;
}

.about__body p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--charcoal-600);
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about__value {
    display: flex;
    gap: 20px;
    align-items: start;
}

.about__value-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coral-500);
    line-height: 1;
    min-width: 32px;
}

.about__value h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: 4px;
}

.about__value p {
    font-size: 0.9375rem;
    color: var(--charcoal-500);
    line-height: 1.6;
}

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

.visit__header {
    text-align: center;
    margin-bottom: 72px;
}

.visit__header .section__title {
    margin-bottom: 0;
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.visit__info {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 48px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--cream-200);
}

.visit__detail {
    display: flex;
    gap: 20px;
    align-items: start;
}

.visit__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--coral-100);
    color: var(--coral-500);
    flex-shrink: 0;
}

.visit__detail h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: 6px;
}

.visit__detail p {
    font-size: 0.9375rem;
    color: var(--charcoal-600);
    line-height: 1.6;
}

.visit__detail a {
    color: var(--coral-500);
    font-weight: 500;
    transition: color 0.2s;
}

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

.visit__hours {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visit__day {
    font-weight: 500;
    color: var(--charcoal-800);
}

.visit__map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    min-height: 400px;
}

/* ---------- CTA Section ---------- */
.cta {
    padding: 120px 0;
    background: var(--charcoal-900);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.12), transparent 70%);
    pointer-events: none;
}

.cta__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.cta__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 16px;
}

.cta__accent {
    font-style: italic;
    font-weight: 400;
    color: var(--coral-300);
}

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal-900);
    border-top: 1px solid var(--charcoal-700);
    padding: 64px 0 32px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--charcoal-700);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__brand .nav__logo-mark {
    width: 44px;
    height: 44px;
    font-size: 0.9375rem;
    border-radius: 10px;
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--charcoal-500);
    line-height: 1.6;
    max-width: 240px;
}

.footer__links {
    display: flex;
    gap: 32px;
}

.footer__link {
    font-size: 0.875rem;
    color: var(--charcoal-500);
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--coral-400);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.footer__bottom a {
    color: var(--charcoal-500);
    transition: color 0.2s;
}

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

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .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);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__split--left {
        padding: 48px 6vw 48px 6vw;
    }

    .about__layout {
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__logo-text {
        display: block;
        font-size: 0;
    }

    .nav__logo-text::after {
        content: 'Crystal Bay';
        font-size: 0.875rem;
        position: absolute;
        left: 52px;
    }

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

    .hero__split--left {
        padding: 40px 24px;
        min-height: auto;
    }

    .hero__split--right {
        min-height: 50vh;
    }

    .hero__image-accent {
        display: none;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
    }

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

    .menu__card {
        padding: 32px;
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .about__image-secondary {
        position: relative;
        right: 0;
        bottom: 0;
        max-width: 60%;
        margin-top: -40px;
        margin-left: auto;
    }

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

    .visit__info {
        padding: 32px;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__links {
        flex-wrap: wrap;
        gap: 20px;
    }

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

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero__headline {
        font-size: 2.25rem;
    }

    .hero__split--right {
        min-height: 40vh;
    }

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

    .cta {
        padding: 80px 0;
    }
}
