/* Hand-written additions on top of tailwind.css (the compiled stylesheet from
   the original site). Utility classes that aren't already in tailwind.css
   won't work, so put any new styling here. */

/* Inter, served from this site (not Google Fonts) so visitors' IP addresses
   aren't sent to Google. Latin subset incl. Maltese letters. Licence: /fonts/OFL.txt */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/inter-800.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/inter-900.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/inter-500-italic.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/inter-600-italic.woff') format('woff'); }

/* Accessibility: skip link, visible only when focused with the keyboard */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: #fff; color: #000; padding: .5rem 1rem; border-radius: .5rem; box-shadow: 0 2px 10px rgb(0 0 0 / .15); }
.skip-link:focus { top: 1rem; }

/* Navigation */
[data-dropdown][data-open] .dropdown-chevron { transform: rotate(180deg); }
.dropdown-chevron { transition: transform .2s; }
.dropdown-menu { min-width: 8rem; }
[data-navbar][data-scrolled] { background-color: rgb(255 255 255 / .95); box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); }
.mobile-menu-list > * + * { margin-top: .25rem; }

/* FAQ accordion (native <details>) */
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .2s; }

/* Forms */
.form-select { appearance: none; padding-right: 2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; }
.form-select:invalid, .form-select option[value=""] { color: var(--muted-foreground); }
.form-select option { color: var(--foreground); }
.upload-drop[data-dragging] { border-color: var(--primary); background: var(--secondary); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[data-submit][aria-busy="true"] { opacity: .7; cursor: progress; }
.form-success { animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* WhatsApp chat button (bottom right, every page). Dark WhatsApp-style green: white text at 5.4:1 contrast */
.wa-button { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: .5rem;
  background: #0B7A3E; color: #fff; font-weight: 600; font-size: .9rem; padding: .7rem 1.1rem .7rem .9rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgb(0 0 0 / .18); transition: transform .15s, box-shadow .15s; }
.wa-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / .22); }
.wa-button:focus-visible { outline: 3px solid #0B7A3E; outline-offset: 3px; }
.wa-icon { width: 1.4rem; height: 1.4rem; }
@media (max-width: 640px) { .wa-button span { display: none; } .wa-button { padding: .85rem; } }
@media print { .wa-button { display: none; } }

/* Illustrations (Download, Services, Home Users, Business) */
.illus { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px rgb(20 26 29 / .12); background: #E6EEFF; }
.illus img { display: block; width: 100%; height: auto; }

/* Rollout map */
[data-rollout] [data-region] { outline: none; }
[data-rollout] g[data-region]:focus-visible circle:nth-of-type(2) { stroke-width: 4; }
[data-rollout] path { transition: fill .3s, stroke .3s; }
/* pulse ring grows around its own marker (SVG default origin is the map's corner) */
[data-rollout] .animate-ping { transform-box: fill-box; transform-origin: center; }

/* Driver app download block (driver pages hero) */
.driver-app { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2rem; padding: 1.25rem; max-width: 36rem; border-radius: 20px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); }
.driver-app-icon { width: 64px; height: 64px; flex: none; border-radius: 15px; box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.driver-app-title { margin: 0 0 .2rem; color: #fff; font-weight: 800; font-size: 1.05rem; }
.driver-app-text { margin: 0 0 .9rem; color: rgb(255 255 255 / .75); font-size: .875rem; }
@media (max-width: 480px) { .driver-app { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
