/* ============================================
   Pensacola Nutrition — Stylesheet
   Palette: Terracotta + Sand
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C0603A;
    --color-terracotta-dark: #A04E2E;
    --color-terracotta-light: #D4845E;
    --color-sand: #F5E6D3;
    --color-sand-light: #FDF6EE;
    --color-sand-dark: #E8D5C0;
    --color-cream: #FFFBF7;
    --color-warm-white: #FFF9F4;
    --color-text: #3D2B1F;
    --color-text-light: #6B5344;
    --color-text-muted: #9B8578;
    --color-white: #FFFFFF;
    --color-dark: #2A1F17;
    --color-border: #E8D5C0;
    --color-overlay: rgba(42, 31, 23, 0.55);

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.06), 0 1px 2px rgba(61, 43, 31, 0.04);
    --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.08), 0 2px 4px rgba(61, 43, 31, 0.04);
    --shadow-lg: 0 12px 40px rgba(61, 43, 31, 0.12), 0 4px 12px rgba(61, 43, 31, 0.06);
    --shadow-xl: 0 24px 60px rgba(61, 43, 31, 0.14);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- 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-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* --- Focus --- */
:focus-visible {
    outline: 2px solid var(--color-terracotta);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: rgba(192, 96, 58, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(192, 96, 58, 0.3);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 96, 58, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.nav.scrolled .nav-logo span {
    color: var(--color-text);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-white);
    transition: color var(--transition-base);
}

.nav-logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
    background: var(--color-terracotta) !important;
    color: var(--color-white) !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--color-terracotta-dark) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav.scrolled .nav-toggle-bar {
    background: var(--color-text);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: 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(
        135deg,
        rgba(42, 31, 23, 0.72) 0%,
        rgba(42, 31, 23, 0.50) 50%,
        rgba(192, 96, 58, 0.30) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-sand);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    margin-bottom: 28px;
}

.hero-badge svg {
    opacity: 0.8;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 24px;
    max-width: 800px;
}

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

.hero-subheadline {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.hero-trust-item svg {
    color: var(--color-terracotta-light);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(8px); }
    60% { transform: translateX(-50%) translateY(4px); }
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.product-card-img {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-terracotta);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 8px;
}

.product-card-body p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--color-sand-light);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-sand-light);
}

.about-img-secondary img {
    width: 260px;
    height: 180px;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 100px;
    height: 100px;
    background: var(--color-terracotta);
    border-radius: var(--radius-lg);
    opacity: 0.15;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--color-terracotta);
    line-height: 1;
    margin-bottom: 6px;
}

.about-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.about-stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    background: var(--color-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(192, 96, 58, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(192, 96, 58, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    background: var(--color-sand-light);
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.visit-content {
    padding: 40px 0;
}

.visit-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visit-info li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.visit-info li svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 2px;
}

.visit-info span {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.visit-info a {
    color: var(--color-terracotta);
    transition: color var(--transition-fast);
}

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

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--color-dark);
    color: var(--color-white);
}

.contact .section-tag {
    background: rgba(192, 96, 58, 0.2);
    color: var(--color-terracotta-light);
}

.contact .section-title {
    color: var(--color-white);
}

.contact .section-desc {
    color: rgba(255, 255, 255, 0.6);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-direct-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.contact-direct-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(192, 96, 58, 0.4);
    color: var(--color-white);
}

.contact-direct-item svg {
    color: var(--color-terracotta-light);
}

/* Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-white);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-terracotta);
    background: rgba(255, 255, 255, 0.1);
}

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

/* Success State */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(192, 96, 58, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-terracotta-light);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.form-success p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.footer-col li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* Default visible state for no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout {
        gap: 48px;
    }

    .contact-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--color-cream);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 32px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

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

    .nav-links a {
        color: var(--color-text);
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .nav-links a:hover {
        background: var(--color-sand);
        color: var(--color-terracotta);
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 12px;
        text-align: center;
        background: var(--color-terracotta) !important;
        color: var(--color-white) !important;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero-content {
        padding: 100px 24px 60px;
    }

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

    .hero-trust {
        gap: 20px;
    }

    .hero-scroll {
        display: none;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* About */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .about-img-secondary {
        right: 0;
        bottom: -30px;
    }

    .about-img-accent {
        display: none;
    }

    /* Why Us */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Visit */
    .visit-layout {
        grid-template-columns: 1fr;
    }

    .visit-map {
        min-height: 300px;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .section {
        padding: 56px 0;
    }

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

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

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .about-stat-divider {
        width: 48px;
        height: 1px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-card-img {
        height: 180px;
    }
}
