/* ============================================
   New York Bagel Company — Styles
   Charcoal + Coral | Clean Minimalist
   ============================================ */

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

:root {
    --charcoal: #2A2A2A;
    --charcoal-light: #3D3D3D;
    --charcoal-dark: #1A1A1A;
    --coral: #E76F51;
    --coral-light: #F4A261;
    --coral-dark: #C45A3C;
    --cream: #FAFAF8;
    --cream-dark: #F0F0EC;
    --white: #FFFFFF;
    --gray-100: #F5F5F3;
    --gray-200: #E8E8E4;
    --gray-300: #D4D4D0;
    --gray-400: #A0A09A;
    --gray-500: #6E6E68;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    -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;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--coral);
}

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

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

.btn-primary:hover {
    background-color: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231, 111, 81, 0.25);
}

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

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

.btn-full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 var(--gray-200);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--coral);
    position: relative;
    flex-shrink: 0;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--charcoal);
}

.logo-text {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    transition: color var(--transition);
}

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

.nav-links a:hover {
    color: var(--coral);
}

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

.nav-cta {
    color: var(--coral) !important;
    border: 1px solid var(--coral);
    padding: 0.5rem 1.25rem;
    transition: all var(--transition) !important;
}

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

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

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--charcoal);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 1px;
    background: var(--charcoal);
    transition: all var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: var(--gray-100);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 2rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

.headline-line {
    display: block;
}

.headline-accent {
    color: var(--coral);
    font-style: italic;
}

.hero-desc {
    font-size: 1.0625rem;
    color: var(--gray-500);
    max-width: 420px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.hero-details {
    display: flex;
    gap: 3rem;
}

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

.detail-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.detail-value {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--charcoal);
    line-height: 1.5;
}

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

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

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.hero-accent-line {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 60%;
    height: 1px;
    background: var(--coral);
    opacity: 0.4;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.hero-scroll-indicator span {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--coral), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* --- About --- */
.about {
    padding: 8rem 0;
    background: var(--white);
}

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

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

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

.image-caption {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--gray-500);
    margin-top: 1rem;
}

.about-content {
    padding-left: 2rem;
}

.about-body {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-200);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--coral);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--gray-200);
}

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

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

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

.menu-card {
    background: var(--white);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(42, 42, 42, 0.08);
    border-color: transparent;
}

.menu-card-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.05);
}

.menu-card-content {
    padding: 1.75rem;
}

.menu-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.menu-card-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.menu-note {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.menu-note p {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-style: italic;
}

/* --- Process --- */
.process {
    padding: 8rem 0;
    background: var(--charcoal);
    color: var(--white);
}

.process .section-eyebrow {
    color: var(--coral-light);
}

.process .section-title {
    color: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.process-step {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

.process-step:hover {
    border-color: var(--coral);
    background: rgba(231, 111, 81, 0.05);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--coral);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.step-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.process-image {
    overflow: hidden;
}

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

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

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

.visit-detail {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.visit-icon {
    color: var(--coral);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.visit-detail-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

.visit-detail-value {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.visit-detail-value a {
    transition: color var(--transition);
}

.visit-detail-value a:hover {
    color: var(--coral);
}

.hours-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-200);
}

.hours-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--charcoal);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    font-size: 0.9375rem;
}

.hours-day {
    color: var(--charcoal);
}

.hours-time {
    color: var(--gray-500);
    font-weight: 400;
}

.visit-map {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    aspect-ratio: 1/1;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
}

/* --- Contact --- */
.contact {
    padding: 8rem 0;
    background: var(--gray-100);
}

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

.contact-desc {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-top: 1.5rem;
    max-width: 400px;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

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

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--charcoal);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    outline: none;
    transition: border-color var(--transition);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:focus {
    border-bottom-color: var(--coral);
}

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

.form-success {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(231, 111, 81, 0.08);
    border-left: 3px solid var(--coral);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--charcoal);
}

/* --- Footer --- */
.footer {
    padding: 5rem 0 2rem;
    background: var(--charcoal-dark);
    color: var(--white);
}

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

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

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.25rem;
}

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

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

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

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

    /* Mobile Nav */
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.125rem;
    }

    /* Hero */
    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

    .hero::before {
        width: 100%;
        height: 40%;
        top: auto;
        bottom: 0;
    }

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

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-image-wrapper {
        aspect-ratio: 4/3;
        max-height: 400px;
    }

    .hero-accent-line {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

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

    .hero-scroll-indicator {
        display: none;
    }

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

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

    .about-content {
        padding-left: 0;
    }

    .about-stats {
        flex-wrap: wrap;
    }

    /* Menu */
    .menu {
        padding: 5rem 0;
    }

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

    /* Process */
    .process {
        padding: 5rem 0;
    }

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

    /* Visit */
    .visit {
        padding: 5rem 0;
    }

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

    .visit-map {
        aspect-ratio: 4/3;
    }

    /* Contact */
    .contact {
        padding: 5rem 0;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer {
        padding: 4rem 0 2rem;
    }

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

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .contact-form {
        padding: 1.5rem;
    }
}
