/* ============================================
   McCleary's | Caldwell — Stylesheet
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #FDF9F3;
    --cream-200: #F5EAD6;
    --emerald-700: #047857;
    --emerald-800: #065F46;
    --emerald-900: #064E3B;
    --emerald-950: #022C22;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-soft: 0 4px 24px rgba(6, 95, 70, 0.08);
    --shadow-card: 0 8px 40px rgba(6, 95, 70, 0.10);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ========== SECTION TYPOGRAPHY ========== */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--emerald-950);
    margin-bottom: 20px;
}

/* ========== NAVBAR ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 243, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(6, 95, 70, 0.1);
}

.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: 'DM Serif Display', Georgia, serif;
    font-size: 1.35rem;
    color: var(--emerald-950);
    font-weight: 400;
}

.nav__logo-mark {
    width: 36px;
    height: 36px;
    background: var(--emerald-800);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'DM Serif Display', Georgia, serif;
}

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

.nav__link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 100px;
    transition: background var(--transition), color var(--transition);
}

.nav__link:hover {
    background: rgba(6, 95, 70, 0.08);
    color: var(--emerald-800);
}

.nav__cta {
    padding: 10px 22px;
    background: var(--emerald-800);
    color: #fff;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition);
}

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

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

.nav__toggle-line {
    width: 24px;
    height: 2px;
    background: var(--emerald-950);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 44, 34, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav__overlay.active {
    display: block;
    opacity: 1;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6, 95, 70, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 234, 214, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__text {
    max-width: 540px;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 20px;
}

.hero__headline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--emerald-950);
    margin-bottom: 24px;
}

.hero__accent {
    color: var(--emerald-600);
    font-style: italic;
}

.hero__body {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 440px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Outfit', system-ui, sans-serif;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--emerald-800);
    color: #fff;
    box-shadow: 0 4px 16px rgba(6, 95, 70, 0.25);
}

.btn--primary:hover {
    background: var(--emerald-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--emerald-800);
    border: 2px solid var(--emerald-200, #A7F3D0);
}

.btn--ghost:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-700);
}

.btn--white {
    background: #fff;
    color: var(--emerald-950);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

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

.hero__info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__icon {
    width: 20px;
    height: 20px;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.hero__phone {
    color: var(--emerald-800);
    font-weight: 500;
}

.hero__phone:hover {
    text-decoration: underline;
}

/* Hero Image Stack */
.hero__image-stack {
    position: relative;
    height: 600px;
}

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

.hero__image--main {
    width: 100%;
    height: 100%;
}

.hero__image--accent {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 260px;
    height: 200px;
    border: 6px solid var(--cream);
    box-shadow: var(--shadow-card);
}

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

.hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--emerald-700);
    opacity: 0.5;
    animation: bounce 2s infinite;
}

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

/* ========== ABOUT ========== */
.about {
    padding: 120px 0;
    background: #fff;
}

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

.about__image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

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

.about__content {}

.about__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--cream);
    border-radius: var(--radius-sm);
}

.highlight__icon {
    width: 24px;
    height: 24px;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.highlight span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ========== MENU ========== */
.menu {
    padding: 120px 0;
    background: var(--cream);
}

.menu__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.menu__lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.menu__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu__tab {
    padding: 12px 28px;
    border: 2px solid var(--emerald-200, #A7F3D0);
    border-radius: 100px;
    background: transparent;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--emerald-800);
    cursor: pointer;
    transition: all var(--transition);
}

.menu__tab:hover {
    background: rgba(6, 95, 70, 0.06);
}

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

.menu__panel {
    display: none;
}

.menu__panel.active {
    display: block;
}

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

.menu__card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.menu__card--dark {
    background: var(--emerald-900);
}

.menu__card--dark .menu__card-body h3 {
    color: #fff;
}

.menu__card--dark .menu__card-body p {
    color: rgba(255, 255, 255, 0.7);
}

.menu__card-body h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.3rem;
    color: var(--emerald-950);
    margin-bottom: 10px;
}

.menu__card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ========== ATMOSPHERE ========== */
.atmosphere {
    padding: 120px 0;
    background: #fff;
}

.atmosphere__header {
    text-align: center;
    margin-bottom: 60px;
}

.atmosphere__gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.atmosphere__photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.atmosphere__photo--large {
    grid-row: span 2;
}

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

.atmosphere__photo:hover img {
    transform: scale(1.03);
}

.atmosphere__photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.atmosphere__quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.atmosphere__quote-mark {
    width: 48px;
    height: 48px;
    color: var(--emerald-200, #A7F3D0);
    margin: 0 auto 20px;
}

.atmosphere__quote blockquote {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--emerald-950);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.atmosphere__quote-attr {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========== VISIT ========== */
.visit {
    padding: 120px 0;
    background: var(--cream);
}

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

.visit__detail {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.visit__detail-icon {
    width: 24px;
    height: 24px;
    color: var(--emerald-700);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit__detail strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-800);
    margin-bottom: 4px;
}

.visit__detail p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.visit__detail a {
    color: var(--emerald-700);
    transition: color var(--transition);
}

.visit__detail a:hover {
    color: var(--emerald-950);
    text-decoration: underline;
}

.visit__hours {
    margin-top: 40px;
    padding: 28px 32px;
    background: var(--emerald-900);
    border-radius: var(--radius-md);
}

.visit__hours h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
}

.visit__hours table {
    width: 100%;
    border-collapse: collapse;
}

.visit__hours td {
    padding: 10px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visit__hours td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--emerald-200, #A7F3D0);
}

.visit__hours tr:last-child td {
    border-bottom: none;
}

.visit__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 450px;
}

/* ========== CTA ========== */
.cta {
    padding: 120px 0;
    background: var(--emerald-950);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta__inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.cta__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-300, #6EE7B7);
    margin-bottom: 16px;
}

.cta__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.cta__body {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

/* ========== FOOTER ========== */
.footer {
    background: var(--emerald-950);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer__logo-mark {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: 'DM Serif Display', Georgia, serif;
}

.footer__tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer__nav strong,
.footer__contact strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-300, #6EE7B7);
    margin-bottom: 16px;
}

.footer__nav ul,
.footer__contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a,
.footer__contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer__nav a:hover,
.footer__contact a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    transform: translateY(30px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__image-stack {
        height: 450px;
        max-width: 500px;
        margin: 0 auto;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        z-index: 1001;
    }

    .nav__links.open {
        right: 0;
    }

    .nav__link {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav__cta {
        text-align: center;
        margin-top: 16px;
        padding: 14px 22px;
    }

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

    .hero {
        padding: 120px 24px 80px;
        min-height: auto;
    }

    .hero__image-stack {
        height: 350px;
    }

    .hero__image--accent {
        width: 180px;
        height: 140px;
        left: -10px;
        bottom: -20px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

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

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

    .atmosphere__photo--large {
        grid-row: span 1;
    }

    .atmosphere__photo {
        height: 260px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero__image-stack {
        height: 280px;
    }

    .hero__image--accent {
        width: 140px;
        height: 110px;
    }

    .menu__tabs {
        flex-direction: column;
        align-items: center;
    }

    .menu__tab {
        width: 100%;
        max-width: 240px;
        text-align: center;
    }
}
