/* ============================================================
   SupplyMatchMS — Glassmorphism Edition
   Navy blue (#1a237e) primary, warm orange (#e65100) accent
   Frosted black glass cards, glass buttons, parallax
   Mobile-first, modern, Apple-inspired
   Sister site to BuildMatchMS.com
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #e0e0e0;
    background: #0d0d0d;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Strong ambient light for glass blur to diffuse — visible on all browsers */
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(26, 35, 126, 0.30) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 15%, rgba(230, 81, 0, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 85%, rgba(255, 138, 80, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    background-attachment: fixed;
    background-color: #0d0d0d;
}

a {
    color: #ff8a50;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffab70;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================
   PARALLAX SECTION ENGINE
   ============================================ */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Subtle overlay so text is always readable */
.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.parallax-section > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   GLASS CARD — FROSTED BLACK 80%
   ============================================ */
.glass-card {
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 24px 48px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.10);
}

.glass-card-sm {
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.4);
}

/* ============================================
   GLASS BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.03) 15%,
        rgba(230, 81, 0, 0.60) 35%,
        rgba(230, 81, 0, 0.65) 65%,
        rgba(230, 81, 0, 0.50) 85%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-color: rgba(230, 81, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.04) 15%,
        rgba(230, 81, 0, 0.70) 35%,
        rgba(230, 81, 0, 0.75) 65%,
        rgba(230, 81, 0, 0.60) 85%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: rgba(230, 81, 0, 0.6);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ff8a50;
    border-color: rgba(255, 138, 80, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 138, 80, 0.15);
    border-color: rgba(255, 138, 80, 0.5);
    color: #ffab70;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ============================================
   SCREW BUTTON MODIFIER
   Add class="btn-screw" to any button for
   4-corner metallic screw rivets
   ============================================ */
.btn-screw {
    position: relative;
}

.btn-screw::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        /* Top-left screw */
        radial-gradient(circle at 10px 10px,
            rgba(255,255,255,0.5) 0%,
            rgba(120,120,130,0.3) 3px,
            transparent 4px),
        /* Top-right screw */
        radial-gradient(circle at calc(100% - 10px) 10px,
            rgba(255,255,255,0.5) 0%,
            rgba(120,120,130,0.3) 3px,
            transparent 4px),
        /* Bottom-left screw */
        radial-gradient(circle at 10px calc(100% - 10px),
            rgba(255,255,255,0.5) 0%,
            rgba(120,120,130,0.3) 3px,
            transparent 4px),
        /* Bottom-right screw */
        radial-gradient(circle at calc(100% - 10px) calc(100% - 10px),
            rgba(255,255,255,0.5) 0%,
            rgba(120,120,130,0.3) 3px,
            transparent 4px);
    background-repeat: no-repeat;
}

/* Orange screw variant for .btn-primary */
.btn-primary.btn-screw::before {
    background-image:
        radial-gradient(circle at 10px 10px, rgba(255,255,255,0.5) 0%, rgba(180,80,20,0.3) 3px, transparent 4px),
        radial-gradient(circle at calc(100% - 10px) 10px, rgba(255,255,255,0.5) 0%, rgba(180,80,20,0.3) 3px, transparent 4px),
        radial-gradient(circle at 10px calc(100% - 10px), rgba(255,255,255,0.5) 0%, rgba(180,80,20,0.3) 3px, transparent 4px),
        radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), rgba(255,255,255,0.5) 0%, rgba(180,80,20,0.3) 3px, transparent 4px);
    background-repeat: no-repeat;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.site-logo:hover {
    color: #ff8a50;
    text-decoration: none;
}

.site-logo .logo-icon {
    font-size: 1.5rem;
}

.site-logo .logo-img {
    height: auto;
    max-height: 60px;
    width: auto;
    display: block;
}

.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.main-nav .nav-btn {
    background: rgba(230, 81, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(230, 81, 0, 0.3);
}

.main-nav .nav-btn:hover {
    background: rgba(230, 81, 0, 0.85);
    color: #fff;
    text-decoration: none;
    border-color: rgba(230, 81, 0, 0.5);
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 0.75rem 0;
        gap: 0.25rem;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
    }

    .main-nav .nav-btn {
        text-align: center;
        margin-top: 0.25rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero .hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Hero Search --- */
.hero-search {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-search input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hero-search button {
    background: rgba(230, 81, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.hero-search button:hover {
    background: rgba(230, 81, 0, 0.9);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: rgba(255, 255, 255, 0.55);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ============================================
   CATEGORY GRID (Homepage)
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(12, 12, 12, 0.62);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    color: #e0e0e0;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 138, 80, 0.3);
    text-decoration: none;
    color: #e0e0e0;
}

.category-card .cat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-card .cat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.category-card .cat-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-card {
        padding: 1.25rem 0.75rem;
    }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 0;
    text-align: center;
}

.stats-bar .stat {
    display: inline-block;
    margin: 0 2.5rem;
}

.stats-bar .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: #ff8a50;
}

.stats-bar .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .stats-bar .stat {
        display: block;
        margin: 1.5rem 0;
    }
}

/* ============================================
   CARDS GRID (Directory results)
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.card {
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.card-featured {
    border-color: rgba(230, 81, 0, 0.4);
    background: rgba(230, 81, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-featured::before {
    content: '★ Featured';
    position: absolute;
    top: -1px;
    right: 1.25rem;
    background: rgba(230, 81, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 0 0 12px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ff8a50;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: #fff;
}

.card .card-address {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.card .card-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
}

.card .card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card .card-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   SUPPLIER DETAIL PAGE
   ============================================ */
.supplier-header {
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.supplier-header .sup-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ff8a50;
    margin-bottom: 0.5rem;
}

.supplier-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.supplier-header .sup-address {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}

.supplier-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.info-card .info-item .info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-card .info-item .info-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    min-width: 70px;
    font-size: 0.85rem;
}

.info-card .info-item a {
    color: #ff8a50;
}

.supplier-description {
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.supplier-description p {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
    .supplier-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DIRECTORY FILTERS
   ============================================ */
.directory-filters {
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: rgba(15, 15, 15, 0.85);
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.filter-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.filter-control:focus {
    outline: none;
    border-color: rgba(255, 138, 80, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 138, 80, 0.08);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    padding-bottom: 0.1rem;
}

.filter-actions .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
}

/* --- Results Info --- */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.results-count {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

.results-count strong {
    color: #fff;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.form-group .hint {
    display: block;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(15, 15, 15, 0.85);
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 138, 80, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 138, 80, 0.08);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

select.form-control {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

/* ============================================
   ALERT MESSAGES
   ============================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(46, 125, 50, 0.25);
    color: #81c784;
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.alert-error {
    background: rgba(198, 40, 40, 0.25);
    color: #ef9a9a;
    border: 1px solid rgba(198, 40, 40, 0.3);
}

/* --- Category Sections (Directory) --- */
.category-section {
    margin-bottom: 2rem;
}

.category-section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: default;
}

.category-section-header.top-results {
    border-bottom-color: #e65100;
}

.category-section-header.top-results .cs-icon {
    animation: none;
}

.category-section-header.top-results .cs-name {
    color: #e65100;
    font-weight: 700;
}

.category-section-header .cs-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.category-section-header .cs-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.category-section-header .cs-count {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    min-width: 1.5rem;
    text-align: center;
}

/* --- Amazon Affiliate Fallback --- */
.amazon-fallback {
    margin-top: 1rem;
}

.amazon-link {
    transition: transform 0.15s, box-shadow 0.15s;
}

.amazon-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 153, 0, 0.3);
}

/* --- Product Tags --- */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-tag {
    display: inline-block;
    background: rgba(255, 138, 80, 0.1);
    color: #ff8a50;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: 1px solid rgba(255, 138, 80, 0.2);
}

.product-tag:hover {
    background: rgba(255, 138, 80, 0.2);
    color: #ffab70;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(255, 138, 80, 0.4);
}

/* ============================================
   AD PLACEHOLDER
   ============================================ */
.ad-slot {
    background: rgba(20, 20, 20, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    margin: 1.5rem 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer .footer-links {
    display: flex;
    gap: 1.5rem;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-footer .footer-links a:hover {
    color: #ff8a50;
}

.site-footer .copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .site-footer .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    line-height: 1.8;
}

.about-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   CLAIM PAGE
   ============================================ */
.claim-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================
   PRODUCT TAG PILLS
   ============================================ */
.tag-pill {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 138, 80, 0.1);
    border: 1px solid rgba(255, 138, 80, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: #ff8a50;
    margin: 0.2rem;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: rgba(255, 138, 80, 0.2);
    border-color: rgba(255, 138, 80, 0.4);
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================
   RESPONSIVE HELPERS
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 3rem 0;
    }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .container { padding: 0 0.75rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .card {
        border-radius: 16px;
        padding: 1.25rem;
    }
    .filter-row { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .btn { width: 100%; }
    .hero .hero-cta { flex-direction: column; }
    .hero .hero-cta .btn { width: 100%; }
    .hero-search {
            border-radius: 6px;
            flex-direction: column;
            overflow: visible;
        }
        .hero-search input {
            border-radius: 6px 6px 0 0;
        }
        .hero-search button {
            border-radius: 0 0 6px 6px;
            padding: 0.75rem;
        }
    .supplier-header { padding: 1.5rem; border-radius: 18px; }
    .about-content { padding: 1.5rem; border-radius: 18px; }
    .claim-form { padding: 1.5rem; border-radius: 18px; }
    .directory-filters { padding: 1.25rem; border-radius: 16px; }
    }

    /* ============================================
       LIGHT MODE — Auto-activated via prefers-color-scheme
       ============================================
       Best-practice dark mode guidelines applied:
       - No pure white (#fff) backgrounds — uses #f5f5f7 instead
       - No pure black (#000) text — uses #1d1d1f instead
       - Glass cards use white glass with subtle shadow elevation
       - Accent colors slightly desaturated on light bg for readability
       - Opacity-based text hierarchy for paragraphs/secondary text
       ============================================ */
    @media (prefers-color-scheme: light) {

        /* --- Base --- */
        body {
            color: #1d1d1f;
            background: #f5f5f7;
            background-image:
                radial-gradient(ellipse at 15% 20%, rgba(26, 35, 126, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 85% 15%, rgba(230, 81, 0, 0.05) 0%, transparent 55%),
                radial-gradient(ellipse at 50% 85%, rgba(255, 138, 80, 0.04) 0%, transparent 50%);
            background-color: #f5f5f7;
        }

        h1, h2, h3, h4, h5, h6 {
            color: #1d1d1f;
        }

        p {
            color: rgba(0, 0, 0, 0.65);
        }

        a {
            color: #d44d00;
        }
        a:hover {
            color: #e65100;
        }

        /* --- Glass Cards (Light Glass) --- */
        .glass-card,
        .glass-card-sm,
        .card,
        .supplier-header,
        .info-card,
        .supplier-description,
        .about-content,
        .claim-form,
        .directory-filters,
        .category-card,
        .hero-search input {
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-color: rgba(0, 0, 0, 0.08);
        }

        .glass-card,
        .supplier-header,
        .about-content,
        .claim-form {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
        }
        .glass-card:hover {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
        }
        .glass-card-sm,
        .card,
        .info-card,
        .supplier-description,
        .directory-filters {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
        }
        .card:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
            border-color: rgba(0, 0, 0, 0.12);
        }
        .category-card:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
            border-color: rgba(230, 81, 0, 0.25);
        }

        /* --- Featured Card --- */
        .card-featured {
            border-color: rgba(230, 81, 0, 0.3);
            background: rgba(230, 81, 0, 0.04);
        }
        .card-featured::before {
            background: rgba(230, 81, 0, 0.75);
            color: #fff;
        }

        /* --- Header / Nav --- */
        .site-header {
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom-color: rgba(0, 0, 0, 0.06);
        }

        .site-logo {
            color: #1d1d1f;
        }
        .site-logo:hover {
            color: #d44d00;
        }

        .main-nav a {
            color: rgba(0, 0, 0, 0.55);
        }
        .main-nav a:hover,
        .main-nav a.active {
            color: #1d1d1f;
            background: rgba(0, 0, 0, 0.06);
        }
        .main-nav .nav-btn {
                    background: linear-gradient(
                        135deg,
                        rgba(230, 81, 0, 0.82) 0%,
                        rgba(230, 81, 0, 0.90) 50%,
                        rgba(200, 60, 0, 0.85) 100%
                    );
                    color: #1d1d1f;
                    border-color: rgba(200, 60, 0, 0.3);
                }
                .main-nav .nav-btn:hover {
                    background: linear-gradient(
                        135deg,
                        rgba(230, 81, 0, 0.92) 0%,
                        rgba(230, 81, 0, 0.98) 50%,
                        rgba(200, 60, 0, 0.92) 100%
                    );
                    color: #1d1d1f;
                }

        .nav-toggle {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.1);
            color: #1d1d1f;
        }

        /* --- Hero --- */
        .hero::before {
            background: rgba(200, 200, 200, 0.45);
        }
        .hero h1 { color: #1d1d1f; }
        .hero p { color: rgba(0, 0, 0, 0.6); }

        .hero-search {
            border-color: rgba(0, 0, 0, 0.08);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        }
        .hero-search input {
            color: #1d1d1f;
        }
        .hero-search input::placeholder {
            color: rgba(0, 0, 0, 0.35);
        }

        /* --- Section Alt --- */
        .section-alt {
            background: rgba(0, 0, 0, 0.02);
        }
        .section-title p {
            color: rgba(0, 0, 0, 0.45);
        }

        /* --- Category Cards --- */
        .category-card .cat-name {
            color: #1d1d1f;
        }
        .category-card .cat-count {
            color: rgba(0, 0, 0, 0.4);
        }

        /* --- Stats Bar --- */
        .stats-bar {
            background: rgba(240, 240, 242, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-top-color: rgba(0, 0, 0, 0.06);
            border-bottom-color: rgba(0, 0, 0, 0.06);
        }
        .stats-bar .stat-number {
            color: #d44d00;
        }
        .stats-bar .stat-label {
            color: rgba(0, 0, 0, 0.45);
        }

        /* --- Card Text --- */
        .card h3,
        .info-card h3 {
            color: #1d1d1f;
        }
        .card-address,
        .card-meta,
        .results-count,
        .info-item {
            color: rgba(0, 0, 0, 0.55) !important;
        }
        .results-count strong {
            color: #1d1d1f;
        }
        .info-label {
            color: rgba(0, 0, 0, 0.5) !important;
        }
        .info-item a {
            color: #d44d00 !important;
        }
        .sup-address {
            color: rgba(0, 0, 0, 0.5) !important;
        }
        .sup-category,
        .card-category {
            color: #d44d00 !important;
        }

        /* --- Supplier Description --- */
        .supplier-description p {
            color: rgba(0, 0, 0, 0.65);
        }

        /* --- Filters & Forms --- */
        .filter-group label {
            color: rgba(0, 0, 0, 0.5);
        }
        .filter-control {
            background: #fff;
            color: #1d1d1f;
            border-color: rgba(0, 0, 0, 0.12);
        }
        .filter-control::placeholder {
            color: rgba(0, 0, 0, 0.3);
        }

        .form-group label {
            color: rgba(0, 0, 0, 0.75);
        }
        .form-group .hint {
            color: rgba(0, 0, 0, 0.35);
        }
        .form-control {
            background: #fff;
            color: #1d1d1f;
            border-color: rgba(0, 0, 0, 0.12);
        }
        .form-control::placeholder {
            color: rgba(0, 0, 0, 0.3);
        }
        select.form-control {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d1d1f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        }

        /* --- Buttons --- */
        .btn-primary {
                    background: linear-gradient(
                        135deg,
                        rgba(230, 81, 0, 0.82) 0%,
                        rgba(230, 81, 0, 0.90) 50%,
                        rgba(200, 60, 0, 0.85) 100%
                    );
                    color: #1d1d1f;
                    border-color: rgba(200, 60, 0, 0.3);
                }
                .btn-primary:hover {
                    background: linear-gradient(
                        135deg,
                        rgba(230, 81, 0, 0.92) 0%,
                        rgba(230, 81, 0, 0.98) 50%,
                        rgba(200, 60, 0, 0.92) 100%
                    );
                    color: #1d1d1f;
                }
        .btn-secondary {
            background: rgba(0, 0, 0, 0.06);
            color: #1d1d1f;
            border-color: rgba(0, 0, 0, 0.12);
        }
        .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.10);
            border-color: rgba(0, 0, 0, 0.2);
            color: #1d1d1f;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        }
        .btn-outline {
            background: rgba(0, 0, 0, 0.03);
            color: #d44d00;
            border-color: rgba(230, 81, 0, 0.2);
        }
        .btn-outline:hover {
            background: rgba(230, 81, 0, 0.08);
            border-color: rgba(230, 81, 0, 0.3);
            color: #e65100;
        }

        .hero-search button {
            color: #fff;
        }

        /* --- Category Section --- */
        .category-section-header {
            border-bottom-color: rgba(0, 0, 0, 0.08);
        }
        .category-section-header .cs-name {
            color: #1d1d1f;
        }
        .category-section-header .cs-count {
            background: rgba(0, 0, 0, 0.06);
            color: rgba(0, 0, 0, 0.55);
        }

        /* --- Product Tags --- */
        .product-tag,
        .tag-pill {
            background: rgba(230, 81, 0, 0.06);
            color: #d44d00;
            border-color: rgba(230, 81, 0, 0.12);
        }
        .product-tag:hover,
        .tag-pill:hover {
            background: rgba(230, 81, 0, 0.10);
            color: #e65100;
            border-color: rgba(230, 81, 0, 0.25);
        }

        /* --- Ad Slot --- */
        .ad-slot {
            background: rgba(0, 0, 0, 0.03);
            border-color: rgba(0, 0, 0, 0.08);
            color: rgba(0, 0, 0, 0.3);
        }

        /* --- Footer --- */
        .site-footer {
            background: rgba(240, 240, 242, 0.9);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-top-color: rgba(0, 0, 0, 0.06);
            color: rgba(0, 0, 0, 0.5);
        }
        .site-footer .footer-links a {
            color: rgba(0, 0, 0, 0.5);
        }
        .site-footer .footer-links a:hover {
            color: #d44d00;
        }
        .site-footer .copyright {
            color: rgba(0, 0, 0, 0.3);
        }

        /* --- About Page --- */
        .about-content p {
            color: rgba(0, 0, 0, 0.65);
        }

        /* --- Alerts --- */
        .alert-success {
            background: rgba(46, 125, 50, 0.08);
            color: #2e7d32;
            border-color: rgba(46, 125, 50, 0.2);
        }
        .alert-error {
            background: rgba(198, 40, 40, 0.08);
            color: #c62828;
            border-color: rgba(198, 40, 40, 0.2);
        }

        /* --- Parallax Overlay --- */
        .parallax-section::before {
            background: rgba(200, 200, 200, 0.5);
        }

        /* --- Category Card default text --- */
        .category-card {
            color: #1d1d1f;
        }
        .category-card:hover {
                    color: #1d1d1f;
                }
            }

        /* ============================================
           Business Hours Badges
           ============================================ */
        .seo-description {
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 1.25rem 1.5rem;
            margin-bottom: 1.5rem;
        }
        .seo-description p {
            font-size: 0.9rem;
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.6);
            margin: 0;
        }

        @media (prefers-color-scheme: light) {
            .seo-description {
                background: rgba(255, 255, 255, 0.7);
                border-color: rgba(0, 0, 0, 0.08);
            }
            .seo-description p {
                color: rgba(0, 0, 0, 0.55);
            }
        }

        .hours-badge {
            display: inline-block;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 0.15rem 0.6rem;
            border-radius: 50px;
            letter-spacing: 0.3px;
            white-space: nowrap;
        }
        .hours-open {
            background: rgba(46, 125, 50, 0.15);
            color: #4caf50;
            border: 1px solid rgba(76, 175, 80, 0.3);
        }
        .hours-closing {
            background: rgba(230, 81, 0, 0.15);
            color: #ff8a50;
            border: 1px solid rgba(230, 81, 0, 0.3);
        }
        .hours-closed {
            background: rgba(198, 40, 40, 0.12);
            color: #ef5350;
            border: 1px solid rgba(198, 40, 40, 0.3);
        }
        .card-hours-row {
            margin-bottom: 0.4rem;
        }
        .hours-status-display {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }
        .hours-status-text {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.5);
        }

        @media (prefers-color-scheme: light) {
            .hours-closed {
                    background: rgba(198, 40, 40, 0.08);
                    color: #c62828;
                    border: 1px solid rgba(198, 40, 40, 0.2);
                }
            .hours-status-text {
                color: rgba(0, 0, 0, 0.4);
            }
        }