/* ========================================
   Arikara Nutrition — Stylesheet
   Charcoal + Coral | Editorial Style
   ======================================== */

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

:root {
    --charcoal-900: #1a1a1a;
    --charcoal-800: #2d2d2d;
    --charcoal-700: #3d3d3d;
    --charcoal-600: #555555;
    --charcoal-500: #6b6b6b;

    --coral-50: #fdf0ed;
    --coral-100: #fce4de;
    --coral-200: #f8c4b6;
    --coral-300: #f2a08a;
    --coral-400: #e07a5f;
    --coral-500: #d4654a;
    --coral-600: #c45038;

    --cream: #faf8f5;
    --cream-dark: #f3efe9;
    --white: #ffffff;

    --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;

    --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.7;
    color: var(--charcoal-800);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--coral-600);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--coral-400);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 500;
}

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

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

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

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal-900);
    margin-bottom: var(--space-lg);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn--primary:hover {
    background: var(--coral-500);
    border-color: var(--coral-500);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    background: var(--white);
    color: var(--charcoal-900);
    border-color: var(--white);
}

.btn--full {
    width: 100%;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--white);
}

.nav__logo-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--coral-400);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--coral-400);
    border-radius: var(--radius-sm);
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav__menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 4px;
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-400);
    transition: width var(--transition);
}

.nav__menu a:hover {
    color: var(--white);
}

.nav__menu a:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--coral-400);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background: var(--coral-500);
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 110;
}

.nav__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

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

.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: rotate(-45deg) translate(5px, -5px);
}

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

.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(
        to bottom,
        rgba(26, 26, 26, 0.55) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(26, 26, 26, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral-300);
    margin-bottom: var(--space-md);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero__headline em {
    font-style: italic;
    color: var(--coral-300);
}

.hero__subhead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto var(--space-lg);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- About ---------- */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    aspect-ratio: 3/4;
}

.about__text p {
    color: var(--charcoal-600);
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.about__text p:last-child {
    margin-bottom: 0;
}

/* ---------- Products ---------- */
.products {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

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

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

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

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

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

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

.product-card__body {
    padding: var(--space-lg);
}

.product-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: var(--space-xs);
}

.product-card__desc {
    font-size: 0.95rem;
    color: var(--charcoal-600);
    line-height: 1.7;
}

/* ---------- Philosophy ---------- */
.philosophy {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

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

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

.philosophy__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.82);
}

.philosophy__content {
    position: relative;
    z-index: 1;
}

.philosophy__eyebrow {
    color: var(--coral-300) !important;
}

.philosophy__heading {
    color: var(--white) !important;
}

.philosophy__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.pillar {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: background var(--transition);
}

.pillar:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pillar__number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--coral-400);
    line-height: 1;
    margin-bottom: var(--space-sm);
    display: block;
}

.pillar__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.pillar__desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* ---------- Visit ---------- */
.visit {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.visit__info .section-heading {
    margin-bottom: var(--space-lg);
}

.visit__details {
    font-style: normal;
    margin-bottom: var(--space-lg);
}

.visit__details p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    color: var(--charcoal-600);
    line-height: 1.8;
}

.visit__details strong {
    color: var(--charcoal-900);
    font-weight: 600;
}

.visit__details a {
    color: var(--coral-400);
}

.visit__details a:hover {
    color: var(--coral-600);
}

.visit__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.visit__map iframe {
    width: 100%;
    height: 100%;
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--charcoal-900);
}

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

.contact__text .section-heading {
    color: var(--white);
}

.contact__lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-top: var(--space-md);
}

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

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form__label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.form__input,
.form__textarea {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--white);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--coral-400);
    background: rgba(255, 255, 255, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 140px;
}

.form__success {
    background: rgba(224, 122, 95, 0.15);
    border: 1px solid rgba(224, 122, 95, 0.4);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--coral-200);
    font-size: 0.95rem;
    text-align: center;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal-900);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer__brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer__links h4,
.footer__contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-400);
    margin-bottom: var(--space-md);
}

.footer__links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 0.25rem;
}

.footer__contact a {
    color: var(--coral-400);
}

.footer__contact a:hover {
    color: var(--coral-300);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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) {
    .philosophy__pillars {
        grid-template-columns: 1fr 1fr;
    }

    .philosophy__pillars .pillar:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

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

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        flex-direction: column;
        background: var(--charcoal-900);
        padding: 5rem var(--space-lg) var(--space-lg);
        gap: var(--space-md);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 100;
    }

    .nav__menu.open {
        transform: translateX(0);
    }

    .nav__menu a {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .nav__menu a:hover {
        color: var(--coral-400);
    }

    .nav__menu a::after {
        display: none;
    }

    .nav__cta {
        margin-top: var(--space-sm);
    }

    .nav__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .nav__overlay.active {
        display: block;
    }

    .hero__headline {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .about__grid,
    .products__grid,
    .visit__grid,
    .contact__inner {
        grid-template-columns: 1fr;
    }

    .about__image {
        order: -1;
    }

    .about__image img {
        aspect-ratio: 4/3;
    }

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

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

    .philosophy__pillars .pillar:last-child {
        max-width: 100%;
    }

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

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

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

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }
}
