/* Best & Fast Inc · light "day" inner pages (About, Services), loaded after style.css.
   Layout and motion follow unitedcarriers.com/about and /services; the colour is ours:
   cream sky, deep green ink, logo orange, yellow, green land, the dotted US map, the road. */

body.theme-day {
  --paper: var(--c-f7f2e8);
  /* client, 29 Nov: one background colour for the whole site; the old tints point to the same cream */
  --paper-2: var(--c-f7f2e8);
  --sage: var(--c-f7f2e8);
  --deep: var(--c-0b3b2a);
  --ink: var(--c-0b3b2a);
  --white: var(--c-f7f2e8);              /* style.css paints sections and the footer with --white */
  --surface: var(--c-f7f2e8);
  --grey: color-mix(in srgb, var(--c-0b3b2a) 30%, transparent);
  --grey-dark: color-mix(in srgb, var(--c-0b3b2a) 30%, transparent);
  --muted: color-mix(in srgb, var(--c-0b3b2a) 64%, transparent);
  --line: color-mix(in srgb, var(--c-0b3b2a) 14%, transparent);
  --giant: color-mix(in srgb, var(--c-0b3b2a) 5.5%, transparent);
  --green: var(--c-14724a);
  --green-light: var(--c-39b77a);
  --orange: var(--c-ff914e);
  --orange-hot: var(--c-ff7a34);
  --yellow: var(--c-ffc21a);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
  background: var(--paper); color: var(--ink);
}
.theme-day ::selection { background: var(--orange); color: var(--c-1d0b02); }
.theme-day .kicker { color: var(--orange-hot); }
.theme-day .site-header .logo { height: 70px; }
.theme-day .cursor { color: var(--c-0b3b2a); mix-blend-mode: normal; }
.theme-day .cursor i { background: var(--orange-hot); }
.theme-day .cursor.hover { color: var(--c-0b2a1e); }
.theme-day .burger { background: var(--deep); }
.theme-day .burger span { background: var(--paper); }

/* ---------------- buttons (same as the home: pill + round arrow, fill slides up) */
.theme-day .btn {
  --b-fg: var(--deep); --b-inv: var(--paper);
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 7px 0 24px; border-radius: 999px; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--b-fg); border: 1px solid color-mix(in oklab, var(--b-fg) 30%, transparent); background: transparent; cursor: pointer;
}
.theme-day .btn::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--orange); transform: translateY(102%); transition: transform .55s var(--ease); }
.theme-day .btn i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--b-fg) 10%, transparent); transition: transform .5s var(--ease), background .35s; }
.theme-day .btn i::before {
  content: ''; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.theme-day .btn:hover { color: var(--c-1d0b02); border-color: transparent; }
.theme-day .btn:hover::before { transform: none; }
.theme-day .btn:hover i { transform: rotate(45deg); background: color-mix(in srgb, var(--c-1d0b02) 12%, transparent); }
.theme-day .btn-solid { background: var(--deep); color: var(--paper); border-color: transparent; }
.theme-day .btn-solid i { background: color-mix(in srgb, var(--c-f7f2e8) 14%, transparent); }
.theme-day .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-day .header-cta { height: 46px; }
.theme-day .header-cta i { width: 32px; height: 32px; }

/* ---------------- one-shot reveals */
/* text sweep: ink fills in from the left with an orange leading edge (reference: blue edge) */
@property --sweep { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

/* heading lines rise out of their mask when they come into view */
.theme-day .io-lines:not(.in) .ln > span { transform: translateY(105%); }
.theme-day .io-lines .ln > span { transition: transform 1.1s var(--expo); }
.theme-day .io-lines .ln:nth-child(2) > span { transition-delay: .08s; }
.theme-day .io-lines .ln:nth-child(3) > span { transition-delay: .16s; }
/* lines draw from the left */
.theme-day .rule { display: block; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--expo) .2s; }
.theme-day .rule.in { transform: none; }

.board { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.board li { display: grid; grid-template-columns: 10px 1fr 10px 22%; align-items: center; gap: 10px; padding: 13px 12px; border-top: 1px solid var(--line); transition: background .5s, transform .6s var(--expo); }
.board i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--green); }
.board li i:last-of-type { background: var(--green); }
.board b { height: 1.5px; background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 11px); opacity: .55; }
.board em { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--c-0b3b2a) 18%, transparent); }
.board li.on { background: var(--orange); border-radius: 4px; transform: scale(1.04); border-top-color: transparent; }
.board li.on i { border-color: var(--deep); } .board li.on i:last-of-type { background: var(--deep); }
.board li.on b { background: repeating-linear-gradient(90deg, var(--deep) 0 6px, transparent 6px 11px); opacity: .8; }
.board li.on em { background: color-mix(in srgb, var(--c-0b3b2a) 50%, transparent); }

/* ---------------- hero (both pages) */

/* ---------------- Services · sticky menu, visual and blocks */

.sv-menu { position: sticky; top: 18vh; display: flex; flex-direction: column; }
.sv-group { margin: 22px 0 4px; padding: 6px 8px; color: var(--muted); background: color-mix(in srgb, var(--c-0b3b2a) 5%, transparent); font-size: 10px; }
.sv-group:first-of-type { margin-top: 0; }
.sv-link { position: relative; z-index: 1; padding: 9px 8px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .35s; }
.sv-link:hover { color: var(--deep); }
.sv-link.active { color: var(--paper); }
.sv-hl { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 36px; background: var(--deep); border-radius: 2px; transition: transform .55s var(--expo), height .55s var(--expo); }

/* generic rise-in (reference: opacity 0 -> 1, y 32px -> 0, 1 s, power3) */
.theme-day .rise { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1s var(--expo); }
.theme-day .rise.in { opacity: 1; transform: none; }

.ct-k { margin: 0 0 8px; color: var(--muted); font-size: 10.5px; }
.ct-v { display: block; font-family: var(--body); font-weight: 500; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.45; margin: 0; }
a.ct-v { width: fit-content; background: linear-gradient(var(--orange-hot), var(--orange-hot)) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .25s; }
a.ct-v:hover { background-size: 100% 1px; color: var(--green); }

.ct-h { font-size: clamp(24px, 2.2vw, 38px); font-stretch: 118%; font-weight: 800; line-height: 1; margin-bottom: 26px; }
.ct-form { max-width: 640px; }
.ct-fields { display: grid; gap: 4px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* underline fields with the label sitting in the line and lifting on focus or when filled */
.ct-field { position: relative; padding-top: 18px; }
.ct-field input, .ct-field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--c-0b3b2a) 22%, transparent); padding: 16px 0 12px; min-height: 58px; transition: border-color .3s;
}
.ct-field textarea { min-height: 130px; resize: vertical; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-bottom-color: var(--deep); }
.ct-field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--orange-hot); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--expo); }
.ct-field:focus-within::after { transform: none; }
.ct-field label { position: absolute; left: 0; top: 34px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--expo), color .3s, font-size .3s; }
.ct-field input:focus + label, .ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label, .ct-field textarea:not(:placeholder-shown) + label { transform: translateY(-26px); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-hot); }
.ct-send { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
.ct-send .form-status { color: var(--green); font-size: 14px; max-width: 320px; }

/* ---------------- Privacy Policy */
.legal { padding-top: clamp(150px, 20vh, 220px); padding-bottom: clamp(80px, 9vw, 150px); }
.legal-top { padding-bottom: clamp(36px, 4vw, 60px); }
.legal-top h1 { font-size: clamp(56px, 8vw, 150px); font-stretch: 118%; font-weight: 800; line-height: .88; margin-bottom: 24px; }
.legal-meta { color: var(--muted); margin: 0; }
.legal-body { display: grid; grid-template-columns: 22% minmax(0, 720px); gap: clamp(20px, 3vw, 56px); padding-top: clamp(40px, 5vw, 80px); min-height: 30vh; }
.legal-toc { position: sticky; top: 18vh; align-self: start; display: grid; gap: 10px; }
.legal-text h2 { font-size: clamp(22px, 1.9vw, 32px); font-stretch: 118%; font-weight: 800; margin: 48px 0 14px; }
.legal-text p, .legal-text li { color: var(--muted); font-size: 16px; line-height: 1.6; }
.legal-text > .legal-meta { margin-bottom: 8px; }
.legal-text h2:first-of-type { margin-top: 28px; }
.legal-text ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal-text li { margin-bottom: 6px; }
.legal-text a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .25s, color .25s; }
.legal-text a:hover { color: var(--orange-hot); border-color: currentColor; }
.legal-text h2 { scroll-margin-top: 110px; }
.legal-toc a { color: var(--muted); transition: color .25s; }
.legal-toc a:hover { color: var(--ink); }

/* ---------------- below 1024: stack, no pinning (mobile pass comes at the end of the project) */
@media (max-width: 1024px) {

  .sv-menu { display: none; }

  .legal-body { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1fr; }
}

.logo .logo-night { display: none; }

/* owner (28 Nov): the logo reads too small; desktop only, phones keep their sizes */
@media (min-width: 769px) {
  .theme-day .site-header .logo { height: 100px; }
  .theme-day.hdr-fixed .site-header .logo, .hdr-fixed .site-header .logo { height: 100px; }
}
