/* =========================================================
   FLORIDA FOOD WATCH - HOMEPAGE
   ========================================================= */

.ffw-home,
.ffw-home * {
    box-sizing: border-box;
}

.ffw-home {
    --red: #d71920;
    --red-dark: #b91319;
    --blue: #0645d8;
    --green: #138a46;
    --orange: #db6d14;
    --yellow: #e5a900;
    --text: #111111;
    --muted: #60656f;
    --border: #dedede;
    --light: #f7f7f7;

    width: 100%;
    color: var(--text);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.ffw-home a {
    color: inherit;
    text-decoration: none;
}

.ffw-container {
    width: min(1440px, calc(100% - 50px));
    margin: 0 auto;
}

/* ================= HEADER ================= */

.ffw-header {
    background: #fff;
    border-bottom: 1px solid #ededed;
}

.ffw-header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.ffw-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 430px;
}

.ffw-logo-mark {
    width: 74px;
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffw-logo-state {
    width: 61px;
    height: 53px;
    background: var(--red);
    border-radius: 34% 55% 40% 35%;
    transform: rotate(-5deg);
    position: absolute;
}

.ffw-logo-circle {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--red);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ffw-brand-text h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -1.2px;
    font-weight: 800;
}

.ffw-brand-text p {
    margin: 7px 0 0;
    color: #5b5b5b;
    font-size: 13px;
}

.ffw-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-left: auto;
    white-space: nowrap;
}

.ffw-nav a {
    padding: 31px 0 25px;
    font-size: 15px;
    color: #202020;
    border-bottom: 2px solid transparent;
}

.ffw-nav a:hover,
.ffw-nav a.active {
    color: var(--red);
    border-color: var(--red);
}

.ffw-search {
    width: 260px;
    position: relative;
}

.ffw-search input {
    width: 100%;
    height: 45px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    padding: 0 42px 0 15px;
    background: #fff;
    outline: none;
    font-size: 13px;
}

.ffw-search input:focus {
    border-color: #999;
}

.ffw-search button {
    position: absolute;
    right: 5px;
    top: 4px;
    width: 38px;
    height: 37px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

/* ================= MAIN ================= */

.ffw-main {
    padding: 24px 0 18px;
}

/* ================= HERO ================= */

.ffw-hero {
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 265px;
    margin-bottom: 12px;
}

.ffw-hero-image {
    min-height: 265px;
    background:
        linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)),
        url("https://lvn.ual.mybluehost.me/wp-content/uploads/2026/08/ext-5.jpeg")
        center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

/* CSS-generated emergency closure sign */
.ffw-closed-sign {
    width: 210px;
    min-height: 210px;
    padding: 19px 16px;
    text-align: center;
    background: rgba(205, 35, 42, .94);
    color: white;
    box-shadow: 0 8px 22px rgba(0,0,0,.26);
    transform: rotate(-1deg);
    border: 1px solid rgba(255,255,255,.18);
}

.ffw-closed-sign .small {
    font-size: 14px;
    font-weight: 700;
}

.ffw-closed-sign .closed {
    display: block;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    margin: 8px 0 14px;
}

.ffw-closed-sign .agency {
    font-size: 10px;
    line-height: 1.45;
    font-weight: 700;
}

.ffw-closed-sign .remove {
    font-size: 9px;
    margin-top: 18px;
    font-weight: 700;
}

.ffw-hero-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ffw-alert-label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    padding: 6px 12px;
    background: var(--red);
    color: white;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 13px;
}

.ffw-hero h2 {
    margin: 0;
    max-width: 750px;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.7px;
    font-weight: 800;
}

.ffw-hero-description {
    max-width: 700px;
    margin: 13px 0;
    color: #454545;
    font-size: 15px;
}

.ffw-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

.ffw-tag-red {
    border: 1px solid #ffaaa8;
    background: #fff6f5;
    color: var(--red);
    padding: 3px 8px;
    border-radius: 20px;
}

.ffw-red-button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    padding: 9px 17px;
    border-radius: 5px;
    color: white !important;
    background: var(--red);
    font-size: 15px;
    font-weight: 700;
}

.ffw-red-button:hover {
    background: var(--red-dark);
}

/* ================= SECTIONS ================= */

.ffw-section {
    margin-top: 12px;
}

.ffw-section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 1px 8px;
}

.ffw-section-title-row h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.ffw-view-all {
    color: var(--blue) !important;
    font-size: 13px;
    font-weight: 600;
}

/* Inspection Cards */

.ffw-inspection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ffw-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.ffw-inspection-card {
    min-height: 166px;
    padding: 15px 17px;
}

.ffw-inspection-card h3 {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 800;
}

.ffw-card-meta {
    color: #686868;
    font-size: 12px;
    line-height: 1.7;
}

.ffw-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ffw-score {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.ffw-score-fail {
    background: #fff0f0;
    border: 1px solid #ff9b9b;
    color: #d31118;
}

.ffw-score-orange {
    background: #fff4e8;
    border: 1px solid #efbf88;
    color: #bd5d0b;
}

.ffw-score-yellow {
    background: #fff8d7;
    border: 1px solid #efd267;
    color: #9d7300;
}

.ffw-score-green {
    background: #eaf8ef;
    border: 1px solid #93d3a7;
    color: #17783d;
}

.ffw-card-description {
    margin: 8px 0 9px;
    font-size: 13px;
    color: #383838;
    min-height: 56px;
}

.ffw-card-link {
    color: var(--blue) !important;
    font-size: 13px;
    font-weight: 700;
}

/* ================= LOWER GRID ================= */

.ffw-lower-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1.05fr .95fr 1.05fr;
    gap: 18px;
    align-items: stretch;
}

.ffw-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 15px;
}

.ffw-panel-title {
    margin: 0 0 13px;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ffw-green-icon {
    background: #2da359;
    color: #fff;
    border-radius: 50%;
    width: 21px;
    height: 21px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}

.ffw-red-icon {
    color: var(--red);
}

/* Reopened */

.ffw-reopened-item {
    display: grid;
    grid-template-columns: 112px 1fr 20px;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #e6e6e6;
}

.ffw-reopened-item:last-of-type {
    border-bottom: 0;
}

.ffw-reopened-item img {
    width: 112px;
    height: 61px;
    object-fit: cover;
    border-radius: 3px;
}

.ffw-reopened-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.ffw-reopened-item p {
    margin: 1px 0;
    color: #555;
    font-size: 11px;
}

.ffw-reopened-item .passed {
    color: var(--green);
    font-weight: 700;
}

/* Center column */

.ffw-center-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ffw-counties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
}

.ffw-county {
    display: block;
    padding: 5px 10px;
    text-align: center;
    border: 1px solid var(--blue);
    color: var(--blue) !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.ffw-county:hover {
    background: #f1f5ff;
}

.ffw-center-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: var(--blue) !important;
    font-size: 13px;
    font-weight: 700;
}

/* Newsletter */

.ffw-newsletter {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
}

.ffw-envelope {
    font-size: 37px;
    line-height: 1;
    color: var(--red);
}

.ffw-newsletter h3 {
    margin: 0 0 3px;
    font-size: 17px;
}

.ffw-newsletter p {
    margin: 0 0 10px;
    color: #555;
    font-size: 12px;
}

.ffw-newsletter-form {
    display: flex;
    gap: 7px;
}

.ffw-newsletter-form input {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    padding: 0 10px;
}

.ffw-newsletter-form button {
    border: none;
    border-radius: 4px;
    padding: 0 17px;
    color: white;
    background: var(--red);
    font-weight: 700;
    cursor: pointer;
}

.ffw-privacy {
    display: block;
    margin-top: 7px;
    color: #858585;
    font-size: 10px;
}

/* Guides */

.ffw-guide-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: var(--blue) !important;
    padding: 15px 0;
    border-bottom: 1px solid #e4e4e4;
    font-size: 13px;
}

.ffw-guide-link:last-of-type {
    border-bottom: 0;
}

/* ================= FOOTER ================= */

.ffw-footer {
    border-top: 1px solid #e1e1e1;
    margin-top: 22px;
    background: #fff;
}

.ffw-footer-inner {
    min-height: 75px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.ffw-copyright {
    font-size: 12px;
}

.ffw-footer-links {
    display: flex;
    justify-content: center;
    gap: 45px;
    font-size: 12px;
}

.ffw-socials {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.ffw-social {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #171717;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {

    .ffw-header-inner {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .ffw-brand {
        min-width: 0;
        flex: 1;
    }

    .ffw-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .ffw-nav a {
        padding: 10px 0;
    }

    .ffw-search {
        width: 240px;
    }

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

@media (max-width: 900px) {

    .ffw-container {
        width: min(100% - 30px, 1440px);
    }

    .ffw-hero {
        grid-template-columns: 1fr;
    }

    .ffw-hero-image {
        min-height: 310px;
    }

    .ffw-lower-grid {
        grid-template-columns: 1fr;
    }

    .ffw-brand-text h1 {
        font-size: 30px;
    }
}

@media (max-width: 650px) {

    .ffw-container {
        width: min(100% - 22px, 1440px);
    }

    .ffw-header-inner {
        gap: 13px;
    }

    .ffw-brand {
        width: 100%;
    }

    .ffw-logo-mark {
        width: 52px;
        height: 50px;
    }

    .ffw-logo-state {
        width: 48px;
        height: 43px;
    }

    .ffw-logo-circle {
        width: 31px;
        height: 31px;
        font-size: 15px;
    }

    .ffw-brand-text h1 {
        font-size: 26px;
    }

    .ffw-brand-text p {
        font-size: 11px;
    }

    .ffw-search {
        width: 100%;
    }

    .ffw-nav {
        gap: 20px;
    }

    .ffw-hero-content {
        padding: 22px;
    }

    .ffw-hero h2 {
        font-size: 27px;
    }

    .ffw-inspection-grid {
        grid-template-columns: 1fr;
    }

    .ffw-reopened-item {
        grid-template-columns: 90px 1fr 16px;
    }

    .ffw-reopened-item img {
        width: 90px;
        height: 58px;
    }

    .ffw-counties {
        grid-template-columns: 1fr;
    }

    .ffw-newsletter {
        grid-template-columns: 1fr;
    }

    .ffw-newsletter-form {
        flex-direction: column;
    }

    .ffw-newsletter-form button {
        min-height: 38px;
    }

    .ffw-footer-inner {
        grid-template-columns: 1fr;
        padding: 22px 0;
        text-align: center;
    }

    .ffw-footer-links,
    .ffw-socials {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* ================= LIVE DATA HOMEPAGE OVERRIDES ================= */
.ffw-home-search-results { margin-bottom: 18px; }
.ffw-home-search-results .ffw-card-description { min-height: 0; }
.ffw-reopened-item-no-image { grid-template-columns: 42px 1fr 20px; }
.ffw-reopened-status {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf8ef;
    border: 1px solid #93d3a7;
    color: #17783d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.ffw-home .ffw-search-results-count { margin-bottom: 10px; }
@media (max-width: 650px) {
    .ffw-reopened-item-no-image { grid-template-columns: 38px 1fr 16px; }
}

/* ================= V2.5 HEADER / SEARCH LAYOUT ================= */
.ffw-home .ffw-header-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 30px;
    row-gap: 4px;
    align-items: center;
    padding: 14px 0 10px;
}

.ffw-home .ffw-brand {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
}

.ffw-home .ffw-nav {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 18px;
}

.ffw-home .ffw-nav a {
    padding: 17px 0 9px;
}

.ffw-header-search-row {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    padding: 0 0 8px;
}

.ffw-home .ffw-header-search-row .ffw-search,
.ffw-home .ffw-search-wide {
    width: 100%;
}

@media (max-width: 1200px) {
    .ffw-home .ffw-header-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 8px;
        padding: 14px 0;
    }

    .ffw-home .ffw-brand {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .ffw-home .ffw-nav {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 24px;
    }

    .ffw-header-search-row {
        grid-column: 1;
        grid-row: 3;
        padding-bottom: 2px;
    }
}


/* ================= V2.6 GLOBAL HEADER COMPATIBILITY =================
   Keeps the search row full-width even when older custom homepage CSS or
   the legacy Florida Food Watch Site Pages plugin is still active.
   ===================================================================== */
body .ffw-home .ffw-header-inner {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(300px, 430px) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 30px !important;
    row-gap: 4px !important;
    align-items: center !important;
    padding: 14px 0 10px !important;
}
body .ffw-home .ffw-brand {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    min-width: 0 !important;
}
body .ffw-home .ffw-nav {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: space-between !important;
    gap: 18px !important;
}
body .ffw-home .ffw-header-search-row {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    padding: 0 0 8px !important;
}
body .ffw-home .ffw-header-search-row .ffw-search,
body .ffw-home .ffw-search-wide {
    width: 100% !important;
    max-width: none !important;
}

/* Legacy Site Pages chrome: Food Safety, About, Contact, Advertise,
   Privacy Policy and Terms. */
body .ffws .ffws-headin {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(300px, 410px) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 28px !important;
    row-gap: 4px !important;
    align-items: center !important;
    padding: 14px 0 10px !important;
}
body .ffws .ffws-brand {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    min-width: 0 !important;
}
body .ffws .ffws-nav {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: space-between !important;
    gap: 18px !important;
}
body .ffws .ffws-nav a {
    padding: 17px 0 9px !important;
}
body .ffws form.ffws-search {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
}

@media (max-width: 1200px) {
    body .ffw-home .ffw-header-inner,
    body .ffws .ffws-headin {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        row-gap: 8px !important;
        padding: 14px 0 !important;
    }
    body .ffw-home .ffw-brand,
    body .ffws .ffws-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }
    body .ffw-home .ffw-nav,
    body .ffws .ffws-nav {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        gap: 24px !important;
    }
    body .ffw-home .ffw-header-search-row,
    body .ffws form.ffws-search {
        grid-column: 1 !important;
        grid-row: 3 !important;
        width: 100% !important;
        padding-bottom: 2px !important;
    }
}
