/* Pryde Fabrication — site styles
   Palette taken from the Pryde logo, plus J-pole yellow from Translink bus stop poles. */

:root {
  --navy: #0a2049;
  --navy-deep: #06163a;
  --blue: #2e40b4;
  --pole: #f5c300;
  --steel-50: #f6f7f9;
  --steel-100: #eceef2;
  --steel-300: #c9ced7;
  --steel-600: #566072;
  --ink: #121a33;
  --white: #ffffff;

  --font: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --pole-w: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--pole); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em .6em;
  font: 700 1rem/1 var(--font);
  text-decoration: none; border: 2px solid transparent; border-radius: 4px; cursor: pointer;
}
.btn-pole { background: var(--pole); color: var(--navy); }
.btn-pole:hover { background: #ffd633; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--white); }
.btn-line:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--steel-100); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { width: 128px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--navy); text-decoration: none; font-weight: 600;
  padding: 10px 14px; border-radius: 4px;
}
.nav a:hover { background: var(--steel-100); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--pole); border-radius: 0; }
.nav .nav-call { margin-left: 12px; background: var(--navy); color: var(--white); border-radius: 4px; box-shadow: none; }
.nav .nav-call:hover { background: var(--blue); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-header .wrap { min-height: 68px; }
  .brand img { width: 96px; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    background: none; border: 2px solid var(--steel-300); border-radius: 4px;
    font: 700 .95rem var(--font); color: var(--navy); padding: 8px 12px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--steel-300); padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--steel-100); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--pole); padding-left: 14px; }
  .nav .nav-call { margin: 12px 0 0; text-align: center; border-radius: 4px; }
}

/* ---------- The J-pole sign panel (signature element) ----------
   A navy panel framed by a yellow pole that rises up its left side and hooks over the top,
   like the Translink J pole and plate at every SEQ bus stop. */
.sign {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-top-left-radius: 120px;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 56px) clamp(36px, 4vw, 56px) clamp(40px, 5vw, 72px);
}
.sign::before {
  content: "";
  position: absolute;
  left: calc(var(--pole-w) * -1); top: calc(var(--pole-w) * -1);
  width: 62%; height: calc(100% + var(--pole-w) + 64px);
  border: var(--pole-w) solid var(--pole);
  border-right: 0; border-bottom: 0;
  border-top-left-radius: calc(120px + var(--pole-w));
  pointer-events: none;
}
.sign h1, .sign h2 { color: var(--white); }
.sign p { color: #d9def0; }

/* ---------- Hero ---------- */
.hero { background: var(--steel-100); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch; min-height: 560px;
}
.hero .sign { margin: 72px 0 72px var(--pole-w); align-self: center; z-index: 2; margin-right: -80px; }
.hero .sign p { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { position: relative; margin-right: calc(var(--gutter) * -1); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
@media (min-width: 1180px) {
  .hero-photo { margin-right: calc((100vw - var(--wrap)) / -2 - var(--gutter)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; margin: 0 calc(var(--gutter) * -1); height: 300px; }
  .hero .sign { margin: -48px 0 56px var(--pole-w); }
  .sign { border-top-left-radius: 72px; }
  .sign::before { border-top-left-radius: calc(72px + var(--pole-w)); height: calc(100% + var(--pole-w) + 40px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-steel { background: var(--steel-50); border-top: 1px solid var(--steel-100); border-bottom: 1px solid var(--steel-100); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.lede { font-size: 1.2rem; color: var(--steel-600); }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.text-link { font-weight: 700; color: var(--navy); text-decoration-color: var(--pole); text-decoration-thickness: 3px; }

/* Facts: a ruled list of real figures */
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--steel-300); }
.facts strong { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.facts span { color: var(--steel-600); }

/* ---------- Product grid ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.product a { display: block; text-decoration: none; color: inherit; }
.product-img {
  aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--steel-300);
  display: grid; place-items: center; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img.contain img { object-fit: contain; padding: 14px; }
.product-img.pending { background: repeating-linear-gradient(135deg, var(--steel-50) 0 14px, var(--steel-100) 14px 28px); color: var(--steel-600); font-size: .95rem; }
.product h3 { margin: 14px 0 2px; }
.product a:hover h3 { color: var(--blue); text-decoration: underline; text-decoration-color: var(--pole); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.product .meta { margin: 0; color: var(--steel-600); font-size: .95rem; }

/* ---------- Product detail ---------- */
.crumbs { font-size: .95rem; color: var(--steel-600); padding: 20px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--steel-300); }
.crumbs a { color: var(--steel-600); }

.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: 28px 0 72px; align-items: start; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 4 / 3; border: 1px solid var(--steel-300); background: var(--white); display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main.pending { background: repeating-linear-gradient(135deg, var(--steel-50) 0 14px, var(--steel-100) 14px 28px); color: var(--steel-600); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; list-style: none; padding: 0; }
.thumbs button { width: 92px; height: 70px; padding: 4px; background: var(--white); border: 1px solid var(--steel-300); cursor: pointer; }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--navy); box-shadow: 0 3px 0 var(--pole); }

.spec { margin: 0 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; border-top: 2px solid var(--navy); padding-top: 14px; }
.spec dt { color: var(--steel-600); }
.spec dd { margin: 0; font-weight: 700; color: var(--navy); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; max-width: var(--measure); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--pole); border-radius: 0 0 0 12px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-row .btn-line { color: var(--navy); }
.cta-row .btn-line:hover { background: var(--steel-100); color: var(--navy); }

.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.areas li { border: 1px solid var(--steel-300); background: var(--white); padding: 6px 12px 4px; border-radius: 4px; font-weight: 600; color: var(--navy); }

.clients { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.clients li { padding: 10px 0; border-bottom: 1px solid var(--steel-300); break-inside: avoid; font-weight: 600; color: var(--navy); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--white); }
.contact h2, .contact h3 { color: var(--white); }
.contact p { color: #d9def0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.details { list-style: none; padding: 0; margin: 24px 0 0; }
.details li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.details small { display: block; color: #aab3d1; font-size: .9rem; }
.details a { color: var(--white); font-weight: 700; text-decoration-color: var(--pole); }

.form { background: var(--white); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-top: 6px solid var(--pole); }
.form h3 { color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--steel-600); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink);
  padding: 12px 12px 10px; border: 1px solid var(--steel-300); border-radius: 4px; background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--pole); outline-offset: 0; border-color: var(--navy); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 4px; display: none; }
.form-status.ok { display: block; background: #e6f4ea; color: #14532d; }
.form-status.err { display: block; background: #fdecec; color: #7f1d1d; }

.map { border: 0; width: 100%; height: 360px; display: block; filter: grayscale(.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aab3d1; font-size: .95rem; padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-footer a { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { margin: 0; }
