/* CourierCRM — base styles.
   Brand colours are CSS variables so each company's palette can replace them later (section 20). */
:root {
  /* Brand (QuickBox Cargo, taken from its logo) */
  --brand-primary: #4a8dff;      /* logo blue: graphics, large headings */
  --brand-primary-strong: #1f5fd6; /* readable blue: links, buttons with white text */
  --brand-accent: #f05828;       /* logo orange: highlights */
  --brand-accent-strong: #c8431a;  /* readable orange: buttons with white text */
  --brand-ink: #606464;          /* logo dark grey */

  /* Neutrals */
  --text: #1c2228;
  --text-muted: #59626b;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --border: #e2e7ee;
  --header-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: #1c2228;
  --footer-text: #c9d1da;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 40, 80, 0.08);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-primary-strong: #7aaeff;
    --text: #e8edf3;
    --text-muted: #a3adb8;
    --bg: #11161c;
    --bg-soft: #18202a;
    --border: #2a3440;
    --header-bg: rgba(17, 22, 28, 0.92);
    --footer-bg: #0b0f13;
  }
  .lang-switch [aria-current="true"] { color: #0b1a33; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-primary-strong); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-primary-strong); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 36px; height: 36px; flex: none; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--brand-accent); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--brand-primary-strong); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: .85rem; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 6px 10px; text-decoration: none; color: var(--text-muted); }
.lang-switch [aria-current="true"] { background: var(--brand-primary-strong); color: #fff; }

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .1s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-accent-strong); color: #fff; }
.btn-primary:hover { background: #a9380f; }
.btn-secondary { background: transparent; color: var(--brand-primary-strong); border-color: var(--brand-primary-strong); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(74, 141, 255, .18), transparent 60%),
    radial-gradient(800px 300px at -10% 110%, rgba(240, 88, 40, .12), transparent 60%),
    var(--bg-soft);
  padding: 72px 0 80px;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-accent-strong); background: rgba(240, 88, 40, .1); padding: 4px 10px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -0.02em;
  margin: 16px 0 16px; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--brand-primary-strong); }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--text-muted); font-weight: 600; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 20px; height: 20px; color: var(--brand-primary-strong); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.section .section-intro { color: var(--text-muted); margin: 0 0 32px; max-width: 60ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(74, 141, 255, .14); color: var(--brand-primary-strong); font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); }

/* ---------- Services ---------- */
.section-soft { background: var(--bg-soft); }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.services-loading { color: var(--text-muted); margin: 0; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(74, 141, 255, .14); color: var(--brand-primary-strong); margin-bottom: 14px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin: 0 0 6px; font-size: 1.35rem; }
.service-price { margin: 0; }
.service-price .price { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.service-price .per { color: var(--text-muted); font-weight: 600; }
.service-ref { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.service-desc { margin: 0 0 12px; color: var(--text-muted); }
.service-time { margin: 0 0 20px; font-weight: 600; color: var(--brand-accent-strong); }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #128c4a; color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float[hidden] { display: none; }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem;
}
.powered-by a { color: #fff; font-weight: 600; }

/* ---------- Simple page (404) ---------- */
.simple-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.simple-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 8px; }
.simple-page p { color: var(--text-muted); margin: 0 0 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav, .header-actions { display: none; }
  .site-header.is-open .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions { display: block; width: 100%; margin: 0; }
  .site-header.is-open .main-nav ul { flex-direction: column; }
  .site-header.is-open .main-nav a { padding: 12px; }
  .site-header.is-open .header-actions { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); }
  .steps, .services { grid-template-columns: 1fr; }
  .service-card .btn { align-self: stretch; }
  .whatsapp-float { padding: 0; width: 56px; justify-content: center; }
  .whatsapp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-footer { padding-bottom: 88px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 0 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
