/* ========================================
   Riverside Market — Editorial Style
   Colors: Terracotta + Sand
   ======================================== */

:root {
    --terracotta: #C2704E;
    --terracotta-dark: #A85A3A;
    --terracotta-light: #D4916F;
    --sand: #F5F0E8;
    --sand-dark: #E8DFD0;
    --sand-light: #FAF7F2;
    --charcoal: #2C2420;
    --charcoal-light: #4A3F38;
    --cream: #FFFDF9;
    --white: #FFFFFF;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 36, 32, 0.1);
    --shadow-lg: 0 8px 40px rgba(44, 36, 32, 0.12);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--sand-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Typography
   ======================================== */

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

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    max-width: 560px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.navbar.scrolled .logo {
    color: var(--charcoal);
}

.logo-icon {
    color: var(--terracotta-light);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 253, 249, 0.85);
    transition: color var(--transition);
}

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

.navbar.scrolled .nav-links a {
    color: var(--charcoal-light);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--terracotta);
}

.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--charcoal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(44, 36, 32, 0.97);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--sand);
    transition: color var(--transition);
}

.mobile-nav-link:hover {
    color: var(--terracotta-light);
}

.mobile-nav-link.btn {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 14px 32px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    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(44, 36, 32, 0.72) 0%,
        rgba(44, 36, 32, 0.45) 50%,
        rgba(44, 36, 32, 0.30) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-text {
    max-width: 720px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-title em {
    font-style: italic;
    color: var(--terracotta-light);
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: rgba(255, 253, 249, 0.8);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 253, 249, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

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

/* ========================================
   About Section
   ======================================== */

.about {
    padding: 120px 0;
    background-color: var(--sand-light);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--terracotta-light);
    border-radius: 4px;
    z-index: -1;
}

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

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

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--charcoal-light);
}

/* ========================================
   Products Section
   ======================================== */

.products {
    padding: 120px 0;
    background-color: var(--sand);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

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

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

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

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

.product-image {
    overflow: hidden;
    height: 280px;
}

.product-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-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 32px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.product-info p {
    font-size: 0.9375rem;
    color: var(--charcoal-light);
    line-height: 1.7;
}

/* ========================================
   Location Section
   ======================================== */

.location {
    padding: 120px 0;
    background-color: var(--sand-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.location-info {
    padding: 20px 0;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 48px 0;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--sand);
    color: var(--terracotta);
}

.detail-item h4 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    margin-bottom: 4px;
}

.detail-item p {
    font-size: 1.0625rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.detail-item a {
    color: var(--terracotta);
}

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

.location-map {
    border-radius: 4px;
    overflow: hidden;
    height: 450px;
}

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

/* ========================================
   Contact Section
   ======================================== */

.contact {
    padding: 120px 0;
    background-color: var(--charcoal);
    color: var(--sand);
}

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

.contact .section-subtitle {
    color: rgba(245, 240, 232, 0.7);
}

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

.contact-text {
    font-size: 1.0625rem;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--sand);
    font-size: 1.0625rem;
}

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

.contact-item a {
    color: var(--sand);
    transition: color var(--transition);
}

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

.contact-form-wrapper {
    background-color: rgba(255, 253, 249, 0.05);
    border: 1px solid rgba(255, 253, 249, 0.1);
    border-radius: 4px;
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(255, 253, 249, 0.06);
    border: 1px solid rgba(255, 253, 249, 0.15);
    border-radius: 4px;
    color: var(--sand);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 240, 232, 0.35);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 4px;
    color: #81C784;
    font-size: 0.9375rem;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 80px 0 40px;
    background-color: var(--charcoal);
    border-top: 1px solid rgba(255, 253, 249, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer .logo {
    color: var(--sand);
    margin-bottom: 16px;
}

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

.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-hours p {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9375rem;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 253, 249, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

/* ========================================
   Animations
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .about-grid,
    .location-grid,
    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 360px;
    }
    
    .about-image::after {
        display: none;
    }
    
    .about-stats {
        gap: 32px;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .location-map {
        height: 300px;
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .products-grid {
        gap: 24px;
    }
}
