/* ==========================================================================
   Garage Mecatech — Rufisque
   Composition: warm earth editorial · diagonal split · expandable index
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f5efe4;
  --bg-deep: #ece2d1;
  --ink: #2b1e14;
  --ink-soft: #5a4a3c;
  --ink-faint: #8a7a68;
  --accent: #c25a37;
  --accent-deep: #9c4325;
  --secondary: #6a7a4a;
  --line: rgba(43, 30, 20, 0.14);
  --line-strong: rgba(43, 30, 20, 0.28);
  --card: rgba(255, 252, 246, 0.72);
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.05), 0 12px 32px -18px rgba(43, 30, 20, 0.35);

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1310;
    --bg-deep: #241a15;
    --ink: #f2e9dc;
    --ink-soft: #cbb9a6;
    --ink-faint: #9c8874;
    --accent: #e07a52;
    --accent-deep: #f0946f;
    --secondary: #9aae74;
    --line: rgba(242, 233, 220, 0.16);
    --line-strong: rgba(242, 233, 220, 0.3);
    --card: rgba(38, 28, 22, 0.72);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px -18px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 7.2vw, 4.6rem); font-variation-settings: "SOFT" 0, "WONK" 1; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1.1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

::selection { background: var(--accent); color: #fff8f2; }

/* ---------- Animated noise field (background) ---------- */
.noise-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='340' height='340' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  animation: grain 9s steps(6, end) infinite;
}

@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.34; }
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

body > * { position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  max-width: 90px;
}

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.68;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: -0.03em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.header-nav {
  display: none;
  gap: 1.6rem;
  font-size: 0.9rem;
}
.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
}
.header-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (min-width: 860px) {
  .header-nav { display: flex; }
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  background: var(--accent);
  color: #fff8f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.header-call:hover { background: var(--accent-deep); color: #fff8f2; transform: translateY(-1px); }
.header-call svg { flex: none; }

/* ---------- Diagonal hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

.hero-panel {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero-panel--paper {
  background: var(--bg);
  padding-bottom: clamp(5rem, 14vw, 8rem);
}

.hero-panel--ink {
  background: var(--ink);
  color: var(--bg);
  margin-top: -1px;
  padding-top: clamp(5rem, 14vw, 8rem);
}

/* the diagonal */
.hero-panel--paper {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.5vw), 0 100%);
}
.hero-panel--ink {
  clip-path: polygon(0 4.5vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -4.5vw;
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { margin-bottom: 0.35em; }
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--accent);
}

.hero-tag {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: #fff8f2; }
.btn--primary:hover { background: var(--accent-deep); color: #fff8f2; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--onink { border-color: rgba(245, 239, 228, 0.35); color: var(--bg); }
.btn--onink:hover { border-color: var(--bg); color: var(--bg); background: rgba(245, 239, 228, 0.08); }

.hero-figure {
  position: relative;
  margin: 0;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.7rem;
  letter-spacing: 0.02em;
}

/* ink panel content */
.hero-panel--ink .eyebrow { color: var(--secondary); }
.hero-panel--ink .eyebrow::after { background: rgba(245, 239, 228, 0.28); }

.hero-facts {
  display: grid;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 620px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
}

.hero-facts dt {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.hero-facts dd {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(245, 239, 228, 0.78);
  line-height: 1.5;
}

.hero-panel--ink h2 { color: var(--bg); max-width: 22ch; }
.hero-panel--ink p { color: rgba(245, 239, 228, 0.8); }

/* ---------- Section shell ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--tint { background: var(--bg-deep); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }

/* ---------- Expandable index (signature) ---------- */
.index-list {
  border-top: 1px solid var(--line-strong);
}

.index-item {
  border-bottom: 1px solid var(--line);
}

.index-item > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.1rem, 2.6vw, 1.6rem) 0;
  min-height: 44px;
  transition: color 0.2s ease;
}
.index-item > summary::-webkit-details-marker { display: none; }

.index-item > summary:hover { color: var(--accent); }

.index-num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  padding-top: 0.45em;
}

.index-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.1vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.index-meta {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
}

.index-toggle {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.3s ease;
}
.index-toggle::before,
.index-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.index-toggle::before { width: 12px; height: 1.5px; }
.index-toggle::after { width: 1.5px; height: 12px; transition: transform 0.3s ease, opacity 0.3s ease; }

.index-item[open] > summary { color: var(--accent); }
.index-item[open] .index-toggle {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.index-item[open] .index-toggle::after { transform: scaleY(0); opacity: 0; }

.index-body {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding-bottom: clamp(1.6rem, 4vw, 2.6rem);
  animation: riseIn 0.5s ease both;
}
@media (min-width: 780px) {
  .index-body { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}

.index-body img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.index-body h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 1.4rem 0 0.5rem;
}
.index-body h4:first-child { margin-top: 0; }

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.tick-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Zone / coverage ---------- */
.zones {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 2rem;
}
.zone {
  padding: 1.3rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.zone h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.zone p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Hours + contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.hours .day { color: var(--ink-soft); }
.hours .time { font-weight: 600; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--accent); font-weight: 600; }
.hours li.is-today .day,
.hours li.is-today .time { color: var(--accent); }

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-line {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-line:last-of-type { border-bottom: 0; }
.contact-line svg { flex: none; margin-top: 0.35rem; color: var(--accent); }
.contact-line .k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-line .v {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
a.v:hover { color: var(--accent); }

.phone-big {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  margin: 0.2rem 0 0.6rem;
}
.phone-big:hover { color: var(--accent-deep); }

.note {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(245, 239, 228, 0.72);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: rgba(245, 239, 228, 0.9); }
.site-footer a:hover { color: var(--accent); }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 0.5rem;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-grid p { color: rgba(245, 239, 228, 0.72); max-width: 34ch; }

.claim-banner {
  display: block;
  font-size: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: rgba(245, 239, 228, 0.07);
  border: 1px solid rgba(245, 239, 228, 0.16);
  border-radius: var(--radius);
  color: rgba(245, 239, 228, 0.8) !important;
  text-decoration: none;
  margin-bottom: 1.1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.claim-banner:hover {
  background: rgba(245, 239, 228, 0.12);
  border-color: rgba(245, 239, 228, 0.3);
  color: var(--bg) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 228, 0.14);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom .attribution { margin: 0; }
.footer-bottom .attribution a { color: rgba(245, 239, 228, 0.62); text-decoration: none; }
.footer-bottom .attribution a:hover { color: var(--bg); text-decoration: underline; }

/* ---------- Motion: staggered line reveal ---------- */
@keyframes riseIn {
  from { opacity: 0; translate: 0 20px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }
    .reveal-2 { animation-range: entry 6% cover 44%; }
    .reveal-3 { animation-range: entry 12% cover 50%; }
  }
}

@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;
  }
  body::before { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .hero-panel--paper { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7vw), 0 100%); }
  .hero-panel--ink { clip-path: polygon(0 7vw, 100% 0, 100% 100%, 0 100%); margin-top: -7vw; }
  .index-item > summary { grid-template-columns: auto 1fr; }
  .index-toggle { grid-column: 2; justify-self: end; margin-top: 0.4rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
