/* Davimac Manufacturing landing page.
   Colour rule (60-30-10): white and light grey backgrounds, ink and greys for structure,
   blue ONLY for things to click (buttons, links, focus). See .claude/skills/high-converting-pages. */

:root {
  --ink: #0f1115;
  --ink-2: #1a1d23;
  --steel: #2a2f38;
  --line: #d9dde3;
  --paper: #ffffff;
  --paper-2: #f3f4f6;
  --muted: #535b67;
  --muted-dark: #aeb6c1;
  --accent: #1d55c9;
  --accent-dark: #153f97;
  --accent-light: #9dbcff;
  --danger: #b3261e;
  --ok: #1d7a46;
  --max: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 17, 21, .06), 0 8px 24px rgba(15, 17, 21, .06);
  --shadow-lift: 0 2px 6px rgba(15, 17, 21, .10), 0 24px 48px rgba(15, 17, 21, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tap: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: Montserrat, system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 .8em; }
.on-dark .eyebrow { color: var(--muted-dark); }
.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; z-index: 50; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 6px; }

/* Buttons: the only place the accent fills a shape */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 12px 26px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; border-radius: 999px; border: 0; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(29, 85, 201, .38); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 12px 28px rgba(29, 85, 201, .48); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .75); color: #fff; padding: 10px 24px; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-ghost-dark { border: 2px solid var(--ink); color: var(--ink); background: #fff; padding: 10px 22px; }
.btn-sm { padding: 10px 20px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Header */
header { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, box-shadow .3s; }
header.scrolled { background: rgba(15, 17, 21, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: inline-flex; min-height: var(--tap); align-items: center; }
.nav img { height: 40px; width: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: #e3e7ec; text-decoration: none; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: 8px; }
.nav ul a:hover { background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; }
.nav-phone:hover { text-decoration: underline; }

/* Hero: back layer is the photo, middle the copy, front the button. Text never animates in. */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); padding-bottom: 96px; }
.hero-bg { position: absolute; inset: -10% 0 -10% 0; background: url("/img/hero-profile-cut.webp") center / cover no-repeat; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10, 12, 16, .92) 0%, rgba(10, 12, 16, .74) 48%, rgba(10, 12, 16, .3) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 130px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; max-width: 17ch; }
.hero .lede { font-size: 1.15rem; color: #e1e5ea; max-width: 56ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; font-weight: 600; color: #e1e5ea; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Checker card breaks the hero's bottom edge (depth) */
.checker-wrap { padding: 0; position: relative; z-index: 5; margin-top: -88px; }
.checker { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 28px; display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 28px; align-items: center; }
.checker-intro h2 { font-size: 1.5rem; margin-bottom: .3em; }
.checker-intro p { color: var(--muted); margin: 0; font-size: .95rem; }
.checker-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.checker-form .field:last-child { grid-column: 1 / -1; }
.checker-result { border-left: 1px solid var(--line); padding-left: 28px; }
.verdict { font-size: 1.15rem; font-weight: 800; margin: 0 0 .3em; }
.verdict.yes::before { content: "✓ "; color: var(--ok); }
.detail { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }

section { padding: 100px 0; position: relative; }
.alt { background: var(--paper-2); }
.intro { max-width: 62ch; margin-bottom: 44px; }
.intro p { color: var(--muted); }
.intro a { font-weight: 600; }

/* Cards */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cap { overflow: hidden; display: flex; flex-direction: column; }
.cap .media { overflow: hidden; }
.cap .media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cap .body { padding: 28px; }
.cap p, .plasma p, .steps p { color: var(--muted); }
table.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 700; width: 40%; padding-right: 16px; }
.specs td { color: var(--muted); }
.plasma { margin-top: 28px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; border-left: 5px solid var(--ink); }
.plasma p { margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.steps li { padding: 28px; }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps p { margin: 0; font-size: .95rem; }

/* Split / proof */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > *, .quote > * { min-width: 0; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dark { background: var(--ink-2); color: #fff; }
.dark p { color: #c3c9d2; }
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.brand { border: 1px solid var(--steel); padding: 18px 20px; border-radius: var(--radius-sm); text-decoration: none; display: flex; flex-direction: column; gap: 2px; color: #c3c9d2; font-size: .9rem; transition: border-color .2s, background .2s; }
.brand:hover { border-color: #fff; background: rgba(255, 255, 255, .04); }
.brand-name { color: #fff; font-weight: 700; font-size: 1.05rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 40px 18px 0; position: relative; min-height: var(--tap); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Quote form */
.quote { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: start; }
.form-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 36px; }
.form-card h2 { margin-bottom: .2em; }
.form-sub { color: var(--muted); margin-bottom: 22px; }
.enquiry fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.type-switch { margin-bottom: 22px !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label, .field .label, .field legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 500; color: var(--muted); }
.req { color: var(--danger); }
.enquiry input[type=text], .enquiry input[type=email], .enquiry input[type=tel], .enquiry textarea, .checker select, .checker input[type=number] {
  width: 100%; min-height: var(--tap); font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #b9c0ca; border-radius: var(--radius-sm); padding: 10px 14px; transition: border-color .15s, box-shadow .15s;
}
.enquiry textarea { resize: vertical; min-height: 110px; }
.enquiry input:focus, .enquiry textarea:focus, .checker select:focus, .checker input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 85, 201, .2); }
.enquiry .invalid { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: .85rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.form-err { margin: 0 0 14px; }
.small { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* Segmented radios */
.seg { display: flex; gap: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg label { flex: 1; margin: 0; position: relative; font-weight: 600; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: .9rem; text-align: center; color: var(--muted); transition: background .15s, color .15s, box-shadow .15s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15, 17, 21, .15); }
.seg input:focus-visible + span { outline: 3px solid var(--accent-light); outline-offset: 1px; }
.seg-wide span { min-height: 44px; font-size: .95rem; }

/* File drop */
.drop { position: relative; border: 2px dashed #b9c0ca; border-radius: var(--radius-sm); padding: 18px; text-align: center; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: rgba(29, 85, 201, .05); }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-label { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 500 !important; margin: 0 !important; min-height: var(--tap); pointer-events: none; }
.drop-label svg { width: 24px; height: 24px; color: var(--muted); }
.drop-label strong { color: var(--accent); }
.drop .hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper-2); border-radius: 8px; padding: 6px 6px 6px 12px; font-size: .88rem; }
.file-list .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fsize { color: var(--muted); margin-left: 6px; }
.file-list button { min-width: var(--tap); min-height: var(--tap); border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--muted); border-radius: 8px; }
.file-list button:hover { background: #fff; color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.is-question .quote-only { display: none; }

.success { text-align: center; padding: 30px 10px; }
.success svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 14px; }
.success p { color: var(--muted); }

.contact-card { background: var(--ink); color: #fff; padding: 32px; border-radius: var(--radius); position: sticky; top: 100px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); font-weight: 700; margin-top: 18px; }
.contact-card dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card dd a { color: #fff; display: inline-flex; min-height: var(--tap); align-items: center; }
.contact-card .small-dd { font-size: .95rem; font-weight: 500; }
.contact-card .terms { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--steel); font-size: .85rem; color: #c3c9d2; }

footer { background: #08090b; color: #9aa3ae; font-size: .88rem; padding: 32px 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
footer a { color: #e3e7ec; text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.motion-toggle { font: inherit; color: #e3e7ec; background: none; border: 1px solid #3a414c; border-radius: 999px; min-height: var(--tap); padding: 0 16px; cursor: pointer; }
.motion-toggle[aria-pressed="true"] { border-color: #e3e7ec; }

.mobile-bar { display: none; }

/* Scroll reveal below the fold only. Hidden only once JS has confirmed it can reveal. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Motion off: system setting or the footer toggle */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.no-motion .reveal { opacity: 1 !important; transform: none !important; }
.no-motion .hero-bg { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1020px) {
  .checker { grid-template-columns: 1fr; gap: 18px; }
  .checker-result { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .nav ul { display: none; }
}
@media (max-width: 960px) {
  .split, .quote, .caps, .plasma, .faq-wrap, .steps { grid-template-columns: 1fr; gap: 22px; }
  .contact-card { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 76px; }
  section { padding: 64px 0; }
  .hero { min-height: 0; padding-bottom: 110px; }
  .hero-bg { background-image: url("/img/hero-profile-cut-800.webp"); }
  .hero-inner { padding-top: 104px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .nav img { height: 32px; }
  .nav-phone { display: none; }
  .checker { padding: 22px; }
  .checker-form { grid-template-columns: 1fr; }
  .grid2, .brands { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .seg span { font-size: .85rem; padding: 6px 8px; }
  .mobile-bar { transform: translateY(110%); transition: transform .25s var(--ease); }
  .mobile-bar:not(.show) { visibility: hidden; }
  .mobile-bar.show { transform: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 20px rgba(15, 17, 21, .12); }
}

/* Legal pages (privacy policy) */
.legal { padding: 130px 0 80px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal address { font-style: normal; line-height: 1.8; }
.legal a { overflow-wrap: anywhere; }
.legal-page header { background: var(--ink); }
