/* ============================================================
   EuroMotors — warm earth editorial
   paper base · espresso ink · terracotta accent · moss secondary
   ============================================================ */

:root {
  --bg:        #f5efe4;
  --bg-2:      #efe6d6;
  --ink:       #2b1e14;
  --ink-soft:  #5b4a3a;
  --ink-faint: #8a7761;
  --accent:    #c25a37;
  --accent-dk: #a04527;
  --secondary: #6a7a4a;
  --rule:      #d9cdb8;
  --card:      #fbf7ef;

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* dark mode — same composition, inverted paper */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #1a1410;
    --bg-2:      #221a14;
    --ink:       #f0e7d9;
    --ink-soft:  #c3b4a0;
    --ink-faint: #8d7d69;
    --accent:    #e07a52;
    --accent-dk: #f09268;
    --secondary: #9aab74;
    --rule:      #3a2e24;
    --card:      #241c15;
  }
}

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

html { 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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch' seed='7'><animate attributeName='baseFrequency' dur='26s' values='0.72;0.78;0.68;0.72' repeatCount='indefinite'/></feTurbulence><feColorMatrix type='saturate' values='0'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='0.28'/></svg>");
  background-size: 300px 300px;
}

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

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

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------------- masthead ---------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: 0 0 42px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 3px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav { display: flex; gap: 1.4rem; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding-block: 0.6rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.call-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 3px;
  min-height: 44px;
  justify-content: center;
  transition: background 0.2s ease;
}
.call-btn:hover { background: var(--accent-dk); color: #fff; }
.call-label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.call-num { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }

/* ---------------- hero ---------------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }

.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 1.1rem;
  font-weight: 500;
}

.hero-title {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 7.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
  font-variation-settings: 'wght' 300, 'opsz' 120;
  animation: weigh linear both;
  animation-timeline: scroll(root);
  animation-range: 0 30vh;
}

@keyframes weigh {
  from { font-variation-settings: 'wght' 250, 'opsz' 120; }
  to   { font-variation-settings: 'wght' 800, 'opsz' 120; }
}

.hero-title .default,
.hero-title .alt {
  display: block;
  transition: opacity 0.35s ease;
}
.hero-title .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  pointer-events: none;
}
.hero-title:hover .default,
.hero-title:focus-within .default { opacity: 0; }
.hero-title:hover .alt,
.hero-title:focus-within .alt { opacity: 1; }

.standfirst {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { font-size: 1.05rem; padding: 0.9rem 2rem; }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.92) contrast(1.02);
}
.hero-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------------- bands ---------------- */

.band { padding-block: clamp(2.75rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.band-alt { background: var(--bg-2); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  font-variation-settings: 'wght' 600, 'opsz' 100;
}

.section-note {
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
  font-size: 1rem;
}

/* ---- three-column newspaper ---- */

.broadsheet {
  column-count: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--rule);
}

.broadsheet h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  font-variation-settings: 'wght' 650, 'opsz' 60;
  break-after: avoid;
  color: var(--ink);
}
.broadsheet h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 0.7rem;
}
.broadsheet h3:not(:first-child) { margin-top: 1.9rem; }

.broadsheet p {
  margin: 0 0 1rem;
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--ink-soft);
  text-wrap: pretty;
  break-inside: avoid-column;
}

/* ---------------- split section ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.split-text p { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 68ch; }
.split-figure { margin: 0; }
.split-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}
.split-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------------- gallery ---------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.92);
  transition: filter 0.3s ease, transform 0.4s ease;
}
.gallery figure:hover img { filter: saturate(1.05); transform: translateY(-3px); }
.gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ---------------- hours ---------------- */

.hours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.97rem;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; color: var(--ink); }
.hours td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr.closed th, .hours tr.closed td { color: var(--ink-faint); }

.hours-note p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 60ch; }
.hours-call {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-variation-settings: 'wght' 600;
}
.hours-call a { text-decoration: none; border-bottom: 2px solid var(--accent); }

/* ---------------- visit ---------------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.visit-block h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.6rem;
  font-variation-settings: 'wght' 600;
}
.visit-block p { margin: 0 0 0.9rem; color: var(--ink-soft); font-size: 0.97rem; }
.big-line {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink) !important;
  font-variation-settings: 'wght' 600;
  line-height: 1.25;
}
.big-line a { text-decoration: none; border-bottom: 2px solid var(--accent); }
.inline-link { font-weight: 500; }

/* ---------------- closing ---------------- */

.closing {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.closing-line {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 30ch;
  margin: 0 auto 0.9rem;
  font-variation-settings: 'wght' 400, 'opsz' 90;
  text-wrap: balance;
}
.closing-attr {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 2rem;
}

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  padding-block: 2.5rem 2rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.footer-cols strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-variation-settings: 'wght' 700;
}
.footer-cols p { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--ink-faint); }
.footer-cols a { color: var(--ink-soft); text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--rule) 45%, transparent);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.claim-banner:hover { color: var(--ink); border-color: var(--ink-faint); }

.attribution {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.attribution a { color: inherit; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .broadsheet { column-count: 2; column-gap: 2rem; }
}

@media (max-width: 640px) {
  .broadsheet { column-count: 1; column-rule: 0; }
  .nav { display: none; }
  .masthead-inner { gap: 0.75rem; }
  .hero-title { max-width: none; }
  .call-btn { padding-inline: 0.8rem; }
}

@media (min-width: 760px) {
  .split { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .hours-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .visit-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .footer-cols { grid-template-columns: 1.4fr 1fr; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title { font-variation-settings: 'wght' 600, 'opsz' 120; animation: none; }
  .gallery figure:hover img { transform: none; }
  body::before { opacity: 0.35; }
}

/* browsers without scroll-driven animation support: settle the weight */
@supports not (animation-timeline: scroll()) {
  .hero-title { font-variation-settings: 'wght' 600, 'opsz' 120; }
}
