/* Flyking public website. Colours from the old flyking.in: red #c62f2f / #bd0808, blue #0054a3, sky #00a8e0. */
:root {
  --fk-red: #c62f2f;
  --fk-red-dark: #a30707;
  --fk-blue: #0054a3;
  --fk-blue-dark: #003d78;
  --fk-sky: #00a8e0;
  --fk-sky-light: #e6f6fc;
  --fk-ink: #1d2733;
  --fk-muted: #5b6876;
  --bs-body-color: var(--fk-ink);
  --bs-link-color: var(--fk-blue);
  --bs-link-color-rgb: 0, 84, 163;
  --bs-link-hover-color: var(--fk-red-dark);
  --bs-link-hover-color-rgb: 163, 7, 7;
  --bs-border-radius: .5rem;
}
body { font-size: 1rem; background: #fff; }
h1, h2, h3 { color: var(--fk-blue); font-weight: 700; }
h1 { font-size: 1.6rem; }
@media (min-width: 768px) { h1 { font-size: 2rem; } }
.skip { position: absolute; left: .5rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -.15em; }
.icon-lg { width: 2.2rem; height: 2.2rem; }

/* Header */
.topbar { background: var(--fk-blue); color: #fff; font-size: .85rem; padding: .3rem 0; }
.topbar a { color: #fff; text-decoration: none; margin-left: 1rem; }
.topbar a:hover { text-decoration: underline; }
.site-header { background: #fff; border-bottom: 3px solid var(--fk-red); position: sticky; top: 0; z-index: 1020; }
.site-header .navbar { padding: .25rem 0; }
.navbar-brand img { height: 48px; width: auto; }
@media (min-width: 992px) { .navbar-brand img { height: 60px; } }
.site-header .nav-link { color: var(--fk-blue); font-weight: 600; padding: .6rem .7rem; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--fk-red); }
@media (max-width: 991.98px) {
  .site-header .navbar-nav { padding: .5rem 0 1rem; }
  .site-header .nav-link { border-bottom: 1px dashed #cfd8e3; }
}
.btn-track { background: var(--fk-red); color: #fff; font-weight: 600; }

/* Buttons */
.btn-primary { --bs-btn-bg: var(--fk-red); --bs-btn-border-color: var(--fk-red); --bs-btn-hover-bg: var(--fk-red-dark);
  --bs-btn-hover-border-color: var(--fk-red-dark); --bs-btn-active-bg: var(--fk-red-dark); --bs-btn-disabled-bg: var(--fk-red);
  font-weight: 600; }
.btn-outline-primary { --bs-btn-color: var(--fk-blue); --bs-btn-border-color: var(--fk-blue); --bs-btn-hover-bg: var(--fk-blue);
  --bs-btn-hover-border-color: var(--fk-blue); --bs-btn-active-bg: var(--fk-blue-dark); font-weight: 600; }
.btn-whatsapp { background: #1f9e4f; color: #fff; }
.btn-whatsapp:hover { background: #157a3b; color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--fk-sky); box-shadow: 0 0 0 .2rem rgba(0, 168, 224, .25); }

/* Home */
.hero { background: linear-gradient(135deg, var(--fk-blue) 0%, var(--fk-blue-dark) 60%, #002a54 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -40%; width: 70%; height: 120%;
  border-radius: 50%; border: 28px solid rgba(0, 168, 224, .35); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-20deg); }
.hero .container { position: relative; z-index: 1; padding-top: 2rem; padding-bottom: 2.25rem; }
.hero h1 { color: #fff; }
.hero .lead { color: #d8e8f7; }
.track-box { background: #fff; color: var(--fk-ink); border-radius: .75rem; padding: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.track-box label { font-weight: 600; color: var(--fk-blue); }
.quick a { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 1px solid #dbe4ee; border-radius: .6rem;
  text-decoration: none; color: var(--fk-blue); font-weight: 600; height: 100%; background: #fff; }
.quick a:hover { border-color: var(--fk-red); color: var(--fk-red); }
.quick .icon { color: var(--fk-red); width: 1.6rem; height: 1.6rem; flex: none; }
.stats { background: var(--fk-sky-light); }
.stat strong { display: block; font-size: 1.6rem; color: var(--fk-red); line-height: 1.1; }
.stat span { color: var(--fk-muted); font-size: .9rem; }
.service-card { border: 1px solid #dbe4ee; border-radius: .75rem; padding: 1.1rem; height: 100%; }
.service-card .icon { color: var(--fk-sky); }
.service-card h3 { font-size: 1.15rem; margin: .5rem 0; }
.vision { border-left: 4px solid var(--fk-red); padding: .5rem 1rem; font-size: 1.1rem; color: var(--fk-blue); font-style: italic; }

/* Page title band */
.page-head { background: var(--fk-sky-light); border-bottom: 1px solid #d3e9f3; }
.page-head .container { padding-top: 1.25rem; padding-bottom: 1rem; }
.page-head p { color: var(--fk-muted); margin: 0; }

/* Tracking */
.track-result { border: 1px solid #dbe4ee; border-radius: .75rem; margin-bottom: 1.25rem; overflow: hidden; }
.track-result .head { padding: .8rem 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; background: #f6f9fc; border-bottom: 1px solid #dbe4ee; }
.track-result .cn { font-size: 1.15rem; font-weight: 700; color: var(--fk-blue); }
.badge-state { font-size: .85rem; padding: .4em .7em; border-radius: 2rem; font-weight: 600; }
.state-delivered { background: #dff3e6; color: #146c2e; }
.state-moving { background: #e1efff; color: var(--fk-blue); }
.state-undelivered, .state-returned { background: #fff1d6; color: #8a5300; }
.state-notfound, .state-invalid { background: #fde3e3; color: var(--fk-red-dark); }
.timeline { list-style: none; margin: 0; padding: 1rem 1rem .25rem 1rem; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; border-left: 2px solid #cfdceb; margin-left: .4rem; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -.45rem; top: .2rem; width: .8rem; height: .8rem; border-radius: 50%; background: #9db4cc; }
.timeline li.latest::before { background: var(--fk-red); box-shadow: 0 0 0 4px rgba(198, 47, 47, .2); }
.timeline .when { font-size: .85rem; color: var(--fk-muted); }
.timeline .what { font-weight: 600; }
.timeline .where { font-size: .92rem; }
.table-track { font-size: .9rem; }

/* Results, cards */
.result-card { border: 1px solid #dbe4ee; border-radius: .6rem; padding: .9rem 1rem; }
.result-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.result-card .meta { color: var(--fk-muted); font-size: .9rem; }
.ok-banner { background: #dff3e6; color: #146c2e; border-radius: .6rem; padding: .8rem 1rem; }
.no-banner { background: #fde3e3; color: var(--fk-red-dark); border-radius: .6rem; padding: .8rem 1rem; }

/* Forms */
.form-section { border: 1px solid #dbe4ee; border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; }
.form-section legend { font-size: 1.05rem; font-weight: 700; color: var(--fk-blue); float: none; width: auto; padding: 0 .35rem; margin-bottom: .25rem; }
.form-label { font-weight: 600; margin-bottom: .2rem; }
.req { color: var(--fk-red); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.area-line { font-size: .9rem; color: var(--fk-muted); min-height: 1.2rem; }
.form-check-inline { margin-right: 1.5rem; }

/* HTMX loading hint */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }

/* Footer */
.site-footer { background: #10263f; color: #c8d4e2; padding: 2rem 0 1rem; margin-top: 2rem; font-size: .95rem; }
.site-footer h2 { color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--fk-sky); }
.site-footer li { padding: .2rem 0; }
.copyright { border-top: 1px solid #2a4260; margin-top: 1.25rem; padding-top: .75rem; font-size: .85rem; color: #93a6bb; }

.prose { max-width: 48rem; }
.prose p { line-height: 1.65; }
.list-columns { columns: 1; }
@media (min-width: 768px) { .list-columns { columns: 2; } }
@media (min-width: 1200px) { .list-columns { columns: 3; } }
.error-code { font-size: 4rem; font-weight: 800; color: var(--fk-sky); line-height: 1; }

/* "Try another look" links in the footer (looks.py) */
.look-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1.25rem; font-size: .85rem; color: #93a6bb; }
.look-switch a[aria-current] { font-weight: 700; text-decoration: underline; }
