/* ProCar Golf Carts website — styles for the ProCar website only.
   Loaded by the ProCar layout view, so no other website in the database sees it.
   Everything is scoped under .pc so Odoo's own pages (login, portal, editor) keep their look. */

:root {
  --pc-navy: #172473;
  --pc-red: #f62d18;
  --pc-bg: #ffffff;
  --pc-surface: #ebeef7;
  --pc-divider: #d3d7ec;
  --pc-red-100: #feebe8;
  --pc-red-600: #d82312;
  --pc-red-700: #b01a0c;
  --pc-red-800: #7f1408;
  --pc-n100: #f5f6fb;
  --pc-n200: #ebeef7;
  --pc-n300: #d3d7ec;
  --pc-n400: #a2a7d2;
  --pc-n500: #6c71b8;
  --pc-n600: #4a4f93;
  --pc-n800: #111b57;
  --pc-n900: #0b123a;
  --pc-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pc-shadow-lg: 0 12px 32px rgba(11, 18, 58, .22);
  --g: 32px;
}
@media (max-width: 760px) { :root { --g: 20px; } }

/* Odoo's own header and footer are replaced by the ProCar ones on this website */
header#top, footer#bottom { display: none !important; }
body { background: var(--pc-bg); }
#wrapwrap { overflow-x: clip; background: var(--pc-bg); }

/* ---------- base ---------- */
.pc, .pc * , .pc *::before, .pc *::after { box-sizing: border-box; }
.pc { font-family: var(--pc-font); color: var(--pc-navy); font-size: 15px; line-height: 1.55; font-weight: 400; }
.pc h1, .pc h2, .pc h3, .pc h4, .pc h5 { font-family: var(--pc-font); font-weight: 800; color: inherit; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.pc p { margin: 0; }
.pc a { color: var(--pc-navy); text-underline-offset: 3px; }
.pc a:hover { color: var(--pc-red); }
.pc img { display: block; max-width: 100%; }
.pc button { font-family: var(--pc-font); }
.pc :focus { outline: none; }
.pc :focus-visible { outline: 2px solid var(--pc-red); outline-offset: 2px; }
.pc input[type=checkbox], .pc input[type=range] { accent-color: var(--pc-red); }
.pc ::selection { background: rgba(246, 45, 24, .3); }

.pc-wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--g); padding-right: var(--g); }
.pc-grid { display: grid; }
.pc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.pc-col { display: flex; flex-direction: column; }
.pc-row { display: flex; flex-wrap: wrap; }
.pc-hide { display: none !important; }
.pc-muted { color: var(--pc-n600); }
.pc-small { font-size: 13px; }
.pc-upper { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pc-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pc-kicker::before { content: ""; width: 10px; height: 10px; background: var(--pc-red); flex: none; }
.pc-sq { display: inline-block; width: 8px; height: 8px; background: var(--pc-red); flex: none; }
.pc-sample { font-size: 12px; margin: 0; color: var(--pc-n600); }

.pc-h1 { font-size: clamp(40px, 5.4vw, 76px) !important; line-height: .96 !important; letter-spacing: -.035em !important; text-wrap: balance; }
.pc-h1-hero { font-size: clamp(42px, 6.4vw, 92px) !important; line-height: .95 !important; letter-spacing: -.035em !important; text-wrap: balance; }
.pc-h2 { font-size: clamp(34px, 4vw, 52px) !important; line-height: 1 !important; letter-spacing: -.03em !important; }
.pc-lead { font-size: 18px; text-wrap: pretty; }

/* ---------- photos ---------- */
.pc-photo { position: relative; background: var(--pc-surface); overflow: hidden; }
.pc-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-r43 { aspect-ratio: 4 / 3; }
.pc-r1 { aspect-ratio: 1; }
.pc-r169 { aspect-ratio: 16 / 9; }

/* ---------- buttons ---------- */
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none !important;
  font-family: var(--pc-font); font-weight: 800; font-size: 15px; line-height: 1.2; color: var(--pc-navy);
  background: transparent; border: 2px solid transparent; border-radius: 0; padding: 14px 20px; transition: background .15s, color .15s; }
.pc-btn svg { display: block; flex: none; }
.pc-btn:disabled { opacity: .45; cursor: not-allowed; }
.pc-btn-lg { padding: 16px 22px; font-size: 16px; }
.pc-btn-sm { padding: 10px 14px; font-size: 14px; }
.pc-btn-wide { justify-content: space-between; }
.pc-btn-primary { background: var(--pc-red); border-color: var(--pc-red); color: #fff !important; }
.pc-btn-primary:hover:not(:disabled) { background: var(--pc-red-600); border-color: var(--pc-red-600); color: #fff !important; }
.pc-btn-outline { border-color: var(--pc-navy); color: var(--pc-navy) !important; }
.pc-btn-outline:hover { background: rgba(23, 36, 115, .07); color: var(--pc-navy) !important; }
.pc-btn-white { background: #fff; border-color: #fff; color: var(--pc-navy) !important; }
.pc-btn-white:hover { background: var(--pc-surface); border-color: var(--pc-surface); }
.pc-btn-ghost-white { border-color: #fff; color: #fff !important; }
.pc-btn-ghost-white:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }
.pc-link-btn { background: none; border: 0; padding: 2px 0; cursor: pointer; font: inherit; font-weight: 800; color: var(--pc-navy); display: inline-flex; align-items: center; gap: 8px; }
.pc-link-btn:hover { color: var(--pc-red); }
.pc-link-btn.u { font-weight: 600; text-decoration: underline; }
.pc-icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--pc-navy); flex: none; }
.pc-icon-btn:hover { background: rgba(23, 36, 115, .08); }

/* chips (colours) */
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-chip .sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.22); }
.pc-chip { display: inline-flex; align-items: center; padding: 10px 14px; font-size: 14px; font-weight: 800; border: 2px solid var(--pc-divider); background: #fff; color: var(--pc-navy); cursor: pointer; font-family: var(--pc-font); }
.pc-chip:hover { border-color: var(--pc-navy); }
.pc-chip.is-on { background: var(--pc-navy); border-color: var(--pc-navy); color: #fff; }

/* segmented control */
.pc-seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--pc-navy); align-self: flex-start; }
.pc-seg-opt { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; margin: 0; }
.pc-seg-opt + .pc-seg-opt { border-left: 1px solid var(--pc-divider); }
.pc-seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pc-seg-opt:has(input:checked) { background: var(--pc-red); color: #fff; }
.pc-seg-opt:not(:has(input:checked)):hover { background: rgba(23, 36, 115, .07); }
.pc-seg-opt:has(input:focus-visible) { outline: 2px solid var(--pc-red); outline-offset: -2px; }

/* radio rows */
.pc-radio { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--pc-n300); font-size: 15px; cursor: pointer; margin: 0; }
.pc-radio input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pc-radio .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--pc-n400); }
.pc-radio:hover .dot { border-color: var(--pc-red); }
.pc-radio input:checked + .dot { border-color: var(--pc-red); background: var(--pc-red); box-shadow: inset 0 0 0 4px #fff; }
.pc-radio input:focus-visible + .dot { outline: 2px solid var(--pc-red); outline-offset: 2px; }
.pc-radio .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pc-check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--pc-n300); cursor: pointer; font-size: 15px; margin: 0; }
.pc-check input { width: 18px; height: 18px; margin: 0; flex: none; }
.pc-addon { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; padding: 14px 16px; background: #fff; margin: 0; }
.pc-addon input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.pc-addon .grow { flex: 1; display: flex; flex-direction: column; gap: 4px; }

/* tags */
.pc-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; }
.pc-tag-red { background: var(--pc-red-100); color: var(--pc-red-800); }
.pc-tag-grey { background: var(--pc-n100); color: var(--pc-n800); }
.pc-tag-white { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--pc-navy); pointer-events: none; }

/* forms */
.pc-field { display: flex; flex-direction: column; }
.pc-field > label { display: block; font-size: 12px; margin-bottom: 5px; color: var(--pc-n600); font-weight: 600; }
.pc-input { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 15px; color: var(--pc-navy); caret-color: var(--pc-red);
  background: var(--pc-surface); border: 1px solid var(--pc-n300); border-radius: 0; }
.pc-input:hover { border-color: var(--pc-n500); }
.pc-input:focus-visible { border-color: var(--pc-red); outline-offset: 0; }
textarea.pc-input { min-height: 110px; resize: vertical; }
.pc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.pc-err { font-size: 14px; font-weight: 600; color: var(--pc-red-700); }
.pc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pc-stepper { display: flex; border: 1px solid var(--pc-n300); min-height: 46px; }
.pc-stepper button { width: 46px; font-size: 20px; background: #fff; border: 0; cursor: pointer; color: var(--pc-navy); }
.pc-stepper button:first-child { border-right: 1px solid var(--pc-n300); }
.pc-stepper button:last-child { border-left: 1px solid var(--pc-n300); }
.pc-stepper span { flex: 1; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--pc-surface); }

/* tables / rows */
.pc-kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--pc-n600); }
.pc-kv-list { display: flex; flex-direction: column; font-size: 14px; border-top: 1px solid var(--pc-n600); }
.pc-specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.pc-specs td { padding: 14px 0; border-bottom: 1px solid var(--pc-n300); vertical-align: top; }
.pc-specs td:first-child { width: 40%; font-weight: 600; padding-right: 8px; }

/* dark panels */
.pc-dark { background: var(--pc-navy); color: #fff; }
.pc-dark h1, .pc-dark h2, .pc-dark h3, .pc-dark strong { color: #fff; }
.pc-redband { background: var(--pc-red); color: #fff; }
.pc-redband h2 { color: #fff; }
.pc-panel { background: var(--pc-n100); }
.pc-surface { background: var(--pc-surface); }

/* ---------- header ---------- */
.pc-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--pc-n300); }
.pc-util { background: var(--pc-navy); color: #fff; font-size: 13px; }
.pc-util .pc-wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; }
.pc-util a { color: #fff !important; font-weight: 600; text-decoration: none; }
.pc-bar { max-width: 1280px; margin: 0 auto; padding: 12px clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: clamp(12px, 2.4vw, 36px); }
.pc-logo { display: block; line-height: 0; flex: none; }
.pc-logo img { height: clamp(36px, 4.4vw, 54px); width: auto; }
.pc-nav { display: flex; gap: clamp(12px, 2vw, 28px); margin-right: auto; min-width: 0; white-space: nowrap; }
.pc-nav a { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 0; color: var(--pc-navy); border-bottom: 3px solid transparent; }
.pc-nav a:hover, .pc-nav a.is-active { color: var(--pc-red); }
.pc-nav a.is-active { border-bottom-color: var(--pc-red); }
.pc-bar-actions { display: flex; align-items: center; gap: 12px; flex: none; white-space: nowrap; }
.pc-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--pc-n300); background: #fff; cursor: pointer; place-items: center; color: var(--pc-navy); }
.pc-burger .x { display: none; }
.pc-header.is-open .pc-burger .x { display: block; }
.pc-header.is-open .pc-burger .bars { display: none; }
.pc-mobile-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 64px); overflow: auto; background: #fff;
  border-top: 1px solid var(--pc-n200); padding: 8px var(--g) 32px; flex-direction: column; }
.pc-mobile-menu > a { display: flex; justify-content: space-between; align-items: center; min-height: 64px; font-size: 26px; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; color: var(--pc-navy); border-bottom: 1px solid var(--pc-n200); }
.pc-mobile-menu > a.is-active { color: var(--pc-red); }
.pc-mobile-menu .pc-talk { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--pc-n100); }
.pc-mobile-menu .pc-talk .ph { font-size: 24px; font-weight: 800; text-decoration: none; }
@media (max-width: 960px) {
  .pc-util { display: none; }
  .pc-nav, .pc-bar-actions .pc-plan-link { display: none !important; }
  .pc-burger { display: inline-grid; }
  .pc-bar { padding: 10px var(--g); gap: 10px; }
  .pc-logo { margin-right: auto; }
  .pc-logo img { height: 40px; }
  .pc-bar-actions .pc-btn { padding: 0 14px; height: 44px; font-size: 14px; }
  .pc-bar-actions .pc-btn svg { display: none; }
  .pc-header.is-open .pc-mobile-menu { display: flex; }
}

/* ---------- footer ---------- */
.pc-footer { background: var(--pc-navy); color: #fff; }
.pc-footer a { color: #fff !important; }
.pc-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.pc-footer .brand { grid-column: span 2; }
.pc-footer .lbl { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pc-n400); }
.pc-footer .nav a { text-decoration: none; font-weight: 600; }
.pc-footer .nav a:hover { text-decoration: underline; }
.pc-footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--pc-n500); font-size: 13px; }
@media (max-width: 760px) { .pc-footer .brand { grid-column: span 1; } }

/* ---------- cards ---------- */
.pc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 28px; }
.pc-card { display: flex; flex-direction: column; background: #fff; color: var(--pc-navy) !important; text-decoration: none !important; }
a.pc-card:hover { color: var(--pc-red-700) !important; }
.pc-card .body { padding: 20px 0 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pc-card h3 { font-size: 24px; letter-spacing: -.02em; }
.pc-tile { display: flex; flex-direction: column; gap: 14px; padding: 36px 28px 32px; text-decoration: none !important; color: var(--pc-navy) !important; min-height: 240px; background: var(--pc-surface); transition: background .15s; }
.pc-tile:hover { background: var(--pc-n300); }
.pc-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pc-rates > div { padding: 12px 14px; display: flex; flex-direction: column; background: var(--pc-n100); }
.pc-rates span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.pc-rates strong { font-size: 19px; }

/* ---------- product modes ---------- */
.pc-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pc-mode { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--pc-n100); color: var(--pc-navy); outline: 1px solid var(--pc-n300); outline-offset: -1px; margin: 0; }
.pc-mode input { position: absolute; opacity: 0; width: 0; height: 0; }
.pc-mode strong { font-size: clamp(19px, 2.1vw, 26px); letter-spacing: -.03em; line-height: 1.05; }
.pc-mode:has(input:checked) { background: var(--pc-navy); color: #fff; outline: none; }
.pc-mode:has(input:checked) strong { color: #fff; }

.pc-sticky { position: sticky; top: 120px; }
@media (max-width: 760px) { .pc-sticky { position: static; } }

/* ---------- dialog ---------- */
.pc-dialog-backdrop { position: fixed; inset: 0; z-index: 1060; display: none; place-items: center; padding: 16px; background: rgba(11, 18, 58, .6); }
.pc-dialog-backdrop.is-open { display: grid; }
.pc-dialog { width: min(580px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-top: 6px solid var(--pc-red); box-shadow: var(--pc-shadow-lg); }
.pc-dialog .hd { padding: 22px 28px 4px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pc-dialog .hd h3 { font-size: 24px; }
.pc-dialog .bd { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.pc-done-icon { width: 48px; height: 48px; background: var(--pc-red); color: #fff; display: grid; place-items: center; }
body.pc-noscroll { overflow: hidden; }

.pc-toast { position: fixed; left: 24px; bottom: 24px; z-index: 1070; background: var(--pc-navy); color: #fff; padding: 14px 18px; font-weight: 600; font-size: 15px;
  box-shadow: var(--pc-shadow-lg); border-left: 6px solid var(--pc-red); display: none; font-family: var(--pc-font); }
.pc-toast.is-on { display: block; }
