/* ============================================
   Bevers Family Footwear — Brand Styles
   Bold Editorial | Emerald + Cream
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50:  #fefdf8;
    --cream-100: #fdf9f0;
    --cream-200: #faf3e0;
    --cream-300: #f5e6c8;
    --cream-400: #edcf9a;
    --cream-500: #e0b06e;
    --cream-600: #c49044;
    --cream-700: #9a6e2e;

    --text-dark:  #0f1a15;
    --text-body:  #1a2e24;
    --text-muted: #4a6356;
    --text-light: #f5f8f6;

    --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:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-sm:  0 1px 3px rgba(4, 78, 59, 0.08);
    --shadow-md:  0 4px 16px rgba(4, 78, 59, 0.1);
    --shadow-lg:  0 8px 32px rgba(4, 78, 59, 0.12);
    --shadow-xl:  0 16px 48px rgba(4, 78, 59, 0.15);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--cream-50);
    line-height: 1.6;
    -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;
}

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

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.section-title em {
    font-style: italic;
    color: var(--emerald-700);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
    transition: box-shadow 0.3s ease;
}

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

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--emerald-800);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-logo-icon {
    color: var(--emerald-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-600);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--emerald-700);
}

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

.nav-cta {
    background: var(--emerald-700) !important;
    color: var(--cream-50) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--emerald-800) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--emerald-800);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--emerald-900) 0%,
        var(--emerald-700) 30%,
        var(--emerald-600) 50%,
        var(--emerald-500) 70%,
        var(--emerald-400) 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(2, 44, 34, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(5, 150, 105, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--space-xl);
}

.hero-tag {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-200);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--cream-50);
    margin-bottom: var(--space-xl);
}

.hero-headline em {
    font-style: italic;
    color: var(--cream-300);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--emerald-100);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--emerald-200);
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--cream-50);
    color: var(--emerald-800);
    border-color: var(--cream-50);
}

.btn-primary:hover {
    background: var(--cream-200);
    border-color: var(--cream-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--cream-100);
    border-color: rgba(253, 249, 240, 0.4);
}

.btn-secondary:hover {
    background: rgba(253, 249, 240, 0.1);
    border-color: var(--cream-200);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--emerald-700);
    color: var(--cream-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-content {
    padding: var(--space-xl) 0;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--cream-300);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--emerald-700);
}

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

/* --- Services --- */
.services {
    padding: var(--space-4xl) 0;
    background: var(--emerald-800);
}

.services-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--space-3xl);
}

.services .section-tag {
    color: var(--emerald-300);
}

.services .section-title {
    color: var(--cream-50);
}

.services .section-title em {
    color: var(--cream-300);
}

.services-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--emerald-200);
    font-weight: 300;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald-300);
    margin-bottom: var(--space-lg);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cream-50);
    margin-bottom: var(--space-sm);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--emerald-200);
    font-weight: 300;
}

/* --- Gallery --- */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--cream-100);
}

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

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

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/4;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

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

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

.visit-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--emerald-50);
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-item span:first-of-type,
.contact-item .contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item > div > span:last-of-type,
.contact-item a {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--emerald-700);
    text-decoration: underline;
    text-decoration-color: var(--emerald-300);
    text-underline-offset: 3px;
}

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

/* --- CTA --- */
.cta {
    padding: var(--space-4xl) 0;
    background: linear-gradient(
        135deg,
        var(--emerald-900) 0%,
        var(--emerald-700) 100%
    );
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20h20v20H20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 2;
}

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

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--cream-50);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.cta-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--emerald-100);
    max-width: 550px;
    margin: 0 auto var(--space-2xl);
    font-weight: 300;
}

.cta-sub a {
    color: var(--cream-300);
    font-weight: 500;
    border-bottom: 1px solid rgba(253, 228, 200, 0.3);
    transition: border-color 0.2s ease;
}

.cta-sub a:hover {
    border-color: var(--cream-300);
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--emerald-950);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream-100);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo svg {
    color: var(--emerald-400);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--emerald-300);
    max-width: 280px;
}

.footer-contact,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-500);
    margin-bottom: var(--space-sm);
}

.footer-contact a,
.footer-links a {
    font-size: 0.9rem;
    color: var(--emerald-200);
    transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--cream-200);
}

.footer-contact span:last-of-type {
    font-size: 0.9rem;
    color: var(--emerald-200);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--emerald-600);
}

/* --- Mobile Menu Overlay --- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 44, 34, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* --- 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.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream-50);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-xl) var(--space-2xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

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

    .about-image {
        order: -1;
    }

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

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

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

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

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

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

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

    .nav-inner {
        padding: 0 var(--space-md);
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}
