/* Gan Nessia
   Radius rule: photos are arches or circles, tiles and inputs 16px / 12px, buttons are pills. */

:root {
  --bg: #fbf5ec;
  --surface: #fffdf9;
  --ink: #3d3354;
  --ink-soft: #5c5470;
  --line: #eadfcf;

  --lavender: #ddd3f1;
  --lavender-deep: #65559a;
  --pink: #f8d6dd;
  --sage: #d3e1ca;
  --sage-deep: #4f6d48;
  --butter: #f9e9b0;

  --font-display: "Fredoka", "Assistant", system-ui, sans-serif;
  --font-body: "Assistant", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 10vw, 120px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; max-width: 62ch; }

.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.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 {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 30;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header__inner {
  height: var(--header-h);
  max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo { height: 60px; width: auto; }
.brand:has(.brand__logo) .brand__word { display: none; }
.brand__word {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  white-space: nowrap;
}
.brand__sun {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--butter);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--butter) 45%, transparent);
}

.nav { display: none; gap: 4px; margin-inline: auto; }
.nav a, .mobile-nav a {
  text-decoration: none; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}
@media (hover: hover) {
  .nav a:hover { background: var(--lavender); color: var(--ink); }
}

.header__end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.lang {
  display: flex; padding: 3px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.lang button {
  font: 600 0.9rem/1 var(--font-body); color: var(--ink-soft);
  background: none; border: 0; cursor: pointer;
  min-width: 40px; height: 34px; padding-inline: 10px; border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.lang button[aria-pressed="true"] { background: var(--lavender-deep); color: #fff; }
.lang button:active { transform: scale(0.95); }

.menu-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  display: grid; place-items: center;
}
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 220ms var(--ease-out), opacity 150ms ease;
}
.menu-btn__lines { position: relative; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-btn__lines::before { transform: translateY(-6px); }
.menu-btn__lines::after { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: rotate(-45deg); }

.mobile-nav {
  /* The header's backdrop-filter makes it the containing block, so size explicitly. */
  position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
  background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px var(--gutter);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--ink);
  padding: 12px 4px; border-radius: 12px;
  animation: menu-in 320ms var(--ease-out) both;
}
.mobile-nav a:nth-child(2) { animation-delay: 40ms; }
.mobile-nav a:nth-child(3) { animation-delay: 80ms; }
.mobile-nav a:nth-child(4) { animation-delay: 120ms; }
.mobile-nav a:nth-child(5) { animation-delay: 160ms; }
@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .header__end { margin-inline-start: 0; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 1.05rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn i { font-size: 1.25rem; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--primary {
  background: var(--lavender-deep); color: #fff;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--lavender-deep) 70%, transparent);
}
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) {
  .btn--primary:hover { background: #57488a; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--lavender-deep); }
}

/* ---------- Photos (drop files into assets/photos with the names shown) ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden;
  display: grid; place-items: center;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo:has(img) .photo__hint { display: none; }
.photo__hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.photo__hint i { font-size: 1.1rem; }
.photo--arch { border-radius: 999px 999px 20px 20px; aspect-ratio: 4 / 5; }
.photo--round { border-radius: 50%; aspect-ratio: 1; }
.photo--tile { border-radius: 16px; }
.photo--wide { border-radius: 16px; aspect-ratio: 16 / 9; }
.photo--lavender { background: var(--lavender); }
.photo--pink { background: var(--pink); }
.photo--sage { background: var(--sage); }
.photo--butter { background: var(--butter); }

/* ---------- Decorative shapes ---------- */
.deco { position: absolute; pointer-events: none; }
.deco--sun {
  width: 84px; height: 84px; border-radius: 50%; background: var(--butter);
  box-shadow: 0 0 0 14px color-mix(in srgb, var(--butter) 45%, transparent),
              0 0 0 28px color-mix(in srgb, var(--butter) 20%, transparent);
}
.deco--leaf {
  width: 70px; height: 70px; background: var(--sage);
  border-radius: 0 100% 0 100%; transform: rotate(-12deg);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__text .lead { max-width: 34ch; }
.hero__art { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.hero__main { width: 100%; }
.hero__small {
  position: absolute; width: 42%; inset-inline-start: -14%; bottom: -6%;
  border: 8px solid var(--bg);
}
.hero__sun { top: -18px; inset-inline-end: -10px; }
.hero__leaf { bottom: 18%; inset-inline-end: -28px; }
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; min-height: min(640px, calc(100dvh - var(--header-h) - 80px)); }
  .hero__art { justify-self: end; }
}
@media (max-width: 879px) {
  .hero__art { max-width: 340px; margin-inline: auto; }
  .hero__small { inset-inline-start: -6%; }
  .hero__leaf { inset-inline-end: -12px; }
}

/* ---------- Video tour ---------- */
.tour { background: color-mix(in srgb, var(--pink) 40%, var(--bg)); }
.tour__grid { display: grid; gap: 40px; align-items: center; }
.tour__text { position: relative; }
.tour__leaf { position: relative; display: block; margin-top: 24px; }
.tour__frame {
  margin: 0; justify-self: center; width: 100%; max-width: 340px;
  padding: 10px; border-radius: 28px; background: var(--surface);
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--lavender-deep) 55%, transparent);
}
.tour__frame video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 20px; background: var(--lavender);
}
@media (min-width: 880px) {
  .tour__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .tour__frame { max-width: 360px; }
}

/* ---------- Vision ---------- */
.vision { background: var(--surface); }
.vision__grid { display: grid; gap: 48px; }
.vision__values h3 { margin-bottom: 20px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; }
.petal {
  flex: none; width: 22px; height: 22px; margin-top: 3px;
  border-radius: 0 100% 0 100%;
}
[dir="rtl"] .petal { border-radius: 100% 0 100% 0; }
.petal--lavender { background: var(--lavender); }
.petal--pink { background: var(--pink); }
.petal--sage { background: var(--sage); }
.petal--butter { background: var(--butter); }
@media (min-width: 880px) {
  .vision__grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
  .vision__values {
    background: var(--bg); border-radius: 16px; padding: 36px;
    align-self: start;
  }
}

/* ---------- Practical info ---------- */
.info__grid { display: grid; gap: 20px; }
.tile { border-radius: 16px; padding: clamp(24px, 3vw, 36px); position: relative; }
.tile h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.tile--butter { background: var(--butter); }
.tile--sage { background: var(--sage); }
.tile__icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.hours { margin: 0; display: grid; gap: 14px; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0;
  background: var(--surface); padding: 8px 16px; border-radius: 999px;
  font-weight: 600; color: var(--sage-deep);
}
.info__photo { min-height: 240px; }
@media (min-width: 880px) {
  .info__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .info__photo { grid-column: 2; grid-row: 1 / span 2; min-height: 100%; }
}

/* ---------- Day ---------- */
.day { background: color-mix(in srgb, var(--lavender) 45%, var(--bg)); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; inset-inline-start: 7px;
  width: 2px; background: color-mix(in srgb, var(--lavender-deep) 30%, transparent);
}
.timeline li {
  position: relative; display: grid; grid-template-columns: 7.5em 1fr; gap: 16px;
  padding-block: 10px; padding-inline-start: 34px;
}
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 16px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--lavender-deep);
}
.timeline time { font-family: var(--font-display); font-weight: 500; color: var(--lavender-deep); direction: ltr; text-align: start; }
[dir="rtl"] .timeline time { text-align: right; }
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin: 28px 0 32px;
  background: var(--surface); border-radius: 999px;
}
.tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1.05rem/1 var(--font-body); color: var(--ink-soft);
  background: none; border: 0; cursor: pointer;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.tabs button i { font-size: 1.3rem; }
.tabs button[aria-selected="true"] { background: var(--lavender-deep); color: #fff; }
.tabs button:active { transform: scale(0.97); }
.day__panel { max-width: 720px; }
.timeline__note { color: var(--ink-soft); font-style: italic; }
.timeline__note span:last-child { font-size: 1rem; }
.timeline li.timeline__note::before { width: 10px; height: 10px; top: 18px; inset-inline-start: 3px; border-width: 2px; }
@media (max-width: 520px) {
  .tabs { display: flex; }
  .tabs button { flex: 1; justify-content: center; padding: 0 12px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Activities ---------- */
.acts {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 16px;
}
.act {
  flex: 1 1 150px; max-width: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 150px; padding: 20px 16px; border-radius: 16px;
  text-align: center; font-weight: 600; line-height: 1.3;
}
.act i { font-size: 2.4rem; }
.act--lavender { background: var(--lavender); }
.act--pink { background: var(--pink); }
.act--sage { background: var(--sage); }
.act--butter { background: var(--butter); }
@media (min-width: 880px) {
  .acts { justify-content: center; }
  .act { flex: 0 1 calc(25% - 12px); max-width: none; }
  .act:nth-child(even) { transform: translateY(18px); }
  .has-reveal .act.reveal:nth-child(even):not(.is-in) { transform: translateY(32px); }
}
@media (max-width: 520px) {
  .act { flex-basis: calc(50% - 8px); max-width: none; min-height: 130px; }
}

/* ---------- Team ---------- */
.team { background: var(--surface); }
.team__grid { display: grid; gap: 48px; align-items: start; }
.team__photo { max-width: 380px; width: 100%; }
.team__text h3 { color: var(--lavender-deep); }
.team__group { margin-top: 32px; }
@media (min-width: 880px) {
  .team__grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
}
@media (max-width: 879px) { .team__photo { max-width: 300px; margin-inline: auto; } }


/* ---------- Contact ---------- */
.contact { background: color-mix(in srgb, var(--sage) 55%, var(--bg)); }
.contact__grid { display: grid; gap: 40px; align-items: center; }
.contact__list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list i {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--surface);
}
.contact__list span { display: grid; }
.contact__list small { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.contact__list a { font-weight: 600; font-size: 1.15rem; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 4px; }
[dir="rtl"] .contact__list a { text-align: right; }
.qr {
  margin: 0; justify-self: center;
  background: var(--surface); border-radius: 16px; padding: 24px;
  display: grid; justify-items: center; gap: 14px; text-align: center;
}
.qr__code { width: 168px; height: 168px; }
.qr__code img, .qr__code canvas { width: 168px; height: 168px; }
.qr figcaption { font-weight: 600; max-width: 20ch; }
@media (min-width: 880px) { .contact__grid { grid-template-columns: 1.3fr 0.7fr; } }

.no-instagram .js-instagram, .no-instagram .contact__ig, .no-instagram .qr { display: none; }
.no-instagram .contact__grid { grid-template-columns: 1fr; }

/* ---------- Footer ---------- */
.footer { padding-block: 28px; }
.footer__logo { height: 56px; width: auto; }
.footer__inner { display: flex; align-items: center; gap: 16px; color: var(--ink-soft); }
.footer__inner a { margin-inline-start: auto; font-size: 1.6rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
@media (hover: hover) { .footer__inner a:hover { background: var(--lavender); } }

/* ---------- Motion ---------- */
#main { transition: opacity 140ms ease; }
#main.is-switching { opacity: 0; }

.has-reveal .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.has-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (min-width: 880px) {
  .has-reveal .act.reveal.is-in:nth-child(even) { transform: translateY(18px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
