/* ============================================================
   Ironwood Build Co. — design-build / trades
   Charcoal + concrete, with a safety-amber accent. Industrial,
   confident, no-nonsense. All visuals are code-drawn; photo
   placeholders mark exactly where client photography goes.
   ============================================================ */

:root {
  --bg:       #0e0f10;
  --bg-soft:  #16181a;
  --panel:    #181a1c;
  --panel-2:  #202326;
  --line:     rgba(245, 240, 230, 0.10);
  --line-2:   rgba(245, 240, 230, 0.20);

  --text:     #f2efe9;
  --muted:    #a7a39a;
  --muted-2:  #74716a;

  --accent:   #f4a72c;   /* safety amber */
  --accent-2: #ffc25e;
  --accent-deep: #c97f12;
  --accent-ink: #1a1206;

  --radius:    8px;
  --radius-sm: 5px;
  --maxw:      1180px;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --display: "Archivo", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* ambient warm wash + faint blueprint grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 85% -10%, rgba(244,167,44,0.10), transparent 60%),
    radial-gradient(50% 40% at 0% 0%, rgba(244,167,44,0.05), transparent 55%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(245,240,230,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,230,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
::selection { background: rgba(244,167,44,0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px; font-weight: 700; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.accent { color: var(--accent); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.01em; text-transform: uppercase;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .25s var(--ease);
}
.btn--lg { padding: 15px 28px; font-size: 0.98rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -10px rgba(244,167,44,0.6); }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 16px 38px -12px rgba(244,167,44,0.7); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------------- nav ---------------- */
.nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: rgba(14,15,16,0.6); border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.nav.is-scrolled { background: rgba(14,15,16,0.9); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: #fff; display: inline-flex; flex-direction: column; line-height: 1; }
.brand__co { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; gap: 26px; margin-left: 10px; margin-right: auto; }
.nav__links a { color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; position: relative; transition: color .25s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.phone { font-family: var(--display); font-weight: 700; font-size: 0.92rem; color: var(--text); white-space: nowrap; }
.phone span { color: var(--accent); }
.phone:hover { color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; padding: 6px 24px 22px; border-bottom: 1px solid var(--line); background: rgba(14,15,16,0.96); }
.nav__mobile a { padding: 13px 4px; color: var(--muted); font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile-cta { margin-top: 14px; text-align: center; color: var(--accent-ink); }
.nav__mobile.is-open { display: flex; }

/* ---------------- layout ---------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 24px; position: relative; }
.section__head { max-width: 660px; margin: 0 0 52px; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.kicker { display: inline-block; font-family: var(--display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ---------------- hero ---------------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px 80px; position: relative; }
.hero__glow { position: absolute; top: -60px; right: -10%; width: 700px; height: 480px; max-width: 90%; background: radial-gradient(50% 50% at 60% 40%, rgba(244,167,44,0.16), transparent 70%); filter: blur(20px); z-index: -1; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-block; font-family: var(--display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 24px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.03em; margin-bottom: 22px; }
.hero__sub { color: var(--muted); font-size: 1.16rem; max-width: 500px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__points { list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text); font-size: 0.96rem; }
.hero__points li { display: flex; align-items: center; gap: 10px; }
.hero__points li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1206' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat, var(--accent); }

/* code-drawn blueprint */
.blueprint { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(160deg, #11253a, #0c1622); color: #6fb6ff; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7); }
.blueprint::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(111,182,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(111,182,255,0.12) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.5; }
.blueprint__draw { position: absolute; inset: 8% 8% 10%; width: 84%; height: auto; filter: drop-shadow(0 0 6px rgba(111,182,255,0.4)); }
.blueprint__tag, .blueprint__dim { position: absolute; font-family: var(--body); font-size: 0.66rem; letter-spacing: 0.2em; color: rgba(160,205,255,0.8); }
.blueprint__tag { top: 14px; left: 16px; }
.blueprint__dim { bottom: 12px; right: 16px; }
.bp { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.2s var(--ease) forwards; }
.bp--dim { opacity: 0.55; }
.bp:nth-child(2){animation-delay:.2s}.bp:nth-child(3){animation-delay:.6s}.bp:nth-child(4){animation-delay:.9s}.bp:nth-child(5){animation-delay:1s}.bp:nth-child(6){animation-delay:1.1s}.bp:nth-child(7){animation-delay:1.3s}.bp:nth-child(8){animation-delay:1.5s}.bp:nth-child(9){animation-delay:1.7s}.bp:nth-child(10){animation-delay:1.9s}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------- trust strip ---------------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-soft); }
.strip__row { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
.strip__item { font-family: var(--display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.06em; color: var(--muted); }

/* ---------------- services ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease); }
.card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--panel-2); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: var(--radius-sm); color: var(--accent); background: rgba(244,167,44,0.12); border: 1px solid rgba(244,167,44,0.25); margin-bottom: 18px; transition: transform .35s var(--ease); }
.card:hover .card__icon { transform: translateY(-2px) rotate(-3deg); }
.card__title { font-size: 1.24rem; margin-bottom: 9px; }
.card__body { color: var(--muted); font-size: 0.97rem; }

/* ---------------- process ---------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--line-2); }
.step__num { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--accent); }
.step__title { font-size: 1.2rem; margin: 10px 0 8px; }
.step__body { color: var(--muted); font-size: 0.95rem; }

/* ---------------- placeholders + gallery ---------------- */
.ph { position: relative; display: grid; place-items: center; text-align: center; gap: 10px; min-height: 220px; padding: 26px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: repeating-linear-gradient(45deg, rgba(245,240,230,0.03) 0 14px, transparent 14px 28px), var(--panel); color: var(--muted); overflow: hidden; }
.ph::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: rgba(244,167,44,0.14); border: 1px solid rgba(244,167,44,0.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4a72c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 17l-5-5L5 21'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 20px; }
.ph__tag { font-family: var(--display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.ph__desc { font-size: 0.86rem; line-height: 1.5; max-width: 34ch; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ph--wide { grid-column: span 2; min-height: 260px; }
.ph--tall { min-height: 380px; }

/* real photography frames */
.shot { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.gallery .shot { aspect-ratio: 4 / 3; min-height: 0; }
.gallery .shot.ph--wide { aspect-ratio: 16 / 7; }
.crew__photo { aspect-ratio: 4 / 5; }

/* ---------------- stats ---------------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats__grid { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat__label { color: var(--muted); font-size: 0.92rem; }

/* ---------------- testimonial ---------------- */
.quote-sec { text-align: center; }
.bigquote blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.3; letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto 20px; text-wrap: balance; }
.bigquote blockquote::before { content: "“"; color: var(--accent); }
.bigquote figcaption { color: var(--muted); font-size: 0.96rem; }
.bigquote strong { color: var(--text); }

/* ---------------- crew ---------------- */
.crew__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.crew__note { margin-top: 18px; color: var(--text); font-size: 1.02rem; border-left: 3px solid var(--accent); padding-left: 16px; }

/* ---------------- quote CTA ---------------- */
.quotebox { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 48px; border-radius: var(--radius); border: 1px solid var(--line-2); background: radial-gradient(80% 120% at 0% 0%, rgba(244,167,44,0.12), transparent 60%), var(--panel); }
.quotebox__title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 12px; }
.quotebox__sub { color: var(--muted); font-size: 1.05rem; }
.quoteform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font-family: var(--body); font-size: 0.96rem; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.quoteform .btn { grid-column: 1 / -1; }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 24px 32px; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__tag { color: var(--muted); font-size: 0.95rem; margin-top: 14px; max-width: 260px; }
.footer__col { display: flex; flex-direction: column; }
.footer__col h4 { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer__col a, .footer__col span { color: var(--muted); font-size: 0.94rem; padding: 5px 0; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { max-width: var(--maxw); margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted-2); font-size: 0.85rem; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--accent); }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- responsive ---------------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .crew__grid { grid-template-columns: 1fr; }
  .quotebox { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .nav__links, .phone { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 76px 24px; }
}
@media (max-width: 560px) {
  .cards, .gallery { grid-template-columns: 1fr; }
  .ph--wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .quoteform { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .strip__row { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .nav__inner { gap: 12px; padding: 12px 16px; }
  .section, .hero { padding-left: 16px; padding-right: 16px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bp { stroke-dashoffset: 0; }
}
