/*
  Skreenquip landing page
  Source: Figma ETWMZaIzYbwgd3AbyKfeEh, frame 31:384 "Home – Chris' Edit – FINAL" (locked 2026-09-28)

  Breakpoints (same system as the Elysian build, min-width only):
    phone          base styles, under 750
    tablet         @media screen and (min-width: 750px)
    small desktop  @media screen and (min-width: 990px)
    desktop        @media screen and (min-width: 1200px)
  Content max width 1440. Spacing on the 8px grid.
  Headings are fluid between a 375 and a 1440 viewport (Utopia method); body and UI text are fixed.
*/

/* Self-hosted copies of the Google Fonts files, used when Google Fonts is blocked or offline.
   Barlow and Rubik are SIL Open Font License, see fonts/OFL-*.txt */
@font-face { font-family: "Barlow Local"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Local"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Local"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Local"; src: url("fonts/barlow-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Rubik Local"; src: url("fonts/rubik-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Colour, from the Figma variables */
  --paper: #f4f3ef;
  --nav: #f2f1ed;
  --ink: #1e1f21;
  --ink-deep: #141516;
  --yellow: #fcc000;
  --yellow-hover: #ffd24d;
  --red: #cd0e1b;
  --white: #ffffff;
  --paper-muted: #c9cac4;

  /* Type */
  --font-body: "Barlow", "Barlow Local", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Rubik", "Rubik Local", "Barlow", "Barlow Local", "Helvetica Neue", Arial, sans-serif;

  /* Fluid headings, min at 375, max at 1440 */
  --size-hero: clamp(1.5rem, calc(1.412rem + 0.3756vw), 1.75rem);      /* 24 to 28 */
  --size-display: clamp(1.75rem, calc(1.4859rem + 1.1268vw), 2.5rem);  /* 28 to 40 */
  --size-tagline: clamp(1.25rem, calc(1.162rem + 0.3756vw), 1.5rem);   /* 20 to 24 */

  /* Fixed text */
  --size-lead: 1.25rem;   /* 20 */
  --size-body: 1.0625rem; /* 17 */
  --size-button: 1rem;    /* 16 */
  --size-small: 0.875rem; /* 14 */
  --size-ui-sm: 0.75rem;  /* 12, header buttons from 750 */

  /* Spacing, 8px grid */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

  --gutter: var(--space-24);
  --focus: var(--ink);
}

@media screen and (min-width: 750px) {
  :root { --gutter: var(--space-40); }
}
@media screen and (min-width: 1200px) {
  :root { --gutter: var(--space-48); }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, p, ul, address { margin: 0; }
address { font-style: normal; }
ul[role="list"] { list-style: none; padding: 0; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--space-16);
  top: -100px;
  z-index: 10;
  padding: var(--space-8) var(--space-16);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  --focus: var(--yellow);
}
.skip-link:focus { top: var(--space-16); }

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}
.btn-row > li { flex: 1 1 auto; display: flex; }
.btn {
  position: relative;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-16);
  background: var(--yellow);
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-button);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.btn:hover { background: var(--yellow-hover); }

@media screen and (min-width: 750px) {
  .btn-row { gap: var(--space-24); }
  .btn-row > li { flex: 0 0 auto; }
  .btn { flex: 0 0 auto; }

  /* Header buttons keep the small Figma look from tablet up; a transparent
     hit area extends each one to 48 tall for touch */
  .btn-row--header { gap: var(--space-16); }
  .btn--sm {
    min-height: 32px;
    padding: 0 12px; /* 8 + a 4 half-step inside the component, as in Figma */
    font-size: var(--size-ui-sm);
  }
  .btn--sm::after {
    content: "";
    position: absolute;
    inset: -8px 0;
  }
}

@media screen and (min-width: 990px) {
  .btn { min-height: 40px; }
  /* Desktop: header buttons get a 40 tall hit area */
  .btn--sm { min-height: 32px; }
  .btn--sm::after { inset: -4px 0; }
}

/* Touch screens at desktop widths (landscape tablets) keep 48 tall targets */
@media screen and (min-width: 990px) and (pointer: coarse) {
  .btn::after {
    content: "";
    position: absolute;
    inset: -4px 0;
  }
  .btn--sm::after { inset: -8px 0; }
}

/* Header */
.site-header { background: var(--nav); }
.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  padding-block: var(--space-32);
}
.site-header__logo { width: 256px; }
.consult { width: 100%; }
.consult__label {
  margin-bottom: var(--space-8);
  font-weight: 600;
  font-size: var(--size-small);
  line-height: 1.4;
  color: var(--ink-deep);
}

@media screen and (min-width: 750px) {
  .site-header__inner { padding-block: var(--space-40); }
  .site-header__logo { width: 350px; }
  .consult {
    width: auto;
    display: flex;
    align-items: center;
    gap: var(--space-16);
  }
  .consult__label { margin-bottom: 0; font-size: var(--size-ui-sm); }
}

/* Hero
   A solid red nameplate (the logo red, #CD0E1B) bolted to the bottom-left edge of the photo.
   Phone: photo, then the block overlapping the photo's bottom edge by 32.
   From 750: the block sits on the photo's bottom edge and overhangs into the About section by 32. */
.hero {
  position: relative;
  background: var(--ink);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero__inner { position: relative; margin-top: calc(-1 * var(--space-32)); }
.hero__box {
  padding: var(--space-24);
  background: var(--red);
  border-radius: 4px;
}
.hero__title {
  max-width: 12.3em; /* 344 at 28 */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-hero);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

@media screen and (min-width: 750px) {
  .hero {
    z-index: 1;
    height: clamp(400px, 37.2222vw, 720px); /* 536 at 1440 */
  }
  .hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .hero__media img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 56%; /* keeps the machine clear of the nameplate from 750 to 1920 */
  }
  .hero__inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * var(--space-32));
    margin: 0 auto;
  }
  .hero__box { display: inline-block; }
}

/* About */
.about {
  position: relative;
  background: var(--ink);
  color: var(--white);
  --focus: var(--white);
  padding-block: var(--space-48);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-40);
  align-items: center;
}
.about__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}
.about__p1, .about__p2 { font-size: var(--size-lead); line-height: 1.5; }
.about__p1 { max-width: 550px; }
.about__p2 { max-width: 612px; }
.about__media img {
  width: 100%;
  aspect-ratio: 604 / 342;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: 4px;
}

@media screen and (min-width: 750px) {
  /* Top: 64 section spacing + the hero nameplate's 32 overhang */
  .about { padding-block: var(--space-96) var(--space-64); }
}
@media screen and (min-width: 990px) {
  .about__grid {
    grid-template-columns: minmax(0, 612px) minmax(0, 604px);
    justify-content: space-between;
    column-gap: var(--space-48);
    align-items: start;
  }
}

/* Anaconda dealer */
.dealer {
  background: var(--paper);
  padding-block: var(--space-64);
  text-align: center;
}
.dealer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-48);
}
.dealer__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
}
.dealer__logo { width: min(368px, 100%); }
.dealer__tagline {
  font-weight: 600;
  font-style: italic;
  font-size: var(--size-tagline);
  line-height: 1.2;
  color: var(--ink);
}
.dealer__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  max-width: 824px;
}
.dealer__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-display);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.dealer__p1 { max-width: 688px; font-size: var(--size-lead); line-height: 1.5; color: var(--ink-deep); }
.dealer__p2 { max-width: 568px; font-size: var(--size-body); line-height: 1.5; color: var(--ink-deep); }
.btn-row--center { justify-content: center; width: 100%; }

@media screen and (min-width: 750px) {
  .dealer { padding-block: var(--space-80); }
}
@media screen and (min-width: 1200px) {
  .dealer { padding-block: var(--space-96); }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper-muted);
  --focus: var(--white);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-40);
  padding-block: var(--space-48) var(--space-40);
}
.site-footer__logo { width: 256px; }
.site-footer__company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
}
.site-footer__anaconda { width: 200px; }
.site-footer__address,
.site-footer__legal {
  font-weight: 500;
  font-size: var(--size-small);
  line-height: 1.4;
}
.site-footer__address { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.site-footer__address a:hover { color: var(--white); text-decoration: underline; }

@media screen and (min-width: 750px) {
  .site-footer__inner { padding-block: var(--space-64) var(--space-40); }
  .site-footer__logo { width: 350px; }
}
@media screen and (min-width: 990px) {
  /* Desktop matches Figma: plain 20px lines */
  .site-footer__address a { min-height: 0; }
}
@media screen and (min-width: 990px) and (pointer: coarse) {
  .site-footer__address a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
