/* Kowalski & Daughters · Altair Trades "Livery" design system
   Tokens first; swap these to re-skin the template for another client. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--navy-900: #132A45;    /* hero, footer: the deepest surface (14.5:1 with white) */
	--navy: #1F3A5F;        /* brand + primary action on light surfaces (11.5:1 with white) */
	--navy-d: #162C48;      /* hover */
	--ink: #14202E;         /* text */
	--muted: #4A5868;       /* secondary text (6.6:1 on mist/linen) */
	--surface: #FFFFFF;
	--mist: #EFECE6;        /* warm stone: the one band colour; alternates with white for clear contrast */
	--linen: #F6EFE4;       /* story bands */
	--frost-50: #E8F1F8;    /* cool band, used once or twice per page */
	--frost: #9FCBE8;       /* accent text on navy (8.4:1) */
	--ember: #EE7B5F;       /* primary action on navy; ink text on it (6:1) */
	--ember-h: #F28E75;
	--on-navy: #C9D7E6;     /* body text on navy (9.9:1) */
	--tint: #DCE6F0;        /* badges, image slots, focus halo */
	--line: #E2E8EF;        /* hairlines (decorative only) */
	--field: #8794A3;       /* control borders (3.1:1 on white) */
	--band-text: #D5DEE8;   /* text on navy */
	--alert: #FDF1E3;       /* safety notice */
	--alert-ink: #8A4300;
	--display: "Inter Tight", Arial, sans-serif;
	--body: Inter, Arial, sans-serif;
	--r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
	--shadow-card: 0 1px 2px rgba(20,32,46,.06), 0 6px 20px rgba(20,32,46,.06);
	--shadow-hero: 0 20px 50px rgba(20,32,46,.14);
	--container: 1200px;
	--gutter: 32px;
	--chat-h: 380px;
	--overlap: 210px;      /* how far the Home chat card sits over the hero */
	/* names the chat skin reads */
	--ap-primary: var(--navy); --ap-primary-soft: var(--tint); --ap-mist: var(--mist); --ap-graphite: var(--ink); --ap-steel: var(--muted); --ap-stone: var(--field); --ap-body: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-d); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: var(--r-sm); }
.util a:focus-visible, .ink a:focus-visible, .demo-strip a:focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
blockquote { margin: 0; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-md); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* Layout */
.c { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 96px 0; }
.alt { background: var(--mist); }
.frost { background: var(--frost-50); }
div.alt { border-radius: var(--r-lg); }
.warm { background: var(--linen); }
.ink { background: var(--navy); color: var(--band-text); }
.ink h2, .ink h3 { color: #fff; }
.ink a { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 64px; }
.rq-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 56px; align-items: start; }

/* Type */
.h-hero { font-size: clamp(46px, 6.2vw, 88px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.h-page { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.h-sec { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.15; font-weight: 800; }
.h-card { font-size: 24px; line-height: 1.25; font-weight: 800; }
.h-item { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.6; max-width: 36em; color: var(--muted); }
.body { max-width: 38em; }
.meta { font-size: 16px; color: var(--muted); }
.ink .meta { color: var(--band-text); }
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { margin-top: 18px; }

/* Buttons and links */
.btn, .btn2, .btn-inv { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; font: 600 17px/1.3 var(--body); text-decoration: none; border-radius: var(--r-md); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn { background: var(--navy); color: #fff; border: 0; }
.btn:hover { background: var(--navy-d); color: #fff; }
.btn2 { background: #fff; color: var(--ink); border: 1.5px solid var(--field); }
.btn2:hover { border-color: var(--navy); color: var(--navy); }
.btn-inv { background: #fff; color: var(--navy); border: 0; }
.btn-sm { min-height: 46px; padding: 11px 20px; }
a.btn, a.btn:hover { color: #fff; }
.tl { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; display: inline-flex; align-items: center; min-height: 44px; }

/* Components */
.num { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 999px; background: var(--tint); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font: 800 18px/1 var(--display); }
.card, .cardw { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.rank { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.rank::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--navy); margin-bottom: 10px; }
.ink .rank { background: rgba(255,255,255,.07); border-radius: var(--r-lg); padding: 28px; }
.ink .rank::before { background: #fff; }
.ink blockquote { color: #fff; font-size: 18px; }
.row { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-direction: column; gap: 4px; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check .box { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px; background: var(--tint); position: relative; margin-top: 2px; }
.check .box::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.alert { background: var(--alert); border-radius: var(--r-lg); }
.alert h2 { color: var(--alert-ink); }
.crumb { font-size: 15px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.demo-note { background: var(--alert); color: var(--ink); border-radius: var(--r-md); padding: 14px 18px; font-size: 16px; }
.loc-card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); display: block; box-shadow: var(--shadow-hero); }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; padding: 22px 0; cursor: pointer; min-height: 44px; }
summary::marker { color: var(--navy); }
details p { padding: 0 0 22px; max-width: 38em; color: var(--muted); }

/* Forms */
label { font-weight: 600; display: block; margin-bottom: 8px; font-size: 16px; }
input, select, textarea { font: 17px/1.4 var(--body); border: 1.5px solid var(--field); padding: 14px 16px; border-radius: var(--r-md); width: 100%; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 3px solid var(--tint); outline-offset: 0; border-color: var(--navy); }
input[type="file"] { padding: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; border: 1.5px solid var(--field); border-radius: var(--r-md); padding: 0 16px; background: #fff; font-weight: 500; margin: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--navy); background: #F4F7FB; box-shadow: inset 0 0 0 1px var(--navy); }
.opt input { width: 20px; height: 20px; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--navy); }
.opt:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }

/* Demo strip and two-tier header */
.demo-strip { background: var(--ink); color: #E8ECF1; font-size: 14px; line-height: 1.4; }
.demo-strip .c { padding-top: 8px; padding-bottom: 8px; }
.demo-strip a { color: #fff; }
.hdr { background: #fff; position: relative; z-index: 10; }
.hdr .c { max-width: 1320px; }
.hdr-top { border-bottom: 1px solid var(--line); }
.hdr-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.hdr-main-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 10px; padding-bottom: 10px; }
.hdr-main { border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-height: 44px; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.mono { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 15px/1 var(--display); flex: 0 0 auto; }
.brand-n { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; display: block; line-height: 1.15; white-space: nowrap; }
.brand-s { font-size: 14px; color: var(--muted); display: block; line-height: 1.3; }
.hdr-msg { font-size: 15px; color: var(--muted); text-align: center; flex: 1 1 auto; }
.hdr-msg strong { color: var(--ink); }
.hdr-msg a { font-weight: 600; white-space: nowrap; }
.nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 32px; }
.nav a, .btn, .btn2 { white-space: nowrap; }
.nav a { font-weight: 500; font-size: 17px; text-decoration: none; color: var(--ink); min-height: 48px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--navy); }
.hdr-act { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.hdr-phone { font-weight: 700; font-size: 19px; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; }
.menu-btn { display: none; }
.mnav { border-top: 1px solid var(--line); background: #fff; }
.mnav[hidden] { display: none; }
.mnav ul { list-style: none; padding: 8px 0 20px; display: flex; flex-direction: column; }
.mnav li a { display: flex; align-items: center; min-height: 52px; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav li a[aria-current="page"] { color: var(--navy); }
.mnav .mnav-act { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 0 24px; }

/* Hero: one solid navy field with a clean edge */
.hero { position: relative; color: var(--on-navy); background: var(--navy-900); padding: 64px 0 88px; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .lead { color: var(--on-navy); }
.hero .meta, .hero .crumb, .hero .crumb a { color: var(--on-navy); }
.hero .accent { color: var(--frost); }
.hero a:not(.btn):not(.btn2):not(.tl) { color: #fff; }
.hero .tl { color: #fff; }
.hero .btn, .ftr .btn { background: var(--ember); color: var(--ink); }
.hero .btn:hover, .ftr .btn:hover { background: var(--ember-h); color: var(--ink); }
.hero .btn2 { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn2:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.hero .card, .hero .card * { color: var(--ink); }
.hero .card .meta { color: var(--muted); }
.hero .card a:not(.btn):not(.btn2):not(.tl), .hero .card .tl { color: var(--navy); }
.hero .card .btn { background: var(--navy); color: #fff; }
.hero a:focus-visible, .hero button:focus-visible { outline-color: var(--frost); }
.hero img { box-shadow: var(--shadow-hero); }
.hero-home { padding: 72px 0 calc(var(--overlap) + 64px); }
.hero-home .h-hero { font-size: clamp(44px, 5.2vw, 72px); line-height: 1.02; }
/* Home: the hero ends halfway behind the chat card */
.hero-home + .chat-sec { margin-top: calc(-1 * var(--overlap)); position: relative; z-index: 1; background: linear-gradient(transparent var(--overlap), var(--mist) var(--overlap)); }

/* Chat */
.chat-sec { padding: 0 0 96px; }
.chat-sec.alt { padding-top: 96px; }
.chat-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 28px 28px 28px 40px; }
.chat-intro { display: flex; flex-direction: column; gap: 14px; }
.chat-from { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.chat-from .mono { width: 40px; height: 40px; border-radius: 999px; font-size: 13px; }
.chat-from .meta { font-weight: 400; font-size: 15px; }
.chat-sub { font-size: 17px; max-width: 30em; }
.chat-alt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.chat-alt .meta { font-size: 15px; }
@media (max-width: 900px) { .chat-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; } }
/* A form on a stone band sits on its own white card, so field borders keep their contrast */
.alt form[data-demo-form] { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 32px; }
.chat-msg { background: var(--mist); border-radius: 4px 16px 16px 16px; padding: 14px 18px; max-width: 34em; }
.chat-slot { min-height: var(--chat-h); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); position: relative; }
.chat-slot .chat-wait { display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: flex-start; min-height: var(--chat-h); padding: 28px; color: var(--muted); }
.chat-slot[data-loaded] .chat-wait { display: none; }
.chat-slot.is-unavailable .chat-wait { display: flex; }

/* Footer and mobile bar */
.ftr { background: var(--navy-900); color: var(--on-navy); padding: 72px 0 40px; }
.ftr h2, .ftr .brand-n, .ftr strong { color: #fff; }
.ftr .meta { color: var(--on-navy); }
.ftr a { color: #fff; }
.ftr .tl { color: #fff; }
.ftr .mono { background: #fff; color: var(--navy-900); }
.ftr [style*="border-top:1px solid var(--line)"] { border-top-color: rgba(255,255,255,.16) !important; }
.ftr a:focus-visible { outline-color: var(--frost); }
.ftr a.plain { color: #fff; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.ftr a.plain:hover { color: #fff; text-decoration: underline; }
.ftr-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 40px; }
.mbar { display: none; }

@media (max-width: 1180px) {
	.hdr-msg { display: none; }
}
@media (max-width: 1023px) {
	.hdr-main { display: none; }
	.menu-btn { display: inline-flex; }
	.hdr-top { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
	.rq-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	:root { --gutter: 20px; --chat-h: 420px; --overlap: 120px; }
	.sec { padding: 64px 0; }
	.hdr-phone .ptxt { display: none; }
	.hdr-phone { width: 44px; height: 44px; justify-content: center; border: 1.5px solid var(--field); border-radius: var(--r-md); }
	.brand-s { display: none; }
	.brand-n { font-size: 17px; white-space: normal; }
	.brand { gap: 10px; }
	.hdr-act { gap: 10px; }
	.hdr-in { gap: 12px; }
	.menu-btn { min-height: 44px; padding: 8px 16px; }
	.card, .cardw { padding: 24px; }
	.chat-card { padding: 20px; gap: 20px; }
	.chat-sec { padding-bottom: 64px; }
	.chat-sec.alt { padding-top: 64px; }
	.alt form[data-demo-form] { padding: 22px; }
	.ds-long { display: none; }
	.lead { font-size: 18px; }
	.hero-img { aspect-ratio: 4 / 3; }
	.hero { padding: 40px 0 64px; }
	.brand { flex: 1 1 auto; min-width: 0; }
	.hero-home { padding: 40px 0 calc(var(--overlap) + 48px); }
	.hdr-top-in { padding-top: 10px; padding-bottom: 10px; }
	.util-link { display: none !important; }
	.mbar { display: grid; position: sticky; bottom: 0; z-index: 20; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,32,46,.08); }
	.mbar .btn, .mbar .btn2 { padding: 12px 10px; }
	.row[style*="justify-content:space-between"] { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Long addresses wrap inside their card instead of overflowing it */
.card a[href^="mailto:"], .ftr a[href^="mailto:"] { overflow-wrap: anywhere; }
