/* ========================================
   Oma's Community Farm — Styles
   Palette: Burgundy (#7B2D3B) + Blush (#F5E6D3)
   Fonts: Lora (serif) + Montserrat (sans)
======================================== */

/* ---------- RESET ---------- */
*, *::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, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #3D2B2B;
    background-color: #FDFBF8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

dl {
    margin: 0;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #7B2D3B;
    color: #FDFBF8;
    padding: 0.5rem 1rem;
    z-index: 9999;
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
}

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

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

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

/* ---------- PAGE BORDER ---------- */
.page-border {
    position: fixed;
    inset: 8px;
    border: 1px solid rgba(123, 45, 59, 0.12);
    pointer-events: none;
    z-index: 9998;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .page-border {
        inset: 4px;
    }
}

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 251, 248, 0.95);
    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;
}

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

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

/* ---------- LOGO ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-mark {
    font-size: 1.5rem;
    line-height: 1;
}

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

.logo-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #7B2D3B;
    letter-spacing: -0.01em;
}

.logo-tagline {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9A7B6F;
}

/* ---------- NAV ---------- */
.nav {
    position: relative;
}

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

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5C4040;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: #7B2D3B;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
    width: 100%;
}

/* ---------- NAV TOGGLE ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #7B2D3B;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.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);
}

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

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        flex-direction: column;
        background: #FDFBF8;
        border: 1px solid rgba(123, 45, 59, 0.12);
        border-radius: 8px;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        box-shadow: 0 8px 32px rgba(123, 45, 59, 0.1);
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        font-size: 0.875rem;
    }
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--burgundy {
    background: #7B2D3B;
    color: #FDFBF8;
    border: 1.5px solid #7B2D3B;
}

.btn--burgundy:hover,
.btn--burgundy:focus-visible {
    background: #632330;
    border-color: #632330;
    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.4);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: #7B2D3B;
    background: rgba(123, 45, 59, 0.04);
    transform: translateY(-1px);
}

.btn--small {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
}

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

/* ---------- SECTION HELPERS ---------- */
.section {
    padding: 6rem 0;
}

@media (max-width: 767px) {
    .section {
        padding: 4rem 0;
    }
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.eyebrow-line {
    display: block;
    width: 32px;
    height: 1px;
    background: #7B2D3B;
    flex-shrink: 0;
}

.eyebrow-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7B2D3B;
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    color: #3D2B2B;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #6B5050;
    max-width: 560px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: #7B2D3B;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 230, 211, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(245, 230, 211, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-main {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.hero-image-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

@media (min-width: 1024px) {
    .hero-image-main img {
        height: 560px;
    }
}

.hero-image-accent {
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 4px solid rgba(123, 45, 59, 0.6);
}

.hero-image-accent img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

@media (min-width: 1024px) {
    .hero-image-accent {
        bottom: -3rem;
        right: -2rem;
    }

    .hero-image-accent img {
        height: 200px;
    }
}

.hero-seal {
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #F5E6D3;
    z-index: 2;
}

.seal-svg {
    width: 64px;
    height: 64px;
}

.seal-text {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Hero Content */
.hero-content {
    color: #FDFBF8;
    padding: 1rem 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-eyebrow .eyebrow-line {
    background: rgba(245, 230, 211, 0.5);
}

.hero-eyebrow .eyebrow-text {
    color: rgba(245, 230, 211, 0.8);
    font-size: 0.75rem;
}

.hero-headline {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.25;
    color: #FDFBF8;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    max-width: 540px;
}

.hero-subheadline {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(245, 230, 211, 0.8);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

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

.hero-actions .btn--burgundy {
    background: #F5E6D3;
    color: #7B2D3B;
    border-color: #F5E6D3;
}

.hero-actions .btn--burgundy:hover,
.hero-actions .btn--burgundy:focus-visible {
    background: #FDFBF8;
    border-color: #FDFBF8;
    box-shadow: 0 4px 16px rgba(245, 230, 211, 0.3);
}

.hero-actions .btn--ghost {
    color: #F5E6D3;
    border-color: rgba(245, 230, 211, 0.4);
}

.hero-actions .btn--ghost:hover,
.hero-actions .btn--ghost:focus-visible {
    border-color: #F5E6D3;
    background: rgba(245, 230, 211, 0.08);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 230, 211, 0.75);
    font-size: 0.8125rem;
    font-weight: 500;
}

.trust-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hero Scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 230, 211, 0.5);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245, 230, 211, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ========== ABOUT ========== */
.about {
    background: #FDFBF8;
}

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

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about-images {
    position: relative;
}

.about-img-large {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(123, 45, 59, 0.12);
}

.about-img-large img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.about-img-small {
    position: absolute;
    bottom: -2rem;
    right: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(123, 45, 59, 0.15);
    border: 4px solid #FDFBF8;
}

.about-img-small img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.about-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7B2D3B;
    opacity: 0.4;
}

.divider-line {
    width: 48px;
    height: 1px;
    background: rgba(123, 45, 59, 0.25);
}

.about-content .lead {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1875rem;
    font-style: italic;
    line-height: 1.7;
    color: #7B2D3B;
    margin-bottom: 1.25rem;
}

.about-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #5C4040;
    margin-bottom: 1rem;
}

.about-signature {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(123, 45, 59, 0.04);
    border-left: 3px solid #7B2D3B;
    border-radius: 0 4px 4px 0;
}

.signature-mark {
    font-size: 1.25rem;
    color: #7B2D3B;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.about-signature blockquote {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: #5C4040;
}

/* ========== OFFERINGS ========== */
.offerings {
    background: #F9F5F0;
}

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

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

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

@media (min-width: 768px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

.offering-card {
    background: #FDFBF8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(123, 45, 59, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.offering-img {
    position: relative;
    overflow: hidden;
}

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

.offering-card:hover .offering-img img {
    transform: scale(1.03);
}

.offering-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #7B2D3B;
    color: #FDFBF8;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    border-radius: 2px;
}

.offering-body {
    padding: 1.5rem;
}

.offering-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #3D2B2B;
    margin-bottom: 0.75rem;
}

.offering-desc {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #6B5050;
}

.offerings-note {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1rem;
}

.offerings-note p {
    font-size: 0.875rem;
    font-style: italic;
    color: #9A7B6F;
}

/* ========== PHILOSOPHY ========== */
.philosophy {
    position: relative;
    background: #7B2D3B;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 60% 50% at 0% 50%, rgba(245, 230, 211, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 100% 100%, rgba(245, 230, 211, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

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

.philosophy-eyebrow .eyebrow-line {
    background: rgba(245, 230, 211, 0.5);
    margin: 0 auto 1rem;
}

.philosophy-eyebrow .eyebrow-text {
    color: rgba(245, 230, 211, 0.7);
}

.philosophy-title {
    color: #FDFBF8;
    margin-bottom: 3rem;
}

.philosophy-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
}

@media (min-width: 768px) {
    .philosophy-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        text-align: center;
    }
}

.philosophy-item {
    padding: 1.5rem;
}

.philosophy-number {
    font-family: 'Lora', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(245, 230, 211, 0.12);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.philosophy-item-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #F5E6D3;
    margin-bottom: 0.75rem;
}

.philosophy-item-desc {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(245, 230, 211, 0.7);
}

/* ========== VISIT ========== */
.visit {
    background: #FDFBF8;
}

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

@media (min-width: 1024px) {
    .visit-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
}

.visit-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #6B5050;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.visit-details {
    margin-bottom: 2.5rem;
}

.visit-detail {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

.visit-detail:first-child {
    padding-top: 0;
}

.visit-detail:last-child {
    border-bottom: none;
}

.visit-detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9A7B6F;
    padding-top: 0.15rem;
}

.visit-detail-value {
    font-size: 0.9375rem;
    color: #3D2B2B;
    line-height: 1.6;
}

.visit-detail-value a {
    color: #7B2D3B;
    border-bottom: 1px solid rgba(123, 45, 59, 0.2);
    transition: border-color 0.2s ease;
}

.visit-detail-value a:hover,
.visit-detail-value a:focus-visible {
    border-color: #7B2D3B;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.25rem 0;
}

.hours-closed .day,
.hours-closed .time {
    color: #9A7B6F;
}

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

/* Map */
.visit-map {
    border-radius: 4px;
    overflow: hidden;
}

.map-placeholder {
    background: #F9F5F0;
    border: 1px solid rgba(123, 45, 59, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.map-illustration {
    width: 100%;
    aspect-ratio: 4/3;
}

.map-caption {
    text-align: center;
    padding: 1rem;
    font-size: 0.8125rem;
    color: #6B5050;
    font-style: italic;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #3D2B2B;
    color: rgba(245, 230, 211, 0.6);
    padding: 3.5rem 0 2rem;
}

.footer-top {
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-brand .logo-mark {
    font-size: 1.25rem;
}

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

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 480px;
    color: rgba(245, 230, 211, 0.5);
}

.footer-divider {
    height: 1px;
    background: rgba(245, 230, 211, 0.1);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(245, 230, 211, 0.4);
}

.footer-address {
    font-size: 0.8125rem;
}

.footer-address a {
    color: rgba(245, 230, 211, 0.5);
    border-bottom: 1px solid rgba(245, 230, 211, 0.15);
    transition: border-color 0.2s ease;
}

.footer-address a:hover,
.footer-address a:focus-visible {
    color: #F5E6D3;
    border-color: rgba(245, 230, 211, 0.4);
}

/* ---------- FOCUS VISIBLE ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
