/* Rocking C Farms · Pilot Car Routes website
   Same palette as the app (app/src/lib/theme.ts): dark tooled leather for the road,
   cream and tan for the office, turquoise for the route, jade for go, brass for headings. */

:root {
  --bg: #140F0B;
  --surface: #22180F;
  --ink: #F2E7D3;
  --muted: #CDB79A;
  --line: #4A3624;
  --turquoise: #36C9BE;
  --on-turquoise: #06201D;
  --brass: #D3A64B;
  --cream: #F2EADD;
  --card: #FBF7F0;
  --tan: #E8DCCB;
  --tan-line: #D9C9B2;
  --text: #2A1F18;
  --text-muted: #5E4A39;
  --teal-ink: #0F7C73;
  --radius: 16px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); }
a:hover { color: #0A5A54; }
h1, h2, h3 { font-family: 'Oswald', system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--turquoise); color: var(--on-turquoise); padding: 8px 12px; border-radius: 8px; }

/* ---------- dark (road) sections ---------- */
.dark { background: var(--bg); color: var(--ink); }
.dark a { color: var(--turquoise); }

.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; flex-direction: column; text-decoration: none; flex-grow: 1; }
.dark .brand { color: var(--ink); }
.brand-name { font-family: 'Rye', Georgia, serif; font-size: 26px; line-height: 1.1; }
.brand-by { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 0.18em; color: var(--turquoise); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; color: #E6D6C0; font-size: 17px; border-radius: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: #2B1F15; }
.site-nav .login { border: 1px solid var(--line); margin-left: 6px; font-weight: 700; color: var(--ink); }

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; padding-top: 32px; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 56px; }
.eyebrow { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 0.16em; color: var(--turquoise); }
.light .eyebrow { color: var(--teal-ink); }
.hero h1 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(38px, 6vw, 58px); line-height: 1.08; }
.lead { font-size: 21px; color: #DCCBB4; max-width: 34em; }
.hero-img { flex: 1 1 360px; display: flex; justify-content: center; }
.hero-img img { width: 100%; height: auto; max-width: 540px; aspect-ratio: 9 / 8.4; object-fit: cover; object-position: 50% 10%; border-radius: 24px 24px 0 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 14px; font-family: 'Oswald', sans-serif; font-size: 18px; letter-spacing: 0.02em; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary, .dark a.btn-primary { background: var(--turquoise); color: var(--on-turquoise); }
.btn-primary:hover { background: #5AD6CD; color: var(--on-turquoise); }
.btn-ghost, .dark a.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--turquoise); }

/* ---------- light (office) sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 46em; }
.section-head p { color: var(--text-muted); font-size: 19px; }
.band { background: var(--tan); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--tan-line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 22px; }
.card p { color: #4A3A2C; }
.num { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); color: var(--turquoise); display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 20px; }

.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.split > * { flex: 1 1 380px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { background: var(--card); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 3px; }

.story { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.story img { width: 210px; height: auto; flex: 0 0 auto; }
.story-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.story-text p { color: #4A3A2C; }

/* ---------- request access ---------- */
.access { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.access-intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.access-intro h2 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(28px, 4vw, 36px); }
.access-intro p { color: #DCCBB4; }
form.request { flex: 1 1 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
form.request .full { grid-column: 1 / -1; }
form.request label { display: flex; flex-direction: column; gap: 6px; font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
form.request input, form.request select, form.request textarea {
  min-height: 48px; border-radius: 10px; border: 1px solid #5A4330; background: #1A120C; color: var(--ink);
  font-family: 'Alegreya Sans', sans-serif; font-size: 17px; padding: 10px 12px;
}
form.request textarea { min-height: 96px; resize: vertical; }
form.request input:focus, form.request select:focus, form.request textarea:focus { outline: 2px solid var(--turquoise); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; font-size: 17px; }
.form-status.ok { color: #5CCB93; }
.form-status.err { color: #F08A7C; }

.site-footer { border-top: 1px solid #3A2B20; padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; color: #B39C80; }

/* ---------- company page ---------- */
.page-hero { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.page-hero .hero-text { padding-bottom: 0; }
.page-hero img { width: 240px; height: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fact { background: var(--card); border: 1px solid var(--tan-line); border-radius: 16px; padding: 20px; }
.fact strong { display: block; font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 600; color: var(--text); }
.fact span { color: var(--text-muted); }
.prose { max-width: 42em; display: flex; flex-direction: column; gap: 18px; color: #3A2B20; }

/* ---------- parent company pages ---------- */
.site-nav .call { background: var(--turquoise); color: var(--on-turquoise); font-weight: 700; margin-left: 6px; }
.dark .site-nav .call { color: var(--on-turquoise); }
.site-nav .call:hover { background: #5AD6CD; color: var(--on-turquoise); }
.sub-bar { background: #1A120C; border-top: 1px solid #2B1F15; }
.sub-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 52px; }
.sub-bar strong { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: 18px; color: var(--ink); flex-grow: 1; }
.sub-bar a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; color: #E6D6C0; text-decoration: none; font-size: 16px; }
.sub-bar a:hover { color: var(--turquoise); }
.home-hero { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.home-hero h1 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(42px, 7vw, 72px); line-height: 1.05; }
.divisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.division { background: var(--card); border: 1px solid var(--tan-line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.division:hover { border-color: var(--teal-ink); transform: translateY(-2px); color: var(--text); }
.division h3 { font-size: 26px; }
.division p { color: #4A3A2C; flex-grow: 1; }
.division .more { font-family: 'Oswald', sans-serif; color: var(--teal-ink); letter-spacing: 0.02em; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); color: var(--turquoise); display: flex; align-items: center; justify-content: center; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.terms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.terms li { background: var(--card); border: 1px solid var(--tan-line); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.terms li span:first-child { font-weight: 700; }
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.contact-strip h2 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(26px, 4vw, 34px); }
.contact-strip p { color: #DCCBB4; }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  form.request { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-bottom: 24px; }
}

/* ---------- photos ---------- */
.division { padding: 0; overflow: hidden; }
.division-photo { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.division-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.photo-frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--tan-line); }
.photo-frame img { width: 100%; height: auto; }
.page-hero .hero-photo { flex: 1 1 320px; max-width: 460px; }
.page-hero .hero-photo img { width: 100%; height: auto; border-radius: 20px; }
