/* Malaga Smash Repairs. Workshop-industrial: graphite, paper, one safety orange. */
:root {
  --bg: #141414;
  --bg-2: #1b1b1a;
  --bg-3: #232321;
  --line: rgba(242, 238, 232, 0.12);
  --line-strong: rgba(242, 238, 232, 0.24);
  --fg: #f2eee8;
  --fg-2: #c9c3ba;
  --muted: #a39d94;
  --accent: #ff6a13;
  --accent-hover: #ff7f33;
  --accent-ink: #141414;
  --paper: #ece7df;
  --paper-2: #e2dcd2;
  --paper-line: rgba(20, 20, 20, 0.14);
  --ink: #161615;
  --ink-2: #4a4640;
  --ok: #3ecf8e;
  --err: #ff8a80;
  --radius: 6px;
  --radius-lg: 10px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display, .h1, .h2, .h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.95; }
.h1 { font-size: clamp(3rem, 7.4vw, 5.75rem); font-weight: 700; }
.h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 700; }
.h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 600; line-height: 1.05; }
.h1 em, .h2 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--fg-2); max-width: 60ch; line-height: 1.6; }
.muted { color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.875rem, 3.2vw, 2.5rem); line-height: 1; margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.125rem; margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--fg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); font: 600 1rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn svg { flex-shrink: 0; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:active { transform: translateY(1px); }
.btn-line { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--fg); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 20, 20, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(20, 20, 20, 0.82); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: 1.375rem; line-height: 0.9; letter-spacing: 0.01em; }
.brand-name span { display: block; font-size: 0.72rem; font-family: var(--body); font-weight: 500; letter-spacing: 0.12em; color: var(--muted); margin-top: 4px; }
.nav { display: none; align-items: center; gap: 28px; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--fg-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); border-color: var(--accent); }
.header-call { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--fg); cursor: pointer; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .header-call { display: inline-flex; min-height: 44px; }
  .menu-toggle { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 20px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; font-weight: 600; }
.mobile-nav .btn { margin-top: 16px; width: 100%; font-family: var(--body); text-transform: none; font-size: 1rem; }
@media (min-width: 1000px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; } }
.hero .h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }

/* Job card: the verifiable facts, set like a workshop job sheet */
.jobcard { margin-top: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; }
.jobcard div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.jobcard div:nth-child(odd) { border-right: 1px solid var(--line); }
.jobcard div:nth-last-child(-n+2) { border-bottom: 0; }
.jobcard dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.jobcard dd { margin: 0; font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.jobcard a { text-decoration: none; }
.jobcard a:hover { color: var(--accent); }

/* Quote form */
.quote { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 36px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
.quote h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 3vw, 2.5rem); line-height: 0.95; margin-bottom: 8px; }
.quote .quote-sub { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #faf8f4; border: 1px solid rgba(20, 20, 20, 0.28); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23161615' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.45); }
.field input[type="file"] { padding: 10px; font-size: 0.875rem; }
.field input[type="file"]::file-selector-button { font: 600 0.875rem var(--body); border: 0; background: var(--ink); color: var(--paper); border-radius: 4px; padding: 8px 12px; margin-right: 12px; cursor: pointer; }
.field .hint { font-size: 0.8125rem; color: var(--ink-2); }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.quote .btn { width: 100%; margin-top: 6px; }
.quote-foot { margin: 14px 0 0; font-size: 0.875rem; color: var(--ink-2); text-align: center; }
.quote-foot a { color: var(--ink); font-weight: 600; }
.quote [data-bluepeek-message] { font-size: 0.875rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; } }
.section-head p { margin: 0; color: var(--fg-2); max-width: 52ch; }
.paper { background: var(--paper); color: var(--ink); }
.paper .muted, .paper .section-head p, .paper .prose p, .paper .prose li { color: var(--ink-2); }
.paper .prose strong, .paper .prose a { color: var(--ink); }
.section.paper + .section { border-top: 0; }

/* Comparison (in the booth -> finished) */
.compare { position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-top { clip-path: inset(0 50% 0 0); }
.compare.nudge .compare-top { animation: nudge-clip 1.8s var(--ease); }
.compare.nudge .compare-handle { animation: nudge-handle 1.8s var(--ease); }
@keyframes nudge-clip { 0%, 100% { clip-path: inset(0 50% 0 0); } 40% { clip-path: inset(0 30% 0 0); } }
@keyframes nudge-handle { 0%, 100% { left: 50%; } 40% { left: 70%; } }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--fg); transform: translateX(-1px); pointer-events: none; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-range:focus-visible + .compare-handle::after { outline: 3px solid var(--fg); outline-offset: 2px; }
.tape { position: absolute; top: 16px; z-index: 2; font: 700 0.75rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 12px; background: var(--accent); color: var(--accent-ink); transform: rotate(-1.5deg); pointer-events: none; }
.tape-left { left: 16px; }
.tape-right { right: 16px; background: var(--fg); transform: rotate(1.5deg); }
.caption { max-width: 1000px; margin: 14px auto 0; font-size: 0.875rem; color: var(--muted); }

/* Service list: an editorial index, not a card grid */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.svc-list li { border-bottom: 1px solid var(--line-strong); }
.svc-list a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 22px 0; text-decoration: none; }
.svc-list .svc-name { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1; }
.svc-list .svc-desc { grid-column: 1; color: var(--fg-2); font-size: 0.9375rem; max-width: 60ch; }
.svc-list .svc-arrow { grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: background-color .3s var(--ease), border-color .3s, color .3s; }
@media (min-width: 800px) {
  .svc-list a { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto; }
  .svc-list .svc-desc { grid-column: 2; grid-row: 1; }
  .svc-list .svc-arrow { grid-column: 3; grid-row: 1; }
}
.svc-list .svc-name { transition: transform .3s var(--ease), color .2s; }
.svc-list a:hover .svc-name { transform: translateX(10px); }
.svc-list a:hover .svc-name { color: var(--accent); }
.svc-list a:hover .svc-arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.also { margin-top: 28px; color: var(--muted); font-size: 0.9375rem; }
.also strong { color: var(--fg-2); font-weight: 600; }

/* Steps: the sequence carries meaning, so the numbers stay */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 28px 24px 28px 0; border-top: 2px solid var(--line-strong); position: relative; }
@media (min-width: 800px) { .steps li { padding-right: 28px; } }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 1rem/1 var(--display); color: var(--accent); letter-spacing: 0.08em; margin-bottom: 18px; }
.steps li:first-child { border-top-color: var(--accent); }
.steps h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.625rem; line-height: 1; margin-bottom: 10px; }
.steps p { color: var(--fg-2); font-size: 0.9375rem; margin: 0; }
.paper .steps li { border-top-color: var(--paper-line); }
.paper .steps li:first-child { border-top-color: var(--accent); }
.paper .steps p { color: var(--ink-2); }

/* Split */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split-wide { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .split-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; } }

/* Work strip: small real photos, shown at the size they can hold */
.work { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-width: calc(6 * 207px + 5 * 12px); }
@media (min-width: 480px) { .work { grid-template-columns: repeat(auto-fill, minmax(160px, 207px)); } }
.work figure { margin: 0; }
.work img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.work figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* Photo inset for service pages */
.inset { margin: 0; max-width: 320px; }
.inset img { width: 100%; border-radius: var(--radius); }
.inset figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }

/* Areas + map */
.areas { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; font-size: 0.875rem; color: var(--fg-2); }
.paper .areas li { border-color: var(--paper-line); color: var(--ink-2); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); filter: grayscale(0.4) contrast(1.05); background: var(--bg-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 22px; color: var(--fg-2); max-width: 68ch; }
.faq .answer p:last-child { margin: 0; }
.paper .faq, .paper .faq details { border-color: var(--paper-line); }
.paper .faq .answer { color: var(--ink-2); }
.paper .faq summary:hover { color: #c2410c; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: clamp(48px, 7vw, 88px) 0; }
.cta-band .h2 { margin-bottom: 16px; }
.cta-band p { max-width: 56ch; font-size: 1.0625rem; }
.cta-grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.3fr 1fr; } }
.cta-band .btn-line { border-color: rgba(20, 20, 20, 0.5); color: var(--accent-ink); }
.cta-band .btn-line:hover { border-color: var(--accent-ink); }

/* Page header (inner pages) */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.page-head .h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); margin-bottom: 20px; }

/* Aside card on service pages */
.aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.aside-box { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 24px; }
.aside-box h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.75rem; line-height: 1; margin-bottom: 10px; }
.aside-box p { color: var(--fg-2); font-size: 0.9375rem; }
.aside-box .btn { width: 100%; margin-top: 8px; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg-2); font-size: 0.9375rem; }
.aside-links a:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 120px; font-size: 0.9375rem; color: var(--fg-2); }
@media (min-width: 1000px) { .site-footer { padding-bottom: 40px; } }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 600 0.8125rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 20px; }
.review-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; }

/* Mobile action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 20, 20, 0.96); border-top: 1px solid var(--line-strong); }
.action-bar .btn { min-height: 48px; padding: 0 12px; }
@media (min-width: 1000px) { .action-bar { display: none; } }

/* Thanks / 404 */
.center-page { min-height: 60vh; display: grid; align-content: center; padding: 80px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .compare.nudge .compare-top, .compare.nudge .compare-handle { animation: none; }
}
@media print { .site-header, .action-bar, .quote, .cta-band { display: none !important; } body { background: #fff; color: #000; } }
.prose > :first-child { margin-top: 0; }
@media (max-width: 560px) { .btn-row .btn { flex: 1 1 100%; } }
