/* Stoddard Small Engine Repair — Casco, Maine */

:root {
  --bg: #000000;
  --bg-section: #0c0c0c;
  --bg-alt: #121212;
  --bg-card: #161616;
  --bg-header: rgba(0, 0, 0, 0.92);
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text: #f3f3f1;
  --text-muted: #a3a7ad;
  --steel: #8b9098;
  --steel-light: #c8ccd1;
  --orange: #D7262E;
  --orange-hover: #B51D24;
  --orange-press: #9A181E;
  --orange-ink: #ffffff;
  --orange-soft: rgba(215, 38, 46, 0.14);
  --font-display: "Oswald", "Arial Narrow", "Impact", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 4.35rem;
  --radius: 6px;
  --max: 70rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("assets/noise.png");
  background-repeat: repeat;
  background-size: 128px 128px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
a:hover { color: var(--orange-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
p { margin: 0; }
figure { margin: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--orange);
  color: var(--orange-ink);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.55rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
}

.wordmark {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
}
.wordmark:hover { color: var(--text); }
.header-emblem {
  width: 2.75rem;
  height: 2.6rem;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  background: #eee;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wordmark-sub {
  margin-top: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
}
.nav a {
  color: var(--steel-light);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0;
}
.nav a:hover,
.nav a:focus-visible { color: var(--orange); }

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--orange-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  min-height: 2.6rem;
}
.header-call:hover,
.header-call:focus-visible {
  background: var(--orange-hover);
  color: var(--orange-ink);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.header-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--orange-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  min-height: 2.6rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.header-request:hover,
.header-request:focus-visible {
  background: var(--orange-hover);
  color: var(--orange-ink);
}
.header-call {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.header-call:hover,
.header-call:focus-visible {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

/* Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 1;
  background: #000;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 2.25rem 1.25rem 3.25rem;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 8%, var(--orange) 50%, transparent 92%);
  opacity: 0.85;
}
.hero-inner { max-width: 44rem; margin: 0 auto; }
.hero-logo {
  width: min(92%, 25rem);
  margin: 0 auto 1.45rem;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.hero-location {
  color: var(--steel);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.btn-call,
.btn-request,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--orange);
  color: var(--orange-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.45rem;
  border-radius: var(--radius);
  min-height: 3.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(215, 38, 46, 0.35), 0 8px 28px rgba(215, 38, 46, 0.28);
}
.hero-actions .btn-call,
.hero-actions .btn-request {
  min-width: min(100%, 16rem);
}
.btn-call {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-request:hover,
.btn-request:focus-visible,
.btn-submit:hover,
.btn-submit:focus-visible {
  background: var(--orange-hover);
  color: var(--orange-ink);
  box-shadow: 0 0 0 1px rgba(181, 29, 36, 0.45), 0 10px 32px rgba(215, 38, 46, 0.4);
}
.btn-call:hover,
.btn-call:focus-visible {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: none;
}
.btn-request:active,
.btn-submit:active { background: var(--orange-press); }
.btn-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* Shared sections
   ------------------------------------------------------------------ */
.section {
  position: relative;
  z-index: 1;
  padding: 4rem 1.25rem;
  background: var(--bg-section);
}
.section:nth-of-type(even) { background: var(--bg-alt); }
.section-inner { max-width: var(--max); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.55rem;
}
.section h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 0.85rem;
}
.lead {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2.4rem;
}

/* Services
   ------------------------------------------------------------------ */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.3rem;
}
.service-icon {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid rgba(215, 38, 46, 0.28);
  border-radius: 4px;
}
.service-icon svg { width: 2.05rem; height: 2.05rem; }
.service-card h3 {
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.services-note {
  margin-top: 1.5rem;
  color: var(--steel);
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Why us
   ------------------------------------------------------------------ */
.why-grid { display: grid; gap: 1rem; }
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.6rem;
}
.why-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}
.why-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.why-card p { color: var(--text-muted); font-size: 0.98rem; }

/* How it works
   ------------------------------------------------------------------ */
.steps { display: grid; gap: 1rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--orange);
  color: var(--orange-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); font-size: 0.98rem; }

/* Gallery / Our Work
   ------------------------------------------------------------------ */
.work-lineup {
  margin-bottom: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.work-lineup img {
  width: 100%;
  height: auto;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.work-grid figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 58%;
  background: #111;
}
.work-grid figcaption {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-light);
  padding: 0.7rem 0.85rem 0.8rem;
}

/* Contact
   ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}
a.contact-card:hover,
a.contact-card:focus-visible {
  border-color: var(--orange);
  color: inherit;
}
.contact-card-primary {
  border-color: rgba(215, 38, 46, 0.45);
  background: linear-gradient(180deg, rgba(215, 38, 46, 0.1), var(--bg-card) 55%);
}
.contact-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}
.contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  word-break: break-word;
}
.contact-value-email {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
  word-break: break-all;
}
.contact-hint { color: var(--text-muted); font-size: 0.92rem; }

.contact-showcase {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.card-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.card-frame img { width: 100%; height: auto; }

.share-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.6rem;
}
.qr-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.qr-block img {
  width: 10.5rem;
  height: 10.5rem;
  background: #fff;
  padding: 0;
  border-radius: 4px;
}
.qr-block figcaption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.qr-url {
  color: var(--steel-light);
  font-size: 0.85rem;
  word-break: break-all;
  text-decoration: none;
}
.qr-url:hover,
.qr-url:focus-visible { color: var(--orange); }

.facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  min-height: 2.75rem;
}
.facebook-link:hover,
.facebook-link:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}
.facebook-icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  z-index: 1;
  background: #000;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.footer-meta,
.footer-copy { color: var(--steel); font-size: 0.88rem; }
.footer-links {
  margin: 0.7rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.92rem;
}
.footer-links a {
  color: var(--steel-light);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--orange); }
.footer-links span { color: var(--steel); }
.footer-social { margin-bottom: 1.15rem; }
.facebook-link-footer {
  border-color: var(--border);
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

/* Breakpoints
   ------------------------------------------------------------------ */
@media (min-width: 600px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid li:last-child { grid-column: 1 / -1; max-width: calc(50% - 0.45rem); justify-self: center; width: 100%; }
}

@media (min-width: 900px) {
  .header-inner {
    padding: 0 1.75rem;
  }
  .hero { padding: 3rem 1.75rem 4rem; }
  .hero-logo { width: min(100%, 26rem); }
  .section { padding: 5rem 1.75rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .why-grid { gap: 1.15rem; }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
  .step {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.4rem 1.7rem;
  }
  .contact-grid { gap: 1.15rem; }
  .work-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.9rem;
  }
  .work-grid li:last-child { grid-column: auto; max-width: none; }
  .contact-showcase {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
  }
  .share-col { justify-content: center; }
}

@media (max-width: 599px) {
  .header-inner { padding: 0.5rem 1rem 0.65rem; }
  .header-emblem { width: 2.35rem; height: 2.2rem; }
  .wordmark-name { font-size: 1.1rem; letter-spacing: 0.1em; }
  .header-actions {
    flex-basis: 100%;
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .header-request,
  .header-call {
    width: 100%;
    font-size: 0.78rem;
    padding: 0.5rem 0.5rem;
  }
  .nav {
    flex-basis: 100%;
    order: 3;
    justify-content: space-between;
    gap: 0.2rem 0.4rem;
  }
  .nav a {
    font-size: 0.62rem;
    letter-spacing: 0.045em;
    white-space: nowrap;
  }
  .hero { padding: 1.5rem 1rem 2.4rem; }
  .hero-logo { width: min(88%, 20rem); margin-bottom: 1.15rem; }
  .section { padding: 3rem 1rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-call,
  .hero-actions .btn-request {
    width: 100%;
    min-width: 0;
  }
  .contact-value-email { font-size: 0.88rem; }
  .qr-block img { width: 9.5rem; height: 9.5rem; }
}

@media (max-width: 399px) {
  .contact-value-email { font-size: 0.8rem; }
}

@media (min-width: 1180px) {
  .header-inner { flex-wrap: nowrap; }
}

/* Request form
   ------------------------------------------------------------------ */
.request .section-inner { max-width: 52rem; }
.request-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem 1.75rem;
}
.form-grid {
  display: grid;
  gap: 1.05rem 1.15rem;
  margin-bottom: 1.25rem;
}
.form-field { margin: 0; }
.form-field label,
.form-field legend {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}
.form-field legend { padding: 0; }
.form-field fieldset,
fieldset.form-field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.req { color: var(--orange); }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  min-height: 2.85rem;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238b9098' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px 8px;
  padding-right: 2.2rem;
}
.form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.55;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #6b6f75; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  border-color: var(--orange);
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  min-height: 2.7rem;
}
.radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid var(--steel);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.radio input[type="radio"]:checked {
  border-color: var(--orange);
  background: radial-gradient(circle at center, var(--orange) 0 0.32rem, transparent 0.36rem);
}
.radio input[type="radio"]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.radio:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.btn-submit {
  min-width: min(100%, 16rem);
  font-size: 1.15rem;
}
@media (min-width: 700px) {
  .request-form { padding: 2rem 1.85rem 2.1rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field-full { grid-column: 1 / -1; }
}

/* Thanks page
   ------------------------------------------------------------------ */
.thanks {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 14rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.25rem 4rem;
  background: var(--bg-section);
}
.thanks-inner { max-width: 34rem; margin: 0 auto; }
.thanks-badge {
  width: min(72%, 16rem);
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5));
}
.thanks h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 0.85rem;
}
.thanks p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.thanks-actions .btn-call,
.thanks-actions .btn-request { min-width: min(100%, 14rem); }

/* Flyer
   ------------------------------------------------------------------ */
.flyer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1.75rem;
}
.flyer-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.flyer-frame {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.flyer-frame:hover,
.flyer-frame:focus-visible {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.58), 0 0 0 2px var(--orange);
  outline: none;
}
.flyer-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.flyer-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  max-width: 26rem;
}
.flyer-download {
  min-width: min(100%, 16rem);
  box-shadow: 0 0 0 1px rgba(215, 38, 46, 0.35), 0 8px 28px rgba(215, 38, 46, 0.28);
}
.flyer-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
}
@media (min-width: 800px) {
  .flyer-layout {
    grid-template-columns: minmax(0, 520px) minmax(14rem, 1fr);
    gap: 2.5rem 3rem;
    align-items: center;
  }
}
@media (max-width: 599px) {
  .flyer-frame { max-width: 100%; }
  .flyer-download { width: 100%; }
}
