/* =========================================================
   Eclipse Tinting Service — global stylesheet
   Dark theme, single red accent. Mobile-first, WCAG 2.1 AA.
   ========================================================= */

:root {
  --brand-bg: #16181D;
  --brand-bg-2: #1A1C22;
  --brand-surface: #21242B;
  --brand-surface-2: #2a2d35;
  --brand-accent: #E2231A;
  --brand-accent-hover: #B81C15;
  --brand-link: #FF5147;     /* lighter red for inline text links (AA on dark) */
  --brand-text: #F4F4F4;
  --brand-text-muted: #AFAFAF;
  --brand-line: rgba(255, 255, 255, 0.08);
  --brand-line-strong: rgba(255, 255, 255, 0.16);

  --maxw: 1200px;
  --radius: 10px;
  --radius-lg: 14px;

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--brand-text);
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 500; }
p  { margin: 0 0 1rem; color: var(--brand-text-muted); }

a { color: var(--brand-link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- Accessibility helpers ---- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand-accent); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-link); outline-offset: 2px; 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;
}

.eclipse-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 5vw, 24px); }

.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px;
  color: var(--brand-accent); margin-bottom: 10px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  min-height: 44px; padding: 11px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand-accent); color: #fff; }
.btn--primary:hover { background: var(--brand-accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-text); border-color: var(--brand-line-strong); }
.btn--ghost:hover { border-color: #6a6d76; background: rgba(255,255,255,0.04); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-bg);
  border-bottom: 1px solid var(--brand-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--brand-accent); border-right-color: transparent;
  transform: rotate(-35deg); flex: 0 0 auto;
}
.brand__word { font-family: var(--font-display); font-weight: 600; letter-spacing: .18em; color: var(--brand-text); font-size: 17px; }
.brand__logo { height: 42px; width: auto; display: block; }
.site-footer .brand__logo { height: 46px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--brand-text-muted); font-size: 15px; font-family: var(--font-display); font-weight: 500; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--brand-text); text-decoration: none; }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-accent); }

.nav__toggle {
  display: none; background: transparent; border: 1px solid var(--brand-line-strong);
  color: var(--brand-text); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; font-size: 22px;
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: 64px 0 0 0; z-index: 60; background: var(--brand-bg);
    flex-direction: column; justify-content: flex-start; gap: 0; padding: 8px 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .nav__link { display: block; padding: 16px 24px; border-bottom: 1px solid var(--brand-line); font-size: 18px; }
  .nav .btn--book { margin: 16px 24px; }
}

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; background: var(--brand-bg-2); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero__media--pattern {
  z-index: -1; opacity: .25;
  background-image: repeating-linear-gradient(115deg, #2c2f37 0 18px, #23262d 18px 36px);
}
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: rgba(15,17,21,0.62); }
.hero__inner { padding: clamp(48px, 9vw, 96px) 0; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__imgnote {
  display: inline-block; margin-top: 22px; font-size: 12px; color: #8d9098;
  border: 1px dashed #4a4d55; border-radius: var(--radius); padding: 8px 12px;
}

/* ---- Section rhythm ---- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--alt { background: var(--brand-bg-2); }
.section__head { max-width: 640px; margin-bottom: 32px; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---- Trust strip ---- */
.trust { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 20px 0; border-block: 1px solid var(--brand-line); }
.trust__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--brand-text); }
.trust__item i { color: var(--brand-accent); }

/* ---- Card grid ---- */
.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--brand-surface); border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg); padding: 24px;
}
.card__icon { color: var(--brand-accent); font-size: 28px; }
.card h3 { margin: 14px 0 6px; }
.card p { margin: 0 0 14px; font-size: 14px; }
.card__link { font-family: var(--font-display); font-weight: 500; font-size: 14px; }

/* ---- Split (alternating image/text) ---- */
.split { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split--reverse .split__media { order: 2; }
}
.split__media {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 260px;
  background: var(--brand-surface-2) center/cover no-repeat;
  display: flex; align-items: flex-end; padding: 12px;
}
.split__media .imgnote { font-size: 11px; color: #cfd2d8; background: rgba(0,0,0,.5); padding: 4px 8px; border-radius: 6px; }
.split ul { padding-left: 18px; color: var(--brand-text-muted); }
.split li { margin-bottom: 6px; }

/* ---- Service highlight panel (no-photo) ---- */
.svc-panel {
  background: var(--brand-surface); border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px; min-height: 260px;
}
.svc-panel__icon { color: var(--brand-accent); font-size: 42px; }
.svc-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.svc-panel__list li { display: flex; align-items: center; gap: 12px; color: var(--brand-text); font-size: 16px; }
.svc-panel__list li i { color: var(--brand-accent); font-size: 22px; flex: 0 0 auto; }

/* ---- Process steps ---- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }
.step { background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: var(--radius-lg); padding: 22px; }
.step__num {
  counter-increment: step; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-accent); color: #fff; font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step__num::before { content: counter(step); }

/* ---- FAQ accordion ---- */
.faq { max-width: 820px; }
.faq__item {
  border: 1px solid var(--brand-line); border-radius: var(--radius);
  background: var(--brand-surface); margin-bottom: 12px; overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--brand-text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "\002B"; font-size: 22px; color: var(--brand-accent);
  flex: 0 0 auto; transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: #fff; }
.faq__body { padding: 0 20px 18px; }
.faq__body p { margin: 0; }

/* ---- Portfolio ---- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  background: transparent; color: var(--brand-text-muted);
  border: 1px solid var(--brand-line-strong); border-radius: 999px; padding: 9px 18px; min-height: 40px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }

.portfolio__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--brand-surface-2) center/cover no-repeat; overflow: hidden;
  border: 1px solid var(--brand-line); cursor: pointer; padding: 0; display: block; width: 100%;
}
.tile__caption {
  position: absolute; inset: auto 0 0 0; padding: 10px 12px; font-size: 13px; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent); color: #fff;
}

/* ---- Lightbox ---- */
.lightbox { border: none; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(8,9,12,0.88); }
.lightbox__inner { background: var(--brand-surface); border-radius: var(--radius-lg); padding: 16px; max-width: 760px; }
.lightbox__img { width: 100%; aspect-ratio: 4/3; background: var(--brand-surface-2) center/cover no-repeat; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 8px; right: 8px; }

/* ---- Instagram feed ---- */
.ig-feed__grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ig-tile {
  aspect-ratio: 1; border-radius: var(--radius);
  background: var(--brand-surface-2) center/cover no-repeat; border: 1px solid var(--brand-line);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.55); font-size: 30px; text-decoration: none;
  transition: color .18s ease, transform .18s ease, border-color .18s ease;
}
a.ig-tile:hover { color: #fff; transform: translateY(-2px); border-color: var(--brand-accent); text-decoration: none; }

/* ---- Booking ---- */
.booking { background: var(--brand-accent); }
.booking .eclipse-container { padding-block: clamp(40px, 7vw, 72px); text-align: center; }
.booking h2 { color: #fff; }
.booking p { color: #ffd9d6; }
.booking__placeholder {
  margin: 18px auto 0; max-width: 760px; min-height: 540px;
  border: 2px dashed #ffb3ae; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff0ef; padding: 24px; text-align: center;
}
@media (min-width: 860px) { .booking__placeholder { min-height: 640px; } }
.booking__placeholder code { background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 6px; font-size: 13px; }
/* Booking section that holds the live scheduler — dark, not the red CTA band */
.booking--solo { background: var(--brand-surface); }
.booking--solo h2 { color: var(--brand-text); }
.booking--solo p { color: var(--brand-text-muted); }

.booking__embed { max-width: 840px; margin: 18px auto 0; }
/* When you paste the Trafft iframe, this keeps it on-brand and rounded. */
.booking__embed iframe {
  width: 100%; min-height: 640px; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg); background: var(--brand-bg);
}

/* ---- Contact ---- */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list--grid { gap: 22px; }
@media (min-width: 720px) { .contact-list--grid { grid-template-columns: 1fr 1fr; gap: 22px 40px; } }
.contact-list i { color: var(--brand-accent); font-size: 22px; flex: 0 0 auto; margin-top: 2px; }
.contact-list a { color: var(--brand-text); }
.contact-list span { color: var(--brand-text-muted); display: block; font-size: 14px; }

/* ---- Forms ---- */
.contact-form { background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: var(--radius-lg); padding: 26px; }
.contact-form label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 14px; margin: 16px 0 6px; color: var(--brand-text); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--brand-text);
  background: var(--brand-bg); border: 1px solid var(--brand-line-strong);
  border-radius: var(--radius); padding: 12px 14px; min-height: 46px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--brand-link); }
.contact-form [aria-invalid="true"] { border-color: var(--brand-accent); }
.field-error { color: #ff8a84; font-size: 13px; margin: 4px 0 0; min-height: 1em; }
.contact-form .btn--primary { margin-top: 22px; width: 100%; }
.contact-form__status { margin-top: 14px; font-size: 14px; color: var(--brand-text); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.req { color: var(--brand-accent); }

/* ---- Map ---- */
.map-embed { width: 100%; aspect-ratio: 16/7; border: 1px solid var(--brand-line); border-radius: var(--radius-lg); }

/* ---- Hours table ---- */
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--brand-line); }
.hours th { font-weight: 500; color: var(--brand-text-muted); }

/* ---- Footer ---- */
.site-footer { background: #0F1115; border-top: 1px solid var(--brand-line); padding: 48px 0 28px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .04em; margin: 0 0 14px; color: var(--brand-text); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { color: var(--brand-text-muted); font-size: 14px; }
.footer-nav a:hover { color: var(--brand-text); }
.footer-nap { font-style: normal; color: var(--brand-text-muted); font-size: 14px; line-height: 1.8; }
.footer-nap a { color: var(--brand-text); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--brand-line); font-size: 13px; color: #7d8088; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---- Mobile sticky call bar ---- */
.callbar {
  position: sticky; bottom: 0; z-index: 40; display: none;
  background: var(--brand-accent); color: #fff; text-align: center; padding: 14px;
  font-family: var(--font-display); font-weight: 600;
}
.callbar:hover { color: #fff; text-decoration: none; background: var(--brand-accent-hover); }
@media (max-width: 640px) { .callbar { display: block; } }
