/* ============================================================================
   Chazit generated stylesheet — themed per business via CSS custom properties.
   The accent colours below come from the client's industry preset.
   ========================================================================== */
:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  /* Accent used as TEXT, which needs enough contrast against the surface behind
     it. On the light styles that means the dark shade; the athletic style is a
     dark theme and overrides this to the bright one. Never use --accent
     directly for text — four of the ten industry accents fail AA on white
     (fitness is 2.87:1), and --accent-dark fails just as badly on a dark card. */
  --accent-text: var(--accent-dark);
  --ink: #1a1a1a;
  --muted: #5b6470;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --card: #ffffff;
  --border: #e6e8ec;
  --whatsapp: #25d366;
  --radius: 14px;
  --heading-weight: 800;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --star: #b8801a;
  --container: 1120px;
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* --- Accessibility: skip link + focus visibility ------------------------- */
.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { inset-inline-start: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* The header is sticky (~69px tall), so any in-page jump — the skip link's
   #main above all — must land BELOW it, not underneath it. scroll-margin
   reserves that space at scroll time without moving anything visually. */
#main, section[id] { scroll-margin-top: 84px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--primary { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
/* Hover has to go darker still now that the resting state is --accent-dark.
   color-mix inline rather than behind a custom property on purpose: if a browser
   cannot parse it the declaration is simply dropped and the resting colour
   stays, whereas an unparseable var() would compute to transparent. */
.btn--primary:hover { background: color-mix(in srgb, var(--accent-dark) 84%, #000); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1ebe57; }
.btn--light { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow); }
.btn--light:hover { background: #eef2f8; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand__icon { font-size: 1.6rem; line-height: 1; }
.brand__logo { height: 40px; width: auto; }
.brand__name { font-weight: 800; letter-spacing: -0.01em; }
.header-cta { color: #fff; background: var(--accent-dark); }
.header-cta:hover { background: color-mix(in srgb, var(--accent-dark) 84%, #000); }

/* --- Hero ----------------------------------------------------------------
   The photo-less hero is the PRIMARY design: a confident accent gradient with a
   soft luminous glow. A client photo is the optional `.hero--image` variant,
   which swaps in a dark scrim so overlaid text stays legible. */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(88px, 16vw, 172px) 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  overflow: hidden;
}
.hero--image {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}
/* Scrim — only rendered when a photo sits behind the text. A vertical black
   gradient guarantees legibility; a diagonal accent-tinted layer ties the photo
   to the brand colour (degrades gracefully to the black layer if color-mix is
   unsupported). */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.60)),
    linear-gradient(300deg, color-mix(in srgb, var(--accent-dark) 58%, transparent), transparent 58%);
}
/* Luminous depth for the default (photo-less) hero. */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 56% at 82% 6%, rgba(255,255,255,0.30), transparent 62%),
    radial-gradient(56% 62% at 6% 100%, rgba(0,0,0,0.22), transparent 60%);
}
.hero__content { position: relative; z-index: 1; animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.hero__desc {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  max-width: 620px;
  margin: 0 auto 34px;
  opacity: 0.95;
}
.hero--image .hero__title { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero--image .hero__desc { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --- Sections ------------------------------------------------------------ */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: var(--heading-weight);
  text-align: center;
  margin: 0 0 40px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin: 14px auto 0;
}

.services { padding: clamp(56px, 9vw, 96px) 0; background: var(--bg-soft); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,0.12); }
.service-card__icon { font-size: 2.6rem; margin-bottom: 14px; }
.service-card__name { margin: 0 0 8px; font-size: 1.25rem; }
.service-card__desc { margin: 0; color: var(--muted); }

.contact { padding: clamp(56px, 9vw, 96px) 0; }
.contact__inner { text-align: center; }
.contact__lead { color: var(--muted); margin: 0 auto 30px; max-width: 540px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 420px; margin-inline: auto; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 500;
}
.contact__item a { text-decoration: none; color: var(--ink); }
/* Stretch the link over the WHOLE pill. The visible pill is ~350x70px but the
   anchor alone was 95x28 — on a phone, tapping the pill's padding did nothing,
   on the very links that convert (phone / WhatsApp / email). The overlay makes
   the full pill the tap target with zero visual change. */
.contact__item { position: relative; }
.contact__item a::after { content: ''; position: absolute; inset: 0; }
.contact__icon { font-size: 1.4rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: #14181d; color: #cfd4da; padding: 40px 0; }
.site-footer__inner { text-align: center; }
.site-footer__name { font-weight: 800; font-size: 1.2rem; margin: 0 0 6px; color: #fff; }
.site-footer__copy { margin: 0 0 8px; font-size: 0.9rem; }
/* Same trick as .hours__map: a 44px tap target with no visual shift. */
.site-footer__a11y a { color: #9fb7ff; display: inline-block; padding: 12px 8px; margin: -12px -8px; }

.a11y-statement { background: #0e1114; color: #e6e8ec; padding: 30px 0; border-top: 1px solid #262b31; }
.a11y-statement h2 { margin-top: 0; }
.a11y-statement a { color: #9fb7ff; }

/* ============================================================================
   Design styles — a "skin" chosen per client (body class set by base.hbs).
   `clean` sets no body class, so none of these blocks match → current look.
   Surface colours / radius / heading-weight come from CSS vars (see :root);
   the blocks below handle the deeper, per-style differences (fonts, hero, etc).
   ========================================================================== */

/* --- Elegant: serif headings, airy whitespace, thin dividers -------------- */
.style-elegant .hero__title,
.style-elegant .section-title,
.style-elegant .service-card__name,
.style-elegant .brand,
.style-elegant .site-footer__name {
  font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
  letter-spacing: 0;
}
.style-elegant .hero__title { font-weight: 500; }
.style-elegant .section-title::after { width: 40px; height: 1px; }
.style-elegant .services,
.style-elegant .contact { padding-block: clamp(72px, 11vw, 120px); }

/* --- Warm: rounded cards + cozy surfaces (mostly via CSS vars) ------------ */
.style-warm .hero { padding-block: clamp(78px, 14vw, 150px); }
.style-warm .service-card__icon { font-size: 2.9rem; }

/* --- Minimal: flat, restrained, lighter --------------------------------- */
.style-minimal .hero__glow { opacity: 0.4; }
.style-minimal .service-card:hover { transform: none; box-shadow: none; }
.style-minimal .service-card { box-shadow: none; }
.style-minimal .section-title::after { width: 32px; height: 2px; }
.style-minimal .btn { border-radius: 6px; }

/* --- Bold: heavy display headings, solid color-block hero, hard corners --- */
.style-bold .hero__title,
.style-bold .section-title,
.style-bold .service-card__name {
  font-family: 'Secular One', 'Heebo', sans-serif;
  letter-spacing: -0.01em;
}
.style-bold .hero__title { font-size: clamp(2.6rem, 8vw, 4.6rem); }
.style-bold .hero { background: var(--accent); }
.style-bold .hero__glow {
  background: radial-gradient(62% 72% at 80% 0%, rgba(255, 255, 255, 0.22), transparent 60%);
}
.style-bold .btn { border-radius: 4px; }
.style-bold .section-title::after { width: 80px; height: 6px; }

/* --- Athletic: DARK, high-energy — gyms & personal trainers -------------- */
.style-athletic .hero__title,
.style-athletic .section-title,
.style-athletic .service-card__name,
.style-athletic .brand {
  font-family: 'Secular One', 'Rubik', sans-serif;
  letter-spacing: 0.01em;
}
.style-athletic .site-header {
  background: rgba(13, 15, 18, 0.9);
  border-bottom-color: var(--border);
}
.style-athletic .hero__glow {
  opacity: 0.6;
  background:
    radial-gradient(50% 60% at 82% 4%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(64% 74% at 4% 100%, var(--accent), transparent 55%);
}
/* Dark theme: the accent's dark shade disappears into the card, so text flips to
   the bright shade. Replaces an `a:not(.btn)` rule that also out-specified
   .skip-link and painted it accent-on-accent — an invisible skip link. */
.style-athletic { --accent-text: var(--accent); }
.style-athletic .contact__item a { color: var(--ink); }

/* --- No-logo brand mark: topic emoji + name --------------------------------
   Clients without a logo get the industry's topic emoji (e.g. 💻 for computers,
   🍽️ for a restaurant) next to the business name, matching the section icons.
   The name inherits each style's heading font via `.brand`. */

/* ============================================================================
   Accessibility-widget states (classes toggled on <html> by accessibility.js)
   ========================================================================== */
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .service-card,
html.a11y-contrast .contact__item,
html.a11y-contrast .site-header,
html.a11y-contrast .testimonial,
html.a11y-contrast .faq__item,
html.a11y-contrast .hours__card { background: #000 !important; color: #fff !important; border-color: #fff !important; }
/* The white above is inherited, and inheritance loses to any direct rule on a
   descendant. Every muted/accent text colour sitting inside one of those cards
   therefore has to be re-stated by name, or it keeps its own colour on black:
   var(--muted) #5b6470 on #000 is 3.5:1, under the 4.5:1 AA floor. */
html.a11y-contrast .service-card__desc,
html.a11y-contrast .hours__label,
html.a11y-contrast .testimonial__desc,
html.a11y-contrast .faq__a,
html.a11y-contrast .faq__item[open] .faq__q,
html.a11y-contrast .faq__q::after { color: #fff !important; }
html.a11y-contrast .contact__lead { color: #fff !important; }
/* Buttons are controls, not body links, and they keep a background of their
   own — so the blanket yellow-link rule below turned them into yellow-on-white
   (.btn--light measured 1.07:1, i.e. invisible) and yellow-on-green
   (.btn--whatsapp, 1.85:1). Give them the same black/white/bordered treatment
   as the cards, ahead of the link rule, and the white border keeps them
   readable as buttons. .skip-link is here because it is itself an
   accessibility feature and was sitting at 4.01:1. */
html.a11y-contrast .btn,
html.a11y-contrast .header-cta,
html.a11y-contrast .skip-link {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}
/* The alternating bands paint var(--bg-soft) over the black body, so their own
   text — section titles included — was white on #f6f7f9 at 1.07:1, i.e. gone. */
html.a11y-contrast .services,
html.a11y-contrast .hours,
html.a11y-contrast .faq { background: #000 !important; }
/* The hero was the one surface the widget never neutralised: it keeps the
   client's photo (or the accent gradient) behind white text, so a visitor who
   asked for maximum contrast still got roughly 4.4:1 there while every other
   element gave 21:1. The shorthand clears the photo and the gradient together;
   the overlay and glow layers go with it, since a scrim over black only lifts
   the background back up. */
html.a11y-contrast .hero { background: #000 !important; }
html.a11y-contrast .hero__overlay,
html.a11y-contrast .hero__glow { display: none !important; }
html.a11y-contrast a { color: #ffff00 !important; }

html.a11y-grayscale { filter: grayscale(100%); }

html.a11y-highlight-links a {
  outline: 2px solid #ffbf00 !important;
  background: #fff3c4 !important;
  color: #000 !important;
  text-decoration: underline !important;
}

html.a11y-readable-font body,
html.a11y-readable-font body * {
  font-family: Arial, 'Segoe UI', system-ui, sans-serif !important;
  letter-spacing: 0.02em;
}

html.a11y-stop-animations * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-stop-animations .faq__q::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* --- Gallery ---------------------------------------------------------------
   The client's own photos, uploaded through the onboarding form. Square tiles
   keep a mixed bag of phone photos looking deliberate; object-fit does the
   cropping so no image is ever distorted. */
.gallery { padding: clamp(56px, 9vw, 96px) 0; }
.gallery__grid {
  display: grid;
  /* The tile floor scales with the viewport so a phone gets two photos per row
     instead of one full-width square per screen, while a desktop still caps at
     four generous tiles rather than a strip of thumbnails. */
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 22vw, 240px), 1fr));
  gap: 14px;
}
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.gallery__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover .gallery__img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .gallery__img { transition: none; }
  .gallery__item:hover .gallery__img { transform: none; }
}

/* --- Hours + location ------------------------------------------------------ */
.hours { padding: clamp(56px, 9vw, 96px) 0; background: var(--bg-soft); }
.hours__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.hours__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
}
.hours__icon { font-size: 1.8rem; margin-bottom: 10px; }
.hours__label { margin: 0 0 6px; font-size: 1rem; color: var(--muted); font-weight: 700; }
/* pre-line: clients type opening hours one day per line. Without this, HTML
   collapses those newlines and the whole week runs together into one
   unreadable sentence. */
.hours__value { margin: 0; font-size: 1.05rem; line-height: 1.6; white-space: pre-line; }
/* Padding grows the tap target to ≥44px; the negative margins give the extra
   space back so the card's visual layout does not move. */
.hours__map { display: inline-block; margin-top: 0; margin-block-end: -12px; margin-inline: -8px; padding: 12px 8px; color: var(--accent-text); font-weight: 700; text-decoration: none; }
.hours__map:hover { text-decoration: underline; }

/* --- Testimonials ----------------------------------------------------------
   Real customer quotes, entered in the dashboard. The card leads with an
   oversized quote glyph rather than an avatar: there is never a photo of the
   customer, and an initial in a circle only imitates one. */
.testimonials { padding: clamp(56px, 9vw, 96px) 0; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  position: relative;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial::before {
  content: "\201D";
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 22px;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: .22;
  pointer-events: none;
}
/* The rating the customer actually gave. Never defaulted — a testimonial with
   no rating renders no stars at all rather than an assumed five. */
.testimonial__stars {
  display: flex;
  gap: 2px;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--star);
}
.testimonial__stars .is-empty { color: var(--border); }
.testimonial__quote {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  flex: 1;
}
.testimonial__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--border);
}
.testimonial__name { font-weight: 700; }
/* The descriptor always holds a line of height, empty or not. That is what
   keeps the divider, name and star row aligned across a row of cards — a
   testimonial with only a first name would otherwise be one line shorter.
   Reserving the line beats a fixed height on the block, which the border-box
   model eats. */
.testimonial__desc {
  color: var(--muted);
  font-size: .92rem;
  min-block-size: 1.5em;
}

/* --- FAQ ------------------------------------------------------------------- */
.faq { padding: clamp(56px, 9vw, 96px) 0; background: var(--bg-soft); }
.faq__list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__q {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-text);
  transition: transform .25s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__item[open] .faq__q { color: var(--accent-text); }
.faq__q:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.faq__a {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.75;
}
@media (prefers-reduced-motion: reduce) {
  .faq__q::after { transition: none; }
}
