/* ==========================================================================
   Clay by Dalal — public site
   Mobile-first. Desktop rules are layered on with min-width queries.
   Palette: nature green · clay beige · flower violet
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */

:root {
  /* Nature green */
  --green-900: #2c3a2b;
  --green-700: #44573f;
  --green-500: #6b8461;
  --green-300: #a8bc9f;
  --green-100: #dfe7da;

  /* Clay beige */
  --clay-900: #6f5238;
  --clay-700: #9a7550;
  --clay-500: #c19a70;
  --clay-300: #e0cbae;
  --clay-100: #f0e6d7;
  --clay-50:  #faf5ed;

  /* Flower violet */
  --violet-900: #43355c;
  --violet-700: #63508a;
  --violet-500: #8a76b0;
  --violet-300: #bcaed6;
  --violet-100: #ebe4f4;

  /* Neutrals */
  --ink:      #33302b;
  --ink-soft: #6d665c;
  --line:     rgba(111, 82, 56, .16);
  --surface:  #fffdf9;
  --bg:       #faf6ef;

  /* Section backgrounds. Each band gets its own tint drawn from the palette,
     so sections read as separate without raising the contrast enough to
     disturb the calm. Cards stay on --surface and must contrast whichever
     band they sit on. */
  --sec-clay:   #f5ede0;
  --sec-plain:  #fffdf9;
  --sec-sage:   #eef2ec;
  --sec-violet: #f0ebf6;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(88, 66, 45, .06);
  --shadow:    0 8px 30px rgba(88, 66, 45, .10);
  --shadow-lg: 0 20px 60px rgba(88, 66, 45, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Fluid page gutter — comfortable on a phone, generous on a desktop */
  --gutter: 20px;
  --maxw: 1180px;

  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

/* Arabic swaps in a typeface that carries both display and body weights. */
html[lang="ar"] {
  --font-body: 'Tajawal', system-ui, 'Segoe UI', sans-serif;
  /* Cormorant leads so Latin words keep the serif look; Arabic glyphs are not
     in Cormorant, so the browser falls through to Tajawal per-glyph. Without
     this the Latin brand name renders in Tajawal's wide Latin and overflows. */
  --font-display: 'Cormorant Garamond', 'Tajawal', Georgia, serif;
}

/* --- Reset ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* clears the sticky header when jumping to an id */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Browsers give <figure> a default `margin: 1em 40px`. Left unreset, every
   gallery tile sits 80px narrower than its grid column. */
figure, figcaption { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  color: var(--green-900);
}

/* Latin display type takes tracking gracefully; Arabic does not. */
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: .01em; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; font-weight: 500; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- Layout ------------------------------------------------------------ */

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

.section { padding-block: 64px; }
.section--tight { padding-block: 44px; }

/* One tint per band. Applied in index.php, in page order:
   about → clay, gallery → plain, workshops → sage, calendar → plain,
   steps → violet. Contact and footer keep their own dark treatments. */
.sec--clay   { background: var(--sec-clay); }
.sec--plain  { background: var(--sec-plain); }
.sec--sage   { background: var(--sec-sage); }
.sec--violet { background: var(--sec-violet); }

.section-head { text-align: center; margin-bottom: 34px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet-700);
  margin-bottom: 10px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .85rem; text-transform: none; }

.section-title { font-size: clamp(1.85rem, 6vw, 2.9rem); }

.section-sub {
  margin: 12px auto 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* A hand-drawn-feeling divider under section titles */
.rule {
  width: 54px; height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--clay-500), var(--violet-500));
  border-radius: 2px;
  opacity: .7;
}

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;               /* comfortable thumb target */
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 500;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-900); box-shadow: var(--shadow); }

.btn--violet { background: var(--violet-700); color: #fff; }
.btn--violet:hover { background: var(--violet-900); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }

.btn--outline {
  background: transparent;
  border-color: var(--clay-500);
  color: var(--clay-900);
}
.btn--outline:hover { background: var(--clay-100); }

.btn--block { width: 100%; }
.btn[disabled], .btn--disabled {
  opacity: .5;
  pointer-events: none;
}

/* --- Header / navigation ----------------------------------------------- */

.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.brand__sub {
  /* Hidden on phones — the language and menu buttons need the room. */
  display: none;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  transition: color .3s var(--ease);
}
html[lang="ar"] .brand__sub { letter-spacing: 0; text-transform: none; font-size: .8rem; }

/* Solid state once the page scrolls past the hero */
.header.is-solid {
  background: rgba(250, 246, 239, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid .brand__mark { color: var(--green-900); }
.header.is-solid .brand__sub  { color: var(--ink-soft); }
.header.is-solid .nav__link   { color: var(--ink); }
.header.is-solid .icon-btn    { color: var(--green-900); border-color: var(--line); }

/* Inner pages have no hero image, so the header starts solid */
.header--static {
  position: sticky;
  background: rgba(250, 246, 239, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__list { display: none; }  /* desktop nav appears at >=880px */

.header__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.header.is-solid .icon-btn:hover,
.header--static .icon-btn:hover { background: var(--clay-100); }
.header--static .icon-btn { color: var(--green-900); border-color: var(--line); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(44, 58, 43, .5);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(84vw, 340px);
  background: var(--clay-50);
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
html[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__close {
  align-self: flex-end;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--green-900);
}

.drawer__link {
  padding: 14px 4px;
  font-size: 1.12rem;
  color: var(--green-900);
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease);
}
.drawer__link:hover { color: var(--violet-700); }
.drawer__cta { margin-top: 20px; }

/* --- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;             /* svh avoids the mobile URL-bar jump */
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 90px var(--gutter) 70px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  z-index: -2;
}

/* Green-to-violet wash keeps text readable over any photo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(44, 58, 43, .55) 0%, rgba(44, 58, 43, .28) 38%, rgba(67, 53, 92, .68) 100%);
}

.hero__inner { max-width: 720px; }

.hero__eyebrow {
  font-size: .76rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 18px;
}
html[lang="ar"] .hero__eyebrow { letter-spacing: .06em; text-transform: none; font-size: .92rem; }

.hero__title {
  font-size: clamp(2.2rem, 9.5vw, 4.75rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 18px;
  /* The title is editable, so a long line must wrap rather than overflow. */
  overflow-wrap: break-word;
  hyphens: none;
}

.hero__sub {
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: rgba(255, 255, 255, .9);
  max-width: 34ch;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.hero__scroll {
  position: absolute;
  inset-block-end: 24px;
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
html[lang="ar"] .hero__scroll { letter-spacing: 0; text-transform: none; }
.hero__scroll::after {
  content: '';
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), transparent);
  animation: drift 2.4s var(--ease) infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50%      { transform: translateY(7px); opacity: .4; }
}

/* --- About ------------------------------------------------------------- */

/* Background comes from the .sec--* class in the markup. */
.about__grid { display: grid; gap: 28px; }

.about__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--clay-100);
}
.about__figure img { width: 100%; height: 100%; object-fit: cover; }

/* Soft violet halo, echoing the flowers in the palette */
.about__figure::before {
  content: '';
  position: absolute;
  inset-block-start: -14%;
  inset-inline-end: -14%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-100), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.about__body p { margin: 0 0 16px; color: var(--ink-soft); }
.about__body p:first-of-type {
  font-size: 1.1rem;
  color: var(--ink);
}

.about__signature {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--violet-700);
  margin-top: 8px;
}

/* --- Gallery ----------------------------------------------------------- */

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 22px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .9rem;
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--clay-500); color: var(--clay-900); }
.filter.is-active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  /* Dense packing backfills the holes a row-spanning tile would leave */
  grid-auto-flow: dense;
}

/* On a phone the first piece runs the full width. Handmade work reads badly
   at thumbnail size, so one large opener sets the tone before the pairs. */
.tile:first-child {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

.tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--clay-100);
  aspect-ratio: 1;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.tile:hover img { transform: scale(1.06); }

.tile__cap {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(44, 58, 43, .78));
  color: #fff;
  font-size: .85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all .3s var(--ease);
}
.tile:hover .tile__cap { opacity: 1; transform: translateY(0); }

/* Touch devices have no hover, so captions stay visible there */
@media (hover: none) {
  .tile__cap { opacity: 1; transform: none; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(44, 58, 43, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox__cap {
  color: rgba(255, 255, 255, .85);
  text-align: center;
  margin-top: 14px;
  font-size: .92rem;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}
.lightbox__close { inset-block-start: 18px; inset-inline-end: 18px; }
.lightbox__nav--prev { inset-inline-start: 14px; }
.lightbox__nav--next { inset-inline-end: 14px; }

/* --- Workshops --------------------------------------------------------- */

.cards { display: grid; gap: 20px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--clay-100);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Date chip sits on the image so the date is scannable at a glance */
.card__date {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  background: rgba(255, 253, 249, .95);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  line-height: 1.15;
  box-shadow: var(--shadow-sm);
}
.card__date-day   { display: block; font-size: 1.25rem; font-weight: 600; color: var(--green-900); }
.card__date-month { display: block; font-size: .72rem; color: var(--ink-soft); }

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card__title { font-size: 1.35rem; }
.card__summary { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.meta { display: flex; flex-direction: column; gap: 8px; }
.meta__row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.meta__row svg { flex: 0 0 auto; width: 17px; height: 17px; stroke: var(--clay-700); }

.card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card__price { font-size: 1.15rem; font-weight: 600; color: var(--green-900); }

.seats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
}
.seats--low   { background: #fbe9d8; color: var(--clay-900); }
.seats--full  { background: var(--violet-100); color: var(--violet-900); }
.seats::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.empty-note {
  text-align: center;
  padding: 44px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--surface);
}

/* --- Calendar ---------------------------------------------------------- */

.calendar {
  background: var(--surface);
  /* The calendar sits on a near-white band, and the card is also --surface,
     so a shadow alone would not separate them. The border does. */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 14px 22px;
  max-width: 480px;
  margin-inline: auto;
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.cal__title { font-size: 1.15rem; font-weight: 600; color: var(--green-900); }
.cal__nav {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--green-900);
  transition: background-color .2s var(--ease);
}
.cal__nav:hover { background: var(--clay-100); }

/* One chevron path is used for both buttons and mirrored where needed.
   In LTR: prev points left, next points right. RTL swaps both. */
.cal__nav--next svg { transform: scaleX(-1); }
html[dir="rtl"] .cal__nav--prev svg { transform: scaleX(-1); }
html[dir="rtl"] .cal__nav--next svg { transform: none; }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.cal__dow {
  text-align: center;
  font-size: .68rem;
  color: var(--ink-soft);
  padding-bottom: 6px;
}

.cal__cell {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: .88rem;
  color: var(--ink);
  background: transparent;
  border: none;
}
.cal__cell--muted { color: rgba(109, 102, 92, .35); }
.cal__cell--today { outline: 1px solid var(--clay-500); }

.cal__cell--has {
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 600;
  cursor: pointer;
}
.cal__cell--has:hover { background: var(--green-300); }
.cal__cell--has::after {
  content: '';
  position: absolute;
  inset-block-end: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--violet-700);
}

/* --- Steps ------------------------------------------------------------- */

.steps { display: grid; gap: 18px; counter-reset: step; }

.step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--violet-100);
  color: var(--violet-900);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* --- Contact ----------------------------------------------------------- */

.contact {
  background: linear-gradient(160deg, var(--green-900), var(--violet-900));
  color: #fff;
  text-align: center;
}
.contact .section-title { color: #fff; }
.contact .section-sub   { color: rgba(255, 255, 255, .78); }
.contact .rule { background: rgba(255, 255, 255, .5); }
.contact .eyebrow { color: var(--violet-300); }

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 30px auto 0;
}
.contact__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: .98rem;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.contact__link:hover { background: rgba(255, 255, 255, .17); }
.contact__link svg { width: 20px; height: 20px; }

/* --- Footer ------------------------------------------------------------ */

.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, .62);
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: .85rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 6px;
}
.footer a:hover { color: #fff; }

/* --- Floating WhatsApp -------------------------------------------------- */

.wa-float {
  position: fixed;
  inset-block-end: calc(18px + env(safe-area-inset-bottom));
  inset-inline-end: 18px;
  z-index: 55;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #08331a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .42);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(37, 211, 102, .55); }
.wa-float:active { transform: scale(.96); }

/* The workshop page has a sticky booking bar along the bottom on phones;
   lift the button clear of it rather than letting them overlap. */
.has-bookbar .wa-float {
  inset-block-end: calc(84px + env(safe-area-inset-bottom));
}
@media (min-width: 880px) {
  /* On desktop the booking bar is part of the sidebar, not sticky. */
  .has-bookbar .wa-float { inset-block-end: calc(18px + env(safe-area-inset-bottom)); }
}

/* Never cover the registration sheet, the drawer or the lightbox. The button
   sits before them in the DOM, so a sibling selector cannot reach it — main.js
   marks the body instead. */
body.is-locked .wa-float { display: none; }

/* --- Modal / registration form ----------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;          /* phone: slides up as a sheet */
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__scrim { position: absolute; inset: 0; background: rgba(44, 58, 43, .58); }

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92svh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(24px);
  transition: transform .35s var(--ease);
  -webkit-overflow-scrolling: touch;
}
.modal.is-open .modal__panel { transform: translateY(0); }

.modal__close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--clay-100);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--green-900);
}

.modal__title { font-size: 1.5rem; margin-bottom: 4px; padding-inline-end: 44px; }
.modal__for {
  color: var(--violet-700);
  font-size: .95rem;
  margin-bottom: 18px;
}

.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;               /* 16px stops iOS Safari zooming on focus */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.field__hint { font-size: .78rem; color: var(--ink-soft); margin-top: 5px; }
.field__error { font-size: .82rem; color: #b3402f; margin-top: 5px; display: none; }
.field.has-error input { border-color: #b3402f; }
.field.has-error .field__error { display: block; }

/* Phone always reads left-to-right even inside the Arabic layout */
input[type="tel"] { direction: ltr; text-align: start; }
html[dir="rtl"] input[type="tel"] { text-align: right; }

/* Dialling code + local number. The row stays LTR in both languages so the
   code sits to the left of the number, the way a phone number reads. */
.phone-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  direction: ltr;
}
.phone-prefix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-inline-end: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--clay-100);
  color: var(--clay-900);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.phone-row input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
html[dir="rtl"] .phone-row input[type="tel"] { text-align: left; }

.form-error {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fbeae7;
  color: #b3402f;
  font-size: .9rem;
  margin-bottom: 14px;
}
.form-error.is-shown { display: block; }

/* Success state, swapped in after the request is sent */
.modal__done { text-align: center; padding: 20px 6px 8px; }
.modal__done-icon {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  font-size: 1.9rem;
}
.modal__done h3 { font-size: 1.45rem; margin-bottom: 10px; }
.modal__done p { color: var(--ink-soft); margin: 0 0 22px; }

/* --- Reveal on scroll --------------------------------------------------- */

/* Only hide content when JavaScript is actually running to bring it back.
   Without the html.js guard, a blocked or broken script would leave every
   section permanently invisible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Workshop detail page ---------------------------------------------- */

.page-head { padding-block: 96px 26px; }
.page-head .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: .9rem;
}
.page-head .back:hover { color: var(--green-700); }
html[dir="rtl"] .page-head .back svg { transform: scaleX(-1); }

.detail__hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--clay-100);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.detail__hero img { width: 100%; height: 100%; object-fit: cover; }

.detail__title { font-size: clamp(1.9rem, 7vw, 2.8rem); margin-bottom: 14px; }
.detail__body { color: var(--ink-soft); }
.detail__body p { margin: 0 0 16px; }

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  margin-bottom: 20px;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 14px; }

.info-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
}
.info-row:last-child { border-bottom: none; }
.info-row__label { color: var(--ink-soft); flex: 0 0 40%; }
.info-row__value { color: var(--ink); font-weight: 500; }

.bring-list li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: .94rem;
}
.bring-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay-500);
}

/* Sticky booking bar on phones — the CTA is always reachable */
.book-bar {
  position: sticky;
  inset-block-end: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  margin-inline: calc(var(--gutter) * -1);
  background: rgba(255, 253, 249, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.book-bar__price { font-size: 1.1rem; font-weight: 600; color: var(--green-900); }
.book-bar .btn { flex: 1; }

/* --- Breakpoints -------------------------------------------------------- */

@media (min-width: 600px) {
  :root { --gutter: 32px; }

  .brand__mark { font-size: 1.35rem; }
  .brand__sub  { display: inline; }

  .hero__actions { flex-direction: row; justify-content: center; }
  .hero__actions .btn { min-width: 190px; }

  /* Two wide columns rather than three narrow ones — bigger pieces, and the
     tall accent tile now has room to read as rhythm instead of as a gap. */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tile:first-child { grid-column: span 1; aspect-ratio: 1; }
  .tile:nth-child(6n+1) { grid-row: span 2; aspect-ratio: 1 / 2.06; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact__links { flex-direction: row; max-width: none; flex-wrap: wrap; justify-content: center; }
  .contact__link { flex: 0 1 auto; }

  .modal { align-items: center; }
  .modal__panel { border-radius: var(--radius-lg); margin: 20px; }
  .modal__panel { padding: 30px 28px; }
}

@media (min-width: 880px) {
  .section { padding-block: 96px; }
  .section--tight { padding-block: 64px; }

  .nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .nav__link {
    position: relative;
    font-size: .95rem;
    color: rgba(255, 255, 255, .92);
    transition: color .25s var(--ease);
    padding-block: 6px;
  }
  .nav__link::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 0; height: 1.5px;
    background: var(--violet-500);
    transition: width .3s var(--ease);
  }
  .nav__link:hover::after { width: 100%; }

  .menu-btn { display: none; }

  .about__grid {
    grid-template-columns: 5fr 6fr;
    align-items: center;
    gap: 56px;
  }
  .about__figure { aspect-ratio: 4 / 5; }

  .cards { grid-template-columns: repeat(3, 1fr); }

  .detail__layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .detail__aside { position: sticky; top: 96px; }
  .book-bar {
    position: static;
    margin-inline: 0;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
    flex-direction: column;
    align-items: stretch;
  }
  .book-bar .btn { width: 100%; }
  .book-bar__price { display: none; }  /* already shown in the info card */

  .calendar { padding: 24px 22px 28px; }
}

@media (min-width: 1100px) {
  /* Three across on a wide screen, not four — each piece stays large. */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .header, .drawer, .modal, .lightbox, .book-bar, .hero__scroll { display: none !important; }
  body { background: #fff; }
}
