/* ============================================================
   AJRAX.com — Core Stylesheet
   Engineering-drafting inspired system
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --paper:        #F4F0E7;   /* warm off-white background */
  --paper-2:      #EDE8DC;   /* slightly deeper panel */
  --card:         #FBF9F3;   /* raised card surface */
  --ink:          #14130F;   /* near-black type */
  --ink-2:        #3B3833;   /* secondary type */
  --ink-3:        #6B665C;   /* muted / captions */
  --line:         #1A1915;   /* structural borders */
  --line-soft:    rgba(20,19,15,0.14);
  --orange:       #E5631B;   /* construction accent */
  --orange-2:     #C9500F;   /* accent hover / deep */
  --orange-tint:  rgba(229,99,27,0.10);
  --white:        #ffffff;

  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 3px;
  --shadow: 0 1px 0 rgba(20,19,15,0.04);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle drafting grid */
  background-image:
    linear-gradient(rgba(20,19,15,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,19,15,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.mono {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.hr { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* section eyebrow: drafting tag */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 11.5px; font-weight: 500; color: var(--orange-2);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--orange);
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,240,231,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { height: 34px; width: auto; flex: none; display: block; }
.brand__word {
  font-family: var(--font-head); font-weight: 700;
  font-size: 22px; letter-spacing: 0.02em; color: var(--ink);
}
.brand__tag {
  font-family: var(--font-head); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-3);
  border-left: 1px solid var(--line-soft); padding-left: 12px; margin-left: 2px;
}
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  display: inline-block; padding: 8px 14px;
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  color: var(--ink-2); border-radius: var(--radius);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--orange-tint); }
.nav__links a.is-active { color: var(--orange-2); }
.nav__cta {
  margin-left: 10px;
}
.nav__toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: transparent; border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); cursor: pointer;
  transition: transform .15s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-2); border-color: var(--orange-2); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 66px); letter-spacing: -0.03em; margin: 18px 0 22px;
}
.hero h1 .accent { color: var(--orange); }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 34ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* schematic panel in hero */
.schematic {
  position: relative; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 8px 8px 0 rgba(20,19,15,0.06);
}
.schematic::before, .schematic::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--orange);
}
.schematic::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.schematic::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* three-brand mini map */
.brandmap { display: grid; gap: 14px; }
.brandmap__node {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 16px; background: var(--paper);
}
.brandmap__node .ico { height: 42px; width: 42px; object-fit: contain; flex: none; background: #fff; border: 1px solid var(--line-soft); border-radius: 9px; padding: 4px; }
.brandmap__parent .ico { height: 56px; width: 56px; border-color: rgba(255,255,255,0.22); }
.brandmap__node b { font-family: var(--font-head); font-size: 15px; display: block; }
.brandmap__node small { color: var(--ink-3); font-size: 13px; }
.brandmap__parent { border: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.brandmap__parent small { color: rgba(244,240,231,0.6); }
.brandmap__connector { text-align: center; color: var(--ink-3); font-family: var(--font-head); font-size: 11px; letter-spacing: .2em; }
/* Construction + Technology sit left / right under the parent */
.brandmap__children { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brandmap__children .brandmap__node { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 14px; }
.brandmap__children .ico { height: 88px; width: auto; background: transparent; border: 0; border-radius: 0; padding: 0; }

/* ============================================================
   Section title block (drafting title block)
   ============================================================ */
.titleblock {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: end; gap: 24px; margin-bottom: 48px;
  border-bottom: 1px solid var(--line); padding-bottom: 22px;
}
.titleblock h2 { font-size: clamp(28px, 4vw, 40px); }
.titleblock__meta { text-align: right; }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 rgba(20,19,15,0.07); }
.card__num {
  font-family: var(--font-head); font-size: 12px; letter-spacing: .18em;
  color: var(--orange-2); margin-bottom: 16px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.card__ico { height: 50px; width: auto; margin-bottom: 18px; display: block; }

/* Card alignment: cards are flex columns so trailing actions bottom-align,
   and titles reserve equal height per row so text lines up across a grid. */
.card { display: flex; flex-direction: column; }
.card img { align-self: flex-start; }        /* keep logos from stretching */
.card .card__cta { margin-top: auto; padding-top: 18px; margin-bottom: 0; }

@media (min-width: 761px) {
  .grid--3 .card h3, .grid--5 .card h3 { min-height: 2.3em; }
}
@media (min-width: 961px) {
  .grid--5 .card h3 { min-height: 3.4em; }    /* 5-across: longest title wraps to 3 lines */
}

/* license cards: equal title height + bottom-aligned license number */
.card--lic h3 { min-height: 2.3em; }
.card--lic .mono { margin-top: auto; }

/* feature list with drafting ticks */
.ticklist { list-style: none; }
.ticklist li {
  position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-2);
}
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 14px; border: 1.5px solid var(--orange);
  border-radius: 2px;
}
.ticklist li::after {
  content: ""; position: absolute; left: 5px; top: 12px;
  width: 4px; height: 8px; border: solid var(--orange);
  border-width: 0 2px 2px 0; transform: rotate(43deg);
}

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats__cell { padding: 28px; border-right: 1px solid var(--line-soft); background: var(--card); }
.stats__cell:last-child { border-right: 0; }
.stats__cell b { font-family: var(--font-head); font-size: 32px; display: block; letter-spacing: -0.02em; }
.stats__cell span { color: var(--ink-3); font-size: 14px; }

/* ============================================================
   Brand feature blocks (Construction / Technology)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split__media { order: 2; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 40px;
}
.panel--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel--dark p { color: rgba(244,240,231,0.72); }
.panel--dark .mono { color: rgba(244,240,231,0.5); }

/* logo display plate */
.logoplate {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(20,19,15,0.03) 11px, rgba(20,19,15,0.03) 12px),
    var(--paper);
  padding: 48px; min-height: 240px; position: relative;
}
.logoplate .corner { position: absolute; width: 14px; height: 14px; border: 1px solid var(--orange); }
.logoplate .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.logoplate .corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.logoplate .corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.logoplate .corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.logoplate img { width: 260px; max-width: 80%; }

/* ============================================================
   Product (My Transmittal) block
   ============================================================ */
.product {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--card);
}
.product__body { padding: 44px; }
.product__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-2);
  border: 1px solid var(--orange); border-radius: 100px; padding: 5px 12px; margin-bottom: 18px;
}
.product__media {
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative;
}
.storebtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ============================================================
   Contact
   ============================================================ */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-head); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-tint);
}
.field textarea { min-height: 150px; resize: vertical; }
.contact-info { display: grid; gap: 18px; }
.contact-info__row {
  display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.contact-info__row:last-child { border-bottom: 0; }
.contact-info__row .k {
  font-family: var(--font-head); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); width: 92px; flex: none; padding-top: 2px;
}
.contact-info__row .v { color: var(--ink); font-size: 16px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px,4vw,40px); color: var(--paper); margin-bottom: 14px; }
.cta-band p { color: rgba(244,240,231,0.7); max-width: 46ch; margin: 0 auto 28px; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,240,231,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,240,231,0.05) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}

/* ============================================================
   Legal / prose pages
   ============================================================ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose ul { padding-left: 22px; margin: 0 0 1rem; }
.prose ul li { list-style: disc; margin-bottom: 6px; }
.prose a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 2px; }
.legal-meta {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px 18px; background: var(--card); margin-bottom: 30px;
  font-size: 14px; color: var(--ink-3);
}

/* page hero (interior) */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 14px 0 16px; }
.page-hero p { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.breadcrumb { font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--orange-2); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 0; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-top: 64px; padding-bottom: 48px;   /* keep .wrap's horizontal padding */
}
.footer__brand .brand__word { font-size: 20px; }
.footer__brand p { color: var(--ink-3); font-size: 14px; margin-top: 16px; max-width: 30ch; }
.footer__col h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 14.5px; color: var(--ink-2); }
.footer__col a:hover { color: var(--orange-2); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-3);
}
.footer__bottom .legal-links { display: flex; gap: 18px; }
.footer__bottom a:hover { color: var(--orange-2); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .split, .product { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .product__media { min-height: 260px; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--5 { grid-template-columns: repeat(3,1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* mobile nav — switch to hamburger early so the horizontal nav
   never crowds the brand / "LLC" tag on smaller screens */
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    transform: translateY(-140%); transition: transform .28s var(--ease);
    box-shadow: 0 20px 40px rgba(20,19,15,0.12);
  }
  body.menu-open .nav__links { transform: translateY(0); }
  .nav__links a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav__links .nav__cta { margin: 12px 0 0; }
  .nav__links .btn { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }

  .titleblock { grid-template-columns: 1fr; gap: 12px; }
  .titleblock__meta { text-align: left; }
  .grid--3, .grid--2, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats__cell { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stats__cell:last-child { border-bottom: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
  .panel, .product__body, .schematic { padding: 26px; }
  .logoplate img { width: 200px; }
}

@media (max-width: 400px) {
  .brand__tag { display: none; }
  .wrap { padding: 0 18px; }
}
