/* =========================================================================
   مكتبة زيروكس — Xerox Library
   Arabic-first (RTL) design system.
   Green dominant, 2px ink outlines, hard offset shadows, sticker badges.
   Logical properties only (no left/right) so RTL stays correct.
   ========================================================================= */

/* ---------- Self-hosted Arabic fonts (next/font-style local hosting) ---------- */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/cairo-800.ttf") format("truetype");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400.ttf") format("truetype");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-500.ttf") format("truetype");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700.ttf") format("truetype");
}

/* ---------- Tokens ---------- */
:root {
  --background: hsl(60, 25%, 97%);        /* warm paper white */
  --foreground: hsl(150, 40%, 8%);        /* ink green-black */
  --primary: hsl(145, 70%, 26%);          /* deep Xerox sign green (dominant) */
  --primary-bright: hsl(145, 65%, 42%);   /* fresh highlight green */
  --primary-soft: hsl(140, 45%, 93%);     /* pale green tiles */
  --primary-foreground: hsl(0, 0%, 100%);
  --red: hsl(356, 80%, 48%);              /* logo red — tiny accents only */
  --pencil: hsl(48, 100%, 58%);           /* pencil yellow — tiny accents */
  --pencil-soft: hsl(48, 100%, 91%);
  --muted-foreground: hsl(150, 10%, 38%);
  --border: hsl(150, 40%, 8%);
  --white: #ffffff;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 32px;

  /* Hard offset shadow, mirrored for RTL (toward inline-start) */
  --shadow: -4px 4px 0 var(--border);
  --shadow-hover: -6px 6px 0 var(--border);

  --tap: 48px;
  --wrap: 1280px;

  --font-heading: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 96px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Arabic joining breaks with negative letter-spacing — never add it. */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 8vw, 110px); line-height: 1.15; }
h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.2; }
h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; }

p { margin: 0 0 1rem; }
p:last-child { margin-block-end: 0; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--pencil);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }

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

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 200;
  background: var(--pencil);
  color: var(--border);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: .6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: inset-block-start .15s ease;
}
.skip-link:focus { inset-block-start: .75rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  padding: .35rem .9rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--pencil);
  color: var(--border);
  margin-block-end: 1rem;
}
.eyebrow--on-green {
  background: var(--primary-foreground);
  color: var(--primary);
  border-color: var(--border);
}
.eyebrow--soft { background: var(--primary-soft); color: var(--primary); }

.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

.section-head { max-width: 44rem; margin-block-end: 2rem; }
.section-head p { color: var(--muted-foreground); font-size: 17px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- Pressable buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--primary-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: var(--tap);
  padding: .8rem 1.4rem;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
.btn--paper { --btn-bg: var(--white); --btn-fg: var(--border); }
.btn--pencil { --btn-bg: var(--pencil); --btn-fg: var(--border); }
.btn--red { --btn-bg: var(--red); --btn-fg: var(--white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--foreground); background: transparent; }
.btn--sm { font-size: 15px; padding: .55rem 1rem; min-height: 44px; }
.btn--block { display: flex; width: 100%; }
.btn svg { flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
  border-block-end: 2px solid transparent;
  transition: border-color .12s ease, gap .12s ease;
}
.link-arrow:hover { border-block-end-color: currentColor; gap: .6rem; }
/* Directional icon is mirrored for RTL automatically by --flip. */
.link-arrow svg { transform: scaleX(-1); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--primary);
  color: var(--primary-foreground);
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-block-end: 2px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.ticker__track {
  display: flex;
  flex: none;
  width: max-content;
  animation: marquee-rtl 30s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-block;
  padding-inline: 1.1rem;
  white-space: nowrap;
  color: var(--primary-foreground);
}
.ticker__item::after { content: "·"; margin-inline-start: 1.1rem; opacity: .65; }

@keyframes marquee-rtl {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--background) 94%, transparent);
  backdrop-filter: blur(8px);
  border-block-end: 2px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--foreground);
  flex: none;
}
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  padding-block-end: 4px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
}
.brand__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
}
@media (max-width: 359px) { .brand__tag { display: none; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .8rem;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--foreground);
  transition: background-color .12s ease, color .12s ease;
}
.nav__link:hover { background: var(--primary-soft); }
.nav__link[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--primary);
}

.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__cta { display: none; }

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap); height: var(--tap);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.menu-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.menu-btn:active { transform: translate(4px, 4px); box-shadow: none; }

@media (min-width: 960px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Mobile full-screen green menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block-end: 1rem;
  border-block-end: 2px solid rgba(255, 255, 255, .25);
}
.mobile-menu__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
}
.mobile-menu__close {
  display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap);
  background: var(--pencil);
  color: var(--border);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-block: 1.5rem;
  margin-block-end: auto;
}
.mobile-menu__link {
  display: block;
  padding-block: .7rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 9vw, 44px);
  line-height: 1.25;
  color: var(--primary-foreground);
  text-decoration: none;
  border-block-end: 2px dashed rgba(255, 255, 255, .22);
}
.mobile-menu__link:hover { color: var(--pencil); }
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-block-start: 1rem;
  border-block-start: 2px solid rgba(255, 255, 255, .25);
  font-size: 15px;
}
.mobile-menu__foot a { color: var(--primary-foreground); text-decoration: none; }
.mobile-menu__foot a:hover { text-decoration: underline; }

/* ---------- Waves ---------- */
.wave {
  display: block;
  width: 100%;
  height: 48px;
  margin-block-start: -1px;
}
@media (min-width: 768px) { .wave { height: 60px; } }
.wave--primary { color: var(--primary); }
.wave--paper { color: var(--background); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--primary);
  color: var(--primary-foreground);
  padding-block: 2.5rem 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* dotted notebook grid, subtle */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .07;
  z-index: -1;
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}
.hero__title { margin-block-end: 1.25rem; }
.hero__line { display: block; }
.hero__line--accent { color: var(--pencil); }
.hero__sub {
  font-size: 17px;
  line-height: 1.85;
  max-width: 34rem;
  margin-block-end: 1.75rem;
  color: rgba(255, 255, 255, .94);
}
@media (min-width: 768px) { .hero__sub { font-size: 19px; } }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block-end: 1.75rem;
}
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__actions .btn { flex: 0 0 auto; } }

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-block-start: 1.25rem;
  border-block-start: 2px dashed rgba(255, 255, 255, .3);
}
.info-strip__item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 14px;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: var(--primary-foreground);
}
.info-strip__item svg { color: var(--pencil); flex: none; }

.hero__media { position: relative; }
.hero__frame {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: -8px 8px 0 rgba(0, 0, 0, .35);
  background: var(--white);
  rotate: 1.2deg;
}
.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.hero__caption {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  background: var(--white);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  border-block-start: 2px solid var(--border);
}
.hero__caption svg { color: var(--primary); flex: none; }

/* ---------- Sticker badges ---------- */
.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  padding: .55rem .9rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  border: 2px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--border);
  z-index: 2;
  max-width: 12rem;
}
@media (min-width: 768px) { .sticker { font-size: 15px; padding: .65rem 1.1rem; } }
.sticker--red { background: var(--red); color: var(--white); }
.sticker--pencil { background: var(--pencil); color: var(--border); }
.sticker--white { background: var(--white); color: var(--border); }
.sticker--1 { inset-block-start: -1rem; inset-inline-end: -0.75rem; rotate: 8deg; }
.sticker--2 { inset-block-end: 2.6rem; inset-inline-start: -0.75rem; rotate: -9deg; }
.sticker:hover { animation: wobble .5s ease-in-out; }
.sticker--spin:hover { animation: wobble .5s ease-in-out; }

@keyframes wobble {
  0%   { rotate: var(--r, 8deg); }
  25%  { rotate: calc(var(--r, 8deg) - 6deg); }
  50%  { rotate: calc(var(--r, 8deg) + 6deg); }
  100% { rotate: var(--r, 8deg); }
}
.sticker--red.sticker--1 { --r: 8deg; }
.sticker--white.sticker--2 { --r: -9deg; }

/* Star-shaped sticker (clip via SVG-free polygon border trick) */
.sticker--star {
  border-radius: 22px;
  padding: .8rem 1.1rem;
  rotate: -6deg;
}

/* ---------- Section surfaces ---------- */
.surface-soft {
  position: relative;
  background: var(--primary-soft);
}
.surface-paper { background: var(--background); }
.surface-ink { background: var(--foreground); color: var(--white); }
.surface-green { background: var(--primary); color: var(--primary-foreground); }

/* Notebook-paper texture on cream sections */
.texture-paper { position: relative; }
.texture-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(21, 44, 33, .55) 0 1px,
    transparent 1px 30px
  );
  opacity: .04;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { gap: 1.25rem; } }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  transition: transform .14s ease, box-shadow .14s ease;
}
@media (min-width: 768px) { .card { padding: 1.5rem; } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card p { font-size: 15px; color: var(--muted-foreground); margin: 0; }
.card h3 { margin: 0; }
.card__foot { margin-block-start: auto; padding-block-start: .4rem; }

.icon-chip {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: -3px 3px 0 var(--border);
  flex: none;
}
.icon-chip--red { background: hsl(356, 80%, 95%); color: var(--red); }
.icon-chip--pencil { background: var(--pencil-soft); color: hsl(38, 90%, 30%); }
.icon-chip--green { background: var(--primary); color: var(--white); }

.service-card { position: relative; }
.service-card h3 { font-size: clamp(18px, 2.2vw, 21px); }
@media (max-width: 639px) {
  .service-card { padding: 1rem .85rem; }
  .service-card p { font-size: 14px; line-height: 1.7; }
  .service-card .icon-chip { width: 44px; height: 44px; border-radius: 12px; }
}

/* ---------- Category cards ---------- */
.cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  text-decoration: none;
  color: var(--foreground);
  transition: transform .14s ease, box-shadow .14s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cat-card__media { position: relative; }
.cat-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-block-end: 2px solid var(--border);
  background: var(--primary-soft);
}
.cat-card__body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cat-card__body h3 { font-size: clamp(17px, 2.2vw, 20px); }
.cat-card__body p { font-size: 14px; line-height: 1.7; color: var(--muted-foreground); margin: 0; }
.cat-card--soft .cat-card__body { background: var(--primary-soft); }
.cat-card--pencil .cat-card__body { background: var(--pencil-soft); }
.cat-card--white .cat-card__body { background: var(--white); }
.cat-card--green { background: var(--primary); color: var(--white); }
.cat-card--green .cat-card__body { background: var(--primary); }
.cat-card--green .cat-card__body p { color: rgba(255, 255, 255, .88); }
.cat-card__cta { margin-block-start: auto; padding-block-start: .5rem; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.cat-card__cta svg { transform: scaleX(-1); }
.cat-card--green .cat-card__cta { color: var(--pencil); }

/* ---------- Spotlight ---------- */
.spotlight {
  position: relative;
  background: var(--primary);
  color: var(--primary-foreground);
  overflow: hidden;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset-block-start: -30%;
  inset-inline-start: -10%;
  width: 26rem; height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%);
  pointer-events: none;
}
.spotlight__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) { .spotlight__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.spotlight h2 { color: var(--primary-foreground); }
.spotlight__lead { color: rgba(255, 255, 255, .92); font-size: 17px; }

.price-list {
  display: grid;
  gap: .6rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, .22);
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-sm);
}
.price-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  font-size: 15px;
  padding-block-end: .55rem;
  border-block-end: 1px dotted rgba(255, 255, 255, .3);
}
.price-list__row:last-child { border-block-end: 0; padding-block-end: 0; }
.price-list__val { font-weight: 700; color: var(--pencil); white-space: nowrap; }
.price-list__note { font-size: 13px; color: rgba(255, 255, 255, .8); }

.spotlight__media { position: relative; }
.spotlight__frame {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: -8px 8px 0 rgba(0, 0, 0, .35);
  background: var(--white);
  rotate: -1.2deg;
}
.spotlight__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Why panels ---------- */
.why-panel {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.4rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-panel h3 { font-size: clamp(19px, 2.4vw, 24px); }
.why-panel p { font-size: 15px; margin: 0; color: hsl(150, 20%, 22%); }
.why-panel--green { background: var(--primary); color: var(--white); }
.why-panel--green p { color: rgba(255, 255, 255, .9); }
.why-panel--pencil { background: var(--pencil-soft); }
.why-panel--soft { background: var(--white); }

/* ---------- Reviews ---------- */
.bubble {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.bubble::after {
  content: "";
  position: absolute;
  inset-block-end: -14px;
  inset-inline-start: 28px;
  width: 22px; height: 22px;
  background: var(--white);
  border-block-end: 2px solid var(--border);
  border-inline-end: 2px solid var(--border);
  rotate: 45deg;
}
.bubble__stars { display: flex; gap: 2px; color: var(--pencil); margin-block-end: .4rem; }
.bubble__text { font-size: 16px; margin-block-end: .6rem; }
.bubble__author { font-size: 14px; font-weight: 700; color: var(--muted-foreground); }

/* ---------- Visit ---------- */
.visit__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; } }

.visit-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
@media (min-width: 768px) { .visit-card { padding: 1.75rem; } }

.addr {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.85;
  margin-block-end: 1.25rem;
}
.addr svg { color: var(--primary); flex: none; margin-block-start: 4px; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-table caption {
  text-align: start;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  padding-block-end: .6rem;
}
.hours-table th,
.hours-table td { padding: .5rem .35rem; text-align: start; border-block-end: 1px solid hsl(150, 15%, 85%); }
.hours-table th { font-weight: 700; }
.hours-table td { color: var(--muted-foreground); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-block-end: 0; }
.hours-table tr.is-today { background: var(--pencil-soft); }
.hours-table tr.is-today th,
.hours-table tr.is-today td { color: var(--border); font-weight: 700; }
.hours-table__friday td { color: var(--primary); font-weight: 700; }
.hours-note {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin-block-start: .9rem;
  padding: .7rem .85rem;
  background: var(--primary-soft);
  border: 2px dashed var(--primary);
  border-radius: 12px;
  font-size: 14px;
  color: var(--foreground);
}
.hours-note svg { color: var(--primary); flex: none; margin-block-start: 3px; }

.map-frame {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--primary-soft);
}
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }
@media (min-width: 768px) { .map-frame iframe { height: 360px; } }
.visit__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.25rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 52rem; margin-inline: auto; }
.faq__item {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq__item[open] { background: var(--primary-soft); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  min-height: var(--tap);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  flex: none;
  width: 26px; height: 26px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--pencil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23122a20' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: rotate .2s ease;
}
.faq__item[open] .faq__q::after { rotate: 135deg; }
.faq__a { padding: 0 1.1rem 1.1rem; font-size: 16px; color: var(--muted-foreground); }
.faq__a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--foreground);
  color: var(--white);
  overflow: hidden;
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  text-align: start;
}
@media (min-width: 900px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band__inner > div { max-width: 40rem; }
}
.cta-band h2 { color: var(--white); font-size: clamp(28px, 4vw, 44px); }
.cta-band p { color: rgba(255, 255, 255, .85); margin-block-start: .5rem; font-size: 16px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--foreground);
  color: var(--white);
  padding-block-start: 3rem;
  overflow: hidden;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-block-end: 2rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1.1fr; gap: 2.5rem; } }
.footer__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--pencil);
  margin-block-end: .75rem;
}
.footer__list { display: flex; flex-direction: column; gap: .45rem; font-size: 15px; }
.footer__list li { display: flex; gap: .5rem; align-items: flex-start; color: rgba(255, 255, 255, .82); }
.footer__list svg { flex: none; margin-block-start: 4px; color: var(--primary-bright); }
.footer__about { font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 30rem; }
.footer__socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: .9rem; }
.footer__chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .35rem .8rem;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.footer__chip:hover { border-color: var(--pencil); color: var(--pencil); text-decoration: none !important; }

.footer__wordmark {
  display: block;
  width: 100%;
  overflow: hidden;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16vw;
  line-height: .85;
  color: var(--pencil);
  text-align: center;
  letter-spacing: 0;
  margin-block-end: -1.5vw;
  user-select: none;
  padding-inline: 1rem;
}
.footer__legal {
  border-block-start: 1px solid rgba(255, 255, 255, .18);
  padding-block: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}
@media (min-width: 768px) { .footer__legal { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__legal a { color: rgba(255, 255, 255, .82); }
.privacy-note { max-width: 54rem; font-size: 13px; line-height: 1.7; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: var(--tap);
  height: var(--tap);
  padding-inline: .9rem;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.fab:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.fab[hidden] { display: none; }
.fab__label { display: none; }
@media (min-width: 640px) { .fab__label { display: inline; } }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: 13px;
  color: var(--muted-foreground);
  padding-block: 1rem;
}
.crumbs a { color: var(--primary); text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs svg { transform: scaleX(-1); opacity: .6; flex: none; }
.crumbs [aria-current="page"] { color: var(--muted-foreground); }

/* ---------- Landing page ---------- */
.page-hero {
  position: relative;
  background: var(--primary);
  color: var(--primary-foreground);
  padding-block: 2rem 0;
  overflow: hidden;
}
.page-hero__inner { max-width: 48rem; padding-block-end: 2.5rem; }
.page-hero h1 { font-size: clamp(34px, 6vw, 66px); margin-block-end: 1rem; }
.page-hero p { color: rgba(255, 255, 255, .93); font-size: 17px; max-width: 42rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.5rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(26px, 3.4vw, 38px); margin-block: 2rem .75rem; }
.prose h3 { font-size: clamp(19px, 2.2vw, 23px); margin-block: 1.5rem .5rem; }
.prose p, .prose li { font-size: 17px; line-height: 1.9; }
.prose ul { display: grid; gap: .5rem; margin-block: 0 1.25rem; }
.prose li {
  position: relative;
  padding-inline-start: 1.6rem;
}
.prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .7em;
  width: 9px; height: 9px;
  background: var(--primary);
  border: 2px solid var(--border);
  border-radius: 2px;
}
.prose strong { font-weight: 700; }

.page-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; }
}
.aside-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
@media (min-width: 960px) { .aside-card { position: sticky; inset-block-start: 96px; } }
.aside-card h2 { font-size: 20px; margin-block-end: .75rem; }
.aside-card ul { display: grid; gap: .5rem; font-size: 15px; }
.aside-card ul a { color: var(--primary); font-weight: 700; text-decoration: none; }
.aside-card ul a:hover { text-decoration: underline; }
.aside-card .btn { margin-block-start: 1rem; }

.checklist { display: grid; gap: .6rem; margin-block: 1rem 1.5rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: 16px; padding: 0; }
.checklist li::before { display: none; }
.checklist svg { flex: none; color: var(--primary); margin-block-start: 3px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.error-page h1 { font-size: clamp(64px, 18vw, 160px); color: var(--primary); line-height: 1; }
.error-page p { font-size: 18px; color: var(--muted-foreground); max-width: 32rem; margin-inline: auto; }
.error-page .hero__actions { justify-content: center; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__line { animation: pop-in .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
  .hero__sub, .hero__actions, .info-strip { animation: fade-up .7s ease-out both; animation-delay: .3s; }
  .hero__actions { animation-delay: .4s; }
  .info-strip { animation-delay: .5s; }
  .hero__frame { animation: tilt-in 1s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__media .sticker { animation: drop-in .8s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: .6s; }
  .hero__media .sticker--2 { animation-delay: .75s; }

  .js-anim .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease-out, transform .5s ease-out;
    transition-delay: var(--d, 0s);
  }
  .js-anim .reveal.is-in { opacity: 1; transform: none; }
}

@keyframes pop-in {
  0% { opacity: 0; transform: scale(.6); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}
@keyframes tilt-in {
  0% { rotate: -6deg; scale: .9; opacity: 0; }
  100% { rotate: 1.2deg; scale: 1; opacity: 1; }
}
@keyframes drop-in {
  0% { opacity: 0; translate: 0 -30px; }
  100% { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ticker__track { animation: none; transform: none; }
  .ticker { overflow-x: auto; }
}

/* ---------- Dark scheme courtesy ---------- */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

/* ---------- Small-screen tuning ---------- */
@media (max-width: 767px) {
  body { font-size: 17px; }
  .section { padding-block: 2.75rem; }
  .sticker { scale: .82; }
  .hero__frame, .spotlight__frame { rotate: 0deg; box-shadow: -6px 6px 0 rgba(0, 0, 0, .35); }
  .footer__wordmark { font-size: 22vw; }
  .hours-table { font-size: 14px; }
}

/* ---------- Print ---------- */
@media print {
  .ticker, .fab, .mobile-menu, .header__actions, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Page figures (SEO: relevant image near text on service pages) ---------- */
.page-figure { margin: 1.75rem 0; background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.page-figure img { display: block; width: 100%; height: auto; }
.page-figure figcaption { padding: .65rem 1rem; font-size: .92rem; color: var(--muted-foreground); }
