/*
 * Shared styles for shipping route and city pages.
 * Loaded by page-shipping-route.php and page-shipping-city.php via functions.php.
 * Page-specific overrides and hero/FAQ backgrounds live in each template's <style> block.
 */

/* Hero v2 — background colour set per-template */
.stm-hero-v2 {
    display: flex;
    align-items: center;
    min-height: 280px;
    overflow: hidden;
    margin-top: -36px;
    font-family: 'Open Sans', sans-serif;
}
.stm-hero-v2__left {
    flex: 0 0 44%;
    padding: 70px 60px 70px clamp(40px, 7vw, 100px);
}
.stm-hero-v2__title {
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.2 !important;
    margin: 0 0 14px !important;
    letter-spacing: -0.01em !important;
    font-family: 'Open Sans', sans-serif !important;
    text-transform: none !important;
}
.stm-hero-v2__subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 340px;
    letter-spacing: normal;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-hero-v2__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.stm-hero-v2__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: normal;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-hero-v2__sep {
    color: rgba(255,255,255,0.35);
    font-size: 16px;
    line-height: 1;
}
.stm-hero-v2__map {
    flex: 1;
    overflow: hidden;
    align-self: stretch;
}
.stm-hero-v2__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
@media (max-width: 900px) {
    .stm-hero-v2 { flex-direction: column; }
    .stm-hero-v2__left { flex: none; width: 100%; padding: 40px 24px 32px; }
    .stm-hero-v2__title { font-size: 28px; }
    .stm-hero-v2__map { width: 100%; max-height: 220px; }
    .stm-hero-v2__map img { width: 100%; height: 220px; object-fit: cover; object-position: center; max-width: none; }
}

/* Why Choose v2 */
.stm-why-v2 {
    background: #fff;
    padding: 80px 0 90px;
    font-family: 'Open Sans', sans-serif;
}
.stm-why-v2__label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #27aae1;
    font-family: 'Open Sans', sans-serif !important;
    margin: 0 0 12px;
}
.stm-why-v2__heading {
    text-align: center !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.25 !important;
    margin: 0 auto 14px !important;
    max-width: 640px !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-why-v2__sub {
    text-align: center !important;
    font-size: 15px !important;
    color: #777 !important;
    margin: 0 0 56px !important;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-why-v2__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.stm-why-v2__card {
    display: block;
    background: #f5f7fb;
    border-radius: 10px;
    padding: 32px 28px 28px;
    text-decoration: none;
    color: inherit;
    transition: background .15s, box-shadow .15s;
}
.stm-why-v2__card:hover {
    background: #eaf1fb;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    color: inherit;
}
.stm-why-v2__card svg {
    color: #27aae1;
    display: block;
    margin-bottom: 18px;
}
.stm-why-v2__card h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 10px !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-why-v2__line {
    width: 32px;
    height: 2px;
    background: #27aae1;
    margin-bottom: 12px;
}
.stm-why-v2__card p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    font-family: 'Open Sans', sans-serif !important;
    margin: 0;
}
@media (max-width: 900px) {
    .stm-why-v2__grid { grid-template-columns: repeat(2, 1fr); }
    .stm-why-v2__heading { font-size: 26px !important; }
}
@media (max-width: 560px) {
    .stm-why-v2 { padding: 56px 0 64px; }
    .stm-why-v2__grid { grid-template-columns: 1fr; }
    .stm-why-v2__heading { font-size: 22px !important; }
    .stm-why-v2__sub { margin-bottom: 36px !important; }
}

/* Costs & Timelines v2 */
.stm-costs-v2 {
    background: #fff;
    padding: 80px 0 90px;
    font-family: 'Open Sans', sans-serif;
}
.stm-costs-v2__top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 52px;
}
.stm-costs-v2__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #27aae1;
    margin: 0 0 12px;
}
.stm-costs-v2__heading {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-costs-v2__body {
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
    text-align: left !important;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-costs-v2__top-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}
.stm-costs-v2__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #34CCFF;
    border-radius: 10px;
    overflow: hidden;
}
.stm-costs-v2__card {
    padding: 44px 32px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    border-top: none;
    border-bottom: none;
    border-left: none;
    background: transparent;
}
.stm-costs-v2__card:nth-child(3n) { border-right: none; }
.stm-costs-v2__card:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,0.2); }
.stm-costs-v2__card-icon {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.stm-costs-v2__card h3 {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 14px !important;
    line-height: 1.3 !important;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-costs-v2__card p {
    font-size: 13.5px !important;
    color: rgba(255,255,255,0.88) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    text-align: center !important;
    font-family: 'Open Sans', sans-serif !important;
}
@media (max-width: 1024px) {
    .stm-costs-v2__top { grid-template-columns: 1fr; gap: 32px; }
    .stm-costs-v2__grid { grid-template-columns: repeat(2, 1fr); }
    .stm-costs-v2__card:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.2); }
    .stm-costs-v2__card:nth-child(2n) { border-right: none; }
    .stm-costs-v2__card:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.2); }
}
@media (max-width: 768px) {
    .stm-costs-v2__heading { font-size: 26px !important; }
}
@media (max-width: 560px) {
    .stm-costs-v2 { padding: 56px 0 64px; }
    .stm-costs-v2__grid { grid-template-columns: 1fr; }
}

/* CTA Banner */
.stm-cta-banner {
    background: linear-gradient(to right, #d4e5f7, #e6f0fc);
    padding: 48px 0;
    font-family: 'Open Sans', sans-serif;
}
.stm-cta-banner__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.stm-cta-banner__heading {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #0d1a2e !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    flex: 0 0 260px;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-cta-banner__divider {
    width: 1px;
    height: 56px;
    background: #aabfd8;
    flex-shrink: 0;
}
.stm-cta-banner__text {
    flex: 1;
    font-size: 14px;
    color: #556;
    line-height: 1.65;
    margin: 0;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-cta-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #27aae1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
    font-family: 'Open Sans', sans-serif !important;
}
.stm-cta-banner__btn:hover { background: #1a90c5; color: #fff; }
@media (max-width: 768px) {
    .stm-cta-banner__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .stm-cta-banner__divider { display: none; }
    .stm-cta-banner__heading { font-size: 24px !important; flex: none; }
}

/* FAQ — background colour set per-template */
.automoves-faq { background: #fff; padding: 110px 24px 128px; box-sizing: border-box; font-family: 'Open Sans', sans-serif; }
.automoves-faq * { box-sizing: border-box; }
.automoves-faq__wrap { max-width: 1000px; margin: 0 auto; }
.automoves-faq__head { text-align: center; margin: 0 0 58px; }
.automoves-faq h2 { margin: 0 !important; color: #202638 !important; font-size: 31px !important; line-height: 1.16 !important; font-weight: 800 !important; letter-spacing: -0.01em !important; text-transform: none !important; font-family: 'Open Sans', sans-serif !important; }
.automoves-faq h2 span { display: block; color: #27aae1; }
.automoves-faq__list { display: grid; gap: 22px; }
.automoves-faq__item { background: #fff; border: 1px solid #dfe5ec; border-radius: 16px; box-shadow: 0 3px 12px rgba(25,42,70,.035); overflow: hidden; }
.automoves-faq__question { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 22px; border: 0; background: transparent; color: #111; font-family: 'Open Sans', sans-serif; font-size: 17px; line-height: 1.35; font-weight: 800; text-align: left; cursor: pointer; }
.automoves-faq__plus { width: 18px; height: 18px; border: 1.5px solid #111; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; }
.automoves-faq__plus:before, .automoves-faq__plus:after { content: ""; position: absolute; background: #111; border-radius: 1px; }
.automoves-faq__plus:before { width: 9px; height: 1px; }
.automoves-faq__plus:after { width: 1px; height: 9px; }
.automoves-faq__answer { display: none; padding: 0 22px 22px; color: #637184; font-size: 14px; line-height: 1.7; font-weight: 500; }
.automoves-faq__item:hover { border-color: #c8d5e2; box-shadow: 0 8px 20px rgba(25,42,70,.07); }
.automoves-faq__item[open] .automoves-faq__answer { display: block; }
.automoves-faq__item[open] .automoves-faq__plus:after { display: none; }
.automoves-faq details summary { list-style: none; }
.automoves-faq details summary::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
    .automoves-faq { padding: 76px 18px 86px; }
    .automoves-faq__head { margin-bottom: 40px; }
    .automoves-faq h2 { font-size: 28px !important; }
    .automoves-faq__list { gap: 16px; }
    .automoves-faq__question { min-height: 66px; font-size: 15px; padding: 20px 18px; }
    .automoves-faq__answer { padding: 0 18px 20px; font-size: 13px; }
}
@media (max-width: 480px) {
    .automoves-faq { padding: 58px 14px 68px; }
    .automoves-faq h2 { font-size: 25px !important; }
    .automoves-faq__question { font-size: 14px; }
    .automoves-faq__plus { width: 17px; height: 17px; }
}
