/* public/css/yuniq-brand.css - YUNIQ premium polish for the public website and the portals
   (customer, carrier, driver). STYLING ONLY: linked last in <head>, it re-points the variables
   every page's own <style> already uses (--primary-blue, --light-blue, --dark-gray, --radius,
   --shadow-*) to the brand tokens and polishes shared classes. No layout (grid, flex, position,
   width) is changed here. Tokens: /css/yuniq-tokens.css. */
@import url('/css/yuniq-tokens.css');

:root {
  --primary-blue: var(--yuniq-navy);
  --secondary-blue: var(--yuniq-navy-700);
  --light-blue: var(--yuniq-slate);
  --dark-gray: var(--yuniq-text);
  --white: var(--yuniq-white);
  --radius: var(--yuniq-radius);
  --shadow-sm: var(--yuniq-shadow-sm);
  --shadow-md: var(--yuniq-shadow-md);
}

body { font-family: var(--yuniq-font); color: var(--yuniq-text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--yuniq-orange-50); color: var(--yuniq-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--yuniq-orange); outline-offset: 2px; box-shadow: none;
}

/* Header: light glass (the public site's header is white with a navy logo). */
header#siteHeader, body > header.site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Primary actions: the darker brand orange (--yuniq-action) with white text, 5.0:1 (AA for any size; owner
   2026-11-16), and a glow. Secondary / outline / special buttons keep their own look. */
.btn-cta, .btn-primary, .partner-cta,
.btn:not(.btn-secondary):not(.btn-outline):not(.btn-plain):not(.navy):not(.whatsapp):not(.btn-ghost):not(.btn-danger) {
  /* !important on the text colour: several pages force their own text colour with !important. */
  background: var(--yuniq-action); color: var(--yuniq-on-action) !important; border-color: var(--yuniq-action);
  box-shadow: var(--yuniq-glow); border-radius: var(--yuniq-radius-control);
}
.btn-cta:hover, .btn-primary:hover, .partner-cta:hover,
.btn:not(.btn-secondary):not(.btn-outline):not(.btn-plain):not(.navy):not(.whatsapp):not(.btn-ghost):not(.btn-danger):hover:not(:disabled) {
  background: var(--yuniq-action-hover); color: var(--yuniq-on-action); border-color: var(--yuniq-action-hover);
  box-shadow: 0 10px 28px -8px var(--yuniq-orange);
}
/* Press: a slight push in (smaller + a closer shadow), every button style. */
:is(.btn, .btn-cta, .btn-primary, .partner-cta, .btn-cta-outline, .btn-outline, .btn-secondary) {
  transition: transform var(--yuniq-motion) var(--yuniq-ease), box-shadow var(--yuniq-motion) var(--yuniq-ease),
    background-color var(--yuniq-motion) var(--yuniq-ease), color var(--yuniq-motion) var(--yuniq-ease),
    border-color var(--yuniq-motion) var(--yuniq-ease);
}
/* Only without reduced motion. The primary-button selector above is repeated so its glow gives way. */
@media (prefers-reduced-motion: no-preference) {
  :is(.btn, .btn-cta, .btn-primary, .partner-cta, .btn-cta-outline, .btn-outline, .btn-secondary):active:not(:disabled),
  .btn:not(.btn-secondary):not(.btn-outline):not(.btn-plain):not(.navy):not(.whatsapp):not(.btn-ghost):not(.btn-danger):active:not(:disabled) {
    transform: scale(var(--yuniq-press-scale)); box-shadow: var(--yuniq-press-shadow);
  }
}
.btn:disabled, .btn-cta[aria-disabled="true"] { background: var(--yuniq-border); border-color: var(--yuniq-border); color: var(--yuniq-text-muted); box-shadow: none; }
.btn-cta-outline, .btn-outline, .btn-secondary { border-radius: var(--yuniq-radius-control); }
.btn-cta-outline, .btn-secondary { border-color: var(--yuniq-navy); color: var(--yuniq-navy); }
.btn-cta-outline:hover, .btn-secondary:hover { background: var(--yuniq-navy); color: var(--yuniq-white); }

/* Cards, panels and forms: 18px corners, slate-200 border, subtle shadow. */
:where(.card, .service-card, .section, .feature-card, .info-card, .stat-card, .form-card, .container > form, .auth-card, .login-box, .quote-card, .faq-item, .stats-bar, .partner-section .partner-card) {
  border-radius: var(--yuniq-radius);
}
:where(.card, .service-card, .feature-card, .info-card, .stat-card, .form-card, .auth-card, .login-box, .quote-card, .faq-item) {
  background: var(--yuniq-white); border: 1px solid var(--yuniq-border); box-shadow: var(--yuniq-shadow-sm);
}
:where(.service-card, .feature-card, .card) { transition: transform var(--yuniq-motion) var(--yuniq-ease), box-shadow var(--yuniq-motion) var(--yuniq-ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { :where(.service-card, .feature-card):hover { transform: translateY(var(--yuniq-lift)); box-shadow: var(--yuniq-shadow-lg); } }

/* Inputs */
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"])), select, textarea {
  border-radius: var(--yuniq-radius-control); border-color: var(--yuniq-border-strong); font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--yuniq-orange); box-shadow: var(--yuniq-focus); outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--yuniq-navy); }

/* Tables (portals): sticky header, zebra rows */
.table-wrapper { border-radius: var(--yuniq-radius); border: 1px solid var(--yuniq-border); box-shadow: var(--yuniq-shadow-sm); background: var(--yuniq-white); }
.table-wrapper th { position: sticky; top: 0; z-index: 1; background: var(--yuniq-slate-100); }
tbody tr:nth-child(even) > td { background-color: var(--yuniq-slate); }

/* Every uploaded / content image: 12px corners, slate-200 edge on light backgrounds. */
img:where(.content-img, .photo img, .card img, .article img), .photo, .live-map {
  border-radius: var(--yuniq-radius-img);
}

/* Status: green clear, amber delays, red closed (AA text on its background). */
.status.normal, .badge-ok, .badge-success, .badge-active, .status-ok { background: var(--yuniq-ok-bg); color: var(--yuniq-ok); }
.status.busy, .badge-warning, .badge-warn, .badge-pending, .status-warn { background: var(--yuniq-warn-bg); color: var(--yuniq-warn); }
.status.congested, .status.closed, .status.bad, .badge-danger, .badge-expired, .status-danger { background: var(--yuniq-bad-bg); color: var(--yuniq-bad); }

/* Footer keeps navy; links get the orange hover. */
footer a:hover, .footer-section a:hover { color: var(--yuniq-orange) !important; }

/* Footer brand position + condensed downloads disclaimer (owner 2026-11-01), on every public page. */
.footer-legal { max-width: 1200px; margin: 0.9rem auto 0; padding: 0.7rem 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.82rem; opacity: 0.85; text-align: center; line-height: 1.6; }
.footer-legal strong { font-weight: 700; }
.footer-legal a { color: inherit; text-decoration: underline; }
/* Phones: the one link in this line is a full-height tap target (44px), without moving the text around it. */
@media (max-width: 768px) { .footer-legal a { display: inline-block; padding: 0.75rem 0.25rem; margin: -0.75rem 0; position: relative; } }

/* Reduced motion: no transition (the press and the lift above only apply without it). */
@media (prefers-reduced-motion: reduce) {
  :is(.btn, .btn-cta, .btn-primary, .partner-cta, .btn-cta-outline, .btn-outline, .btn-secondary, .service-card, .feature-card, .card) { transition: none; }
}
