/* Dirección de arte — GM Ironwood
   1. Paleta: carbón #17171a · abeto #d6b48a · bronce #b4823f · hueso #efe8dc
   2. Tipos: Instrument Serif (títulos grandes, condensada) + Archivo (texto y rótulos estrechos)
   3. Idea: el "stud layout" — montantes a 16" como retícula, marcas de lápiz de carpintero
   4. Movimiento: líneas de medida que se trazan al hacer scroll; entradas cortas, ease-out, sin rebotes
   5. Sale del oficio: framing es lo que distingue a GM Ironwood */

:root {
  --coal: #17171a;
  --fir: #d6b48a;
  --bronze: #b4823f;
  --bone: #efe8dc;
  --coal-2: #202024;
  --line: rgba(239, 232, 220, .09);
  --ink-soft: #4a4640;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --stud: clamp(48px, 8.33vw, 120px);
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--coal);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--sans);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--fir); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bone); color: var(--coal); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

.placeholder {
  display: inline-block;
  font: 600 .8rem/1.3 var(--sans);
  letter-spacing: .04em;
  color: #ffd27a;
  border: 1px dashed currentColor;
  padding: 3px 8px;
  border-radius: 3px;
}
.placeholder.small { font-size: .72rem; }

/* Demo band */
.demo-band {
  background: var(--bone); color: var(--coal);
  font: 600 .72rem/1 var(--sans); font-variation-settings: "wdth" 75;
  letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 8px var(--gutter);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(23, 23, 26, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--bronze); stroke-width: 2.4; }
.brand-name { font: 400 1.45rem/1 var(--serif); }
.brand-name small {
  display: block; margin-top: 3px;
  font: 600 .62rem/1 var(--sans); font-variation-settings: "wdth" 70;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fir);
}
.nav { display: none; gap: 28px; }
.nav a {
  text-decoration: none; font-size: .9rem; font-weight: 500;
  background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
  padding: 4px 0;
}
.nav a:hover { background-size: 100% 1px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  min-width: 44px; min-height: 44px;
  background: transparent; color: var(--bone);
  border: 1px solid rgba(239, 232, 220, .35); border-radius: 999px;
  font: 600 .8rem/1 var(--sans); letter-spacing: .08em; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang:hover { border-color: var(--fir); background: rgba(239, 232, 220, .06); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  border: 1.5px solid transparent; border-radius: 3px; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .9rem; }
.btn-bronze { background: var(--bronze); color: var(--coal); }
.btn-bronze:hover { background: var(--fir); }
.btn-ghost { border-color: rgba(239, 232, 220, .55); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(239, 232, 220, .08); }
.btn-ghost-dark { border-color: var(--coal); color: var(--coal); background: transparent; }
.btn-ghost-dark:hover { background: var(--coal); color: var(--bone); }

/* Stud grid: vertical lines every "16 inches" */
.studs {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(var(--stud) - 1px), rgba(239, 232, 220, .07) calc(var(--stud) - 1px) var(--stud));
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 96px);
  display: flex; align-items: flex-end;
  padding: 96px var(--gutter) clamp(88px, 12vh, 120px);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 23, 26, .35) 0%, rgba(23, 23, 26, .2) 30%, rgba(23, 23, 26, .92) 82%),
    linear-gradient(90deg, rgba(23, 23, 26, .7), rgba(23, 23, 26, 0) 75%);
}
.hero-inner { position: relative; max-width: 1100px; }
.eyebrow {
  font: 600 .78rem/1.3 var(--sans); font-variation-settings: "wdth" 72;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fir);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 11.5vw, 8.6rem);
  line-height: .9; letter-spacing: -.015em;
}
.hero-title .line { display: block; }
.hero-title em { color: var(--fir); }
.tape { width: min(100%, 560px); height: 18px; margin: 22px 0 18px; overflow: visible; }
.tape path { fill: none; stroke: var(--bronze); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero-sub { max-width: 34rem; font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: rgba(239, 232, 220, .92); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rating { margin-top: 22px; font-size: .92rem; color: rgba(239, 232, 220, .88); }
.stars { color: var(--bronze); letter-spacing: 2px; }

/* Hero intro motion */
.js .hero-title .line, .js .eyebrow, .js .hero-sub, .js .hero-ctas, .js .rating {
  opacity: 0; transform: translateY(18px);
  animation: rise .9s var(--ease) forwards;
}
.js .eyebrow { animation-delay: .05s; }
.js .hero-title .line:nth-child(1) { animation-delay: .12s; }
.js .hero-title .line:nth-child(2) { animation-delay: .2s; }
.js .hero-title .line:nth-child(3) { animation-delay: .28s; }
.js .hero-sub { animation-delay: .5s; }
.js .hero-ctas { animation-delay: .6s; }
.js .rating { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Drawn pencil lines */
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .15s; }
.js .tape .draw { animation: draw 1.6s var(--ease) .55s forwards; }
.js .in .draw, .js .draw.in { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Facts */
.facts { border-block: 1px solid var(--line); background: var(--coal-2); }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.facts li {
  padding: 18px var(--gutter);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.fact-k { font: 600 .68rem/1 var(--sans); font-variation-settings: "wdth" 70; letter-spacing: .16em; text-transform: uppercase; color: var(--fir); }
.fact-v { font: 400 1.35rem/1.15 var(--serif); }
.facts .placeholder { align-self: flex-start; }

/* Sections */
section { position: relative; }
.services, .compare-section, .process, .reviews, .estimate { padding: clamp(72px, 12vw, 140px) var(--gutter); }
.section-head { max-width: 900px; margin-bottom: clamp(36px, 6vw, 64px); }
.mark {
  font: 600 .74rem/1.3 var(--sans); font-variation-settings: "wdth" 70;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bronze);
  margin-bottom: 14px;
}
h2 { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 5rem); line-height: .98; letter-spacing: -.01em; }
.underline { width: min(70%, 300px); height: 12px; margin-top: 12px; overflow: visible; }
.underline path { fill: none; stroke: var(--bronze); stroke-width: 2.5; stroke-linecap: round; }
.lede { margin-top: 16px; max-width: 36rem; }

/* Services: asymmetric editorial layout */
.services { display: grid; gap: clamp(48px, 8vw, 96px); }
.services .section-head { margin-bottom: 0; }
.svc { display: grid; gap: 22px; align-content: start; }
.svc-fig { margin: 0; overflow: hidden; border-radius: 2px; }
.svc-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc-fig img { transform: scale(1.03); }
.svc-body { position: relative; max-width: 30rem; }
.svc-no {
  display: block; font: italic 400 1rem/1 var(--serif); color: var(--bronze);
  border-top: 1.5px solid var(--bronze); width: 56px; padding-top: 8px; margin-bottom: 12px;
}
.svc h3 { font: 400 clamp(1.9rem, 4.6vw, 2.9rem)/1.02 var(--serif); margin-bottom: 12px; }
.svc p { color: rgba(239, 232, 220, .86); }
.svc-proof { margin-top: 12px; font-size: .9rem; color: var(--fir) !important; }
.svc-more { border-top: 1px solid var(--line); padding-top: 20px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.svc-more .mark { margin: 0; }

/* Before / after */
.compare-section { background: var(--bone); color: var(--coal); }
.compare-section .mark { color: #7a5524; }
.compare {
  position: relative; max-width: 1040px; margin: 0 auto;
  aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px;
  touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--bone); pointer-events: none;
}
.handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%;
  border-radius: 50%; background: var(--coal); border: 2px solid var(--bone);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efe8dc' stroke-width='2'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat;
  transition: transform .2s var(--ease);
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.compare-range:focus-visible ~ .handle::after, .compare:has(.compare-range:focus-visible) .handle::after { outline: 3px solid var(--fir); outline-offset: 3px; }
.compare:active .handle::after { transform: scale(1.08); }
.tag {
  position: absolute; top: 14px; padding: 6px 10px;
  font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(23, 23, 26, .82); color: var(--bone); pointer-events: none;
}
.tag-before { left: 14px; }
.tag-after { right: 14px; }
.note { display: table; margin: 18px auto 0; color: #6b4a1c; }

/* Process */
.process { background: var(--coal-2); overflow: hidden; }
.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.plate { display: none; }
.step { position: relative; padding-left: 64px; }
.step::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: -40px; width: 1.5px;
  background: linear-gradient(var(--bronze), rgba(180, 130, 63, 0));
}
.step:last-child::before { display: none; }
.step-no {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  font: 400 1.6rem/1 var(--serif); color: var(--coal); background: var(--fir);
}
.step h3 { font: 400 1.8rem/1.05 var(--serif); margin: 4px 0 8px; }
.step p { color: rgba(239, 232, 220, .84); max-width: 26rem; }

/* Reviews */
.big-score { color: var(--bronze); }
.review-grid { display: grid; gap: 20px; }
.review {
  margin: 0; padding: 28px 24px; position: relative;
  border-left: 1.5px solid var(--bronze);
  background: linear-gradient(90deg, rgba(239, 232, 220, .04), transparent);
}
.review blockquote { margin: 0 0 10px; }
.review blockquote p { font: italic 400 clamp(1.7rem, 4.6vw, 2.4rem)/1.08 var(--serif); }
.review-lead blockquote p { font-size: clamp(2.4rem, 8vw, 4.4rem); color: var(--fir); }
.review-ctx { font-size: 1.05rem; color: rgba(239, 232, 220, .9); margin-bottom: 8px; }
.review figcaption { margin-top: 14px; font-weight: 600; }
.review figcaption span { font-weight: 400; color: rgba(239, 232, 220, .72); }

/* Area */
.area { display: grid; border-top: 1px solid var(--line); }
.area-fig { margin: 0; }
.area-fig img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.area-body { padding: clamp(56px, 9vw, 110px) var(--gutter); }
.area h2 { margin-bottom: 18px; }
.amp { font-style: italic; color: var(--fir); }
.info { margin: 32px 0 0; display: grid; gap: 18px; }
.info div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.info dt { font: 600 .7rem/1.8 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fir); }
.info dd { margin: 0; }
.info a { text-underline-offset: 3px; text-decoration-color: var(--bronze); }

/* Estimate */
.estimate { background: var(--bone); color: var(--coal); }
.estimate .mark { color: #7a5524; }
.estimate .placeholder { color: #8a4b00; }
.form { display: grid; gap: 18px; max-width: 900px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--coal);
  background: #fbf8f2; border: 1.5px solid #8e877b; border-radius: 3px;
  padding: 12px 14px; min-height: 50px;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coal); }
.field :focus-visible { outline: 3px solid var(--bronze); outline-offset: 1px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-error { color: #9b2a12; font-weight: 600; }

/* Footer */
.footer { padding: 56px var(--gutter) 120px; border-top: 1px solid var(--line); font-size: .9rem; color: rgba(239, 232, 220, .82); }
.footer-top { display: grid; gap: 8px; margin-bottom: 28px; }
.footer-brand { font: 400 1.8rem/1 var(--serif); color: var(--bone); margin-bottom: 6px; }
.credits { font-size: .78rem; color: rgba(239, 232, 220, .7); margin-top: 8px; }
.credits a { color: rgba(239, 232, 220, .85); }

/* Sticky call bar (mobile) */
.call-bar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60; min-height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bronze); color: var(--coal);
  font-weight: 700; text-decoration: none; border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.call-bar svg { width: 20px; height: 20px; fill: currentColor; }
.call-bar:active { transform: scale(.98); }

.hide-mobile { display: none; }

/* ---------- Tablet + desktop ---------- */
@media (min-width: 720px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .review-lead { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr 1fr; }
  .field-wide, .form-error { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .hide-mobile { display: inline-flex; }
  .call-bar { display: none; }
  .footer { padding-bottom: 56px; }

  .services { grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 110px; }
  .services .section-head { grid-column: 1 / 9; }
  .svc-adu { grid-column: 1 / -1; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
  .svc-adu .svc-fig img { aspect-ratio: 16 / 10; }
  .svc-kitchen { grid-column: 1 / 7; }
  .svc-framing { grid-column: 7 / -1; margin-top: 140px; }
  .svc-more { grid-column: 1 / -1; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 34px; }
  .plate { display: block; position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 10px; }
  .plate path { fill: none; stroke: var(--bronze); stroke-width: 3; vector-effect: non-scaling-stroke; }
  .step { padding: 60px 0 0; }
  .step::before { left: 21px; top: -34px; bottom: auto; height: 34px; background: var(--bronze); }
  .step:last-child::before { display: block; }
  .step-no { top: 0; }

  .review-grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; }
  .review-lead { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; }

  .area { grid-template-columns: 5fr 7fr; }
  .area-fig img { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-title .line, .js .eyebrow, .js .hero-sub, .js .hero-ctas, .js .rating { opacity: 1; transform: none; }
  .js .draw { stroke-dashoffset: 0; }
}
