/* ===================================
   BUCKLEY'S MARKET — Stylesheet
   Deep Navy (#1A2744) + Warm Gold (#D4A84B)
   =================================== */

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

:root {
    --navy: #1A2744;
    --navy-light: #243352;
    --navy-dark: #121C30;
    --gold: #D4A84B;
    --gold-light: #E8C477;
    --gold-pale: #F5E6C0;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.08);
    --shadow-md: 0 8px 30px rgba(26, 39, 68, 0.12);
    --shadow-lg: 0 20px 60px rgba(26, 39, 68, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--navy);
}

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

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

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

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 75, 0.4);
}

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

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

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

/* ===================================
   SECTION HELPERS
   =================================== */
.section-tag {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

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

.section-sub {
    font-size: 1.125rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.7;
}

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

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

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

.nav.scrolled {
    background: rgba(26, 39, 68, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 400;
}

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

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.938rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

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

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

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

.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);
}

.nav-overlay {
    display: none;
}

/* ===================================
   HERO
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: 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(18, 28, 48, 0.88) 0%,
        rgba(26, 39, 68, 0.75) 50%,
        rgba(26, 39, 68, 0.60) 100%
    );
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 75, 0.15);
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

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

.hero-headline .text-gold {
    color: var(--gold);
}

.hero-sub {
    font-size: clamp(1.063rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    line-height: 1.75;
    margin-bottom: 40px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* ===================================
   PRODUCTS
   =================================== */
.products {
    padding: 120px 0;
    background: var(--cream);
}

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

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

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

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

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

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

.product-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-pale);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-body h3 {
    font-size: 1.375rem;
    color: var(--navy);
}

.product-body p {
    font-size: 0.938rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ===================================
   ABOUT
   =================================== */
.about {
    padding: 120px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.about-images {
    position: relative;
}

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

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

.about-img-float {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--navy);
}

.about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--gold);
    color: var(--navy);
    padding: 12px 20px;
    border-radius: 50px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 0.938rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-content .section-title {
    color: var(--white);
    margin-bottom: 28px;
}

.about-text {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.value-icon {
    width: 28px;
    height: 28px;
    background: rgba(212, 168, 75, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-item span {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ===================================
   VISIT
   =================================== */
.visit {
    padding: 120px 0;
    background: var(--cream);
}

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

.visit-info .section-title {
    margin-bottom: 40px;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-card-arrow {
    margin-left: auto;
    color: var(--text-light);
    transition: all var(--transition);
}

.contact-card:hover .contact-card-arrow {
    color: var(--gold);
    transform: translateX(4px);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    background: var(--gold-pale);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-card-value {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.5;
}

.contact-card-hours {
    cursor: default;
}

.contact-card-hours:hover {
    transform: none;
}

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

/* ===================================
   CTA BANNER
   =================================== */
.cta-banner {
    padding: 100px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text {
    flex: 1;
}

.cta-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--navy-dark);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 64px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 16px;
}

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

.footer-desc {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    stroke: var(--gold);
}

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

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* ===================================
   ANIMATIONS
   =================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos].aos-visible:nth-child(2) { transition-delay: 0.1s; }
[data-aos].aos-visible:nth-child(3) { transition-delay: 0.2s; }
[data-aos].aos-visible:nth-child(4) { transition-delay: 0.3s; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .about-img-float {
        right: -20px;
        bottom: -30px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

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

    .hero-stats {
        gap: 20px;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .about-img-float {
        right: -10px;
        bottom: -20px;
    }

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

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .hero-content {
        padding: 120px 16px 60px;
    }

    .products {
        padding: 80px 0;
    }

    .about {
        padding: 80px 0;
    }

    .visit {
        padding: 80px 0;
    }

    .cta-banner {
        padding: 80px 0;
    }

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

    .contact-card {
        padding: 18px 20px;
    }

    .hero-stats {
        flex-wrap: wrap;
    }
}
