/* ============================================================
   Madama Mobile Mechanic — all-navy dusk + lime accent
   ============================================================ */

:root {
  --bg: #0e1a2b;
  --bg-deep: #091320;
  --surface: #14243a;
  --surface-2: #1a2e48;
  --ink: #eaeef7;
  --ink-soft: #a9b7cd;
  --ink-faint: #7d8da6;
  --accent: #ccff33;
  --accent-dim: #a8d626;
  --line: rgba(234, 238, 247, 0.14);
  --line-strong: rgba(234, 238, 247, 0.28);

  --glow-a: rgba(38, 92, 160, 0.55);
  --glow-b: rgba(20, 58, 104, 0.5);
  --glow-c: rgba(204, 255, 51, 0.07);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 12% -5%, var(--glow-a) 0%, transparent 62%),
    radial-gradient(ellipse 60% 50% at 100% 18%, var(--glow-b) 0%, transparent 58%),
    radial-gradient(ellipse 80% 60% at 50% 108%, var(--glow-c) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0e1a2b;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.4rem + 7.2vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.6rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.4em;
}

p { margin: 0 0 1.1em; }

.body-lg {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
}

/* breathing width axis on headings */
@keyframes breathe {
  0%, 100% { font-variation-settings: "wdth" 78; }
  50%      { font-variation-settings: "wdth" 118; }
}

h1, h2.breathe {
  font-variation-settings: "wdth" 100;
  animation: breathe 7s ease-in-out infinite;
}

/* ---------- layout helpers ---------- */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap-narrow { max-width: 780px; }

.band { padding-block: clamp(3.5rem, 8vw, 7rem); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad);
  background: rgba(9, 19, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #0e1a2b;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(204, 255, 51, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(204, 255, 51, 0.16); }
  50%      { box-shadow: 0 0 0 8px rgba(204, 255, 51, 0.05); }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0e1a2b;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.call-btn:hover {
  background: #dcff70;
  color: #0e1a2b;
  transform: translateY(-1px);
}
.call-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.call-btn.big {
  padding: 0.95rem 1.6rem;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
}
.call-btn.big .call-label { font-size: 0.7rem; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(204, 255, 51, 0.06);
}

/* ---------- marquee ---------- */

.marquee-band {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(204, 255, 51, 0.05);
  padding-block: 0.7rem;
}

.marquee {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: scroll 42s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee .dot { color: var(--accent); font-size: 0.55rem; }

@keyframes scroll {
  to { transform: translateX(-50%); }
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: min(88vh, 820px);
  padding: clamp(3rem, 9vw, 7rem) var(--pad) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.42;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 26, 43, 0.55) 0%, rgba(14, 26, 43, 0.72) 45%, var(--bg) 100%),
    radial-gradient(ellipse 60% 60% at 15% 80%, rgba(204, 255, 51, 0.06) 0%, transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-copy .lede {
  font-size: clamp(1.02rem, 0.96rem + 0.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 2.5rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.hero-facts dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}
.gallery > * { grid-column: 1 / -1; margin: 0; }
.gallery > .half { grid-column: span 12; }

.gallery figure { position: relative; overflow: hidden; }

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery .half img { aspect-ratio: 4 / 3; }

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem var(--pad) 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 0%, rgba(9, 19, 32, 0.88) 78%);
}

.gallery-tight { margin-top: 0; }

/* ---------- service list ---------- */

.service-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-list li {
  position: relative;
  background: rgba(20, 36, 58, 0.72);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: background-color 0.2s ease;
}
.service-list li:hover { background: rgba(26, 46, 72, 0.9); }

.service-list h3 { color: var(--ink); }
.service-list p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
  text-wrap: pretty;
}

.tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(204, 255, 51, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* ---------- steps ---------- */

.band-how {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 19, 32, 0.45);
}

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.steps li { border-top: 2px solid var(--accent); padding-top: 1.25rem; }

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.steps p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.note {
  margin-top: 2.5rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--accent);
  background: rgba(204, 255, 51, 0.05);
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- about ---------- */

.signature-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 2rem;
}

/* ---------- contact ---------- */

.band-contact { border-top: 1px solid var(--line); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.phone-huge {
  display: inline-block;
  font-size: clamp(1.9rem, 1.1rem + 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.phone-huge:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.contact-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 46ch;
  margin-top: 1rem;
  text-wrap: pretty;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.info-block h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.hours th { color: var(--ink-soft); }
.hours td { color: var(--ink); text-align: right; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }

address {
  font-style: normal;
  color: var(--ink);
  line-height: 1.5;
}

.map-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- night band ---------- */

.night-band {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4rem, 12vw, 9rem) var(--pad);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.night-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.night-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(14, 26, 43, 0.6) 0%, var(--bg) 85%);
}
.night-copy { position: relative; z-index: 1; max-width: 720px; }
.night-copy p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  margin-bottom: 2rem;
  text-wrap: pretty;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: rgba(9, 19, 32, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand strong { display: block; letter-spacing: -0.02em; }
.footer-brand p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.footer-hours {
  font-family: var(--font-mono);
  font-size: 0.68rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--accent); }

.footer-claim { margin-top: 2.5rem; }

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-decoration: none;
  background: rgba(234, 238, 247, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.claim-banner:hover { color: var(--accent); border-color: rgba(204, 255, 51, 0.4); }

.attribution {
  max-width: var(--maxw);
  margin: 1.5rem auto 0;
  padding-inline: var(--pad);
  font-size: 0.75rem;
}
.muted { color: var(--ink-faint); }
.attribution a { color: var(--ink-faint); }
.attribution a:hover { color: var(--accent); }

/* ---------- wider screens ---------- */

@media (min-width: 760px) {
  .gallery > .half { grid-column: span 6; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
}

@media (min-width: 1100px) {
  .hero { padding-inline: var(--pad); }
}

/* ---------- 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;
  }
  h1, h2.breathe { font-variation-settings: "wdth" 100; }
  .marquee { animation: none; }
  .gallery img { transition: none; }
}
