/* ===========================================
   365Post clone — uses real WIX assets
   =========================================== */

:root {
    --red: #d62828;
    --red-dark: #b71f1f;
    --ink: #1a1a1a;
    --ink-soft: #333;
    --muted: #6b6b6b;
    --line: #e5e5e5;
    --bg: #ffffff;
    --nav-bg: #ededed;
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', 'Noto Sans TC', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- FIXED warehouse background ---------- */
/* Two stacked layers: the warehouse photo on top, then a strong red mask
   underneath that shows through (matches the live 365-post.com tint). */
.bg-warehouse {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(214, 40, 40, 0.78), rgba(214, 40, 40, 0.78)),
        url('assets/bg/warehouse.jpg') center / cover no-repeat;
    background-blend-mode: normal, normal;
    z-index: -2;
}

/* ---------- Topbar ---------- */
/* Top: brand+nav on first row, contact strip on second row */
.topbar {
    background: #fff;
    padding: 22px 0 0;
    position: relative;
}

.topbar-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    padding-bottom: 0;
}

.brand-block { padding-top: 2px; }

.brand-logo {
    display: block;
    width: 203px;
    height: 83px;
    object-fit: contain;
    object-position: left center;
}

.tagline {
    margin-top: 10px;
    font-size: 14px;
    color: var(--red);
}

.tagline strong { font-weight: 700; }

.tagline-cn {
    margin-top: 6px;
    color: var(--ink);
    letter-spacing: 2px;
    font-size: 13.5px;
}

.tagline-listed {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--muted);
}

/* Main nav */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    background: var(--nav-bg);
    /* overflow: visible — don't clip the dropdown panel.
       Visual rounding of the nav background comes from border-radius alone. */
    overflow: visible;
    align-self: start;
    justify-content: flex-end;
    border-radius: 2px;
}

.nav-link {
    padding: 14px 18px;
    font-size: 13px;
    color: #777;
    border-right: 1px solid #e0e0e0;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.nav-link:last-child { border-right: 0; }

.nav-link:hover { background: #e5e5e5; color: var(--red); }

.nav-link.active {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
}

/* Contact strip (separate row below nav) */
.contact-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;  /* left + right halves pushed apart */
    gap: 18px;
    padding: 14px 0 14px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 36px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-soft);
    position: relative;
}

.contact-pill:hover { color: var(--red); }

.contact-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.cart-pill {
    position: relative;
}

.cart-icon {
    position: relative;
    width: 30px;
    height: 30px;
    background: var(--red);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 4px;
}

.cart-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.contact-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--ink);
}

.contact-text strong { font-weight: 700; }

.login-text {
    color: var(--red);
    font-weight: 400;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
}

.lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
}

.lang.active { color: var(--red); }

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 1px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

.hero-subtitle {
    margin-top: 10px;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 500;
    letter-spacing: 3px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

/* ---------- Services (red semi-transparent over warehouse) ---------- */
.services {
    background: rgba(214, 40, 40, 0.78);
    color: #fff;
    padding: 60px 0 70px;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.service {
    padding: 0 36px;
    border-right: 1px solid rgba(255,255,255,0.55);
}

.service:last-child { border-right: 0; }

.service h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.2px;
}

.service p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #fff;
}

/* ---------- Supported (white semi-transparent overlay) ---------- */
.supported {
    padding: 0;
    position: relative;
}

.supported-inner {
    background: rgba(255, 255, 255, 0.86);
    text-align: center;
    padding: 50px 24px 40px;
}

.supported-text {
    font-size: 17px;
    color: var(--ink);
    line-height: 1.55;
    margin-bottom: 30px;
}

.janco-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.janco-link {
    display: inline-block;
    line-height: 0;
}

.janco-logo {
    height: 90px;
    width: auto;
    max-width: 380px;
    object-fit: contain;
}

/* ---------- Contact band (red semi-transparent again) ---------- */
.contact-band-section {
    background: rgba(214, 40, 40, 0.78);
    padding: 44px 0 48px;
    color: #fff;
}

.contact-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.contact-cell {
    padding: 0 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.4);
}

.contact-cell:last-child { border-right: 0; }

.cell-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    margin-bottom: 16px;
    color: #fff;
}

.cell-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    color: #fff;
    flex-shrink: 0;
}

.contact-cell p {
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
    background: rgba(15, 15, 22, 0.72);
    color: #fff;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.3fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-brand {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-tag {
    font-size: 13px;
    color: #fff;
    line-height: 1.55;
    margin-bottom: 4px;
}

.footer-tag-red strong { color: #ffb84d; font-weight: 700; }

.footer-line {
    margin-top: 14px;
    font-size: 13px;
    color: #fff;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    font-size: 13px;
    color: #fff;
    padding: 5px 0;
}

.footer-col p {
    font-size: 13px;
    color: #fff;
    line-height: 1.65;
}

.copyright {
    text-align: center;
    padding: 22px 24px;
    font-size: 13px;
    color: #fff;
    background: #000;
}

/* Floating WhatsApp button */
.chat-bubble {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}

.chat-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.chat-icon {
    width: 30px;
    height: 30px;
    fill: #fff;
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .topbar-inner { grid-template-columns: 1fr; }
    .main-nav { justify-content: flex-start; }
    .services-grid { grid-template-columns: 1fr; gap: 32px; }
    .service { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.3); padding: 0 0 32px; }
    .service:last-child { border-bottom: 0; padding-bottom: 0; }
    .contact-band { grid-template-columns: 1fr; gap: 28px; }
    .contact-cell { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 24px; }
    .contact-cell:last-child { border-bottom: 0; padding-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .main-nav { flex-wrap: wrap; }
    .nav-link { flex: 1 1 33%; text-align: center; font-size: 12px; padding: 10px 6px; }
    .hero { padding: 60px 0; }
    .contact-strip { gap: 14px 22px; }
    .brand { font-size: 32px; }
}

/* ============================================================
   Inner-page styles (page-hero, content-section, etc.)
   These apply on every non-home page; the home page uses its
   own hero/services/contact-band blocks above.
   ============================================================ */

/* Page-hero: large white banner at top of each subpage */
.page-hero {
    background: rgba(255, 255, 255, 0.92);
    padding: 60px 0 50px;
    text-align: center;
    color: var(--ink);
}

.page-hero h1 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ink);
}

.page-main {
    min-height: 50vh;
}

/* Generic content section with semi-transparent white background */
.content-section {
    background: rgba(255, 255, 255, 0.94);
    padding: 60px 0 70px;
    color: var(--ink);
}

.content-section .lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 880px;
    margin: 0 auto 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin: 40px 0 24px;
    text-align: center;
}

/* 3-up feature cards (used on local-delivery, e-booking) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 30px 0;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* Service blocks (services.php with anchor IDs) */
.service-block {
    max-width: 880px;
    margin: 0 auto 40px;
}

.service-block h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
}

.service-block p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

/* 365Shop card grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.shop-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    position: relative;
}

.shop-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
}

.shop-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.shop-card p {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 14px;
    line-height: 1.55;
}

/* Warehouse location list */
.warehouse-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.warehouse-list li {
    background: var(--red);
    color: #fff;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
}

/* Tracking + contact + quote forms */
.track-form,
.contact-form,
.quote-form {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.track-form label,
.contact-form label,
.quote-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--ink-soft);
}

.contact-form label span,
.quote-form label span,
.track-form label span {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.quote-form input,
.quote-form textarea,
.track-form input {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus,
.quote-form input:focus,
.quote-form textarea:focus,
.track-form input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.15);
}

.btn-primary {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background .2s;
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--red);
    padding: 8px 18px;
    border: 1px solid var(--red);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.btn-ghost:hover {
    background: var(--red);
    color: #fff;
}

.cta-row {
    text-align: center;
    margin-top: 36px;
}

.help-block {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 20px;
    background: rgba(214, 40, 40, 0.06);
    border-left: 3px solid var(--red);
    border-radius: 4px;
}

.help-block h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
}

.help-block p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 30px auto 0;
}

.contact-info {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-soft);
}

.contact-info p {
    margin-bottom: 18px;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.note {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 16px;
    background: rgba(214, 40, 40, 0.05);
    border-radius: 4px;
    font-size: 14px;
    color: var(--ink-soft);
    text-align: center;
}

/* Footer link-row */
.footer-link-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.18);
}

.footer-link-row a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.footer-link-row a:hover {
    color: #ffb84d;
    text-decoration: underline;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: #ffb84d;
}

/* Responsive */
@media (max-width: 1000px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .shop-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
    .feature-grid { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 40px 0 30px; }
}

/* ============================================================
   "More" dropdown submenu — hover-triggered, text-only panel
   ============================================================ */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

/* The "More" tab itself shares the .nav-link styling; nothing extra needed */

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 200px;
    z-index: 50;
    text-align: right;

    /* hidden by default — visible on hover or when its parent has .active */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.active > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 18px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background .15s ease;
}

.nav-dropdown-menu a:hover {
    color: var(--red);
    background: rgba(214, 40, 40, 0.05);
}

/* On the Chinese page, dropdown items use slightly larger characters naturally;
   the font-size above handles both Latin and CJK at 13px. */

/* When the dropdown is the active tab (one of its children is current),
   we still want to show it open without hovering — already handled above */

/* ============================================================
   Local Delivery page — matches the live 365-post.com layout
   ============================================================ */

/* On this page the warehouse background shows through with a red tint,
   just like the live site. The content sits ON TOP of the tinted bg. */
.page-local-section {
    background: transparent;  /* no white panel — warehouse shows through */
    padding: 50px 0 80px;
    min-height: 60vh;
}

.local-content {
    max-width: 720px;
    margin: 0 auto 50px;
    padding: 0 24px;
}

.local-heading {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.local-subheading {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.local-paragraph {
    font-size: 13.5px;
    line-height: 1.85;
    color: #fff;
    margin-bottom: 16px;
    text-align: justify;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Brand showcase card (van + box + uniform + logo) */
.local-brand-card {
    max-width: 600px;
    margin: 50px auto 40px;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.local-brand-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Photo gallery — 3 columns, square-ish thumbnails */
.local-gallery {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.local-gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    background: #fff;
}

@media (max-width: 640px) {
    .local-gallery { grid-template-columns: repeat(2, 1fr); }
    .local-content { padding: 0 12px; }
    .local-paragraph { font-size: 13.5px; }
}

/* ============================================================
   Online Quote / E-booking-style booking form
   Matches the live 365postonlinebooking form layout
   ============================================================ */
.quote-section {
    padding: 60px 0 80px;
    background: transparent;  /* warehouse shows through */
}

.quote-form-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin-bottom: 28px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.quote-form {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quote-form .form-row {
    display: grid;
    gap: 14px;
}
.quote-form .form-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.quote-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.form-label em {
    color: var(--red);
    font-style: normal;
    margin-left: 2px;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #f5f5f5;
    color: var(--ink);
    box-sizing: border-box;
}

.quote-form input::placeholder {
    color: #a0a0a0;
}

.quote-form input:focus,
.quote-form select:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(214, 40, 40, 0.12);
}

.quote-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-submit-row {
    text-align: center;
    margin-top: 12px;
}

.btn-submit {
    display: inline-block;
    background: #4a5cf5;  /* blue, matching the live page */
    color: #fff;
    padding: 12px 56px;
    border: 0;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.btn-submit:hover {
    background: #3a4ce0;
}

.btn-submit:active {
    transform: translateY(1px);
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

@media (max-width: 540px) {
    .quote-form .form-row.two-col {
        grid-template-columns: 1fr;
    }
    .quote-form { padding: 22px 20px; }
}

/* ============================================================
   Form success / error messages
   ============================================================ */
.form-success,
.form-error {
    max-width: 480px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    border-radius: 6px;
    text-align: center;
}

.form-success {
    background: rgba(40, 167, 69, 0.95);
    color: #fff;
    border: 1px solid rgba(40, 167, 69, 0.6);
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.25);
}

.form-success h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.form-success p {
    font-size: 14px;
    margin: 0;
    color: #fff;
}

.form-success .form-note {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 6px;
}

.form-error {
    background: #fff;
    color: #b00020;
    border: 1px solid #f5b7b7;
}

.form-error h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #b00020;
}

.form-error p {
    font-size: 14px;
    margin: 0;
}

/* ============================================================
   Mobile menu (hamburger + drawer)
   Triggered at <= 768px; desktop nav remains visible above that.
   ============================================================ */

/* Hamburger button — hidden on desktop */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.mobile-menu-toggle:hover { background: var(--red-dark); }
.mobile-menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 20px;
    height: 16px;
    position: relative;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s, top 0.2s;
    position: absolute;
    left: 0;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { top: 100%; transform: translateY(-100%); }
/* When open: middle bar fades, top bar rotates to right of X, bottom to left */
.mobile-menu-toggle.is-open .hamburger span:nth-child(1) {
    top: 50%; transform: translateY(-50%) rotate(45deg);
}
.mobile-menu-toggle.is-open .hamburger span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open .hamburger span:nth-child(3) {
    top: 50%; transform: translateY(-50%) rotate(-45deg);
}

/* Mobile drawer — hidden by default */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 0 24px;
}
.mobile-menu.open { display: block; }

.mobile-nav { display: flex; flex-direction: column; padding: 0 16px; }
.mobile-nav-link {
    display: block;
    padding: 14px 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    transition: background 0.1s, color 0.1s;
    min-height: 44px;          /* WCAG / iOS HIG tap target */
    display: flex;
    align-items: center;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: rgba(214, 40, 40, 0.06);
    color: var(--red);
    outline: none;
}
.mobile-nav-link.active {
    background: rgba(214, 40, 40, 0.1);
    color: var(--red);
    font-weight: 600;
}
.mobile-nav-sub {
    padding-left: 28px;       /* indent under divider */
    font-size: 14px;
    color: #555;
}
.mobile-nav-sub.active { color: var(--red); }

.mobile-nav-divider {
    margin: 12px 0 4px;
    padding: 10px 12px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    border-bottom: 2px solid var(--red);
}

.mobile-menu-section {
    margin-top: 16px;
    padding: 16px 16px 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-lang-switch {
    display: flex;
    gap: 8px;
}
.mobile-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    background: #f7f7f7;
}
.mobile-lang.active {
    background: rgba(214, 40, 40, 0.08);
    border-color: var(--red);
    color: var(--red);
    font-weight: 600;
}
.mobile-lang .flag-icon { width: 18px; height: 12px; }

.mobile-contact-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
    min-height: 44px;
}
.mobile-contact-pill .contact-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 4px;
}

/* Lock scroll when menu is open */
body.mobile-menu-locked { overflow: hidden; }

/* ============================================================
   Mobile breakpoint — hide desktop nav, show hamburger
   ============================================================ */
@media (max-width: 768px) {
    /* Show hamburger */
    .mobile-menu-toggle {
        display: inline-flex;
        margin: 12px 0 0 auto;
    }

    /* Hide desktop nav */
    .main-nav { display: none; }
    .nav-dropdown { display: none; }

    /* Compress the topbar */
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .brand-block { width: 100%; }

    /* Contact strip: stack on mobile */
    .contact-strip {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .contact-left, .contact-right {
        width: 100%;
        justify-content: flex-start;
    }
    .contact-right { gap: 12px; }
    .contact-text { font-size: 12px; }

    /* Hero on mobile — adjust padding */
    .hero { padding: 40px 16px; min-height: 280px; }
    .hero h1 { font-size: 22px; }
    .hero-subtitle { font-size: 16px; }
}
