/* ═══════════════════════════════════════════
   Homestead Market & Coffee — Styles
   Palette: Midnight Blue (#1E3A5F) + Mint (#A7D8C9)
   Fonts: Lora (serif) + Montserrat (sans)
   ═══════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1E3A5F;
    background-color: #F7F9FA;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

ul {
    list-style: none;
}

/* ═══════════════════════════════════════════
   SKIP LINK
   ═══════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1E3A5F;
    color: #F7F9FA;
    padding: 0.5rem 1rem;
    z-index: 10000;
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus {
    top: 0;
}

/* ═══════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1E3A5F;
    margin-bottom: 1rem;
}

.section-eyebrow-light {
    color: #A7D8C9;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1E3A5F;
    margin-bottom: 1.25rem;
}

.section-title-light {
    color: #F7F9FA;
}

.section-lead {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-style: italic;
    color: #4A6274;
    max-width: 600px;
    line-height: 1.7;
}

.section-lead-light {
    color: #B8D4CC;
}

.body-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4A6274;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    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 0.3s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: #A7D8C9;
    color: #1E3A5F;
    border-color: #A7D8C9;
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #8FC8B5;
    border-color: #8FC8B5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.2);
}

.btn-outline-light {
    background-color: transparent;
    color: #F7F9FA;
    border-color: rgba(247, 249, 250, 0.5);
}
.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background-color: rgba(247, 249, 250, 0.1);
    border-color: #F7F9FA;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 58, 95, 0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(30, 58, 95, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(167, 216, 201, 0.15);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-mark {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #A7D8C9;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #A7D8C9;
    border-radius: 4px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-line-one {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F7F9FA;
    letter-spacing: 0.02em;
}

.logo-line-two {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #A7D8C9;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Nav */
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.primary-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 249, 250, 0.8);
    padding: 0.5rem 0.875rem;
    border-radius: 4px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: #A7D8C9;
    background-color: rgba(167, 216, 201, 0.1);
}

/* Nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #F7F9FA;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1E3A5F;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(18, 38, 62, 0.92) 0%,
        rgba(30, 58, 95, 0.82) 50%,
        rgba(30, 58, 95, 0.72) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #A7D8C9;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #F7F9FA;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-style: italic;
    color: #B8D4CC;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(167, 216, 201, 0.5);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #A7D8C9;
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.4; transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
    padding: 6rem 0;
}

.section-dark {
    background-color: #1E3A5F;
}

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

.section-header .section-lead {
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   HERITAGE
   ═══════════════════════════════════════════ */
.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.heritage-text .section-lead {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: #1E3A5F;
}

.heritage-text .body-text {
    color: #4A6274;
}

.image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.15);
}

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

.image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 3px solid #A7D8C9;
    border-radius: 8px;
    z-index: -1;
}

/* ═══════════════════════════════════════════
   OFFERINGS
   ═══════════════════════════════════════════ */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.offering-card {
    background: rgba(247, 249, 250, 0.05);
    border: 1px solid rgba(167, 216, 201, 0.15);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.offering-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    border-color: rgba(167, 216, 201, 0.35);
}

.offering-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: #A7D8C9;
}

.offering-icon svg {
    width: 100%;
    height: 100%;
}

.offering-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.4rem;
    color: #F7F9FA;
    margin-bottom: 1rem;
}

.offering-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #B8D4CC;
}

/* ═══════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(30, 58, 95, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.14);
}

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

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

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

.product-info {
    padding: 1.5rem 1.75rem;
}

.product-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;
    color: #1E3A5F;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #4A6274;
}

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

.visit-info .section-lead {
    margin-bottom: 2rem;
}

.contact-list {
    margin-bottom: 2.5rem;
}

.contact-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(167, 216, 201, 0.15);
}

.contact-list li:first-child {
    padding-top: 0;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A7D8C9;
    padding-top: 0.2rem;
}

.contact-value {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #F7F9FA;
}

.contact-value a {
    color: #A7D8C9;
    transition: color 0.25s ease;
}

.contact-value a:hover,
.contact-value a:focus-visible {
    color: #F7F9FA;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

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

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background-color: #14293E;
    padding: 4rem 0 0;
    color: #F7F9FA;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand .logo-mark {
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
}

.footer-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F7F9FA;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #7A9BB5;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A7D8C9;
    margin-bottom: 1.25rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: #7A9BB5;
    transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #A7D8C9;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #7A9BB5;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: #A7D8C9;
    transition: color 0.25s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #F7F9FA;
}

.footer-bottom {
    border-top: 1px solid rgba(167, 216, 201, 0.1);
    padding: 1.5rem 0;
}

.footer-copy {
    font-size: 0.8rem;
    color: #5A7D96;
    text-align: center;
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS (progressive enhancement)
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .heritage-grid {
        gap: 3rem;
    }

    .offerings-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .heritage-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .visit-map {
        order: -1;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        inset: 0;
        background: rgba(30, 58, 95, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .primary-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .primary-nav a {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .hero-content {
        padding: 7rem 1.5rem 3rem;
    }

    .section {
        padding: 4rem 0;
    }

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

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

    .contact-list li {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }

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

    .visit-actions .btn {
        justify-content: center;
    }
}

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

    .header-inner {
        height: 70px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }

    .logo-line-one {
        font-size: 0.95rem;
    }

    .logo-line-two {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .section-header {
        margin-bottom: 2.5rem;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}
