/* ==========================================================================
   Cool American Things - Ultra Luxury Americana
   Nostalgic elegance meets heritage craftsmanship
   ========================================================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Aged Americana */
    --cream: #f5f0e6;
    --cream-light: #faf8f3;
    --cream-dark: #e8e0d0;
    --navy: #1a2744;
    --navy-deep: #0f1829;
    --heritage-red: #8b3a3a;
    --heritage-red-muted: #6b2a2a;
    --brass: #c9a227;
    --brass-dark: #a68620;
    --saddle-brown: #8b5a2b;

    /* Neutrals */
    --charcoal: #2a2a2a;
    --warm-gray: #6b6b6b;
    --light-gray: #d4cfc5;
    --white: #ffffff;

    /* Category Colors */
    --color-footwear: #8b5a2b;
    --color-clothing: #1a2744;
    --color-accessories: #c9a227;
    --color-outdoor: #3d6b2a;
    --color-grooming: #6b4423;
    --color-spirits: #8b3a3a;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 7rem 2rem;
    --section-padding-mobile: 4rem 1.5rem;
    --container-max: 1300px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem;
    z-index: 1000;
    transition: all var(--transition-medium);
    background: transparent;
}

.nav.scrolled {
    background: rgba(245, 240, 230, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
    box-shadow: 0 2px 20px rgba(26, 39, 68, 0.08);
}

.nav.scrolled .nav-logo,
.nav.scrolled .nav-links a {
    color: var(--navy);
}

.nav.scrolled .nav-mobile-toggle span {
    background: var(--navy);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.5px;
}

.logo-icon {
    color: var(--brass);
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--heritage-red);
    transition: width var(--transition-medium);
}

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

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--cream);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section - Cream luxury feel
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--cream);
    color: var(--navy);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(139, 58, 58, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(201, 162, 39, 0.03) 0%, transparent 50%);
    opacity: 1;
}

/* Decorative border frame */
.hero::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    border: 1px solid rgba(139, 58, 58, 0.15);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--heritage-red);
    margin-bottom: 2.5rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--heritage-red);
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: clamp(2.8rem, 7vw, 5rem);
    letter-spacing: -1px;
    color: var(--navy);
}

.title-line.accent {
    color: var(--heritage-red);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 300;
    max-width: 550px;
    margin: 0 auto 3rem;
    color: var(--warm-gray);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(139, 58, 58, 0.15);
    border-bottom: 1px solid rgba(139, 58, 58, 0.15);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--navy);
    font-weight: 400;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--warm-gray);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(139, 58, 58, 0.2);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--navy);
    color: var(--cream);
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--transition-medium);
}

.hero-cta:hover {
    background: var(--heritage-red);
}

.hero-cta svg {
    transition: transform var(--transition-medium);
}

.hero-cta:hover svg {
    transform: translateY(3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--heritage-red), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 50px; }
    50% { opacity: 0.4; height: 35px; }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.section-header.light {
    color: var(--cream);
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--heritage-red);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header.light h2 {
    color: var(--cream);
}

.section-header p {
    font-size: 1rem;
    color: var(--warm-gray);
    font-weight: 300;
    line-height: 1.7;
}

.section-header.light p {
    color: rgba(245, 240, 230, 0.7);
}

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

.featured-section {
    background: var(--cream-light);
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--heritage-red), transparent);
    opacity: 0.3;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: var(--white);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(139, 58, 58, 0.08);
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 39, 68, 0.12);
}

.featured-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.featured-placeholder {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--navy);
    opacity: 0.08;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--heritage-red);
    color: var(--cream);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
}

.featured-info {
    padding: 1.5rem;
}

.featured-brand {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heritage-red);
    margin-bottom: 0.5rem;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
    font-weight: 400;
}

.featured-description {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.featured-link:hover {
    color: var(--heritage-red);
}

/* ==========================================================================
   Map Discovery Section
   ========================================================================== */

.discover-section {
    background: var(--navy);
    position: relative;
}

.discover-section .section-container {
    padding-bottom: 5rem;
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.map-container {
    background: rgba(245, 240, 230, 0.03);
    border: 1px solid rgba(245, 240, 230, 0.1);
    border-radius: 4px;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

/* USA Map Styling */
.usa-map-svg {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.usa-map-svg .state {
    fill: rgba(245, 240, 230, 0.06);
    stroke: rgba(245, 240, 230, 0.15);
    stroke-width: 0.5;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.usa-map-svg .state:hover {
    fill: rgba(139, 58, 58, 0.25);
    stroke: var(--heritage-red);
}

.usa-map-svg .state.has-brands {
    fill: rgba(245, 240, 230, 0.1);
}

.usa-map-svg .state.active {
    fill: rgba(139, 58, 58, 0.3);
    stroke: var(--heritage-red);
    stroke-width: 1;
}

/* Map Pins */
.map-pins-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.pin-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
}

.map-pin:hover .pin-dot {
    transform: scale(1.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pin-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--cream);
    color: var(--navy);
    padding: 0.4rem 0.6rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--cream);
}

.map-pin:hover .pin-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Map Sidebar */
.map-sidebar {
    background: rgba(245, 240, 230, 0.04);
    border: 1px solid rgba(245, 240, 230, 0.1);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    max-height: 550px;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(245, 240, 230, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cream);
    font-weight: 400;
}

.brand-count {
    font-size: 0.8rem;
    color: var(--brass);
}

.sidebar-filters {
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(245, 240, 230, 0.1);
}

.filter-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(245, 240, 230, 0.5);
    background: transparent;
    border: 1px solid rgba(245, 240, 230, 0.15);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--navy);
    background: var(--brass);
    border-color: var(--brass);
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.sidebar-list::-webkit-scrollbar {
    width: 3px;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(245, 240, 230, 0.2);
    border-radius: 2px;
}

.brand-list-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.5rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.brand-list-item:hover {
    background: rgba(245, 240, 230, 0.05);
}

.brand-list-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.brand-list-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cream);
}

.brand-list-meta {
    font-size: 0.7rem;
    color: rgba(245, 240, 230, 0.4);
}

/* Map Legend */
.map-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(245, 240, 230, 0.6);
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dot.footwear { background-color: var(--color-footwear); }
.dot.clothing { background-color: var(--color-clothing); }
.dot.accessories { background-color: var(--color-accessories); }
.dot.outdoor { background-color: var(--color-outdoor); }
.dot.grooming { background-color: var(--color-grooming); }
.dot.spirits { background-color: var(--color-spirits); }

/* ==========================================================================
   Collection / Catalog Section - Magazine Style
   ========================================================================== */

.collection-section {
    background: var(--cream);
    position: relative;
}

.collection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--heritage-red), transparent);
    opacity: 0.2;
}

.catalog-grid {
    max-width: 900px;
    margin: 0 auto;
}

.catalog-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(139, 58, 58, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.catalog-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.catalog-item:last-child {
    border-bottom: none;
}

.catalog-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--heritage-red);
    opacity: 0.2;
    font-weight: 400;
    line-height: 1;
}

.catalog-content {
    padding-top: 0.25rem;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.catalog-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.catalog-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heritage-red);
}

.catalog-description {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    max-width: 550px;
}

.catalog-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: var(--warm-gray);
}

.catalog-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all var(--transition-medium);
}

.catalog-btn:hover {
    background: var(--navy);
    color: var(--cream);
}

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

.about-section {
    background: var(--cream-dark);
    position: relative;
}

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

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.about-content p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--navy);
    color: var(--cream);
    padding: 0.9rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-medium);
}

.btn-primary:hover {
    background: var(--heritage-red);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 0.9rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-medium);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--cream);
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.visual-card {
    background: var(--cream-light);
    padding: 1.75rem;
    border-left: 3px solid var(--heritage-red);
    transition: transform var(--transition-medium);
}

.visual-card:hover {
    transform: translateX(6px);
}

.visual-icon {
    font-size: 1.25rem;
    color: var(--heritage-red);
    margin-bottom: 0.75rem;
}

.visual-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.visual-card p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

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

.footer {
    background: var(--navy-deep);
    color: var(--cream);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 4rem 2rem 2.5rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(245, 240, 230, 0.6);
    line-height: 1.7;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--heritage-red);
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.footer-column a {
    font-size: 0.85rem;
    color: rgba(245, 240, 230, 0.6);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--cream);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(245, 240, 230, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(245, 240, 230, 0.4);
}

.footer-tagline {
    color: var(--brass);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 24, 41, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--cream);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(30px);
    transition: transform var(--transition-medium);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--heritage-red);
    color: var(--cream);
}

.modal-hero {
    background: var(--navy);
    color: var(--cream);
    padding: 3.5rem 2.5rem 2.5rem;
    position: relative;
}

.modal-hero-content {
    position: relative;
    z-index: 2;
}

.modal-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heritage-red);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    margin: 0.4rem 0 0.75rem;
    font-weight: 400;
}

.modal-established {
    font-size: 0.9rem;
    opacity: 0.7;
}

.modal-details {
    padding: 2rem 2.5rem 2.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.modal-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--charcoal);
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-location svg {
    color: var(--heritage-red);
}

.modal-actions {
    margin-top: 2rem;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--navy);
    color: var(--cream);
    padding: 0.9rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-medium);
}

.modal-btn:hover {
    background: var(--heritage-red);
}

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

@media (max-width: 1024px) {
    .map-wrapper {
        grid-template-columns: 1fr;
    }

    .map-sidebar {
        max-height: 350px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero::before {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .section-container {
        padding: var(--section-padding-mobile);
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .catalog-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .catalog-number {
        font-size: 2rem;
    }

    .catalog-name {
        font-size: 1.4rem;
    }

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

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

    .modal-content {
        margin: 1rem;
    }

    .modal-hero {
        padding: 2.5rem 1.5rem 2rem;
    }

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

    .modal-details {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
    }

    .title-line {
        font-size: 2.2rem;
    }

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

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--warm-gray);
}
