/* ========================================
   Gladstone Mercantile — Custom Styles
   Charcoal + Coral Palette
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-charcoal-900: #1a1a2e;
    --color-charcoal-800: #2d2d44;
    --color-charcoal-700: #3d3d5c;
    --color-charcoal-600: #4a4a6a;
    --color-charcoal-500: #6b6b8a;
    --color-charcoal-100: #e8e8f0;
    --color-charcoal-50: #f4f4f8;
    
    --color-coral-600: #c0392b;
    --color-coral-500: #e74c3c;
    --color-coral-400: #ec6b56;
    --color-coral-300: #f19483;
    --color-coral-200: #f5b7b1;
    --color-coral-100: #fadbd8;
    --color-coral-50: #fdedea;
    
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
    --shadow-xl: 0 16px 48px rgba(26, 26, 46, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-charcoal-800);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* ========================================
   Typography
   ======================================== */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-coral-500);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-charcoal-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1.05rem;
    color: var(--color-charcoal-600);
    line-height: 1.75;
    max-width: 640px;
}

.section-text:not(.max-w-xl) {
    max-width: 560px;
}

.max-w-xl {
    max-width: 520px;
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

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

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

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

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

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-charcoal-900);
    border-color: var(--color-charcoal-900);
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-charcoal-100);
    transition: box-shadow var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-charcoal-900);
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--color-coral-500);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal-700);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--color-coral-500);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-coral-500);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.pexels.com/photos/6107680/pexels-photo-6107680.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 1.5rem 4rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.88) 0%,
        rgba(45, 45, 68, 0.82) 50%,
        rgba(26, 26, 46, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
}

.hero-eyebrow {
    color: var(--color-coral-300);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-white);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 6rem 0;
    background-color: var(--color-white);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-white);
}

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

.about-accent {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 80px;
    height: 80px;
    color: var(--color-coral-500);
    opacity: 0.2;
}

.about-content {
    padding: 1rem 0;
}

.about-content .section-text {
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-charcoal-800);
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--color-coral-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-coral-500);
}

.about-feature-icon svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Products Section
   ======================================== */
.products {
    padding: 6rem 0;
    background-color: var(--color-charcoal-50);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

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

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

.product-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-charcoal-900);
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--color-charcoal-600);
    line-height: 1.65;
}

/* ========================================
   Why Us Section
   ======================================== */
.why-us {
    padding: 6rem 0;
    background-color: var(--color-charcoal-900);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.why-content .section-eyebrow {
    color: var(--color-coral-400);
}

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

.why-content .section-text {
    color: rgba(255, 255, 255, 0.65);
}

.why-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all var(--transition);
}

.why-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(231, 76, 60, 0.3);
    transform: translateX(6px);
}

.why-card-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-coral-500);
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 6rem 0;
    background-color: var(--color-coral-500);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.cta-content .section-eyebrow {
    color: var(--color-coral-200);
}

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

.cta-content .section-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-actions .btn-outline-light:hover {
    background-color: var(--color-charcoal-900);
    border-color: var(--color-charcoal-900);
    color: var(--color-white);
}

/* ========================================
   Visit Section
   ======================================== */
.visit {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: var(--color-coral-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-coral-500);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-charcoal-500);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 1rem;
    color: var(--color-charcoal-800);
    line-height: 1.6;
}

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

.contact-item a:hover {
    color: var(--color-coral-600);
    text-decoration: underline;
}

.hours-box {
    background-color: var(--color-charcoal-900);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
}

.hours-box h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.hours-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--color-charcoal-900);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.35rem 0;
    transition: color var(--transition);
}

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

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

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    text-align: center;
}

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

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }

    .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) {
    .about-grid,
    .why-grid,
    .cta-grid,
    .visit-grid {
        gap: 3rem;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--color-charcoal-100);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

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

    .nav-links a:not(.btn) {
        padding: 0.75rem 0;
        font-size: 1rem;
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 100svh;
        padding: 7rem 1.5rem 3rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .about-grid,
    .why-grid,
    .cta-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .about-img-secondary {
        right: 0;
        bottom: -1.5rem;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

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

    .hero-title {
        font-size: 1.75rem;
    }

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

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

    .stat {
        flex: 1;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.35rem;
    }
}
