/* ============================================
   Shelbyville Super Market — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #7B2D3B;
    color: #F5DDE3;
    padding: 0.5rem 1rem;
    z-index: 1000;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(123, 45, 59, 0.08);
}

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

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #1A1A16;
}

.nav__logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.nav__name--accent {
    color: #7B2D3B;
}

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

.nav__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #52524B;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
    color: #7B2D3B;
    background: rgba(123, 45, 59, 0.06);
}

.nav__link--cta {
    background: #7B2D3B;
    color: #F5DDE3 !important;
    margin-left: 0.5rem;
}

.nav__link--cta:hover {
    background: #642530;
}

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

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #1A1A16;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #FAFAF8 0%, #FDF6F4 50%, #F5DDE3 100%);
    overflow: hidden;
}

.hero__grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 1.5rem;
}

.hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7B2D3B;
    flex-shrink: 0;
}

.hero__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1A1A16;
    margin: 0 0 1.25rem;
}

.hero__headline--accent {
    color: #7B2D3B;
    font-style: italic;
    font-weight: 400;
}

.hero__subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #52524B;
    max-width: 520px;
    margin-bottom: 2rem;
}

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

.hero__stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(123, 45, 59, 0.12);
}

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

.hero__stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #7B2D3B;
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #73736A;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(123, 45, 59, 0.15);
}

/* Hero Image Grid */
.hero__visual {
    position: relative;
}

.hero__image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 100%;
    min-height: 500px;
}

.hero__image {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero__image:hover img {
    transform: scale(1.05);
}

.hero__image--1 {
    grid-row: 1 / 3;
    min-height: 400px;
}

.hero__image--2 {
    min-height: 190px;
}

.hero__image--3 {
    min-height: 190px;
}

.hero__badge {
    position: absolute;
    bottom: -12px;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7B2D3B;
    color: #F5DDE3;
    padding: 0.625rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.3);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn--primary {
    background: #7B2D3B;
    color: #F5DDE3;
}

.btn--primary:hover {
    background: #642530;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.25);
}

.btn--ghost {
    background: transparent;
    color: #7B2D3B;
    border: 1.5px solid rgba(123, 45, 59, 0.3);
}

.btn--ghost:hover {
    border-color: #7B2D3B;
    background: rgba(123, 45, 59, 0.04);
}

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

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Section Base
   ============================================ */
.section {
    padding: 6rem 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 1rem;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #7B2D3B;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1A1A16;
    margin: 0 0 1.5rem;
}

.text-burgundy {
    color: #7B2D3B;
}

/* ============================================
   About
   ============================================ */
.section--about {
    background: #FAFAF8;
}

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

.about__image-wrapper {
    position: relative;
}

.about__image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    background: #F5DDE3;
    border-radius: 12px;
    z-index: -1;
}

.about__image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.about__lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #3D3D37;
    margin: 0 0 1rem;
    font-weight: 400;
}

.about__body {
    font-size: 1rem;
    line-height: 1.75;
    color: #52524B;
    margin: 0 0 2rem;
}

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

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.highlight-card:hover {
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.08);
    transform: translateY(-2px);
}

.highlight-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 10px;
}

.highlight-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1A1A16;
    margin: 0 0 0.25rem;
}

.highlight-card__desc {
    font-size: 0.875rem;
    color: #73736A;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   Products
   ============================================ */
.section--products {
    background: #fff;
}

.products__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

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

.product-card {
    background: #FAFAF8;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(123, 45, 59, 0.06);
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(123, 45, 59, 0.1);
    transform: translateY(-4px);
}

.product-card__image {
    overflow: hidden;
    height: 220px;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__body {
    padding: 1.5rem;
}

.product-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A16;
    margin: 0 0 0.5rem;
}

.product-card__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #73736A;
    margin: 0;
}

/* ============================================
   Bakery
   ============================================ */
.section--bakery {
    background: linear-gradient(135deg, #F9EEF0 0%, #FDF6F4 100%);
}

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

.bakery__body {
    font-size: 1rem;
    line-height: 1.75;
    color: #52524B;
    margin: 0 0 1.5rem;
}

.bakery__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.bakery__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #3D3D37;
    line-height: 1.5;
}

.bakery__images {
    position: relative;
}

.bakery__image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.bakery__image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.bakery__image-stack {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bakery__image-stack img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: block;
}

/* ============================================
   Visit
   ============================================ */
.section--visit {
    background: #fff;
}

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

.visit__content {
    padding: 2rem 0;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.visit__detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 12px;
}

.visit__detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #73736A;
    margin: 0 0 0.25rem;
}

.visit__detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1A1A16;
    margin: 0;
    line-height: 1.5;
}

.visit__detail-link {
    color: #7B2D3B;
    text-decoration: none;
    transition: color 0.2s;
}

.visit__detail-link:hover {
    color: #642530;
    text-decoration: underline;
}

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

.visit__map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ============================================
   Contact
   ============================================ */
.section--contact {
    background: #FAFAF8;
}

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

.contact__body {
    font-size: 1rem;
    line-height: 1.75;
    color: #52524B;
    margin: 0 0 2rem;
}

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

.contact__method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(123, 45, 59, 0.08);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.contact__method:hover {
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.08);
    transform: translateY(-2px);
}

.contact__method-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 12px;
}

.contact__method-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #73736A;
    margin: 0 0 0.25rem;
}

.contact__method-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A16;
    margin: 0;
}

/* Form */
.contact__form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(123, 45, 59, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3D3D37;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1A1A16;
    background: #FAFAF8;
    border: 1.5px solid rgba(123, 45, 59, 0.12);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
    background: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #A8A89E;
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #7B2D3B;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1A1A16;
    color: #A8A89E;
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer__logo-icon {
    width: 36px;
    height: 36px;
}

.footer__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #F4F4F0;
}

.footer__name--accent {
    color: #F5DDE3;
}

.footer__tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #A8A89E;
    max-width: 280px;
}

.footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #F5DDE3;
    margin: 0 0 1.25rem;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__list a {
    color: #A8A89E;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer__list a:hover {
    color: #F5DDE3;
}

.footer__address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #A8A89E;
}

.footer__phone {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.footer__phone-link {
    color: #F5DDE3;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer__phone-link:hover {
    color: #FADDD1;
}

.footer__hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__day,
.footer__time {
    font-size: 0.875rem;
    color: #A8A89E;
}

.footer__time {
    text-align: right;
}

.footer__bottom {
    border-top: 1px solid rgba(245, 221, 227, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: #73736A;
    margin: 0;
}

.footer__bottom a {
    color: #A8A89E;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__bottom a:hover {
    color: #F5DDE3;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__visual {
        order: -1;
    }

    .hero__image-grid {
        min-height: 360px;
    }

    .about__grid,
    .bakery__layout,
    .contact__layout,
    .visit__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

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

    .bakery__image-stack {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(123, 45, 59, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .nav__links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .nav__link--cta {
        margin-left: 0;
        text-align: center;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
    }

    .hero__grid {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .hero__image-grid {
        min-height: 280px;
    }

    .hero__image--1 {
        min-height: 280px;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero__stat-divider {
        display: none;
    }

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

    .section {
        padding: 4rem 0;
    }

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

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

@media (max-width: 480px) {
    .hero__headline {
        font-size: 1.875rem;
    }

    .hero__actions {
        flex-direction: column;
    }

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

    .contact__form-wrapper {
        padding: 1.5rem;
    }
}
