/* Harbor Line Auto — RepairPortal shop website. Its own template. */
:root {
  --ink: #14161c;
  --ink-2: #2a241c;
  --amber: #ffb703;
  --copper: #c45c12;
  --cream: #f6f3ee;
  --paper: #fffdf9;
  --muted: #6b6258;
  --line: #e6dfd4;
  --display: "Barlow Condensed", Impact, sans-serif;
  --sans: Barlow, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.demo {
  background: #0c0e12;
  color: #e6d3a1;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 9px 16px;
}
.demo a { color: var(--amber); font-weight: 700; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--amber);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.mark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.mark b { font-family: var(--display); font-size: 1.85rem; font-weight: 700; letter-spacing: .02em; }
.mark b span { color: var(--amber); }
.mark small { color: #e6d3a1; letter-spacing: .16em; font-size: .68rem; margin-top: 4px; font-weight: 600; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--amber); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 2px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.sub-btn svg { width: 14px; height: 14px; transition: transform .18s; }
.has-sub:hover > .sub-btn svg, .has-sub.is-open > .sub-btn svg { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 16px); right: 0; z-index: 30; width: max-content; max-width: min(720px, calc(100vw - 32px)); padding: 16px 16px 10px; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 22px 48px rgba(0,0,0,.28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
.sub:before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.sub-cols { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 6px 18px; }
.sub a { display: block; color: var(--ink); font-weight: 600; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.sub a:hover, .sub a[aria-current="page"] { color: var(--copper); background: var(--cream); }
.sub a.sub-head { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; padding-bottom: 4px; }
.sub a.sub-all { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0; color: var(--copper); }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 8px 10px; font: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--amber); color: var(--ink); text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 12px 18px; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn:hover { background: #ffc533; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn.copper { background: var(--copper); color: #fff; }

.promo { background: var(--amber); color: var(--ink); text-align: center; font-weight: 700; padding: 10px 16px; }
.promo a { color: var(--copper); }

.hero { background: radial-gradient(900px 420px at 90% 0%, rgba(255,183,3,.18), transparent 55%), var(--ink); color: #fff; padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--amber); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; font-weight: 700; margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: .95; margin: 0 0 12px; }
h1 { font-size: clamp(3.2rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h3 { font-size: 1.7rem; line-height: 1; }
.lead { font-size: 1.15rem; color: #ddd6c8; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ticket {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
  position: relative;
}
.ticket:before, .ticket:after {
  content: "";
  position: absolute;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink);
  top: 58px;
}
.ticket:before { left: -11px; }
.ticket:after { right: -11px; }
.ticket-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed #d9d0c3; padding-bottom: 12px; margin-bottom: 14px; }
.ticket-top b { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; }
.ready { background: #e8f6ea; color: #146c2e; font-weight: 800; letter-spacing: .08em; font-size: .75rem; padding: 4px 8px; border-radius: 999px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; font-size: .95rem; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 650; }
.ticket p { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }

.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust li { font-weight: 700; }
.trust small { display: block; font-weight: 500; color: var(--muted); }

section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.card:hover { border-color: var(--amber); }
.card .tag { color: var(--copper); font-weight: 800; letter-spacing: .12em; font-size: .75rem; text-transform: uppercase; }
.card p { color: var(--muted); flex: 1; }
.price { font-family: var(--display); font-size: 2rem; color: var(--ink); }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.list b { font-weight: 700; }
.list span { color: var(--muted); display: block; font-weight: 500; font-size: .92rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.panel { background: var(--ink); color: #fff; border-radius: 22px; padding: 28px; }
.panel p, .panel li { color: #ddd6c8; }
.panel h2 { color: #fff; }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote { background: var(--cream); border-radius: 18px; padding: 22px; margin: 0; }
.quote p { font-size: 1.05rem; }
.stars { color: var(--copper); letter-spacing: .08em; font-weight: 800; }

.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.map { border: 0; width: 100%; height: 280px; border-radius: 18px; background: var(--cream); }

.page-hero { background: var(--ink); color: #fff; padding: 48px 0 40px; }
.page-hero p { color: #ddd6c8; max-width: 40rem; }

form.sheet { display: grid; gap: 12px; max-width: 560px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
input, select, textarea {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.note { color: var(--muted); }
.ok { display: none; background: #e8f6ea; color: #146c2e; border-radius: 12px; padding: 12px 14px; font-weight: 700; }

footer { background: #0c0e12; color: #ddd6c8; padding: 48px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--amber); }
footer h3 { color: #fff; font-size: 1.3rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #9c9488; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.crumbs { color: #c9c0b2; font-size: .92rem; margin: 0 0 14px; }
.crumbs a { color: #fff; text-decoration: none; font-weight: 650; }
.crumbs a:hover { color: var(--amber); }
.jump { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 81px; z-index: 10; }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 12px 0; }
.jump a { text-decoration: none; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.jump a:hover { border-color: var(--amber); }
.cat { scroll-margin-top: 150px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.svc h3 { margin-bottom: 8px; }
.svc h3 a { text-decoration: none; }
.svc h3 a:hover { color: var(--copper); }
.svc p { color: var(--muted); }
.checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.checks li { padding-left: 1.2em; position: relative; }
.checks li:before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.svc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.more { font-weight: 700; color: var(--copper); text-decoration: none; }
.more:hover { color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 12px 22px 18px; gap: 14px; }
  nav.open { display: flex; }
  .has-sub { flex-wrap: wrap; width: 100%; }
  .has-sub:hover > .sub-btn svg { transform: none; }
  .has-sub.is-open > .sub-btn svg { transform: rotate(180deg); }
  .sub, .has-sub:hover > .sub, .has-sub:focus-within > .sub { position: static; display: none; width: 100%; max-width: none; padding: 4px 0 8px 10px; background: transparent; color: #fff; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.is-open > .sub { display: block; }
  .sub:before { display: none; }
  .sub-cols { grid-template-columns: 1fr; }
  .sub a { color: #fff; white-space: normal; }
  .sub a.sub-head { color: var(--amber); }
  .sub a.sub-all { border-top-color: rgba(255,255,255,.15); }
  .hero-grid, .cards, .split, .reviews, .hours, .trust ul, .foot, .svc-grid { grid-template-columns: 1fr; }
  .jump { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 3.1rem; }
}
