/* ============================================
   Georgesville Square Nutrition — Stylesheet
   Palette: Terracotta + Sand | Serif + Sans
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
    --terracotta: #B85C38;
    --terracotta-dark: #9A4B2C;
    --terracotta-light: #D4845E;
    --sand: #F5E6D3;
    --sand-light: #FAF3EB;
    --sand-dark: #E8D5C0;
    --cream: #FDF9F4;
    --charcoal: #2C2420;
    --charcoal-light: #4A3F38;
    --warm-gray: #7A6B63;
    --warm-gray-light: #A89890;
    --white: #FFFFFF;

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.10);
    --shadow-lg: 0 8px 32px rgba(44, 36, 32, 0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--terracotta-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--charcoal);
}

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--terracotta);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-sm {
    padding: 0.625rem 1.375rem;
    font-size: 0.8125rem;
}

/* ---------- Section Utilities ---------- */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.section-divider {
    width: 48px;
    height: 1.5px;
    background: var(--terracotta);
    margin: 0 auto var(--space-md);
    opacity: 0.7;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    line-height: 1.75;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 249, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 92, 56, 0.08);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--charcoal);
    text-decoration: none;
    font-family: var(--font-serif);
}

.logo-mark {
    color: var(--terracotta);
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.logo-sub {
    font-weight: 300;
    font-style: italic;
    color: var(--terracotta);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.main-nav a {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terracotta);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--terracotta);
}

.main-nav a:hover::after {
    width: 100%;
}

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

/* Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 110;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: all var(--transition);
}

.hamburger {
    position: relative;
    margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
    overflow: hidden;
}

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

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(44, 36, 32, 0.55) 0%,
        rgba(44, 36, 32, 0.70) 50%,
        rgba(44, 36, 32, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: var(--space-2xl) var(--space-md);
    color: var(--white);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero-title .accent {
    font-style: italic;
    color: var(--sand);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(245, 230, 211, 0.8);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 230, 211, 0.5);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- Intro Strip ---------- */
.intro-strip {
    background: var(--sand);
    border-top: 1px solid var(--sand-dark);
    border-bottom: 1px solid var(--sand-dark);
    padding: var(--space-lg) 0;
}

.intro-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal-light);
    letter-spacing: 0.02em;
}

.intro-icon {
    color: var(--terracotta);
    flex-shrink: 0;
}

/* ---------- Products ---------- */
.products {
    background: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.product-img {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

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

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

.product-body {
    padding: var(--space-md);
}

.product-name {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    background: var(--sand-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-img-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 50%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--sand-light);
}

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

.about-content {
    padding: var(--space-md) 0;
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-divider {
    margin: 0 0 var(--space-md) 0;
}

.about-content p {
    color: var(--warm-gray);
    margin-bottom: var(--space-md);
    font-size: 1.0rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--sand-dark);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-gray-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand-dark);
}

/* ---------- Featured Banner ---------- */
.featured-banner {
    background: var(--charcoal);
    padding: var(--space-3xl) 0;
}

.banner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.banner-text .section-eyebrow {
    color: var(--terracotta-light);
}

.banner-text .section-title {
    color: var(--white);
    text-align: left;
    margin-bottom: var(--space-md);
}

.banner-text .section-divider {
    margin: 0 0 var(--space-md) 0;
    background: var(--terracotta-light);
}

.banner-text p {
    color: rgba(245, 230, 211, 0.75);
    font-size: 1.0625rem;
    line-height: 1.8;
}

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

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 7 / 5;
}

/* ---------- Visit ---------- */
.visit {
    background: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.visit-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.visit-card:hover {
    box-shadow: var(--shadow-md);
}

.visit-icon {
    color: var(--terracotta);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.visit-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.visit-card p {
    color: var(--warm-gray);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.visit-card a {
    color: var(--terracotta);
}

.visit-card a:hover {
    color: var(--terracotta-dark);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

.visit-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--charcoal);
    color: rgba(245, 230, 211, 0.7);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(245, 230, 211, 0.6);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: var(--space-md);
}

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

.footer-links a {
    color: rgba(245, 230, 211, 0.6);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--sand);
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.75;
}

.footer-contact a {
    color: var(--terracotta-light);
}

.footer-contact a:hover {
    color: var(--sand);
}

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 230, 211, 0.35);
    letter-spacing: 0.03em;
}

/* ---------- 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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .banner-inner,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-img-accent {
        width: 40%;
        right: -1rem;
        bottom: -1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

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

@media (max-width: 768px) {
    :root {
        --space-3xl: 5rem;
        --space-2xl: 3.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        padding: 6rem var(--space-xl) var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 100;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .main-nav a {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    .main-nav .btn {
        margin-top: var(--space-sm);
    }

    .hero-title {
        font-size: clamp(1.875rem, 7vw, 2.75rem);
    }

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

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

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

    .about-img-accent {
        position: relative;
        width: 60%;
        right: auto;
        bottom: auto;
        margin-top: var(--space-sm);
    }

    .about-stats {
        flex-wrap: wrap;
    }

    .intro-grid {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .product-body {
        padding: var(--space-sm);
    }

    .visit-card {
        padding: var(--space-md);
    }
}
