/*
 * Ad Landing V2 — scoped styles for /hire-trade-show-talent/
 * All rules scoped under .ad-landing-v2 to avoid bleed into other theme pages.
 * Body-level rules use the .ad-landing-v2-body class set in the template.
 */

.ad-landing-v2-body {
    margin: 0;
    font-family: 'Lato', Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Hide standard theme chrome on the landing template. */
.ad-landing-v2-body #header,
.ad-landing-v2-body #footer,
.ad-landing-v2-body #alert-bar,
.ad-landing-v2-body .site-header,
.ad-landing-v2-body .site-footer {
    display: none !important;
}

.ad-landing-v2 *,
.ad-landing-v2 *::before,
.ad-landing-v2 *::after {
    box-sizing: border-box;
}

.ad-landing-v2 {
    --teal: #67c6b4;
    --teal-dark: #5ab3a2;
    --teal-light: #e1f5ee;
    --slate: #303e48;
    --slate-light: #3a4a56;
    --slate-deeper: #262e35;
    --gray-100: #f8f9fa;
    --gray-200: #ecedf1;
    --gray-border: #e2e8f0;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --star: #ffc107;
    --font-heading: 'Raleway', Arial, sans-serif;
    --font-body: 'Lato', Arial, sans-serif;
}

.ad-landing-v2 h1,
.ad-landing-v2 h2,
.ad-landing-v2 h3,
.ad-landing-v2 h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 .5em;
}

/* Reset bottom margin only — leaving left/right untouched so per-element
 * `margin: 0 auto` rules below can actually center their blocks. The earlier
 * `margin: 0 0 1em` shorthand was higher-specificity than the per-element
 * rules and silently won, which is why the routing/hero subtitles read
 * left-justified despite text-align: center. */
.ad-landing-v2 p {
    margin-top: 0;
    margin-bottom: 1em;
}

.ad-landing-v2 a {
    color: var(--teal-dark);
}

.ad-landing-v2 img {
    max-width: 100%;
    height: auto;
    display: block;
}

.alv2-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.alv2-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}
.alv2-icon--sm { width: 18px; height: 18px; }
.alv2-icon--xs { width: 14px; height: 14px; }

/* ---- Topbar ---- */
.alv2-topbar {
    background: #fff;
    border-bottom: 1px solid var(--gray-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.alv2-topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.alv2-logo img {
    max-height: 44px;
    width: auto;
}
.alv2-topbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    min-height: 44px;
    padding: 0 8px;
}
.alv2-topbar__phone:hover { color: var(--teal-dark); }
.alv2-topbar__phone svg { color: var(--teal); }

/* ---- Hero ---- */
.alv2-hero {
    background: var(--slate);
    padding: 96px 0 88px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.alv2-hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .35;
    z-index: 0;
}
.alv2-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(48, 62, 72, .72) 0%, rgba(48, 62, 72, .92) 100%);
    z-index: 1;
}
.alv2-hero__content {
    position: relative;
    z-index: 2;
}
.alv2-hero h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    margin: 0 auto 20px;
    max-width: 820px;
    text-align: center;
}
.alv2-hero__accent { color: var(--teal); }
.alv2-hero__sub {
    color: #d5dade;
    font-size: 19px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

/* Hero CTAs — primary (Browse) + secondary outline (Estimate). Each
 * button uses data-route-link, so the existing JS handler activates the
 * matching routing card/panel and fires landing_path_selected. */
.alv2-hero__ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* ---- Trust bar ---- */
.alv2-trust {
    background: #fff;
    border-bottom: 1px solid var(--gray-border);
    padding: 22px 0;
}
.alv2-trust__items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.alv2-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}
.alv2-trust__check { color: var(--teal); }
.alv2-trust__star { color: var(--star); font-size: 16px; line-height: 1; }

/* ---- Routing ---- */
.alv2-routing {
    padding: 80px 0 72px;
    background: var(--gray-100);
    scroll-margin-top: 80px;
}
.alv2-routing h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--slate);
    text-align: center;
    margin-bottom: 12px;
}
.alv2-routing__sub {
    text-align: center;
    color: var(--text-medium);
    font-size: 17px;
    margin: 0 auto 44px;
    max-width: 560px;
}
.alv2-routing__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
}
.alv2-card {
    background: #fff;
    border: 2px solid var(--gray-border);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.alv2-card:hover,
.alv2-card:focus-visible {
    border-color: var(--teal);
    box-shadow: 0 4px 20px rgba(103, 198, 180, .15);
    transform: translateY(-2px);
    outline: none;
}
.alv2-card.is-active {
    border-color: var(--teal);
    background: var(--teal-light);
    box-shadow: 0 4px 20px rgba(103, 198, 180, .2);
}
.alv2-card__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--teal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
}
.alv2-card.is-active .alv2-card__check { opacity: 1; }
.alv2-card__icon {
    width: 52px;
    height: 52px;
    background: var(--teal-light);
    color: var(--teal-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.alv2-card__icon .alv2-icon { width: 26px; height: 26px; }
.alv2-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 8px;
}
.alv2-card p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.5;
}
.alv2-card__best-for {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
    padding-top: 12px;
    border-top: 1px solid var(--gray-border);
}

/* ---- Conditional panels ---- */
.alv2-panel {
    display: none;
    padding: 72px 0 80px;
    background: #fff;
    scroll-margin-top: 80px;
}
.alv2-panel.is-active {
    display: block;
    animation: alv2-fade-in .35s ease;
}
@keyframes alv2-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.alv2-panel h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--slate);
    text-align: center;
    margin-bottom: 12px;
}
.alv2-panel__sub {
    text-align: center;
    color: var(--text-medium);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 auto 48px;
    max-width: 600px;
}

/* ---- Browse panel ---- */
/* Search card is self-contained: heading, subtitle, input, helper text in
 * one cohesive dark box. Step cards live below as supporting context. */
.alv2-steps-head {
    text-align: center;
    margin: 56px 0 32px;
}
.alv2-steps-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--slate);
    margin: 0 0 6px;
}
.alv2-steps-subheading {
    font-size: 15px;
    color: var(--text-medium);
    margin: 0;
}
.alv2-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}
/* Step cards are informational, not interactive — no hover state. The earlier
 * hover-teal-border read as "this card is selected" when a cursor was nearby. */
.alv2-step-card {
    background: var(--slate-deeper);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
}
.alv2-step-card__icon {
    width: 56px;
    height: 56px;
    background: var(--teal-light);
    color: var(--teal-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.alv2-step-card__icon .alv2-icon { width: 28px; height: 28px; }
.alv2-step-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.alv2-step-card p {
    font-size: 15px;
    color: #a0aab4;
    line-height: 1.5;
    margin: 0;
}

/* ---- Browse search (self-contained card: heading + sub + input + hint) ---- */
.alv2-search {
    background: var(--slate);
    border-radius: 14px;
    padding: 56px 56px 48px;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
/* Bumped to .ad-landing-v2 specificity so it beats the global theme
 * h2 rules that were dragging color back to the body default (rendered
 * the white-on-dark heading effectively invisible). */
.ad-landing-v2 .alv2-search__heading {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.alv2-search__sub {
    color: #c5cdd4;
    font-size: 17px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 28px;
}
.alv2-search__row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.alv2-search__row input[type="text"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0 20px;
    font-size: 17px;
    font-family: var(--font-body);
    border: 2px solid var(--slate-light);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    outline: none;
    height: 56px;
    min-height: 56px;
}
.alv2-search__row input[type="text"]:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(103, 198, 180, .25);
}
.alv2-search__row .alv2-btn {
    height: 56px;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 10px;
    font-size: 17px;
}
.alv2-search__hint {
    color: #c5cdd4;
    font-size: 14px;
    margin: 18px 0 0;
}
.alv2-search__hint .alv2-link,
.alv2-link {
    color: var(--teal);
    text-decoration: underline;
    cursor: pointer;
}
.alv2-search__hint .alv2-link:hover { color: #8fdcc9; }

/* ---- Quote panel (single column; heading + intro + divider inside the card) ---- */
.alv2-quote {
    max-width: 720px;
    margin: 0 auto;
}
.alv2-quote__card {
    background: var(--gray-100);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 48px 44px 40px;
}
.alv2-quote__card h2 {
    text-align: center;
    margin: 0 0 14px;
}
.alv2-quote__intro {
    text-align: center;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 28px;
}
.alv2-quote__divider {
    border: 0;
    height: 1px;
    background: var(--gray-border);
    margin: 0 0 28px;
}

/* ---- How it works (always-visible overview, sits above routing) ---- */
.alv2-how {
    padding: 80px 0;
    background: #fff;
}
.alv2-how h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--slate);
    text-align: center;
    margin-bottom: 48px;
}
.alv2-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 940px;
    margin: 0 auto;
}
.alv2-how__step { text-align: center; }
.alv2-how__num {
    width: 52px;
    height: 52px;
    background: var(--teal);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.alv2-how__step h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 10px;
}
.alv2-how__step p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ---- Testimonials ---- */
.alv2-social { padding: 80px 0; background: var(--gray-100); border-top: 1px solid var(--gray-border); }
.alv2-social h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--slate);
    text-align: center;
    margin-bottom: 48px;
}
.alv2-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1020px;
    margin: 0 auto;
}
.alv2-testimonial {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 32px 28px;
}
.alv2-testimonial__stars {
    color: var(--star);
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.alv2-testimonial blockquote {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 16px;
    font-style: italic;
}
.alv2-testimonial__author {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate);
}
.alv2-testimonial__role {
    font-size: 12px;
    color: var(--text-medium);
}

/* ---- FAQ ---- */
.alv2-faq {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--gray-border);
}
.alv2-faq h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--slate);
    text-align: center;
    margin-bottom: 40px;
}
.alv2-faq__list {
    max-width: 760px;
    margin: 0 auto;
}
.alv2-faq__item {
    border-bottom: 1px solid var(--gray-border);
}
.alv2-faq__item:first-child {
    border-top: 1px solid var(--gray-border);
}
.alv2-faq__q {
    width: 100%;
    background: none;
    border: 0;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    text-align: left;
    min-height: 44px;
}
.alv2-faq__q svg {
    color: var(--teal);
    transition: transform .2s ease;
}
.alv2-faq__item.is-open .alv2-faq__q svg { transform: rotate(180deg); }
.alv2-faq__a {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
    padding: 0 0 18px;
    display: none;
}
.alv2-faq__item.is-open .alv2-faq__a { display: block; }

/* ---- Talent CTA (single bottom section, replaces the prior dual CTA bar) ---- */
.alv2-talentcta {
    background: var(--slate);
    padding: 88px 0 80px;
}
.alv2-talentcta__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.alv2-talentcta__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}
.alv2-talentcta h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 auto 20px;
    max-width: 720px;
}
.alv2-talentcta__lede {
    font-size: 17px;
    color: #c5cdd4;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 36px;
}
.alv2-talentcta__btn {
    min-width: 320px;
}
.alv2-talentcta__login {
    margin: 24px 0 0;
    font-size: 15px;
    color: #a0aab4;
}
.alv2-talentcta__login a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}
.alv2-talentcta__login a:hover { color: #fff; text-decoration: underline; }

/* ---- Buttons ---- */
.alv2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    transition: background-color .2s ease, color .2s ease;
}
/* Scope button color rules under .ad-landing-v2 so they beat the
 * generic `.ad-landing-v2 a { color: var(--teal-dark) }` anchor color
 * when a button is rendered as <a> (e.g. the Sign Up CTA in the talent
 * footer). Without this, the button's text + currentColor-stroked icon
 * inherited teal-dark and disappeared into the teal background. */
.ad-landing-v2 .alv2-btn--primary {
    background: #67c6b4;
    color: #fff;
}
.ad-landing-v2 .alv2-btn--primary:hover,
.ad-landing-v2 .alv2-btn--primary:focus-visible {
    background: #78d4c2;
    color: #fff;
    outline: none;
}

/* Outline variant for the hero secondary CTA (and any future use on a
 * dark background). White border + transparent fill at rest; fills with
 * white on hover so the affordance is unmistakable. */
.ad-landing-v2 .alv2-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .8);
}
.ad-landing-v2 .alv2-btn--outline:hover,
.ad-landing-v2 .alv2-btn--outline:focus-visible {
    background: #fff;
    color: var(--slate);
    border-color: #fff;
    outline: none;
}

/* Larger hero CTA sizing — taller, more horizontal padding, slightly
 * larger label. Matches the mockup proportions. */
.alv2-btn--hero {
    min-height: 60px;
    padding: 0 36px;
    font-size: 17px;
    border-radius: 10px;
    min-width: 220px;
}
.alv2-btn--hero .alv2-icon { width: 20px; height: 20px; }
.alv2-btn--cta { padding: 14px 24px; }

/* ---- Footer ---- */
.alv2-footer {
    background: var(--slate-deeper);
    padding: 24px 0;
    text-align: center;
    color: #6b7780;
}
.alv2-footer__copy {
    font-size: 13px;
    color: #6b7780;
    margin: 0;
}
.alv2-footer__copy a {
    color: #9aa3ab;
    text-decoration: none;
    margin: 0 6px;
}
.alv2-footer__copy a:hover { text-decoration: underline; }

/* ---- jQuery UI autocomplete tweaks (scoped) ---- */
.ad-landing-v2-body .ui-autocomplete {
    font-family: var(--font-body);
    font-size: 15px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
}
.ad-landing-v2-body .ui-autocomplete .ui-menu-item { padding: 4px 6px; }

/* ---- Gravity Form 1 inside quote panel ---- */
.alv2-quote__form .gform_wrapper { margin: 0; }
.alv2-quote__form .gform_wrapper input[type="text"],
.alv2-quote__form .gform_wrapper input[type="email"],
.alv2-quote__form .gform_wrapper input[type="tel"],
.alv2-quote__form .gform_wrapper select,
.alv2-quote__form .gform_wrapper textarea {
    min-height: 44px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .alv2-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .alv2-testimonials { grid-template-columns: 1fr; max-width: 520px; }
    .alv2-how__steps { grid-template-columns: 1fr; max-width: 520px; gap: 32px; }
}

@media (max-width: 768px) {
    .alv2-hero { padding: 64px 0 56px; }
    .alv2-hero h1 { font-size: 30px; }
    .alv2-hero__sub { font-size: 17px; }
    .alv2-trust { padding: 18px 0; }
    .alv2-trust__items { flex-direction: column; align-items: center; gap: 12px; }
    .alv2-how { padding: 56px 0; }
    .alv2-how h2 { font-size: 24px; margin-bottom: 32px; }
    .alv2-routing { padding: 56px 0; }
    .alv2-routing h2 { font-size: 24px; }
    .alv2-routing__cards { grid-template-columns: 1fr; max-width: 440px; }
    .alv2-panel { padding: 56px 0; }
    .alv2-panel h2 { font-size: 24px; }
    .alv2-search { padding: 40px 32px; }
    .alv2-search__heading { font-size: 26px; }
    .alv2-search__sub { font-size: 16px; }
    .alv2-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .alv2-step-card { padding: 28px 22px; }
    .alv2-social, .alv2-faq { padding: 56px 0; }
    .alv2-social h2, .alv2-faq h2 { font-size: 24px; }
    .alv2-talentcta { padding: 64px 0 56px; }
    .alv2-talentcta h2 { font-size: 26px; }
    .alv2-talentcta__lede { font-size: 16px; }
}

@media (max-width: 520px) {
    .alv2-steps-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; gap: 18px; }
    .alv2-steps-heading { margin: 48px 0 24px; }
    .alv2-search { padding: 28px 20px; }
    .alv2-search h3 { font-size: 20px; }
    .alv2-search__row input[type="text"],
    .alv2-search__row .alv2-btn { width: 100%; flex: 1 1 100%; }
    .alv2-quote__card { padding: 32px 22px; }
    .alv2-topbar__phone span { display: none; }
    .alv2-hero__ctas { flex-direction: column; gap: 12px; max-width: 320px; margin-left: auto; margin-right: auto; }
    .alv2-hero__ctas .alv2-btn--hero { width: 100%; min-width: 0; }
    .alv2-talentcta__btn { min-width: 0; width: 100%; max-width: 360px; }
    .alv2-talentcta h2 { font-size: 24px; }
}
