/* Pacific Lien Sales — site styles.
   Look follows the original site: blue page, white rounded panel, checkered
   flags + Shelby header, blue uppercase menu, traffic-light sidebar. */
:root {
  --page: #2a79be;          /* original page background (matches header-shelby.jpg) */
  --blue: #1e79ef;          /* original title / menu blue */
  --blue-600: #155fc0;
  --blue-50: #eaf2fd;
  --navy: #0d3a6e;
  --accent: #ffb703;
  --accent-600: #f2a200;
  --ink: #000;
  --text: #222;
  --muted: #666;
  --line: #ccc;
  --line-soft: #e3e3e3;
  --bg-alt: #f4f4f4;
  --danger: #c00;
  --ok: #1b7f4a;
  --radius: 10px;
  --radius-sm: 6px;
  --font: Tahoma, Verdana, "DejaVu Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --car-w: 400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--page); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: bold; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; 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: 12px; top: -60px; background: #000; color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.break { overflow-wrap: anywhere; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
abbr[title] { text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6em 1.1em; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: bold; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 50px; padding: .75em 1.4em; font-size: 1.05rem; }
.btn-sm { min-height: 34px; padding: .35em .8em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: var(--accent-600); color: #000; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-light { background: #fff; color: #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
button.link { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: 6px; }

/* ---------- panel + header (original layout) */
.panel { position: relative; max-width: 840px; margin: 50px auto 30px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 14px 16px; }
@media (min-width: 900px) { .panel { max-width: 1040px; } }
.site-header { position: relative; min-height: 96px; display: flex; align-items: center; }
.header-car { position: absolute; right: 12px; top: -61px; width: var(--car-w); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px 0 4px; position: relative; z-index: 1; }
.logo-flags { width: 110px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { color: var(--blue); font-weight: bold; font-size: 2rem; line-height: 1.1; }
.brand-tag { color: var(--muted); font-weight: bold; font-size: 1.05rem; line-height: 1.2; max-width: 22em; }

.navbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { display: block; padding: 3px 5px; color: var(--blue); text-decoration: none; text-transform: uppercase; font-size: 15px; }
.nav a:hover { background: var(--blue); color: #000; }
.nav a[aria-current="page"] { background: var(--blue); color: #000; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-call { display: inline-flex; align-items: center; gap: 6px; font-weight: bold; color: #000; text-decoration: none; white-space: nowrap; }
.header-call .ico { color: var(--blue); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 6px; font-size: .8rem; font-weight: bold; color: var(--blue); text-decoration: none; }
.lang a + a { border-left: 1px solid var(--line); }
.lang a[aria-current="true"] { background: var(--blue); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--blue); font: inherit; font-weight: bold; text-transform: uppercase; cursor: pointer; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.lang-suggest { background: #0d3a6e; color: #fff; font-size: .95rem; }
.lang-suggest .wrap { max-width: 1040px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-suggest span { flex: 1 1 200px; }

/* ---------- main layout: content + traffic lights */
.layout { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 26px; padding-top: 16px; }
.layout > main { grid-column: 2; grid-row: 1; min-width: 0; }
.lights { grid-column: 1; grid-row: 1; }
.lights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.light { position: relative; display: block; border-radius: 10px; overflow: hidden; text-decoration: none; }
.light img { width: 100%; }
.light span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 22%; font-family: Arial, Helvetica, sans-serif; font-size: 19px; line-height: 1.15; color: #000; text-shadow: 0 0 6px rgba(255,255,255,.55); }
.light-red img { filter: hue-rotate(-42deg) saturate(1.5); }
.light-green img { filter: hue-rotate(80deg) saturate(1.3); }
.light:hover img { filter: brightness(1.12); }
.light-red:hover img { filter: hue-rotate(-42deg) saturate(1.5) brightness(1.12); }
.light-green:hover img { filter: hue-rotate(80deg) saturate(1.3) brightness(1.12); }
.layout-home { grid-template-columns: minmax(0, 1fr); }
.layout-home > main { grid-column: 1; }
.layout-home .lights { grid-column: 1; grid-row: 2; margin-top: 24px; }
.layout-home .lights ul { grid-template-columns: repeat(3, 140px); justify-content: center; gap: 14px; }

/* ---------- content */
.page-head { margin-bottom: 18px; }
.page-head h1 { margin-bottom: .3em; }
.lead { font-size: 1.08rem; color: #333; max-width: 62ch; }
.page-head .lead { margin-bottom: 0; }
.block { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: bold; text-decoration: none; }
.prose p { color: #222; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

.home-photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.home-photo img { width: 100%; }
.call-now { position: absolute; left: 0; right: 0; top: 0; padding: 4px 10px; text-align: center; color: #fff; font-weight: bold; font-size: clamp(1.1rem, .7rem + 2.2vw, 2rem); text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.call-now:hover { color: #fff; text-decoration: underline; }
.intro { margin-top: 22px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.home-cols, .about-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 26px; margin-top: 26px; align-items: start; }
.cost-card, .calc { padding: 18px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.cost-card h2, .calc h2 { font-size: 1.15rem; }
.cost-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cost-rows li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "b b"; gap: 4px 12px; align-items: baseline; }
.cr-label { grid-area: l; color: var(--muted); font-size: .92rem; }
.cost-rows strong { grid-area: v; font-variant-numeric: tabular-nums; }
.cr-bar { grid-area: b; height: 8px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.cr-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffc400, #f77f00); min-width: 8px; }
.cost-rows li.big { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cost-rows li.big .cr-label { color: #000; font-weight: bold; }
.cost-rows li.big strong { font-size: 1.7rem; color: #c00; line-height: 1; }
.cost-rows li.big .cr-bar span { background: linear-gradient(90deg, #f77f00, #d00); }
.hc-note { font-size: .82rem; color: var(--muted); margin: 12px 0 6px; }

.numbered, .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.numbered li, .steps li { display: flex; gap: 12px; align-items: flex-start; }
.numbered h3, .steps h2 { font-size: 1rem; text-transform: uppercase; margin: 0 0 .25em; }
.numbered p, .steps p { margin: 0; }
.num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: bold; }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: #000; font-weight: bold; font-size: .95rem; }

.band { margin-top: 30px; padding: 18px 20px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid #c9dcf7; }
.band h2 { font-size: 1.2rem; margin-bottom: .2em; }
.band p { color: #333; }

/* calculator */
.calc-result { margin: 14px 0 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--page); color: #e6f0fa; display: flex; flex-direction: column; }
.calc-result output { font-size: 1.8rem; font-weight: bold; color: #fff; line-height: 1.2; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { padding: 18px; }
.contact-card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.contact-card h2 .ico { color: var(--blue); }
.contact-card h2 + p, .contact-card address { margin-bottom: 1.2em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: bold; }
.big-link { font-size: 1.1rem; font-weight: bold; }
address { font-style: normal; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-weight: normal; }
.hours td { text-align: right; font-weight: bold; }
.online { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--ok); font-weight: bold; }

/* ---------- form */
.section-form { padding-top: 32px; }
.lien-form { display: grid; gap: 20px; }
.form-section { margin: 0; padding: 20px; min-width: 0; border: 2px solid var(--line); }
.form-section > legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 800; color: #000; margin-bottom: 6px; padding: 0; }
.form-section > legend + * { clear: both; }
.sec-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: .95rem; }
.form-section > .muted { margin: 0 0 8px; font-size: .95rem; }
.row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.field { display: flex; flex-direction: column; margin: 12px 0 0; min-width: 0; border: 0; padding: 0; }
fieldset.field { margin-top: 12px; }
.w-full { flex: 1 1 100%; }
.w-half { flex: 1 1 calc(50% - 8px); min-width: 200px; }
.w-third { flex: 1 1 calc(33.33% - 11px); min-width: 140px; }
.w-grow { flex: 1 1 260px; }
.w-zip { flex: 0 1 140px; min-width: 110px; }
.w-date { flex: 0 1 200px; min-width: 170px; }
.label { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; color: var(--ink); }
.req { color: var(--danger); font-weight: 800; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #c8d3e1; border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type="date"] { min-width: 0; }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235a6a80' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center / 22px; padding-right: 38px; }
input:hover, select:hover { border-color: #a9b8cc; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,181,.18); }
.mono { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.input-affix { position: relative; display: flex; }
.input-affix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.input-affix input { padding-left: 30px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.err { font-size: .88rem; color: var(--danger); font-weight: 700; margin-top: 6px; }
.err:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); background: #fffafa; }
.field.invalid .choice { border-color: var(--danger); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #c8d3e1; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; min-height: 52px; }
.choice input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.row-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.sub { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); }

.drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; border: 2px dashed #c8d3e1; border-radius: var(--radius-sm); background: var(--bg-alt); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--blue); background: var(--blue-50); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop input[type="file"]:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop-or { color: var(--muted); font-size: .95rem; }
html:not(.js) .drop input[type="file"] { position: static; width: auto; height: auto; opacity: 1; }
html:not(.js) .drop label, html:not(.js) .drop-or { display: none; }
.thumbs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(11,37,69,.85); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.thumbs button .ico { width: 18px; height: 18px; }

.cert-text { background: var(--bg-alt); border-left: 4px solid var(--blue); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; color: #34445c; margin: 6px 0 4px; }
.submit-row { display: grid; gap: 10px; }
.submit-row .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius-sm); background: #fdecec; color: #8e1b1b; border: 1px solid #f5c2c2; font-weight: 700; }
.form-status.ok { background: #e8f6ee; color: #145c36; border-color: #b9e2c9; }
.success { padding: 40px 28px; text-align: center; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e8f6ee; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.success-icon .ico { width: 36px; height: 36px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* ---------- footer */
.site-footer { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line-soft); text-align: center; color: #777; font-size: 13px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #777; }
.footer-contact a { color: var(--blue); font-weight: bold; }

.mobile-bar { display: none; }

/* ---------- responsive */
@media (max-width: 960px) {
  :root { --car-w: 330px; }
  .header-car { top: -50px; }
  .brand-name { font-size: 1.7rem; }
  .brand-tag { font-size: .95rem; max-width: 15em; }
  .home-cols, .about-cols { grid-template-columns: 1fr; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
  .mobile-bar .btn { flex: 1 1 0; min-width: 0; }
  .mobile-bar .btn span { overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar .btn:first-child:not(:only-child) { flex: 0 1 auto; }
  .header-call { display: none; }
}
@media (max-width: 860px) {
  /* menu collapses */
  .nav-toggle { display: inline-flex; }
  .nav { order: 3; flex: 1 1 100%; display: none; }
  .nav.open { display: block; }
  html:not(.js) .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 12px 10px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
  /* car sits centered above the panel, brand centered under it */
  :root { --car-w: min(calc(100vw - 24px), 400px); }
  .panel { margin: calc(var(--car-w) * .147 + 4px) 0 0; border-left: 0; border-right: 0; border-radius: 12px 12px 0 0; padding: 0 16px 16px; }
  .site-header { flex-direction: column; min-height: 0; }
  .header-car { position: static; margin: calc(var(--car-w) * -.147 - 2px) auto 0; }
  .brand { flex-direction: column; text-align: center; gap: 4px; padding-top: 2px; }
  .logo-flags { width: 88px; }
  .brand-tag { max-width: none; }
  .navbar { margin-top: 10px; }
  .layout { grid-template-columns: 1fr; padding-top: 14px; }
  .layout > main, .lights { grid-column: 1; }
  .lights { grid-row: 2; margin-top: 26px; }
  .lights ul, .layout-home .lights ul { grid-template-columns: repeat(3, minmax(0, 120px)); justify-content: center; gap: 10px; }
  .layout-home .lights { grid-row: auto; }
  .light span { font-size: clamp(12px, 3.6vw, 16px); padding: 0 18%; }
  .form-section { padding: 16px 12px; }
  .choices { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .w-half, .w-third { flex-basis: 100%; }
  .w-grow { flex-basis: 170px; }
  .w-zip { flex-basis: 110px; }
  .btn-row .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .site-footer { margin-top: 28px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.45rem; }
  .brand-tag { font-size: .85rem; }
  .lang a { min-width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  body { background: #fff; }
  .navbar, .mobile-bar, .lights, .band { display: none; }
  .panel { border: 0; margin: 0; }
}
.nf-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; font-weight: bold; }
