/* ============================================================
   Flowers Fes — "porcelain riad"
   Porcelain blue · zellige green · brass · warm ivory
   ============================================================ */

:root {
  --bg: oklch(0.985 0.012 82);
  --surface: oklch(0.958 0.025 214);
  --surface-2: oklch(0.932 0.028 95);
  --ink: oklch(0.24 0.046 222);
  --muted: oklch(0.45 0.04 214);
  --primary: oklch(0.46 0.116 214);
  --primary-bright: oklch(0.38 0.105 214);
  --accent: oklch(0.67 0.126 73);
  --accent-soft: oklch(0.55 0.13 23);
  --line: oklch(0.86 0.025 214);
  --cream: oklch(0.976 0.021 86);
  --deep: oklch(0.23 0.05 222);

  --font-display: "Tajawal", "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Tajawal", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 8px;
  --arch: 999px 999px var(--radius) var(--radius);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 10;
  --z-float: 20;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  background:
    linear-gradient(90deg, oklch(0.94 0.018 214 / 0.24) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(0deg, oklch(0.94 0.018 214 / 0.18) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, min(5.4vw, 7vh), 4.2rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }

p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }

::selection { background: oklch(0.84 0.09 73 / 0.62); }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: var(--z-float);
}
.skip-link:focus { left: 0; color: white; }

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

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn-whatsapp {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px oklch(0.35 0.1 214 / 0.28);
}
.btn-whatsapp:hover {
  background: var(--primary-bright);
  color: white;
  box-shadow: 0 12px 30px oklch(0.35 0.1 214 / 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); background: var(--surface); }

.btn-lg { padding: 1.15rem 1.9rem; font-size: 1.0625rem; }

.wa-icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: oklch(0.985 0.012 82 / 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.site-header.scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  margin-right: 0;
  margin-inline-end: auto;
}
.brand-mark { width: 30px; height: 30px; fill: var(--primary); flex: none; }
.brand-name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-name em { font-style: normal; color: var(--primary); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem clamp(0.8rem, 1.8vw, 1.75rem);
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }
.lang-switcher,
.error-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid color-mix(in oklch, var(--line), transparent 58%);
  border-radius: 999px;
  background: color-mix(in oklch, var(--cream), transparent 10%);
}
.lang-switcher a,
.error-lang-switcher a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
}
.lang-switcher a:hover,
.error-lang-switcher a:hover { color: var(--ink); }
.lang-switcher a[aria-current="page"],
.error-lang-switcher a[aria-current="page"] {
  color: var(--cream);
  background: var(--ink);
}
[dir="rtl"] body {
  font-family: "Tajawal", "Noto Naskh Arabic", var(--font-body);
  letter-spacing: 0;
}
[dir="rtl"] .hero-copy,
[dir="rtl"] .section-head,
[dir="rtl"] .bouquet-info,
[dir="rtl"] .service-copy,
[dir="rtl"] .how-copy,
[dir="rtl"] .trust-copy,
[dir="rtl"] .site-footer { text-align: right; }
[dir="rtl"] .hero-trust li,
[dir="rtl"] .brand,
[dir="rtl"] .btn,
[dir="rtl"] .closer-number { flex-direction: row-reverse; }
[dir="rtl"] .wa-float { left: clamp(1rem, 3vw, 1.4rem); right: auto; }

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(0.91 0.04 214 / 0.62), transparent 42%),
    linear-gradient(180deg, var(--cream), var(--bg));
}


.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}

.hero-copy,
.hero-gallery {
  position: relative;
  z-index: 1;
}

/* Full-viewport hero on desktop */
@media (min-width: 961px) {
  .hero { padding-block: 0; }
  .hero-grid {
    min-height: calc(100svh - 74px);
    padding-block: clamp(1.5rem, 3vh, 3rem);
  }
  .hero-lede { margin-bottom: clamp(1.25rem, 2.5vh, 2rem); }
  .hero-actions { margin-bottom: clamp(1.25rem, 2.5vh, 2.25rem); }
}

.hero-copy h1 { margin-bottom: 0.5em; }

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.9rem; margin-bottom: 2.25rem; }

.cta-group { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.cta-hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cta-hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

/* --- Hero gallery: 3-image collage --- */

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.hero-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid oklch(0.89 0.025 214);
  box-shadow: 0 18px 42px oklch(0.22 0.06 222 / 0.15);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main photo: spans left column, full height, arched top */
.hero-photo--main {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 3 / 4.5;
  border-radius: var(--arch);
}

/* Secondary: top-right, slightly shorter */
.hero-photo--secondary {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 3 / 3.6;
  border-radius: var(--radius) var(--arch) var(--radius) var(--radius);
  /* intentional asymmetry: arch top-right only */
}

/* Tertiary: bottom-right */
.hero-photo--tertiary {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 3 / 3.2;
  border-radius: var(--radius);
}

.hero-caption {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  max-width: none;
}

.gallery-note {
  position: absolute;
  right: clamp(0.8rem, 2vw, 1.15rem);
  bottom: clamp(2.4rem, 5vw, 3rem);
  z-index: 2;
  max-width: 190px;
  padding: 0.9rem 1rem;
  border: 1px solid oklch(0.86 0.04 73);
  border-radius: var(--radius);
  background: oklch(0.985 0.012 82 / 0.92);
  box-shadow: 0 16px 38px oklch(0.22 0.06 222 / 0.16);
  backdrop-filter: blur(10px);
}

.gallery-note span,
.gallery-note strong {
  display: block;
}

.gallery-note span {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-note strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0.35rem;
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.9s var(--ease-out) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }

  .hero-photo--main { animation: galleryIn 1s var(--ease-out) 0.1s both; }
  .hero-photo--secondary { animation: galleryIn 1s var(--ease-out) 0.28s both; }
  .hero-photo--tertiary { animation: galleryIn 1s var(--ease-out) 0.44s both; }
  .hero-caption { animation: rise 0.8s var(--ease-out) 0.55s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes galleryIn {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head .eyebrow,
.how-copy .eyebrow,
.trust-copy .eyebrow,
.closer .eyebrow {
  color: var(--primary);
  font-size: 0.76rem;
  margin-bottom: 0.9rem;
}

/* ---------- Fes concierge strip ---------- */

.city-signals {
  background: var(--deep);
  color: oklch(0.96 0.014 82);
  border-block: 1px solid oklch(0.34 0.06 222);
}

.city-signals .section-head {
  margin-bottom: 0;
}

.city-signals .section-head h2,
.city-signals .signal h3 {
  color: oklch(0.98 0.014 82);
}

.city-signals .section-head p,
.city-signals .signal p {
  color: oklch(0.82 0.025 214);
}

.city-signals .eyebrow,
.city-signals .signal-number {
  color: oklch(0.76 0.11 73);
}

.city-signals-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: oklch(0.42 0.06 222);
  border: 1px solid oklch(0.42 0.06 222);
}

.signal {
  background: oklch(0.27 0.055 222);
  padding: clamp(1.25rem, 3vw, 1.8rem);
  min-height: 100%;
}

.signal-number {
  display: block;
  margin-bottom: 1.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.signal h3 { margin-bottom: 0.55rem; }
.signal p { margin: 0; font-size: 0.94rem; }

/* ---------- Collection ---------- */

.collection {
  background:
    linear-gradient(180deg, var(--surface), oklch(0.973 0.015 88));
  border-block: 1px solid var(--line);
}

.bouquet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 900px) {
  .bouquet:nth-child(even) { margin-top: 2.75rem; }
}

.bouquet-photo {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid oklch(0.82 0.032 214);
  box-shadow: 0 14px 34px oklch(0.3 0.06 222 / 0.1);
}
.bouquet-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.bouquet-photo:hover img,
.bouquet-photo:focus-visible img { transform: scale(1.04); }

.bouquet-info { padding-top: 1.1rem; }
.bouquet-info h3 { margin-bottom: 0.25em; }
.bouquet-info p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.7em; }

.order-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid oklch(0.46 0.116 214 / 0.35);
  padding-block: 0.55rem 0.45rem; /* comfortable mobile tap target */
  margin-block: -0.35rem;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.order-link:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }

.collection-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 1rem;
  max-width: 58ch;
}

/* ---------- Services ---------- */

.services {
  background:
    linear-gradient(90deg, oklch(0.94 0.018 214 / 0.34) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid oklch(0.82 0.035 214);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 16px 36px oklch(0.25 0.08 222 / 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.service-copy {
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

.service-copy .eyebrow {
  margin-bottom: 0.7rem;
}

.service-copy h3 {
  margin-bottom: 0.45rem;
}

.service-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.how {
  background: var(--bg);
}

.how-photo { margin: 0; }
.how-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--arch);
  border: 1px solid var(--line);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 1.9rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 0;
  padding-inline-start: 4.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: auto;
  inset-inline-start: 0;
  top: 0.1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  width: 2.9rem;
  text-align: center;
}
.steps li::after {
  content: "";
  position: absolute;
  left: auto;
  inset-inline-start: 1.45rem;
  top: 3rem;
  bottom: -1.4rem;
  width: 1px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); font-size: 0.975rem; margin: 0; }

/* ---------- Occasions ---------- */

.occasions {
  background: oklch(0.93 0.032 214);
  border-block: 1px solid var(--line);
}

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.occasion {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid oklch(0.8 0.04 214);
  aspect-ratio: 3 / 4.2;
}
.occasion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.occasion:hover img,
.occasion:focus-visible img { transform: scale(1.05); }

.occasion-label {
  position: absolute;
  inset: auto 0 0;
  padding: 2.6rem 1rem 1.05rem;
  text-align: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.15rem;
  background: linear-gradient(to top, oklch(0.22 0.05 222 / 0.88), transparent);
}

/* ---------- Trust ---------- */

.trust {
  background: var(--cream);
}

.trust-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.trust-copy { display: grid; gap: clamp(1.4rem, 2.5vw, 2rem); }
.trust-copy h2 { margin-bottom: 0.4em; }

.trust-item {
  border-top: 1px solid oklch(0.82 0.04 73);
  padding-top: 1.3rem;
}
.trust-item h3 { margin-bottom: 0.4em; }
.trust-item p { color: var(--muted); font-size: 0.975rem; margin: 0; }

/* --- WhatsApp chat mockup --- */

.chat-demo {
  margin: 0;
  justify-self: center;
  width: min(100%, 400px);
  transform: rotate(-1.25deg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--primary);
  color: white;
  padding: 0.85rem 1.1rem;
  border-radius: 22px 22px 0 0;
}
.chat-avatar { width: 38px; height: 38px; color: white; flex: none; }
.chat-name { display: block; font-weight: 700; font-size: 0.975rem; line-height: 1.25; }
.chat-status { display: block; font-size: 0.8rem; opacity: 0.85; }

.chat-body {
  display: grid;
  gap: 0.55rem;
  background: oklch(0.93 0.026 214);
  padding: 1.1rem;
  border-inline: 1px solid var(--line);
}

.msg {
  position: relative;
  max-width: 85%;
  margin: 0;
  padding: 0.6rem 0.8rem 0.95rem;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: 12px;
  box-shadow: 0 1px 1px oklch(0.3 0.05 222 / 0.08);
}
.msg time {
  position: absolute;
  right: auto;
  inset-inline-end: 0.7rem;
  bottom: 0.25rem;
  font-size: 0.66rem;
  color: var(--muted);
}
.msg-in { background: white; justify-self: start; border-top-left-radius: 4px; }
.msg-out {
  background: oklch(0.9 0.05 86);
  justify-self: end;
  border-top-right-radius: 4px;
  padding-right: 0.8rem;
  padding-inline-end: 2.4rem;
}
.msg-out .ticks {
  position: absolute;
  right: auto;
  inset-inline-end: 2.55rem;
  bottom: 0.22rem;
  font-size: 0.66rem;
  letter-spacing: -0.12em;
  color: oklch(0.62 0.11 240);
}
.msg-out time {
  right: auto;
  inset-inline-end: 0.7rem;
}

.msg-photo { padding: 0.35rem 0.35rem 1.1rem; max-width: 62%; }
.msg-photo img { border-radius: 9px; }

.chat-caption {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 22px 22px;
  padding: 0.8rem 1.1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Bubbles pop in one after another */
@media (prefers-reduced-motion: no-preference) {
  html.js .chat-demo .msg {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  html.js .chat-demo.in .msg { opacity: 1; transform: none; }
  html.js .chat-demo.in .msg:nth-child(1) { transition-delay: 0.15s; }
  html.js .chat-demo.in .msg:nth-child(2) { transition-delay: 0.5s; }
  html.js .chat-demo.in .msg:nth-child(3) { transition-delay: 0.85s; }
  html.js .chat-demo.in .msg:nth-child(4) { transition-delay: 1.3s; }
  html.js .chat-demo.in .msg:nth-child(5) { transition-delay: 1.65s; }
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.quote { margin: 0; }
.quote blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote figcaption { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* ---------- Areas ---------- */

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 780px;
}
.area-list li {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--cream);
}

.area-landmarks-intro {
  margin: 2.25rem 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- FAQ ---------- */

.faq {
  background:
    linear-gradient(180deg, oklch(0.948 0.026 214), var(--surface));
  border-block: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-soft); }
.faq-item p { color: var(--muted); padding-bottom: 1.4rem; margin: 0; }

/* ---------- Closer ---------- */

.closer {
  text-align: center;
  background: var(--bg);
}
.closer .wrap-narrow { display: grid; justify-items: center; }
.closer h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.closer p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
#closer-time { color: var(--primary); }
.closer-number { margin: 1.5rem 0 0; font-size: 0.95rem; }
.closer-number a { color: var(--muted); text-decoration: none; }
.closer-number a:hover { color: var(--ink); }

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

/* Deep-blue closing band: bookends the ivory page in the brand color */
.site-footer {
  --f-ink: oklch(0.97 0.012 82);
  --f-muted: oklch(0.82 0.026 214);
  --f-rose: oklch(0.77 0.11 73);
  --f-line: oklch(0.36 0.06 222);
  background:
    linear-gradient(45deg, transparent 47%, oklch(0.42 0.07 222 / 0.18) 48%, oklch(0.42 0.07 222 / 0.18) 52%, transparent 53%) 0 0 / 38px 38px,
    oklch(0.22 0.055 222);
  color: var(--muted);
  padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
  font-size: 0.95rem;
}

.footer-signoff {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.signoff-flower {
  width: 34px;
  height: 34px;
  fill: var(--f-rose);
  margin-bottom: 0.9rem;
  transition: transform 0.6s var(--ease-out);
}
.footer-signoff:hover .signoff-flower { transform: rotate(-10deg) scale(1.08); }
.signoff-line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--ink);
  margin: 0 auto;
  max-width: none;
  text-wrap: balance;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.footer-brand em { font-style: normal; color: var(--f-rose); }
.footer-heading {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.site-footer p { margin-bottom: 0.4rem; }
.site-footer a { color: var(--f-rose); }
.site-footer a:hover { color: var(--ink); }


.footer-legal {
  border-top: 1px solid var(--f-line);
  padding-top: 1.5rem;
}
.footer-legal p { font-size: 0.85rem; max-width: none; }

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px oklch(0.25 0.08 222 / 0.35);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              background-color 0.25s var(--ease-out);
}
.wa-float:hover { background: var(--primary-bright); color: white; }
.wa-float.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.wa-float .wa-icon { width: 1.35em; height: 1.35em; }

/* ---------- Scroll reveals (JS enhancement only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouquet-photo img, .occasion img { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-nav { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-gallery { max-width: 460px; margin-inline: auto; width: 100%; }

  .city-signals-grid { grid-template-columns: 1fr; }
  .signal-list { grid-template-columns: 1fr; }
  .city-signals .section-head { margin-bottom: 0.5rem; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card {
    grid-template-columns: minmax(180px, 0.8fr) 1fr;
    grid-template-rows: none;
  }
  .service-card img {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }

  .how-grid { grid-template-columns: 1fr; }
  .how-photo { max-width: 420px; margin-inline: auto; width: 100%; order: 1; }
  .how-copy { order: 0; }

  .trust-layout { grid-template-columns: 1fr; }
  .chat-demo { transform: none; }
}

@media (max-width: 560px) {
  .btn-header .btn-label { display: none; }
  .btn-header { padding: 0.8rem 1.1rem; }

  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta-group { flex: 1 1 100%; align-items: stretch; }
  .cta-group .btn { width: 100%; }
  .cta-hint { justify-content: center; }

  .hero-gallery { grid-template-columns: 1fr; max-width: 380px; }
  .hero-photo--main { grid-column: 1; grid-row: 1; }
  .hero-photo--secondary, .hero-photo--tertiary { display: none; }
  .gallery-note {
    position: static;
    grid-column: 1;
    max-width: none;
    margin-top: 0.75rem;
  }

  .service-card {
    grid-template-columns: 1fr;
  }
  .service-card img {
    min-height: 0;
    aspect-ratio: 4 / 3.1;
  }

  .occasion-grid { grid-template-columns: repeat(2, 1fr); }

  .wa-float-label { display: none; }
  .wa-float { padding: 0.95rem; }
}
@media (max-width: 1120px) and (min-width: 961px) {
  .header-inner {
    gap: 0.85rem;
  }

  .site-nav {
    gap: 0.35rem 0.9rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .lang-switcher a {
    padding: 0.36rem 0.48rem;
  }

  .btn-header {
    padding: 0.8rem 1.05rem;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: clamp(1rem, 4vw, 1.35rem);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    padding-block: 0.7rem;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .site-header .lang-switcher {
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-grid {
    padding-block: clamp(1.8rem, 6vw, 3rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-trust {
    gap: 0.45rem 0.8rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .bouquet-grid,
  .quotes,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card img {
    min-height: 0;
    aspect-ratio: 4 / 3.1;
  }

  .chat-body {
    padding: 0.85rem;
  }

  .msg {
    max-width: 92%;
  }

  .area-list,
  .area-list li,
  .occasion-label,
  .catalog-card h3,
  .service-copy h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .brand-name {
    display: none;
  }

  .lang-switcher a {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding-inline: 1rem;
  }

  .btn-header {
    width: auto;
    min-width: 44px;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: 1fr;
  }

  .steps li {
    padding-inline-start: 3.25rem;
  }

  .steps li::before {
    width: 2.3rem;
    font-size: 1.7rem;
  }

  .steps li::after {
    inset-inline-start: 1.15rem;
  }

  .msg {
    max-width: 95%;
    font-size: 0.84rem;
  }

  .chat-caption {
    font-size: 0.82rem;
  }
}

@media (max-width: 390px) {
  .occasion-grid {
    grid-template-columns: 1fr;
  }

  .area-list li {
    width: 100%;
    text-align: center;
  }

  .wa-float {
    bottom: 0.8rem;
  }
}

[dir="rtl"] .msg-in {
  justify-self: end;
  border-top-right-radius: 4px;
  border-top-left-radius: 12px;
}

[dir="rtl"] .msg-out {
  justify-self: start;
  border-top-left-radius: 4px;
  border-top-right-radius: 12px;
  padding-inline-start: 2.4rem;
  padding-inline-end: 0.8rem;
}

[dir="rtl"] .msg-out .ticks {
  inset-inline-start: 2.55rem;
  inset-inline-end: auto;
}

[dir="rtl"] .msg time {
  inset-inline-start: 0.7rem;
  inset-inline-end: auto;
}
