/* -----------------------------
   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/images/mbackground.jpg");
    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::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)
------------------------------ */
.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;
    -ms-overflow-style: none;
}

.side-slider-track::-webkit-scrollbar {
    display: none;
}

.side-slider-track img {
    height: 100%;
    width: auto;
    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; }
}

/* =========================
   ABOUT PAGE (uses directory styles)
   Restores side-by-side layout
========================= */

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.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;
}

.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;
}

/* Mobile: stack columns */
@media (max-width: 900px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   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,
.contact-form-grid select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    color: #6b7280;            /* same light gray as inputs */
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus,
.contact-form-grid select: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;
}

/* =========================
   HOME HERO CUSTOM
========================= */

.hero-title {
    font-size: clamp(56px, 6vw, 92px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.02;
    margin: 0 0 14px 0;
}

.hero-subtext {
    max-width: 900px;
    margin: 0 auto 18px auto;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
}

/* Green CTA button only */
.btn-quote {
    background: #16a34a; /* green */
}

.btn-quote:hover {
    background: #15803d;
}

/* =========================
   HOME: SCROLLER ONLY (no main image)
========================= */

.side-slider-only {
    width: 100%;
    height: 340px;          /* adjust if you want taller/shorter */
    padding: 12px;
}

@media (max-width: 700px) {
    .side-slider-only {
        height: 200px;
    }
}

/* =========================
   STAR RATING (Leave a Review)
========================= */
.rating-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    padding: 6px 2px;
}

.rating-label{
    font-weight: 800;
    color:#101828;
}

.star-rating{
    display:flex;
    flex-direction: row-reverse; /* makes hover fill left-to-right */
    gap:6px;
    font-size: 28px;
    line-height: 1;
}

.star-rating input{
    display:none;
}

.star-rating label{
    cursor:pointer;
    color:#d0d5dd;
    transition: transform 0.08s ease;
}

.star-rating label:hover{
    transform: translateY(-1px);
}

/* fill stars on hover and selection */
.star-rating label:hover,
.star-rating label:hover ~ label{
    color:#f59e0b;
}

.star-rating input:checked ~ label{
    color:#f59e0b;
}

/* =========================
   REVIEWS SLIDER (Home)
========================= */
.review-card{
    flex: 0 0 auto;
    width: 360px;
    max-width: 85vw;
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(16,24,40,0.06);
}

.review-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom: 10px;
}

.review-name{
    font-weight: 900;
    color:#101828;
}

.review-stars{
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-message{
    color:#475467;
    line-height: 1.5;
    font-size: 14px;
}

.review-type{
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #667085;
}
