/* ============================================
   Nineteen North Nutrition — Stylesheet
   Bold editorial · Burgundy + Blush
   ============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5A1F2B;
    --burgundy-light: #9E4050;
    --blush: #F4E4DE;
    --blush-light: #FBF5F2;
    --blush-mid: #E8D0C8;
    --cream: #FDF8F5;
    --warm-white: #FFFCFA;
    --text-dark: #1A0F12;
    --text-mid: #4A3038;
    --text-light: #7A5A62;
    --text-inverse: #FDF8F5;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe 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: 16px;

    --shadow-sm: 0 1px 3px rgba(26, 15, 18, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 15, 18, 0.1);
    --shadow-lg: 0 8px 32px rgba(26, 15, 18, 0.12);

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

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.7;
}

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

.section {
    padding: var(--space-3xl) 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    height: 72px;
    gap: var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--burgundy);
    letter-spacing: -0.02em;
    background: var(--burgundy);
    color: var(--text-inverse);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-left: auto;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--burgundy);
}

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

.nav-cta {
    background: var(--burgundy);
    color: var(--text-inverse) !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--burgundy-deep);
    color: var(--text-inverse) !important;
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform var(--transition);
}

.hamburger::before {
    margin-bottom: 4px;
}

.hamburger::after {
    margin-top: 4px;
}

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

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--burgundy);
    padding-top: 72px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-left {
    color: var(--text-inverse);
}

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

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    color: var(--text-inverse);
}

.hero-headline em {
    font-style: italic;
    color: var(--blush);
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(253, 248, 245, 0.8);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(253, 248, 245, 0.7);
}

.trust-item svg {
    color: var(--blush-mid);
    flex-shrink: 0;
}

.hero-right {
    position: relative;
}

.hero-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 7 / 9;
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--blush);
    color: var(--burgundy-deep);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-inverse);
    border: 1.5px solid rgba(253, 248, 245, 0.4);
}

.btn-secondary:hover {
    border-color: var(--text-inverse);
    background: rgba(253, 248, 245, 0.1);
}

.btn-full {
    width: 100%;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

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

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

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

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

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

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

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

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--warm-white);
}

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

.about-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.about-img-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    grid-column: 1;
    grid-row: 1 / 3;
}

.about-img-accent {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    grid-column: 2;
    grid-row: 2;
    box-shadow: var(--shadow-md);
    margin-top: var(--space-lg);
}

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

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

.about-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--blush-mid);
}

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

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

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

/* ---------- STORY ---------- */
.story {
    background: var(--burgundy);
    color: var(--text-inverse);
}

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

.story-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

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

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

.story-content .section-eyebrow {
    color: var(--blush-mid);
}

.story-content .section-title {
    color: var(--text-inverse);
}

.story-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(253, 248, 245, 0.8);
    margin-bottom: var(--space-md);
}

.story-divider {
    margin-top: var(--space-lg);
    opacity: 0.5;
}

.story-divider svg {
    color: var(--blush-mid);
}

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

.visit-content {
    max-width: 900px;
    margin: 0 auto;
}

.visit-content .section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

.visit-info {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--blush);
}

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

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

.visit-detail svg {
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.visit-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.visit-link {
    color: var(--burgundy);
    font-weight: 600;
    transition: color var(--transition);
}

.visit-link:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--warm-white);
}

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

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

.contact-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: var(--space-lg);
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--blush-mid);
}

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

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.contact-item-value {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--burgundy);
}

.contact-item-value:hover {
    text-decoration: underline;
}

/* ---------- FORM ---------- */
.contact-form-wrap {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--warm-white);
    border: 1.5px solid var(--blush-mid);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

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

.form-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: var(--space-sm);
    text-align: center;
}

.form-success {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--burgundy);
}

.form-success-title {
    font-size: 1.5rem;
    margin: var(--space-sm) 0 0.5rem;
    color: var(--burgundy);
}

.form-success-text {
    color: var(--text-mid);
    font-size: 1rem;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--text-dark);
    color: var(--text-inverse);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo-text {
    color: var(--text-inverse);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(253, 248, 245, 0.6);
    line-height: 1.7;
    margin-top: var(--space-sm);
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blush-mid);
    margin-bottom: var(--space-md);
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(253, 248, 245, 0.6);
    transition: color var(--transition);
}

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

.footer-address {
    font-size: 0.9375rem;
    color: rgba(253, 248, 245, 0.6);
    line-height: 1.7;
    font-style: normal;
}

.footer-phone {
    color: var(--blush-mid);
    font-weight: 600;
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--text-inverse);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(253, 248, 245, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(253, 248, 245, 0.4);
}

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

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-right {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .about-grid,
    .story-layout,
    .visit-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid rgba(123, 45, 59, 0.08);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .about-img-main {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 3 / 4;
    }

    .about-img-accent {
        grid-column: 1;
        grid-row: 2;
        margin-top: var(--space-sm);
        aspect-ratio: 4 / 3;
    }

    .about-stats {
        gap: var(--space-md);
    }

    .story-layout {
        gap: var(--space-lg);
    }

    .story-image {
        aspect-ratio: 3 / 4;
    }

    .visit-grid {
        gap: var(--space-lg);
    }

    .contact-layout {
        gap: var(--space-lg);
    }

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

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

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

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

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .contact-form-wrap {
        padding: var(--space-md);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
