/* ============================================
   Bargain Central — Classic & Elegant Retail Site
   Palette: Forest Green + Off-White
   Typography: Playfair Display + Lato
   ============================================ */

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

:root {
    --forest-900: #0B3D20;
    --forest-800: #145A2E;
    --forest-700: #1B6B37;
    --forest-600: #237E44;
    --forest-500: #2D924F;
    --forest-400: #4CAF6A;
    --forest-300: #7BC89A;
    --forest-200: #B5E0C0;
    --forest-100: #D8F0E0;
    --forest-50:  #EEF7F1;

    --cream-900:  #1A1A14;
    --cream-800:  #2D2D24;
    --cream-700:  #4A4A3E;
    --cream-600:  #6B6B5C;
    --cream-500:  #8C8C7A;
    --cream-400:  #A8A896;
    --cream-300:  #C8C8B4;
    --cream-200:  #E2E2D2;
    --cream-100:  #F1F1E8;
    --cream-50:   #FAFAF4;
    --cream-25:   #FDFDF9;

    --gold-600:   #8B6914;
    --gold-500:   #B8922A;
    --gold-400:   #D4AC4E;
    --gold-300:   #E8CC7A;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm:  0 1px 3px rgba(11, 61, 32, 0.06), 0 1px 2px rgba(11, 61, 32, 0.04);
    --shadow-md:  0 4px 16px rgba(11, 61, 32, 0.08), 0 2px 4px rgba(11, 61, 32, 0.04);
    --shadow-lg:  0 12px 40px rgba(11, 61, 32, 0.12), 0 4px 12px rgba(11, 61, 32, 0.06);
    --shadow-xl:  0 24px 60px rgba(11, 61, 32, 0.14), 0 8px 20px rgba(11, 61, 32, 0.08);

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

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--cream-800);
    background-color: var(--cream-25);
    line-height: 1.7;
    -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 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--forest-900);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
    color: var(--forest-900);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--cream-600);
    max-width: 560px;
    line-height: 1.75;
}

.section-text {
    font-size: 1rem;
    color: var(--cream-700);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--forest-700);
    color: #fff;
    border-color: var(--forest-700);
}

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

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 253, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cream-200);
    transition: var(--transition);
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--forest-800);
}

.nav-logo-icon {
    color: var(--forest-700);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cream-700);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--forest-700);
    background-color: var(--forest-50);
}

.nav-cta {
    background-color: var(--forest-700);
    color: #fff !important;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

.nav-cta:hover {
    background-color: var(--forest-800);
    color: #fff !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background-color: var(--forest-800);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(27, 107, 55, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(45, 146, 79, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 70% at 50% 80%, rgba(20, 90, 46, 0.4) 0%, transparent 50%),
        linear-gradient(160deg, #0B3D20 0%, #145A2E 30%, #1B6B37 55%, #237E44 80%, #2D924F 100%);
    z-index: 0;
}

.hero-overlay {
    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");
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest-200);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.hero-scroll-indicator svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Sections --- */
.section {
    padding: 100px 0;
}

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

/* --- About --- */
.about {
    background-color: var(--cream-25);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--forest-100);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--cream-200);
}

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

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

.stat-label {
    font-size: 0.8rem;
    color: var(--cream-600);
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--cream-300);
}

/* --- Departments --- */
.departments {
    background-color: var(--forest-50);
}

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

.dept-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.dept-card-image {
    height: 200px;
    overflow: hidden;
}

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

.dept-card:hover .dept-card-image img {
    transform: scale(1.06);
}

.dept-card-content {
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dept-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--forest-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-700);
}

.dept-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--forest-900);
}

.dept-card-content p {
    font-size: 0.9rem;
    color: var(--cream-600);
    line-height: 1.65;
}

/* --- Why Us --- */
.why-us {
    background-color: var(--cream-25);
}

.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--forest-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-700);
}

.value-item h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--forest-900);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--cream-600);
    line-height: 1.65;
}

/* Image Stack */
.why-us-image-stack {
    position: relative;
    height: 620px;
}

.image-stack-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.image-stack-primary {
    width: 320px;
    height: 420px;
    top: 0;
    left: 0;
    z-index: 1;
}

.image-stack-secondary {
    width: 280px;
    height: 280px;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 6px solid var(--cream-25);
}

/* --- Quote --- */
.quote-section {
    background: linear-gradient(135deg, var(--forest-800) 0%, var(--forest-900) 100%);
    padding: 80px 0;
}

.quote-wrapper {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--forest-400);
    opacity: 0.3;
}

.quote-wrapper blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    margin-bottom: 24px;
}

.quote-wrapper cite {
    font-style: normal;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-400);
}

/* --- Visit --- */
.visit {
    background-color: var(--cream-25);
}

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

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--forest-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-700);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-500);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    color: var(--cream-800);
    line-height: 1.6;
}

.contact-value a {
    color: var(--forest-700);
    transition: var(--transition);
}

.contact-value a:hover {
    color: var(--forest-500);
    text-decoration: underline;
}

.map-wrapper {
    margin-top: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* --- Form --- */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-200);
}

.form-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--forest-900);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--cream-600);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cream-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--cream-800);
    background: var(--cream-50);
    border: 1.5px solid var(--cream-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 146, 79, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--cream-400);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--forest-500);
    margin-bottom: 16px;
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--forest-900);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9rem;
    color: var(--cream-600);
}

/* --- Footer --- */
.footer {
    background-color: var(--forest-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

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

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--forest-300);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--forest-400);
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal-bottom,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-bottom {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    .reveal-bottom.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .why-us-layout,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper img {
        height: 480px;
    }

    .why-us-image-stack {
        height: 400px;
        max-width: 400px;
    }

    .image-stack-primary {
        width: 260px;
        height: 340px;
    }

    .image-stack-secondary {
        width: 220px;
        height: 220px;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 253, 249, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--cream-200);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

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

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
    }

    .hero {
        min-height: 100svh;
        padding: 100px 20px 80px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

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

    .section {
        padding: 72px 0;
    }

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

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

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

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

    .form-card {
        padding: 28px;
    }
}

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

    .hero {
        padding: 90px 16px 70px;
    }

    .about-image-wrapper img {
        height: 360px;
    }

    .why-us-image-stack {
        height: 320px;
    }

    .image-stack-primary {
        width: 200px;
        height: 260px;
    }

    .image-stack-secondary {
        width: 180px;
        height: 180px;
    }
}
