/* Gordon Drive Holdings — site styles */

/* — tokens — */
:root {
  --color-bg: #faf6f1;
  --color-surface: #f1eae1;
  --color-text: #2e2724;
  --color-text-secondary: rgba(46, 39, 36, .8);
  --color-text-muted: rgba(46, 39, 36, .7);
  --color-accent: #a9583c;
  --color-accent-600: #914a32;
  --color-accent-700: #78402b;
  --color-divider: rgba(46, 39, 36, .42);
  --color-divider-medium: rgba(46, 39, 36, .16);
  --color-divider-faint: rgba(46, 39, 36, .08);

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --max-width: 1200px;
  --nav-max-width: 1344px;
  --gutter: clamp(20px, 5vw, 72px);
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
p { margin: 0; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* — skip link — */
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--color-text); color: var(--color-bg);
  padding: 8px 12px;
}
.skip:focus { left: 8px; color: var(--color-bg); }

/* — button — */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px;
  font: 500 14px/1.2 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
}
.btn-primary,
.btn-primary:hover { color: var(--color-bg); }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); border-color: var(--color-accent-700); }

/* — blueprint frame + corner marks — */
.blueprint { position: relative; border: 1px solid var(--color-divider); }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: rgba(46, 39, 36, .55);
}
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.tl { top: -6px; left: -6px; }
.tr { top: -6px; right: -6px; }
.bl { bottom: -6px; left: -6px; }
.br { bottom: -6px; right: -6px; }

/* — nav — */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: var(--nav-max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
}
.nav-logo { display: flex; align-items: center; justify-self: start; text-decoration: none; }
.nav-logo img { height: 64px; width: auto; }
.nav-brand {
  color: var(--color-text);
  text-decoration: none;
  font: 600 24px/1 var(--font-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.nav-brand:hover { color: var(--color-text); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  justify-self: end;
}
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--color-text);
  text-decoration: none;
  font-size: 17px;
}
.nav-links a:not(.btn):hover { color: var(--color-accent); }

/* — layout — */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
main section { scroll-margin-top: 24px; }

/* — section header — */
.kicker {
  display: block;
  margin: 0 0 12px;
  font: 600 15px/15px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}
.rule {
  height: 1px; border: 0;
  margin: 0 0 32px;
  background: var(--color-divider);
}
.rule-sm { margin-bottom: 24px; }

/* — hero — */
#hero { padding: 96px 0 72px; }
#hero h1 {
  margin: 0 0 0 -.05em;
  font: 600 clamp(48px, 7vw, 96px)/1.04 var(--font-heading);
  letter-spacing: .01em;
  text-transform: uppercase;
}
#hero h1 span { display: block; }
#hero p {
  margin-top: 32px;
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.5;
}

/* — what we buy — */
#buy, #how { padding: 72px 0 60px; }
.spec {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr);
  font-size: 18px;
  line-height: 28px;
}
.spec > div { border-bottom: 1px solid var(--color-divider-faint); }
.spec > div:nth-last-child(-n+3) { border-bottom: 0; }
.spec .n {
  padding: 14px 0 14px 24px;
  font: 600 15px/24px var(--font-body);
  letter-spacing: .08em;
  color: var(--color-accent-700);
}
.spec .l { padding: 14px 24px 14px 0; }
.spec .v {
  padding: 14px 24px 14px 0;
  font: 600 20px/24px var(--font-heading);
  letter-spacing: .02em;
}
.spec .v-stack { display: flex; flex-direction: column; gap: 8px; }
.spec-note {
  padding: 12px 24px;
  border-top: 1px solid var(--color-divider);
  font-size: 17px;
  line-height: 26px;
  color: var(--color-text-muted);
}

/* — how a sale goes — */
.steps {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: clamp(16px, 3vw, 32px);
  max-width: 860px;
}
.step-mark { display: flex; flex-direction: column; align-items: center; }
.step-num.blueprint {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-color: var(--color-accent-700);
  font: 600 18px/1 var(--font-heading);
  color: var(--color-accent-700);
}
.step-line { flex: 1; width: 1px; background: var(--color-divider); }
.step-body { padding: 10px 0 48px; }
.step-body:last-child { padding-bottom: 0; }
.step-body h2 {
  margin: 0;
  font: 600 28px/28px var(--font-heading);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.step-body p {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-secondary);
}
.questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  background: var(--color-divider-medium);
  border: 1px solid var(--color-divider-medium);
}
.questions li {
  padding: 14px 18px;
  background: var(--color-bg);
  font-size: 17px;
  line-height: 26px;
}
.questions + p { margin-top: 20px; }

/* — about / contact shared grid — */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px clamp(24px, 5vw, 96px);
}

/* — about — */
#about { align-items: center; padding: 60px 0 72px; }
#about h2 {
  margin: 0;
  font: 600 32px/36px var(--font-heading);
  letter-spacing: .02em;
  text-transform: uppercase;
}
#about p {
  margin-top: 16px;
  max-width: 48ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-secondary);
}
#about img { width: 100%; height: auto; }

/* — contact — */
#contact { padding: 60px 0 48px; }
#contact h2 {
  margin: 0;
  font: 600 24px/24px var(--font-heading);
  letter-spacing: .02em;
  text-transform: uppercase;
}
#contact p {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-secondary);
}
.contact-lines {
  display: flex; flex-direction: column; gap: 6px;
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 28px;
  font-style: normal;
}
.contact-lines a { color: var(--color-text); align-self: flex-start; }
.contact-lines a:hover { color: var(--color-accent); }
.contact-lines span { color: var(--color-text-muted); }

/* — footer — */
.foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 32px;
  padding: 48px 0;
  border-top: 1px solid var(--color-divider);
  font-size: 17px;
  line-height: 26px;
  color: var(--color-text-muted);
}
.foot img { height: 44px; width: auto; }
.foot .cp { margin-left: auto; }

/* — 404 — */
.notfound { padding: 96px 0 72px; }
.notfound h1 {
  margin: 0;
  font: 600 clamp(40px, 6vw, 72px)/1.04 var(--font-heading);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.notfound p { margin-top: 24px; font-size: 19px; line-height: 1.5; max-width: 60ch; }

/* — ≤960px: nav reflows to two rows — */
@media (max-width: 960px) {
  .nav {
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav-brand { justify-self: end; text-align: right; font-size: 20px; }
  .nav-links {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  #hero { padding: 56px 0 48px; }
}

/* — ≤600px: mobile — */
@media (max-width: 600px) {
  .nav-brand { display: none; }
  .nav-logo img { height: 48px; }
  .nav-links a:not(.btn) { font-size: 16px; }

  main section { padding-top: 48px !important; padding-bottom: 40px !important; }
  #hero { padding: 56px 0 48px !important; }

  .spec { grid-template-columns: 40px minmax(0, 1fr); }
  .spec .n { padding-left: 16px; }
  .spec .l { grid-column: 2; padding-bottom: 4px; border-bottom: 0; }
  .spec .n { grid-row: span 2; }
  .spec .v { grid-column: 2; padding: 0 20px 14px 0; }
  .spec > div:nth-last-child(-n+3) { border-bottom: 0; }
  .spec > .n:not(:nth-last-child(-n+3)) { border-bottom: 1px solid var(--color-divider-faint); }
  .spec > .v:not(:last-child) { border-bottom: 1px solid var(--color-divider-faint); }

  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot .cp { margin-left: 0; }
}
