/* ============================================
   THE SPOT NUTRITION — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --burgundy-700: #7B2D3B;
    --burgundy-300: #f4a7b8;
    --burgundy-100: #fce4e8;
    --blush-50: #fdf8f6;
    --cream-50: #FDFBF7;
    --warm-800: #3D2B1F;
    --warm-900: #2A1E14;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', 'Cormorant Garamond', Georgia, serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

/* --- Utility: sr-only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link:focus {
    z-index: 9999;
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* --- Grain Texture --- */
.hero-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    pointer-events: none;
}

/* --- Header --- */
.site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.site-header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(123, 45, 59, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* --- Navigation Links --- */
.nav-link {
    position: relative;
}

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

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

/* --- Primary Button --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7B2D3B;
    color: #FDFBF7;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    background: #5c1f2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 45, 59, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary .btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-primary-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7B2D3B;
    color: #FDFBF7;
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    font-family: 'Lora', serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(123, 45, 59, 0.2);
}

.btn-primary-inline:hover {
    background: #5c1f2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.3);
}

/* --- Secondary Button --- */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #FDFBF7;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid rgba(244, 167, 184, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: rgba(253, 251, 247, 0.1);
    border-color: rgba(244, 167, 184, 0.7);
    transform: translateY(-2px);
}

/* --- Section Label --- */
.section-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #7B2D3B;
}

/* --- Hero --- */
.hero-bg {
    will-change: transform;
}

.hero-img {
    will-change: transform;
}

.hero-scrim {
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(123, 45, 59, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(42, 12, 17, 0.4) 0%, transparent 50%);
}

/* --- Hero Cards --- */
.hero-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.hero-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.card-fresh {
    animation: floatCard1 6s ease-in-out infinite;
}

.card-breads {
    animation: floatCard2 7s ease-in-out infinite;
    animation-delay: -2s;
}

.card-local {
    animation: floatCard3 5.5s ease-in-out infinite;
    animation-delay: -1s;
}

.card-wholesome {
    animation: floatCard4 6.5s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes floatCard4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.scroll-dot {
    animation: scrollDotMove 2s ease-in-out infinite;
}

@keyframes scrollDotMove {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 0.6; transform: translate(-50%, 0); }
}

/* --- Offering Cards --- */
.offering-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.offering-card:hover {
    transform: translateY(-8px);
}

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

/* --- Craft Section (Parallax) --- */
.craft-bg {
    will-change: transform;
}

.craft-img {
    will-change: transform;
}

/* --- Input Fields --- */
.input-field {
    background: rgba(253, 251, 247, 0.6);
    border: 1px solid rgba(61, 43, 31, 0.15);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    color: #3D2B1F;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: rgba(61, 43, 31, 0.35);
}

.input-field:focus {
    border-color: #7B2D3B;
    background: rgba(253, 251, 247, 1);
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

.input-field:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

/* --- Value Points --- */
.value-point {
    padding: 1rem 0;
    border-left: 2px solid rgba(123, 45, 59, 0.15);
    padding-left: 1rem;
    transition: border-color 0.3s ease;
}

.value-point:hover {
    border-left-color: #7B2D3B;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #7B2D3B;
    color: #FDFBF7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.3);
    z-index: 30;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #5c1f2b;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(123, 45, 59, 0.4);
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    color: #3D2B1F;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Mobile Menu Toggle --- */
.menu-line {
    display: block;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

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

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-cards {
        display: none !important;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-cards {
        display: none !important;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal-left {
        transform: translateX(-30px);
    }
    
    .reveal-right {
        transform: translateX(30px);
    }
    
    .reveal-up.is-visible,
    .reveal-left.is-visible,
    .reveal-right.is-visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* --- Subtle Hover Animations --- */
a, button {
    transition: all 0.3s ease;
}

/* --- Print Styles --- */
@media print {
    .site-header,
    .back-to-top,
    .scroll-indicator,
    .hero-cards {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-bg,
    .craft-bg {
        display: none;
    }
}
