/* ============================================
   Cannon & Patty's Tavern — Editorial Style
   Midnight Blue + Mint Palette
   ============================================ */

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

:root {
    --midnight: #0a1628;
    --midnight-light: #132240;
    --midnight-mid: #1a2d4a;
    --mint: #a8d5ba;
    --mint-light: #c5e8d4;
    --mint-dark: #7fb893;
    --cream: #f5f0e8;
    --cream-dark: #e8e0d0;
    --white: #ffffff;
    --text-dark: #0a1628;
    --text-muted: #4a5568;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
.section__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section__headline--light {
    color: var(--white);
}

.section__headline--accent {
    color: var(--mint);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(168, 213, 186, 0.1);
}

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

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

.nav__logo-mark {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mint);
    letter-spacing: 0.05em;
    border: 1px solid var(--mint);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.01em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--midnight);
    background: var(--mint);
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
}

.nav__cta:hover {
    background: var(--mint-light);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle-line {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 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(5px, -5px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn--light:hover {
    background: transparent;
    color: var(--white);
}

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

.btn--ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn--mint {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}

.btn--mint:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 22, 40, 0.3);
}

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

.btn--outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn--large {
    padding: 1rem 2.25rem;
    font-size: 0.9375rem;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--midnight);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/9120377/pexels-photo-9120377.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900') center center / cover no-repeat;
    transform: scale(1.05);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.85) 40%,
        rgba(10, 22, 40, 0.6) 100%
    );
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

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

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__headline em {
    font-style: italic;
    color: var(--mint);
}

.hero__headline-accent {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--mint-light);
    margin-top: 0.5rem;
    letter-spacing: 0;
}

.hero__sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

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

.hero__image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 560 / 720;
}

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

.hero__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--mint);
    border-radius: 4px;
    z-index: -1;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--mint), 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 2rem;
    background: var(--cream);
}

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

.about__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 1rem;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

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

.about__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-muted);
}

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

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

.stat__number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--midnight);
    line-height: 1;
}

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

.about__image {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 520 / 640;
}

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

/* --- Menu --- */
.menu {
    padding: 8rem 2rem;
    background: var(--midnight);
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--mint), transparent);
}

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

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

.menu__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 1rem;
}

.menu__sub {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.menu__category {
    background: var(--midnight-light);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(168, 213, 186, 0.1);
    transition: border-color var(--transition);
}

.menu__category:hover {
    border-color: rgba(168, 213, 186, 0.25);
}

.menu__cat-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(168, 213, 186, 0.15);
}

.menu__cat-title svg {
    color: var(--mint);
}

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

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

.menu__item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.menu__item-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.menu__cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--midnight-light);
    border-radius: 8px;
    border: 1px solid rgba(168, 213, 186, 0.1);
}

.menu__cta p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.menu__cta .btn {
    margin: 0 auto;
}

/* --- Bakes --- */
.bakes {
    padding: 8rem 2rem;
    background: var(--cream);
}

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

.bakes__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.bakes__container > .section__headline {
    text-align: center;
    margin-bottom: 4rem;
}

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

.bake-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(10, 22, 40, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.bake-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.12);
}

.bake-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.bake-card__content {
    padding: 1.75rem;
}

.bake-card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 0.5rem;
}

.bake-card__desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Visit --- */
.visit {
    padding: 8rem 2rem;
    background: var(--midnight);
    position: relative;
}

.visit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--mint), transparent);
}

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

.visit__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 1rem;
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2.5rem 0;
}

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

.visit__detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--midnight-light);
    border: 1px solid rgba(168, 213, 186, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
}

.visit__detail > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.visit__detail strong {
    color: var(--white);
    font-size: 1rem;
}

.visit__detail span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

.visit__phone {
    color: var(--mint);
    font-size: 1.125rem;
    font-weight: 600;
    transition: color var(--transition);
}

.visit__phone:hover {
    color: var(--mint-light);
}

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

.visit__map {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.visit__map iframe {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.footer {
    background: var(--midnight);
    border-top: 1px solid rgba(168, 213, 186, 0.1);
    padding: 3rem 2rem;
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mint);
    border: 1px solid var(--mint);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

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

.footer__copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__copy a {
    color: var(--mint);
    transition: color var(--transition);
}

.footer__copy a:hover {
    color: var(--mint-light);
}

.footer__copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 7rem;
    }

    .hero__image {
        max-width: 480px;
        aspect-ratio: 4 / 5;
    }

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

    .about__image {
        max-width: 480px;
    }

    .menu__categories {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--midnight);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 1rem;
    }

    .nav__toggle {
        display: flex;
        z-index: 1001;
    }

    .hero__inner {
        padding: 6rem 1.5rem 3rem;
    }

    .hero__headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero__image {
        display: none;
    }

    .hero__scroll {
        display: none;
    }

    .about, .menu, .bakes, .visit {
        padding: 5rem 1.5rem;
    }

    .bakes__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .visit__cta-group {
        flex-direction: column;
    }

    .visit__cta-group .btn {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .nav__inner {
        padding: 1rem 1.25rem;
    }

    .nav__logo-text {
        display: none;
    }

    .section__headline {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
}

/* Mobile menu overlay */
.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav__overlay.active {
    display: block;
}
