/* FairEntry public landing pages. Tokens: FairEntry blue anchors, orange = buttons only, cream sections. */
:root {
    --blue: #5A71B6;
    --blue-dark: #4A5F9E;
    --orange: #F16622;
    --orange-dark: #D9561A;
    --cream: #FAF7F4;
    --navy: #1F2A48;
    --ink: #1F2937;
    --muted: #5B6472;
    --line: #E6E1DB;
    --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.landing {
    margin: 0;
    font-family: Lato, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow {
    font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--blue); margin: 0 0 .75rem;
}
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.hide-mobile { display: none; }
.show-mobile { display: inline; }

/* Buttons: orange consistently means "click this" */
.btn {
    display: inline-block; background: var(--orange); color: #fff; font-weight: 700; font-size: .95rem;
    padding: .7rem 1.4rem; border-radius: 6px; text-decoration: none; border: 0; cursor: pointer;
    white-space: nowrap;
}
.btn:hover, .btn:focus { background: var(--orange-dark); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
/* Sign-in buttons keep their product colors: FairEntry blue, 4-H green (AA-contrast shades) */
.btn-blue { background: var(--blue); }
.btn-blue:hover, .btn-blue:focus { background: var(--blue-dark); }
.btn-green { background: #2E7D32; }
.btn-green:hover, .btn-green:focus { background: #256428; }

/* Utility bar + header */
.utility-bar { background: var(--navy); font-size: .78rem; }
.utility-bar .wrap { display: flex; justify-content: flex-end; gap: 1.5rem; padding-top: .45rem; padding-bottom: .45rem; }
.utility-bar a { color: #fff; text-decoration: none; opacity: .9; }
.utility-bar a:hover { opacity: 1; text-decoration: underline; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { margin-right: auto; line-height: 0; }
.brand img { width: 130px; height: auto; }
.main-nav { display: none; }
.main-nav a {
    color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: .35rem 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.is-active { border-bottom-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { background: none; border: 0; font-size: 1.4rem; color: var(--ink); padding: .25rem; cursor: pointer; }
body.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: .5rem 20px 1rem; z-index: 20;
}
body.nav-open .main-nav a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
body.nav-open .main-nav a.is-active { border-bottom-color: var(--orange); }

/* Sections. main is a flex column so mobile can lift the stats band directly under the hero, as in the mockup */
main { display: flex; flex-direction: column; }
/* .wrap's auto margins cancel flex-item stretching, shrinking these rows to fit-content
 * (collapses content with no intrinsic width, e.g. the intro video); force full width. */
main > .wrap { width: 100%; }
.hero { order: -2; }
.stats-band { order: -1; }
.section { padding: 3rem 0; }
.section-cream { background: var(--cream); }
.section-blue { background: var(--blue); color: #fff; }
.page-title { text-align: center; padding: 2.5rem 0 0; }
.page-title h1 { font-size: 2rem; }

/* Hero */
.hero { background: var(--cream); padding: 2.25rem 0 2.5rem; }
.hero .wrap { display: grid; gap: 1.75rem; align-items: center; }
.pill {
    display: inline-block; font-size: .72rem; font-weight: 700; color: var(--navy); background: #fff;
    border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .75rem; font-size: 2rem; }
.hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.hero-media { position: relative; }
.hero-media img { display: block; width: 100%; border-radius: 10px; object-fit: cover; aspect-ratio: 5 / 4; }
.stat-card {
    display: none; position: absolute; left: -1.25rem; bottom: -1.25rem; background: #fff; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(31, 42, 72, .12); padding: .9rem 1.25rem; gap: 1.25rem;
}
.stat-card > div + div { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.stat-card strong { display: block; font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.stat-card span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Feature highlights */
.features-grid { display: grid; gap: 1.5rem; margin: 2rem 0 1.5rem; }
.feature { display: grid; grid-template-columns: 2rem 1fr; column-gap: .75rem; }
.feature i { font-size: 1.35rem; color: var(--blue); grid-row: span 2; padding-top: .15rem; }
.feature h3 { margin: 0 0 .25rem; font-size: 1rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Stats band */
.stats-band { padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
/* five tiles: on the 2-col mobile grid, let the odd one out span the full row */
.stats-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stats-grid strong { display: block; font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.stats-grid span { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; font-weight: 700; }

/* Map */
.map-grid { display: grid; gap: 2rem; align-items: center; }
.map-grid p { color: var(--muted); }

/* Quotes */
.quotes-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.quote {
    background: #fff; border-radius: 8px; border-top: 3px solid var(--blue); padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(31, 42, 72, .05); display: flex; flex-direction: column;
}
.quote p { font-size: .95rem; color: var(--ink); flex: 1; }
.quote footer { font-size: .85rem; }
.quote footer strong { display: block; color: var(--navy); }
.quote footer span { color: var(--muted); }

/* Closing CTA band */
.cta-band {
    background: var(--navy); color: #fff; border-radius: 12px; padding: 2rem;
    display: grid; gap: 1.25rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; opacity: .85; max-width: 32rem; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; margin-bottom: .45rem; }
.footer-grid a:hover { color: var(--blue); text-decoration: underline; }
.footer-brand img { width: 150px; }
.footer-brand p { color: var(--muted); margin: .75rem 0 0; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--muted); font-size: .8rem; }

/* Sub-pages: features, pricing, video */
.feature-row { display: grid; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row img { border-radius: 8px; border: 4px solid #cad3eb; width: 100%; }
.feature-row h2 { font-size: 1.3rem; text-transform: uppercase; }
.feature-row p { color: var(--muted); }
.plans { display: grid; gap: 1.25rem; margin-top: 2rem; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; position: relative; }
.plan.is-popular { border: 2px solid var(--blue); }
.plan .badge {
    position: absolute; top: 0; right: 0; background: var(--blue); color: #fff; font-size: .65rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 0 6px 0 6px;
}
.plan h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .25rem; }
.plan .price { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.plan .limit { color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: .75rem; margin-bottom: .75rem; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.plan li { padding-left: 1.5rem; position: relative; margin-bottom: .4rem; }
.plan li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--blue); position: absolute; left: 0; }
.fine-print { color: var(--muted); font-size: .88rem; margin-top: 2rem; }
.fine-print p { margin-bottom: .35rem; }
.video-frame { position: relative; padding-top: 56.25%; margin-top: 2rem; border-radius: 8px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Find Your Fair + Contact Sales */
.fyf-grid, .contact-grid { display: grid; gap: 2rem; align-items: start; padding-top: 1.5rem; }
.search-card, .info-card { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.info-card h2 { font-size: 1.2rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.5rem; position: relative; margin-bottom: .4rem; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--blue); position: absolute; left: 0; }

/* Staff sign-in */
.signin-grid { display: grid; gap: 2rem; align-items: start; }
.signin-card { text-align: center; }
.signin-card img { margin-bottom: 1.25rem; }
.signin-card .field { text-align: left; }
.signin-note { margin: .9rem 0 0; font-size: .92rem; }
.error-message {
    background: #FDECEA; border: 1px solid #F1B8B4; color: #85242C; border-radius: 8px;
    padding: .8rem 1rem; margin-bottom: 1rem;
}
.field { margin-bottom: 1.1rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; padding: 0; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="password"], .field select {
    width: 100%; font: inherit; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 6px;
    background: #fff; color: var(--ink);
}
.field input[type="text"]:focus, .field input[type="password"]:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.radio-row label { display: flex; align-items: center; gap: .4rem; font-weight: 400; margin: 0; }
.map-link { display: inline-block; margin-top: .6rem; font-size: .92rem; font-weight: 700; }
.no-results { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; color: var(--muted); }
.fair-group { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 1.25rem; overflow: hidden; }
.fair-group-head {
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .7rem 1rem;
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.fair-group-head em { color: var(--muted); font-size: .85rem; }
.fair-group-head strong { color: var(--navy); }
.fair-group-head .count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.fair-link {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.fair-link:last-child { border-bottom: 0; }
.fair-link:hover, .fair-link:focus { background: var(--cream); }
.fair-link .fair-name { font-weight: 700; color: var(--blue); }
.fair-link:hover .fair-name { text-decoration: underline; }
.fair-link .fair-meta { display: block; color: var(--muted); font-size: .88rem; }
.fair-logo { width: 55px; flex: none; }
mark { background: #FFE08A; color: inherit; padding: 0 .1em; }

@media (min-width: 900px) {
    h1 { font-size: 2.75rem; }
    .hide-mobile { display: inline; }
    .show-mobile { display: none; }
    .brand img { width: 150px; }
    .main-nav { display: flex; gap: 1.75rem; position: static; margin: 0 auto; }
    .nav-toggle { display: none; }
    .site-header .wrap { gap: 2rem; }
    .brand { margin-right: 0; }
    .header-actions { margin-left: 0; }
    .hero, .stats-band { order: 0; }
    .section { padding: 4rem 0; }
    .hero { padding: 3.5rem 0 4rem; }
    .hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
    .hero h1 { font-size: 2.6rem; }
    .stat-card { display: flex; }
    .features-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .feature { grid-template-columns: 1fr; }
    .feature i { grid-row: auto; margin-bottom: .5rem; }
    .stats-grid { grid-template-columns: repeat(5, 1fr); }
    .stats-grid > div:last-child:nth-child(odd) { grid-column: auto; }
    .map-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
    .quotes-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-band { grid-template-columns: 1fr auto; padding: 2.5rem 3rem; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .plans { grid-template-columns: repeat(3, 1fr); }
    .fyf-grid, .contact-grid { grid-template-columns: 2fr 3fr; }
    .signin-grid { grid-template-columns: 1fr 1fr; }
}
