/*
Theme Name: Manish Cargo Service
Theme URI: https://manishcargoservice.com
Author: Adverseify
Author URI: https://adverseify.com
Description: Block theme for Manish Cargo Service: transportation and logistics across India with WhatsApp booking. Every heading, paragraph, button and list is editable in the WordPress editor.
Version: 1.0.4
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcs
*/

/* Layout concept: a plain, confident logistics page. One memorable object: the booking docket in the hero,
   styled as a consignment note that turns into a prefilled WhatsApp message. Everything else stays quiet.
   Single light theme: the logo's charcoal lettering is made for a light ground. */
:root {
  --orange: #F26700;
  --orange-deep: #B84B00;
  --ink: #1D1F22;
  --charcoal: #494949;
  --mist: #F6F3F0;
  --line: #E5E0DB;
  --muted: #5C5F63;
  --white: #FFFFFF;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--white); z-index: 30; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.025em; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
a, button, label, summary { -webkit-tap-highlight-color: rgba(242,103,0,.2); }
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * { margin-block: 0; }
.wp-block-group, .wp-block-buttons, .wp-block-list, .wp-block-table { margin-block: 0; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); }

/* ---------- Buttons (core Button block and the .btn links inside the form blocks) ---------- */
.btn, .wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius); box-shadow: none;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary.btn, .wp-block-button.btn-primary .wp-block-button__link { background: var(--orange); color: var(--ink); }
.btn-primary.btn:hover, .wp-block-button.btn-primary .wp-block-button__link:hover { background: #FF7A1A; color: var(--ink); transform: translateY(-1px); }
.btn-ghost.btn, .wp-block-button.btn-ghost .wp-block-button__link { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost.btn:hover, .wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--ink); color: var(--white); }
.btn-sm.btn, .wp-block-button.btn-sm .wp-block-button__link { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }
.btn.wa::before, .wp-block-button.wa .wp-block-button__link::before {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--ico-wa) center / contain no-repeat; mask: var(--ico-wa) center / contain no-repeat;
}
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand .wp-block-site-logo { margin: 0; line-height: 0; }
.brand .wp-block-site-logo img { height: 44px; width: auto; }
.brand-name { line-height: 1.15; min-width: 0; }
.brand-name .wp-block-site-title { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
.brand-name .wp-block-site-title a { color: var(--charcoal); text-decoration: none; }
.brand-tag { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); line-height: 1.3; }

.nav { font-family: var(--font); }
.nav .wp-block-navigation__container { gap: 28px; }
.nav .wp-block-navigation-item__content { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--charcoal); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav .wp-block-navigation-item__content:hover { border-bottom-color: var(--orange); color: var(--ink); }
.nav .wp-block-navigation-item__content[aria-current="page"], .nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--orange); color: var(--ink); }
.nav .wp-block-navigation__responsive-container-open { border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); padding: 8px; }
.nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--white); color: var(--ink); padding: 18px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
.nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 24px; }
.nav .is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
.nav .is-menu-open .wp-block-navigation__responsive-container-content, .nav .is-menu-open .wp-block-navigation__container { align-items: stretch; justify-content: flex-start; text-align: left; }
.nav .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch; }
.nav .is-menu-open .wp-block-navigation-item__content { width: 100%; }
.nav .is-menu-open .wp-block-navigation-item__content { display: block; padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
/* Core collapses the menu below 600px; we collapse it below 1180px because there are six links */
@media (min-width: 600px) and (max-width: 1279px) {
  .site-header .nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .site-header .nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
}
@media (min-width: 1280px) {
  .site-header .nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none !important; }
  .site-header .nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: block !important; position: static; }
  .site-header .nav .wp-block-navigation__container { flex-wrap: nowrap; }
}
.nav .wp-block-navigation-item__content { white-space: nowrap; }
@media (max-width: 1279px) { .bar { gap: 12px; } }
.header-cta .wp-block-button__link { white-space: nowrap; }
.wp-block-buttons.header-cta { flex-wrap: nowrap; flex: none; }
@media (min-width: 1280px) and (max-width: 1439px) { .nav .wp-block-navigation__container { gap: 20px; } .bar { gap: 18px; } }

/* ---------- Hero ---------- */
.hero { background: var(--mist); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background: var(--orange); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-block: 72px 80px; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; margin-top: 18px; }
.hero h1 em { font-style: normal; box-shadow: inset 0 -0.2em 0 var(--orange); }
.hero .lede { margin-top: 22px; font-size: 1.15rem; color: var(--charcoal); max-width: 34em; }
.hero-actions { margin-top: 32px; }
.mt-0 { margin-top: 0 !important; }
.mt-40 { margin-top: 40px; }
.h-sm { font-size: 1.4rem !important; }

/* Booking docket */
.docket { position: relative; background: var(--white); border-radius: var(--radius); box-shadow: 0 24px 48px -18px rgba(29,31,34,.35); min-width: 0; }
.docket-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--charcoal); color: var(--white); padding: 14px 22px; border-radius: var(--radius) var(--radius) 0 0; }
.docket-top b { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.docket-top span { font-size: 0.78rem; opacity: .8; }
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 20px 22px 18px; }
.route .node { min-width: 0; }
.route .node small { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.route .node strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; line-height: 1.2; }
.route .node.to { text-align: right; }
.route .node .placeholder { color: #9A9DA1; font-weight: 700; }
.lane { position: relative; height: 24px; }
.lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #CFC8C1; }
.lane i { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; background: var(--orange); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .lane i { animation: travel 3.2s ease-in-out infinite alternate; } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 12px); } }
.perf { position: relative; border-top: 2px dashed var(--line); margin: 0 14px; }
.docket form { padding: 20px 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: 500 1rem/1 var(--font);
}
.field input::placeholder { color: #9A9DA1; }
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,103,0,.25); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; }
.field .seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.seg label {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--charcoal); cursor: pointer; text-align: center; padding: 0 8px;
}
.seg input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--white); }
.seg input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.docket .btn { grid-column: 1 / -1; width: 100%; }
.docket .note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); text-align: center; line-height: 1.4; }
.note a, .inline-link { color: var(--orange-deep); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Facts strip ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 24px 20px 24px 0; font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts li::before { content: ""; width: 28px; height: 28px; flex: none; background: var(--orange); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.facts .i-globe { --i: var(--ico-globe); } .facts .i-home { --i: var(--ico-home); } .facts .i-people { --i: var(--ico-people); } .facts .i-chat { --i: var(--ico-wa); }

/* ---------- Sections ---------- */
section { padding-block: 88px; }
.head { max-width: 40rem; display: grid; gap: 14px; margin-bottom: 44px; }
.head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.head p { color: var(--muted); }
.head p.eyebrow { color: var(--orange-deep); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { padding: 40px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel.light { background: var(--mist); }
.panel.dark { background: var(--charcoal); color: var(--white); }
.panel .ico { width: 56px; height: 56px; color: var(--orange); }
.panel h3 { font-size: 1.7rem; font-weight: 800; }
.panel p { color: var(--muted); }
.panel.dark p { color: rgba(255,255,255,.82); }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel li { display: flex; gap: 12px; font-weight: 600; }
.panel li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.62em; background: var(--orange); border-radius: 50%; }
.panel .actions { margin-top: auto; padding-top: 8px; }
.panel.dark .wp-block-button.btn-ghost .wp-block-button__link { border-color: var(--white); color: var(--white); }
.panel.dark .wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--white); color: var(--ink); }

.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.audience > div { padding: 28px 32px 0 0; display: grid; gap: 8px; align-content: start; }
.audience > div + div { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.audience h3 { font-size: 1.2rem; font-weight: 800; }
.audience p { color: var(--muted); }

/* How it works */
.how, .alt { background: var(--mist); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; position: relative; }
.steps > .item { position: relative; display: grid; gap: 12px; align-content: start; counter-increment: step; padding-top: 64px; border-top: 3px solid var(--ink); }
.steps > .item::before { content: counter(step); position: absolute; top: -3px; left: 0; background: var(--orange); color: var(--ink); font-weight: 800; font-size: 1.1rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 0 0 var(--radius) 0; }
.steps h3 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.steps p { color: var(--muted); }

/* Destinations */
.places { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.places a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 0.98rem; background: var(--white); transition: border-color .15s ease, background-color .15s ease;
}
.places a::after { content: ""; width: 16px; height: 16px; background: var(--orange-deep); -webkit-mask: var(--ico-arrow) center / contain no-repeat; mask: var(--ico-arrow) center / contain no-repeat; }
.places a:hover { border-color: var(--orange); background: #FFF4EB; }
.places .more a { background: var(--ink); color: var(--white); border-color: var(--ink); }
.places .more a::after { background: var(--white); }
.places .more a:hover { background: var(--charcoal); border-color: var(--charcoal); }
.places-note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

/* FAQ (core Details blocks) */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-wrap .head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); margin: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; background: var(--orange); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }
.faq-group { display: grid; gap: 0; margin-bottom: 40px; }
.faq-group h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.faq-page { max-width: 52rem; }
.how .faq details summary::after { background: var(--white); }
.how .faq details[open] summary::after { background: var(--orange); }

/* CTA band */
.cta { background: var(--charcoal); color: var(--white); padding-block: 72px; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; max-width: 18em; }
.cta p { margin-top: 10px; color: rgba(255,255,255,.82); max-width: 30em; }

/* Footer */
.site-footer { background: var(--mist); padding-block: 56px 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-grid > div { min-width: 0; }
.foot-grid .wp-block-site-logo { margin-bottom: 14px; line-height: 0; }
.foot-grid .wp-block-site-logo img { height: 56px; width: auto; }
.foot-grid h4 { margin: 0 0 14px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; font-weight: 600; }
.foot-grid a:hover { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.foot-grid p { color: var(--muted); max-width: 22em; }
.foot-grid li, .foot-grid a { overflow-wrap: anywhere; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }

/* Floating WhatsApp button (phones and tablets) */
.wp-block-buttons.float-wa { display: none; position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 10px 24px -6px rgba(29,31,34,.45); border-radius: var(--radius); }

/* ===== Inner pages ===== */
[hidden] { display: none !important; }
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: 72px 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 20%; background: var(--orange); clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; margin-top: 14px; max-width: 17em; }
.page-hero .lede, .page-hero .wp-block-post-excerpt { margin-top: 18px; max-width: 36em; color: var(--charcoal); font-size: 1.15rem; }
.page-hero .wp-block-post-excerpt__excerpt { margin: 0; }
.page-hero .hero-actions { margin-top: 28px; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.prose { display: grid; gap: 18px; min-width: 0; }
.prose p { color: var(--muted); }
.prose .actions { margin-top: 8px; }
.prose a:not(.wp-block-button__link), .table-note a { color: var(--orange-deep); font-weight: 700; text-underline-offset: 3px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-weight: 600; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 0.1em; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1F22' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

.spec { background: var(--mist); border-radius: var(--radius); padding: 32px; display: grid; gap: 8px; min-width: 0; align-content: start; }
.spec.dark { background: var(--charcoal); color: var(--white); }
.spec h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.spec-row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.spec.dark .spec-row { border-top-color: rgba(255,255,255,.18); }
.spec-k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
.spec.dark .spec-k { color: rgba(255,255,255,.7); }
.spec-v { font-weight: 600; }

/* Tables (core Table block) */
.wp-block-table.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 0; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; border: 0; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--charcoal); color: var(--white); font-size: 1rem; }
.compare thead { border: 0; }
.compare tbody th { width: 22%; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.compare td { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table-note { margin-top: 18px; color: var(--muted); }
.article .wp-block-table.compare { margin-block: 6px; }

.points { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 32px; }
.points.cols-4 { --cols: 4; }
.points > .item { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 3px solid var(--ink); }
.points h3 { font-size: 1.2rem; font-weight: 800; }
.points p { color: var(--muted); }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 40px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.form-card .legend { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); padding-top: 6px; border-top: 1px solid var(--line); }
.form-card .legend:first-child { border-top: 0; padding-top: 0; }
.field textarea { width: 100%; min-height: 104px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font: 500 1rem/1.5 var(--font); resize: vertical; }
.field textarea::placeholder { color: #9A9DA1; }
.field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,103,0,.25); }
.aside { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); display: grid; gap: 20px; min-width: 0; }
.preview { background: var(--charcoal); color: var(--white); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.preview h3 { font-size: 1.1rem; font-weight: 800; }
.preview p.hint { font-size: 0.88rem; color: rgba(255,255,255,.75); line-height: 1.5; }
.preview pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 0.95rem/1.55 var(--font); background: rgba(255,255,255,.09); padding: 16px; border-radius: var(--radius); max-height: 340px; overflow: auto; }
.preview .btn { width: 100%; }
.next { background: var(--mist); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.next h3 { font-size: 1.05rem; font-weight: 800; }
.next ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.next a { color: var(--orange-deep); font-weight: 700; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.methods { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.methods li { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.methods .m-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--ink); }
.methods .m-ico svg { width: 24px; height: 24px; }
.methods small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.methods a, .methods .val { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
.methods a:hover { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 4px; }
.methods > li > div { min-width: 0; }
.msg-card { background: var(--mist); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; min-width: 0; }
.msg-card h2 { font-size: 1.5rem; font-weight: 800; }
.msg-card .btn { width: 100%; }
.msg-card .note { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* Breadcrumbs, articles */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--charcoal); font-weight: 600; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--orange-deep); }
.crumbs span[aria-hidden] { opacity: .5; }

.article { max-width: 46rem; margin-inline: auto; display: grid; gap: 20px; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.article > * { min-width: 0; }
.article h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; margin-top: 18px; }
.article h3 { font-size: 1.15rem; font-weight: 800; }
.article p, .article li { color: var(--charcoal); }
.article ul, .article ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.article a:not(.wp-block-button__link) { color: var(--orange-deep); font-weight: 700; text-underline-offset: 3px; }
.answer { background: var(--mist); border-radius: var(--radius); padding: 24px 28px; display: grid; gap: 8px; }
.answer .eyebrow { margin: 0; }
.answer p { color: var(--ink); font-size: 1.12rem; font-weight: 600; line-height: 1.55; }
.answer p.eyebrow { color: var(--orange-deep); font-size: 0.78rem; font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: 0.3em; font-size: 0.88rem; color: var(--muted); }
.meta p, .meta .wp-block-post-date { font-size: 0.88rem; color: var(--muted); }
.example { margin: 4px 0; background: var(--mist); border-radius: var(--radius); padding: 20px 24px; overflow-wrap: anywhere; font-weight: 500; color: var(--ink) !important; }
.related { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 12px; display: grid; gap: 12px; }
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; }

/* Guide list (core Query Loop) */
.guide-list .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.guide-list .wp-block-post { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; margin: 0; }
.guide-list .wp-block-post-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.guide-list .wp-block-post-title a { text-decoration: none; }
.guide-list .wp-block-post-title a:hover { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 4px; }
.guide-list .wp-block-post-excerpt { color: var(--muted); max-width: 44rem; }
.guide-list .wp-block-post-excerpt__excerpt { margin: 0; }
.article-body { display: grid; gap: 20px; min-width: 0; }
.meta .wp-block-post-date__modified-date::before { content: "\00b7  Updated "; white-space: pre; }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) { html { font-size: 18px; } .wrap { max-width: 1320px; } }
@media (min-width: 2200px) { html { font-size: 20px; } .wrap { max-width: 1480px; } }
@media (hover: none) { .btn-primary:hover, .wp-block-button.btn-primary .wp-block-button__link:hover { transform: none; } }
@media (max-width: 980px) {
  .hero::before { width: 100%; height: 220px; top: auto; bottom: 0; clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 56px; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split, .quote-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .aside { position: static; }
  .points, .points.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .wp-block-buttons.header-cta { display: none; }
  .wp-block-buttons.float-wa { display: flex; }
  .site-footer { padding-bottom: 96px; }
  section { padding-block: 64px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .audience { grid-template-columns: minmax(0, 1fr); }
  .audience > div, .audience > div + div { padding: 24px 0 0; border-left: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .page-hero { padding-block: 48px 44px; }
  .page-hero::after { width: 100%; top: auto; height: 10px; clip-path: none; }
}
@media (max-width: 560px) {
  .points, .points.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .form-card { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .spec, .msg-card { padding: 24px 20px; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .compare th, .compare td { padding: 14px 16px; }
  .methods a, .methods .val { font-size: 1.1rem; }
  .methods li { gap: 14px; }
  .methods .m-ico { width: 46px; height: 46px; }
}
@media (max-width: 520px) {
  .panel { padding: 28px 22px; }
  .docket form { grid-template-columns: minmax(0, 1fr); }
  .docket-top, .route, .docket form { padding-left: 18px; padding-right: 18px; }
  .brand-name .wp-block-site-title { font-size: 0.95rem; }
  .brand .wp-block-site-logo img { height: 38px; }
  .hero-actions, .hero-actions .wp-block-button, .hero-actions .wp-block-button__link { width: 100%; }
  .faq details p { padding-right: 0; }
  .facts li { padding-right: 8px; font-size: 0.9rem; gap: 10px; }
  .facts li + li { padding-left: 16px; }
  .facts li:nth-child(3) { padding-left: 0; }
  .facts li::before { width: 24px; height: 24px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- Sections added in v1.4: image and text, work, clients, numbers, reviews ---------- */
.split .wp-block-image { margin: 0; min-width: 0; }
.split .wp-block-image img, .work-card .wp-block-image img, .photo-row .wp-block-image img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.split.flip-media { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { background: var(--mist); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.work-card .wp-block-image { margin: 0; }
.work-card .wp-block-image img { border-radius: 0; }
.work-body { padding: 24px 26px 30px; display: grid; gap: 10px; align-content: start; }
.work-body h3 { font-size: 1.3rem; font-weight: 800; }
.work-body p { color: var(--muted); }
.work-body .work-meta { color: var(--orange-deep); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-row .wp-block-image { margin: 0; }
.client-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: center; }
.client-logos .wp-block-image { margin: 0; }
.client-logos .wp-block-image img { display: block; width: 100%; height: 72px; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter .2s, opacity .2s; }
.client-logos .wp-block-image img:hover { filter: none; opacity: 1; }
.client-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.client-list li { padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { border-top: 3px solid var(--ink); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.stat .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--orange); }
.stat .label { color: var(--muted); font-weight: 600; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { background: var(--mist); border-radius: var(--radius); padding: 32px; display: grid; gap: 12px; align-content: start; border-top: 4px solid var(--orange); }
.review .q { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.review .who { font-weight: 800; margin-top: 8px; }
.review .role { color: var(--muted); font-size: 0.92rem; }
/* Block styles that turn any Group into a band or a card (Styles panel in the editor) */
.wp-block-group.is-style-mcs-band { background: var(--mist); padding: 72px 24px; }
.wp-block-group.is-style-mcs-dark { background: var(--charcoal); color: var(--white); padding: 72px 24px; }
.wp-block-group.is-style-mcs-dark :where(p, li) { color: rgba(255,255,255,.85); }
.wp-block-group.is-style-mcs-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.wp-block-image.is-style-mcs-rounded img { border-radius: var(--radius); }
@media (max-width: 980px) {
  .work-grid, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .split.flip-media { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .work-grid, .reviews, .photo-row { grid-template-columns: minmax(0, 1fr); }
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review { padding: 24px 22px; }
}

/* ---------- Icons used through CSS masks (so the text stays editable) ---------- */
:root {
  --ico-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 20.5l1.7-5.4A8.5 8.5 0 1 1 21 11.5Z'/%3E%3C/svg%3E");
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --ico-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.6 4 5.6 4 9s-1.4 6.4-4 9c-2.6-2.6-4-5.6-4-9s1.4-6.4 4-9Z'/%3E%3C/svg%3E");
  --ico-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
  --ico-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Cpath d='M16 5.5a3 3 0 0 1 0 5.6M18 14.4c1.8.8 3 2.6 3 4.6'/%3E%3C/svg%3E");
}
