/* -----------------------------
   BASE
------------------------------ */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #101828;
    background: #f6f7fb;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 18px;
}

/* =========================================
   BIG, CENTERED FEATURE SECTION HEADERS
========================================= */
.section-header-big {
    text-align: center;
    padding: 64px 0;
    margin-bottom: 0;
}

.section-header-big h2 {
    font-size: 3.75rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.1;
    color: #101828;
}

.section-header-big p {
    font-size: 1.35rem;
    max-width: 900px;
    margin: 14px auto;
    line-height: 1.5;
    color: #475467;
}

.muted {
    color: #667085;
    margin-top: 6px;
}

/* -----------------------------
   NAVBAR
------------------------------ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(10, 12, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
}

.nav-title {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    margin-left: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: #ffffff;
}

/* -----------------------------
   HERO
------------------------------ */
.hero {
    position: relative;
    min-height: 850px;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    background-image: url("/static/lure_pile.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, 92%);
    text-align: center;
    color: #ffffff;
    padding: 32px 10px;
}

.hero-content h1 {
    font-size: 52px;
    margin: 0 0 10px 0;
    line-height: 1.05;
    letter-spacing: -0.8px;
}

.hero-content p {
    margin: 0 0 20px 0;
    color: rgba(255,255,255,0.85);
    font-size: 18px;
}

.hero-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.hero-form input {
    width: 190px;
    padding: 12px 12px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.10);
    color: white;
    outline: none;
}

.hero-form input[name="address"] {
    width: 420px;       /* increase this if you want more */
}


.hero-form input::placeholder {
    color: rgba(255,255,255,0.65);
}

.hero-form input:focus {
    border-color: rgba(255,255,255,0.40);
    background: rgba(255,255,255,0.14);
}

.btn-primary {
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: #1f6feb;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1756be;
}

/* -----------------------------
   CARDS
------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #eaecf0;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(16, 24, 40, 0.10);
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 13px;
    color: #667085;
    margin-bottom: 10px;
}

.card-body {
    font-size: 14px;
    color: #344054;
    line-height: 1.4;
}

.card-cta {
    margin-top: 12px;
    font-weight: 800;
    color: #1f6feb;
}

/* =========================================
   FULL-BLEED FEATURED SECTION (EDGE-TO-EDGE)
========================================= */
.featured-fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 56px 24px;
    background: transparent;
}

.featured-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 12px;
}

/* =========================================
   BIG FEATURED CARD (THE BOX)
========================================= */
.featured-wide {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 56px;
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(16, 24, 40, 0.15);
}

/* -----------------------------
   FEATURED MEDIA ROW (HOMEPAGE)
   Left: big main image
   Right: slideshow strip
------------------------------ */
.media-row {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin: 14px 0;
}

.main-media {
    flex: 0 0 520px;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eaecf0;
    background: #f2f4f7;
}

.main-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #ffffff;
}

.side-slider {
    flex: 1 1 auto;
    height: 320px;
    border-radius: 18px;
    border: 1px solid #eaecf0;
    background: #ffffff;
    overflow: hidden;
    padding: 12px;
}

.side-slider-track {
    display: flex;
    gap: 10px;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 2px;
    scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge legacy */
}

.side-slider-track::-webkit-scrollbar {
  display: none;              /* Chrome/Safari */
}

.side-slider-track img {
    height: 100%;
    width: auto;              /* 🔥 removes side whitespace */
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    flex: 0 0 auto;
    border: none;
    background: transparent;
}


/* -----------------------------
   EMPTY STATE + FOOTER
------------------------------ */
.empty-state {
    margin-top: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
    color: #667085;
}

.footer {
    padding: 22px 18px;
    text-align: center;
    color: #667085;
}

/* -----------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-form input {
        width: 210px;
    }
}

@media (max-width: 700px) {
    .media-row {
        flex-direction: column;
    }

    .main-media {
        height: 220px;
    }

    .side-slider {
        flex: 0 0 auto;
        height: 170px;
    }

    .side-slider-track img {
        width: 220px;
    }
}

@media (max-width: 600px) {
    .nav-title {
        display: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-form input {
        width: 100%;
        max-width: 360px;
    }
}

/* =========================
   LURES DIRECTORY PAGE
========================= */

/* Filter bar */
.filter-bar {
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-form input,
.filter-form select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
}

.filters-applied {
    margin: 14px 0 26px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    background: #eef2ff;
    color: #1f6feb;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
}

.clear-filters {
    margin-left: auto;
    font-size: 14px;
}

/* 2-column directory grid */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Company card */
.directory-card {
    display: block;
    padding: 26px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    box-shadow: 0 10px 30px rgba(16,24,40,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.directory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(16,24,40,0.12);
}

.directory-card-header h3 {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
}

.directory-card-header .location {
    color: #667085;
    font-size: 0.95rem;
}

.directory-card-body {
    margin: 14px 0;
    color: #475467;
    line-height: 1.55;
}

.directory-card-footer {
    font-weight: 700;
    color: #1f6feb;
}

/* =========================
   FEATURED GRID (FULL WIDTH)
========================= */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.featured-grid .directory-card {
    padding: 36px;
    border-radius: 24px;
}

/* Featured companies */
.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.featured-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    white-space: nowrap;
}

.featured-card {
    border: 1px solid #dbeafe;
    box-shadow: 0 16px 48px rgba(16,24,40,0.14);
}

.featured-cta {
    margin-top: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: #475467;
}

.featured-cta a {
    font-weight: 700;
    color: #1f6feb;
}

.featured-cta a:hover {
    text-decoration: underline;
}

/* =========================
   DIRECTORY: HOMEPAGE-STYLE SCROLLER (ONLY SLIDES)
   Uses: .side-slider + .side-slider-track (same as home)
========================= */

.directory-side-slider {
    width: 100%;
    margin: 16px 0;
    overflow: hidden;
    padding: 0;      /* ✅ no inner whitespace */
}

/* Make the slider shorter/taller depending on card type */
.directory-card .directory-side-slider {
    height: 240px;
}

.featured-card .directory-side-slider {
    height: 380px;
}

/* IMPORTANT: allow scrolling (this is what makes autoscroll work) */
.directory-side-slider .side-slider-track {
    height: 100%;
    overflow-x: auto;         /* ✅ must be auto (NOT hidden) */
    overflow-y: hidden;
    scroll-behavior: smooth;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 2px;
}

.directory-card .directory-side-slider .side-slider-track img {
    height: 100%;
    width: auto;              /* ✅ shrink-wrap to image */
    max-width: 100%;          /* safety */
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    flex: 0 0 auto;
    background: transparent;
}

/* Mobile */
@media (max-width: 700px) {
    .directory-card .directory-side-slider {
        height: 220px;
    }

    .featured-card .directory-side-slider {
        height: 270px;
    }

    .directory-card .directory-side-slider .side-slider-track img {
        width: 280px;
    }

    .featured-card .directory-side-slider .side-slider-track img {
        width: 340px;
    }
}

/* =========================
   FIX: Featured card + slider staying inside container
========================= */

/* Ensure featured cards never overflow their grid/container */
.featured-grid .directory-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* prevents child content from pushing out */
}

/* Keep directory slider inside the card */
.featured-grid .directory-card .directory-side-slider {
    width: 100% !important;     /* override any min(1200px, 100%) */
    max-width: 100% !important;
    margin: 16px 0 !important;  /* no auto-centering that can create weird offsets */
    box-sizing: border-box;
}

/* Safety: track can’t force wider layout */
.featured-grid .directory-card .side-slider-track {
    max-width: 100%;
}

/* =========================
   CONTACT PAGE POLISH
========================= */

.contact-stack {
    margin-top: 18px;
}

.contact-card {
    max-width: 760px;
    margin: 0 auto;
}

.contact-link {
    color: #1f6feb;
    font-weight: 700;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.contact-form-grid input,
.contact-form-grid textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    font-size: 15px;
    outline: none;
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
    border-color: #1f6feb;
}

/* Flash messages */
.flash-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 10px auto;
    border: 1px solid;
    font-weight: 700;
}

.flash-success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.flash-error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}
