/* Sunrise Machine Accessories: shared styles.
   Idea: an engineering drawing office at dawn. Steel-navy ink, cool plate greys,
   one sunrise orange for actions. Part cards end in a drawing "title block". */

:root {
  --ink: #13212e;          /* steel navy: header, footer, headings */
  --ink-2: #223649;
  --ink-soft: #4a5d6e;     /* secondary text */
  --plate: #e6eaec;        /* page background, cool steel */
  --paper: #f9fafa;        /* cards and panels */
  --rule: #b9c3ca;         /* drawing lines */
  --sun: #f0801f;          /* sunrise orange: buttons, highlights */
  --sun-ink: #a8470b;      /* orange that reads on light backgrounds */
  --dawn: #ffc35c;         /* amber, hero only */
  --focus: #1b6fd1;

  --display: "Archivo", "Helvetica Neue", sans-serif;
  --text: "Host Grotesk", "Helvetica Neue", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
#site-header { display: contents; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
a.visually-hidden:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 60; background: #fff; padding: .6rem 1rem; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; font-stretch: 110%; }
h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 100%; }
p { margin: 0 0 1em; max-width: 68ch; }

/* Drawing / part numbers: condensed, tabular, the house "data" voice */
.num { font-family: var(--display); font-stretch: 78%; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--display); font-stretch: 105%; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--dawn); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-small { min-height: 38px; padding: 0 1em; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #c9d4dc; font-size: .88rem; }
.topbar .wrap { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .contact-links { display: flex; gap: 1.4rem; }

.mainbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.mainbar .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.logo { display: flex; align-items: flex-end; gap: .75rem; text-decoration: none; margin-right: auto; color: var(--ink); }
.logo svg { width: 64px; height: auto; flex: none; margin-bottom: 3px; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-family: var(--display); font-size: 1.7rem; font-weight: 800; font-stretch: 115%; letter-spacing: -.01em; }
.logo-word span { font-family: var(--text); font-size: .8rem; font-weight: 450; letter-spacing: .035em; margin-top: 3px; }
.logo-footer { color: #fff; margin-bottom: 1.2rem; }
@media (max-width: 420px) { .logo svg { width: 48px; } .logo-word b { font-size: 1.4rem; } .logo-word span { font-size: .68rem; } }
.nav { display: flex; gap: 1.4rem; }
.nav a { text-decoration: none; font-weight: 600; padding: .4em 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--sun); }
.quote-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8em; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .topbar .tagline { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; background: none; border: 2px solid var(--ink); border-radius: 999px; min-height: 40px; padding: 0 1em; font: 600 .95rem var(--display); color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8em 0; border-bottom: 1px solid var(--plate); }
  .mainbar .btn-sun .label-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(180deg, #0f1b26 0%, #1a2d3e 62%, #3b3a3a 86%, #6a4220 100%);
}
/* faint drawing-sheet grid */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 8vw, 110px); }
.hero h1 { max-width: 15ch; font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.hero .lede { font-size: 1.15rem; color: #d3dde4; max-width: 46ch; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* the sun: a spoked rotor rising behind the horizon */
.sun { position: absolute; left: 50%; bottom: -330px; width: 620px; height: 620px; margin-left: -310px; pointer-events: none; }
.sun svg { width: 100%; height: 100%; }
.sun .rotor { transform-origin: 50% 50%; }
@media (min-width: 900px) { .sun { left: 40%; } }

.finder { margin-top: 1.8rem; max-width: 520px; }
.finder label { display: block; font-weight: 600; margin-bottom: .45rem; color: #fff; }
.finder-row { display: flex; background: #fff; border-radius: 999px; padding: 4px; }
.finder input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; font: 500 1rem var(--text); color: var(--ink); }
.finder input:focus { outline: none; }
.finder-row:focus-within { outline: 3px solid var(--dawn); outline-offset: 2px; }

.hero-photo { position: relative; margin: 0; background: var(--paper); padding: 10px; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); color: var(--ink); }

/* page-load sequence: the sun rises, then the words */
@media (prefers-reduced-motion: no-preference) {
  .sun { animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .sun .rotor { animation: turn 2.4s cubic-bezier(.2,.7,.2,1) both; }
  .hero .stagger > * { animation: lift .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .stagger > *:nth-child(1) { animation-delay: .35s; }
  .hero .stagger > *:nth-child(2) { animation-delay: .5s; }
  .hero .stagger > *:nth-child(3) { animation-delay: .65s; }
  .hero .stagger > *:nth-child(4) { animation-delay: .8s; }
  .hero-photo { animation: lift .9s .6s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { transform: translateY(220px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes turn { from { transform: rotate(-50deg); } to { transform: none; } }
@keyframes lift { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- title block (drawing-sheet caption) ---------- */
.tblock { display: grid; grid-template-columns: 1fr auto; border: 1.5px solid var(--ink); border-radius: 3px; font-size: .82rem; line-height: 1.25; }
.tblock > div { padding: .45rem .6rem; min-width: 0; }
.tblock > div + div { border-left: 1.5px solid var(--ink); }
.tblock .t-label { display: block; color: var(--ink-soft); font-size: .72rem; }
.tblock .t-val { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.hero-photo .tblock { margin-top: 10px; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head p { color: var(--ink-soft); margin: 0; }
.band-paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink p { color: #c9d4dc; }

/* type tiles on the home page */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-tile { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.type-tile .ph { background: #d7dde1; }
.type-tile .ph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.type-tile .meta { padding: .8rem .9rem 1rem; display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.type-tile h3 { margin: 0; }
.type-tile .count { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
.type-tile:hover h3 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 960px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .type-grid { gap: 10px; } .type-tile .meta { flex-direction: column; gap: .2rem; } }

/* machines */
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.machine { padding: 1.4rem 1.4rem 1.6rem; }
.machine + .machine { border-left: 1.5px solid var(--ink); }
.machine ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.machine li { padding: .38rem 0; border-bottom: 1px dashed var(--rule); }
.machine li a { text-decoration: none; }
.machine li a:hover { text-decoration: underline; }
.machine .more { font-weight: 700; color: var(--sun-ink); }
@media (max-width: 860px) {
  .machine-grid { grid-template-columns: 1fr; }
  .machine + .machine { border-left: 0; border-top: 1.5px solid var(--ink); }
}

/* about */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-photo { margin: 0; }
.about-photo .slide-frame { border-radius: var(--radius); }

/* photo slideshow (home hero and About us) */
.slides { position: relative; }
.slide-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #bcc1c3; cursor: pointer; }
.slide-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.slide-frame img.wide { object-fit: contain; }
.slide-frame img.on { opacity: 1; }
.slide-controls { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; padding: 0 2px; border-radius: 999px; background: rgba(19,33,46,.38); backdrop-filter: blur(4px); }
.hero-photo .slide-controls { bottom: 18px; }
.slide-btn { width: 20px; height: 18px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.85); cursor: pointer; }
.slide-btn:hover { color: #fff; }
.slide-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slide-dots { display: flex; }
.slide-dot { position: relative; width: 14px; height: 18px; border: 0; background: transparent; cursor: pointer; }
.slide-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; transform: translate(-50%, -50%); border-radius: 3px; background: rgba(255,255,255,.55); transition: width .3s, background .3s; }
.slide-dot[aria-current="true"]::after { width: 11px; background: var(--sun); }
@media (prefers-reduced-motion: reduce) { .slide-frame img, .slide-dot::after { transition: none; } }
.about p { font-size: 1.1rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* how to order: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--sun); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--sun); margin-bottom: .6rem; }
.steps p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; margin: 0; }
.contact-card dt { color: var(--ink-soft); }
.contact-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- page heading band ---------- */
.page-head { background: var(--ink); color: #fff; padding: 2.2rem 0 2rem; }
.page-head p { color: #c9d4dc; margin: 0; }
.crumbs { font-size: .88rem; color: #aebcc7; margin-bottom: .8rem; }
.crumbs a { color: #fff; }

/* ---------- catalogue ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 1rem 0 0; scrollbar-width: thin; }
.tab {
  flex: none; display: inline-flex; gap: .45em; align-items: center;
  padding: .7em 1.05em; border: 1.5px solid var(--rule); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: transparent; color: #dce4ea; font: 600 .95rem var(--display); cursor: pointer; white-space: nowrap;
}
.tab .c { font-size: .8em; color: #97a8b5; }
.tab:hover { color: #fff; border-color: #fff; }
.tab[aria-selected="true"] { background: var(--plate); color: var(--ink); border-color: var(--plate); }
.tab[aria-selected="true"] .c { color: var(--ink-soft); }
.page-head.with-tabs { padding-bottom: 0; }
@media (min-width: 1000px) { .tabs { flex-wrap: wrap; overflow: visible; row-gap: 6px; } .tab { border-bottom: 1.5px solid var(--rule); border-radius: var(--radius); } .tab[aria-selected="true"] { border-color: var(--plate); } }

.toolbar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; padding: 1.4rem 0 1rem; }
.search { flex: 1 1 280px; display: flex; align-items: center; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 .4rem 0 1rem; min-height: 46px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1rem var(--text); color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chips-label { font-size: .9rem; color: var(--ink-soft); margin-right: .2rem; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: .45em .9em; font: 600 .88rem var(--display); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.result-note { color: var(--ink-soft); font-size: .92rem; margin: 0 0 1rem; }

.part-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; padding-bottom: 4rem; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.card .ph { position: relative; background: #dfe4e7; display: block; text-decoration: none; }
.card .ph img, .card .ph .nophoto { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 8px; }
.card .ph .flag { position: absolute; left: 8px; bottom: 8px; background: rgba(19,33,46,.86); color: #fff; font-size: .72rem; padding: .25em .6em; border-radius: 999px; }
.card .body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .machine-tag { font-size: .8rem; color: var(--ink-soft); }
.card .ref { margin: auto 0 0; font-size: .9rem; color: var(--ink-soft); }
.card .ref .num { color: var(--ink); font-size: 1rem; }
.card .btn { align-self: flex-start; }
@media (max-width: 560px) {
  .part-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; }
  .card .ph { flex: none; width: 118px; }
  .card .ph .flag { left: 4px; bottom: 4px; font-size: .64rem; }
  .card .body { padding: .7rem .75rem .8rem; gap: .55rem; min-width: 0; }
  .card .nophoto { font-size: .7rem; }
  .card .nophoto .num { font-size: .85rem; }
}

/* no-photo placeholder: a blank drawing sheet */
.nophoto {
  width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: .3rem; padding: 1rem;
  color: var(--ink-soft); font-size: .85rem;
  background:
    linear-gradient(rgba(19,33,46,.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(19,33,46,.06) 1px, transparent 1px) 0 0 / 20px 20px,
    #eef1f2;
  outline: 1.5px solid var(--rule); outline-offset: -12px;
}
.nophoto .num { font-size: 1.4rem; color: var(--ink); }

.empty { background: var(--paper); border: 1.5px dashed var(--ink-soft); border-radius: var(--radius); padding: 2rem; margin-bottom: 4rem; }

/* ---------- part page ---------- */
.part-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 2rem 0 3rem; align-items: start; }
.gallery .main { background: #dfe4e7; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.gallery .main img, .gallery .main .nophoto { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.gallery .note { font-size: .9rem; color: var(--ink-soft); margin: .7rem 0 0; }
.gallery .views { display: flex; gap: 8px; margin-top: .8rem; flex-wrap: wrap; }
.gallery .views button { border: 1.5px solid var(--rule); background: var(--paper); border-radius: var(--radius); padding: 4px; cursor: pointer; width: 92px; line-height: 0; }
.gallery .views button img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.gallery .views button[aria-pressed="true"] { border-color: var(--sun); }

.spec { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); margin: 1.2rem 0; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th { width: 38%; font-weight: 500; color: var(--ink-soft); border-right: 1.5px solid var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.add-row { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; margin: 1.2rem 0; }
.qty label { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: .25rem; }
.qty input { width: 90px; min-height: 46px; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 0 .7rem; font: 600 1rem var(--display); background: var(--paper); color: var(--ink); }

.variants { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .95rem; }
.variants caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
.variants th, .variants td { padding: .55rem .5rem; border-bottom: 1px solid var(--rule); text-align: left; }
.variants th { font-size: .82rem; color: var(--ink-soft); font-weight: 500; border-bottom: 1.5px solid var(--ink); }
.variants td:last-child { text-align: right; }
.variants td.num { white-space: nowrap; }
.card .ph { display: flex; align-items: center; }

.terms { background: var(--paper); border-left: 4px solid var(--sun); padding: .9rem 1rem; font-size: .92rem; border-radius: 0 var(--radius) var(--radius) 0; }
.terms p { margin: 0; }
@media (max-width: 860px) { .part-layout { grid-template-columns: 1fr; } }

/* ---------- quote page ---------- */
.quote-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); padding-top: 2rem; padding-bottom: 4rem; align-items: start; }
.qlist { list-style: none; margin: 0 0 1rem; padding: 0; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.qitem { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .8rem; }
.qitem + .qitem { border-top: 1px solid var(--rule); }
.qitem .thumb { width: 64px; height: 64px; border-radius: 4px; background: #dfe4e7; overflow: hidden; }
.qitem .thumb img { width: 100%; height: 100%; object-fit: cover; }
.qitem .thumb .nophoto { outline-offset: -6px; }
.qitem .thumb .nophoto > * { display: none; }
.qitem a { font-weight: 700; text-decoration: none; }
.qitem a:hover { text-decoration: underline; }
.qitem .sub { font-size: .85rem; color: var(--ink-soft); }
.qitem .ctrl { display: flex; gap: .4rem; align-items: center; }
.qitem input { width: 64px; min-height: 40px; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 0 .5rem; font: 600 .95rem var(--display); background: #fff; color: var(--ink); }
.link-btn { background: none; border: 0; padding: .3rem; color: var(--sun-ink); font: 600 .88rem var(--display); text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) { .qitem { grid-template-columns: 52px 1fr; } .qitem .thumb { width: 52px; height: 52px; } .qitem .ctrl { grid-column: 2; } }

.form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.8rem); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.form legend { font-weight: 750; font-stretch: 108%; font-size: 1.1rem; margin-bottom: .7rem; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; min-height: 46px; border: 1.5px solid var(--ink-soft); border-radius: var(--radius); padding: .6rem .75rem; font: 500 1rem var(--text); background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field .err { display: none; color: #b42318; font-size: .85rem; margin-top: .25rem; }
.field.invalid input { border-color: #b42318; }
.field.invalid .err { display: block; }
.form .hint { font-size: .9rem; color: var(--ink-soft); }
.form-error { color: #b42318; font-weight: 600; }
.field input[type=file] { padding: .5rem; }
.sent { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.sent p { color: #d3dde4; }
.sent a { color: #fff; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #c9d4dc; padding: 3rem 0 2rem; font-size: .93rem; }
.footer a { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h3 { color: #fff; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: .3rem 0; }
.footer .fine { border-top: 1px solid #2d4255; margin-top: 2rem; padding-top: 1rem; font-size: .82rem; color: #93a5b3; }
.footer .fine p { max-width: none; margin: 0 0 .3rem; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }

/* toast for "added to quote" */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 50; transition: transform .25s; font-weight: 600; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--dawn); margin-left: .6rem; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
