/* ==========================================================================
   Dey Dot Construction. Industrial look: asphalt black, safety yellow, concrete.
   Change colours and fonts in :root.
   ========================================================================== */

:root {
  --ink: #121210;        /* near-black asphalt */
  --asphalt: #1C1B18;    /* dark sections */
  --steel: #2A2926;      /* cards, inputs on dark */
  --steel-line: #45423D; /* borders on dark */
  --concrete: #E3E0D8;   /* light section */
  --paper: #F3F1EA;      /* text on dark */
  --muted: #B0ACA2;      /* secondary text on dark */
  --slate: #4A4741;      /* secondary text on light */
  --yellow: #F5B800;     /* safety yellow, the one accent */
  --yellow-hi: #FFCB2E;
  --error-dark: #FF9C8C;
  --error-light: #A8231A;

  --font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  margin: 0;
}

:focus-visible { outline: 3px solid var(--yellow-hi); outline-offset: 3px; }

.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--yellow); color: var(--ink); padding: .6rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons: hard-edged slabs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .7rem 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  font: 700 1.2rem/1 var(--font-head);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn .icon { width: 1.3rem; height: 1.3rem; fill: currentColor; flex: none; }

.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-hi); border-color: var(--yellow-hi); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }

.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-sm { min-height: 2.6rem; padding: .5rem 1rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 4px solid var(--yellow); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: .4rem 1rem;
  padding-block: .7rem;
}
.brand { grid-area: brand; justify-self: start; display: block; }
.brand img { width: 9rem; height: auto; }
.header-cta { grid-area: cta; }

.nav {
  grid-area: nav;
  display: flex;
  gap: clamp(.9rem, 4vw, 1.5rem);
  padding-top: .4rem;
  border-top: 1px solid var(--steel-line);
  font: 700 1.05rem/1 var(--font-head);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav a { white-space: nowrap; text-decoration: none; padding: .4rem 0; color: var(--muted); border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--paper); border-bottom-color: var(--yellow); }

@media (min-width: 760px) {
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; gap: 2rem; padding-block: .8rem; }
  .brand img { width: 10.5rem; }
  .nav { justify-content: flex-end; border-top: 0; padding-top: 0; font-size: 1.2rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 800px);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 42%;
  filter: grayscale(.3) contrast(1.12) brightness(.85);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(0deg, rgba(18,18,16,.97) 0%, rgba(18,18,16,.8) 40%, rgba(18,18,16,.25) 80%);
}
.hero-shade::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .18; mix-blend-mode: overlay; }

.hero-content { padding-block: 4rem 3rem; }

.hero-title {
  font-size: clamp(3.4rem, 15vw, 9rem);
  line-height: .86;
  letter-spacing: 0;
  max-width: 9em;
  text-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 33rem;
  padding-left: 1rem;
  border-left: 6px solid var(--yellow);
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

@media (min-width: 900px) {
  .hero-shade { background: linear-gradient(90deg, rgba(18,18,16,.95) 0%, rgba(18,18,16,.78) 40%, rgba(18,18,16,.1) 78%), linear-gradient(0deg, rgba(18,18,16,.6) 0%, rgba(18,18,16,0) 40%); }
  .hero-content { padding-block: 6rem 5rem; }
  .hero-img { object-position: center 45%; }
}

/* One deliberate motion: the hero settles in on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-lead, .hero-actions { opacity: 0; transform: translateY(18px); animation: settle .6s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-lead { animation-delay: .1s; }
  .hero-actions { animation-delay: .2s; }
}
@keyframes settle { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Hazard stripe + fact strip ---------- */

.hazard { height: 16px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); }

.strip {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  background: var(--yellow); color: var(--ink);
  font: 800 1.15rem/1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase;
}
.strip li { flex: 1 1 50%; padding: 1rem var(--gutter); border-bottom: 3px solid var(--ink); text-align: center; }
.strip li:nth-child(odd) { border-right: 3px solid var(--ink); }
.strip li:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 800px) {
  .strip li { flex: 1 1 0; border-bottom: 0 !important; border-right: 3px solid var(--ink); }
  .strip li:last-child { border-right: 0; }
  .strip { font-size: 1.3rem; }
}

/* ---------- Sections ---------- */

.section { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-dark { background: var(--asphalt); color: var(--paper); }
.section-light { background: var(--concrete); color: var(--ink); }
.section-yellow { background: var(--yellow); color: var(--ink); }
.grain::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; }

.section-head { max-width: 40rem; margin-bottom: 2.5rem; padding-left: 1.1rem; border-left: 8px solid var(--yellow); }
.section-light .section-head { border-left-color: var(--ink); }
.section-head h2 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.section-head p { margin-top: .9rem; font-size: 1.15rem; color: var(--muted); }
.section-light .section-head p { color: var(--slate); }

/* ---------- Materials ---------- */

.cards { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.card { display: flex; flex-direction: column; background: var(--steel); border: 3px solid var(--steel-line); border-top: 10px solid var(--yellow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: contrast(1.08) saturate(.95); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; padding: 1.5rem 1.5rem 1.75rem; flex: 1; }
.card h3 { font-size: 2.5rem; }
.card p { color: var(--muted); }
.card-body p + .btn { margin-top: auto; }
.fine { margin-top: 1.5rem; font-size: .875rem; color: var(--muted); }

/* ---------- How it works ---------- */

.how { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .how { grid-template-columns: minmax(0, 420px) 1fr; gap: 4.5rem; align-items: center; } }

.how-figure { margin: 0; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.how-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 60%; filter: contrast(1.05); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding: 1.4rem 0; border-top: 3px solid var(--ink); }
.step:last-child { border-bottom: 3px solid var(--ink); }

.step-n {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink);
  font: 800 2rem/1 var(--font-head);
}
.step-you .step-n { background: var(--ink); color: var(--yellow); }

.step h3 { font-size: 1.85rem; line-height: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.step p { margin-top: .4rem; color: var(--slate); font-size: 1.05rem; }

.who { font: 700 .9rem/1 var(--font-head); letter-spacing: .1em; padding: .35rem .55rem; border: 2px solid var(--ink); }
.who-us { background: transparent; color: var(--ink); }
.who-you { background: var(--ink); color: var(--yellow); }

.note { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--ink); color: var(--paper); border-left: 8px solid var(--yellow); font-weight: 500; }

/* ---------- Contact ---------- */

.contact { display: grid; gap: 2.75rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; align-items: start; } }

.contact h2 { font-size: clamp(2.75rem, 8vw, 5.25rem); line-height: .9; }
.contact-lead { margin: 1rem 0 1.75rem; max-width: 30rem; font-size: 1.2rem; font-weight: 500; }

.details { margin: 2.25rem 0 0; display: grid; gap: 1rem; }
.details div { padding-top: 1rem; border-top: 3px solid var(--ink); }
.details dt { font: 700 1rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.details dd { margin: .3rem 0 0; font-size: clamp(.95rem, 4vw, 1.25rem); font-weight: 600; overflow-wrap: anywhere; }
.details a { text-underline-offset: 4px; text-decoration-thickness: 2px; }
.details a:hover { background: var(--ink); color: var(--yellow); text-decoration: none; }

.form {
  background: var(--ink); color: var(--paper);
  border: 4px solid var(--ink); box-shadow: 10px 10px 0 rgba(18,18,16,.35);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  display: grid; gap: 1.25rem;
}
.form h3 { font-size: 2rem; color: var(--yellow); }

.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font: 700 1.05rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; padding: 0; }
.optional { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }

.field input[type="text"], .field textarea {
  width: 100%; font: inherit; color: var(--paper);
  background: var(--steel); border: 2px solid var(--steel-line); border-radius: 0;
  padding: .8rem .9rem; min-height: 3.25rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder { color: #8C887E; }
.field input[type="text"]:focus, .field textarea:focus { border-color: var(--yellow); outline: 3px solid rgba(245,184,0,.35); outline-offset: 0; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .6rem .9rem;
  background: var(--steel); border: 2px solid var(--steel-line); text-align: center;
  font: 700 1.15rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .15s, color .15s, border-color .15s;
}
.choice:hover span { border-color: var(--yellow); }
.choice input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--yellow-hi); outline-offset: 2px; }

.field.invalid input[type="text"], .field.invalid textarea, .field.invalid .choice span { border-color: var(--error-dark); }
.error { margin-top: .45rem; font-size: .95rem; font-weight: 600; color: var(--error-dark); }
.error:empty { display: none; }

.form-note { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.status { font-weight: 600; color: var(--yellow); }
.status:empty { display: none; }
.status a { color: var(--paper); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--muted); padding-top: 3rem; font-size: .95rem; }
.footer-inner { display: grid; gap: 1.75rem; padding-bottom: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } }
.footer-brand img { width: 10rem; height: auto; }
.footer-brand p { margin-top: .75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--paper); }
.footer-links a { text-underline-offset: 4px; }
.footer-links a:hover { color: var(--yellow); }
.footer-base { display: grid; gap: .35rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--steel-line); font-size: .85rem; }
@media (min-width: 760px) { .footer-base { grid-template-columns: 1fr auto; } }
