/* =========================================================
   מרחב נשימה — ארגון וסידור מרחבים · main styles
   (fonts: fonts.css)

   Idea: the whole page is ONE single sheet, like a stretched post.
   - A single background that goes from the window light (top)
     to the pastel green of the floor (bottom): no bands, no cuts.
   - The double green rule frames the whole page.
   - Sections are separated by white space and a green sprig,
     and flowers appear on the frame along the way.
   ========================================================= */

:root {
  /* color */
  /* same palette as the landing page (landing.css): soft cream, pastel green and lilac, deep green-grey ink */
  --light:  #FFFCF6;  /* window light, at the very top */
  --sand:   #F6F4EE;  /* main background */
  --sand-2: #E2EEE4;  /* middle of the page: a hint of pastel green */
  --honey:  #BFE0C8;  /* pastel green */
  --gold:   #3F6E50;  /* frame and lines: deep sage */
  --linen:  #FFFCF6;  /* panels */
  --walnut: #1F2A26;  /* headings and dark buttons: ink */
  --cocoa:  #3E4D45;  /* text */
  --green:  #3F6E50;  /* buttons, like the landing page (white text: contrast 5.9) */
  --lilac:  #D2C3E9;  /* pastel lilac: soft accents */
  --wa:     #2E8B57;  /* WhatsApp, muted so it doesn't break the palette */

  /* typography */
  --font-display: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --font-body:    "Assistant", "Arial Hebrew", Arial, sans-serif;

  --step--1: 0.9375rem;   /* 15 */
  --step-0:  1.125rem;    /* 18 */
  --step-1:  1.375rem;    /* 22 */
  --step-2:  1.75rem;     /* 28 */
  --step-3:  clamp(2.1rem, 1.5rem + 2.4vw, 3rem);
  --step-6:  clamp(3.5rem, 1.8rem + 7vw, 7rem);

  /* layout */
  --frame: clamp(8px, 1.6vw, 20px);   /* distance from the frame to the edge */
  --container: 1120px;
  --gutter: clamp(24px, 5vw, 56px);
  --section-space: clamp(40px, 6vw, 80px);
  --radius-panel: 26px;
  --shadow-warm: 0 24px 50px -24px rgba(31, 42, 38, .35);
  --copy-h: 48px;                      /* copyright strip, at the bottom */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* some decorative flowers stick out of the frame on purpose; this avoids the ghost
     horizontal scroll without breaking the header's position:sticky (unlike putting
     overflow: hidden on .page, which breaks it even if it never scrolls) */
  overflow-x: hidden;
  background: var(--sand);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* On phones body's overflow-x is not enough: mobile browsers widen the page to fit the
   flowers that stick out of the frame. clip (unlike hidden) does not create a scroll
   container, so the sticky header keeps working. */
div.page { overflow-x: clip; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--walnut);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }
a { color: inherit; }

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

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

/* visible only to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  background: var(--walnut);
  color: var(--linen);
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* ---------- the sheet ---------- */
.page {
  position: relative;
  min-height: 100vh;
  padding-block: calc(var(--frame) + 10px);
  background:
    radial-gradient(ellipse 70% 40% at 15% 0%, rgba(255, 252, 245, .95), transparent 70%),
    linear-gradient(180deg,
      var(--light) 0%,
      var(--sand) 22%,
      var(--sand-2) 50%,
      #ECE6F5 80%,              /* a hint of lilac towards the end */
      var(--sand) 100%);        /* lightens again to receive the footer illustration */
}

/* double gold rule, from end to end of the page */
.page::before,
.page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.page::before {
  inset: var(--frame);
  border: 1.5px solid var(--gold);
  border-radius: 4px;
}
.page::after {
  inset: calc(var(--frame) + 6px);
  border: 1px solid rgba(63, 110, 80, .45);
  border-radius: 2px;
}

main { position: relative; z-index: 3; }
/* the footer has no z-index on purpose: that way the illustration (multiply)
   blends with the page background and stays behind the columns */
.site-footer { position: relative; }

/* ---------- flowers ---------- */
.flower {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

/* ---------- sky: clouds around the top of the page ---------- */
.sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  background: center / contain no-repeat;   /* the image and proportions come from DecorSky.astro */
}
/* Positions in px, not % of the page height: with % they moved every time a text changed and ended up
   behind titles and paragraphs. a and b sit behind the rope; c, d and e (home page only) sit beside the
   hero, measured from the center so they never reach the logo, the texts or the buttons (~420px wide). */
.cloud--a { top: 160px; right: 24%; width: min(300px, 48vw); opacity: .95; }
.cloud--b { top: 190px; left: 8%;   width: min(340px, 55vw); opacity: .9; }
.cloud--c { top: 470px; right: calc(50% + 250px); width: 160px; opacity: .8; }
.cloud--d { top: 600px; left:  calc(50% + 260px); width: 240px; opacity: .75; transform: scaleX(-1); }
.cloud--e { top: 760px; right: calc(50% + 270px); width: 230px; opacity: .6;  transform: scaleX(-1); }

/* ---------- columns with climbing vines ---------- */
.pillar {
  display: none;               /* wide screens only, see media query */
  position: absolute;
  z-index: 2;
  top: calc(var(--frame) + 96px);
  bottom: calc(var(--frame) + 10px + var(--copy-h));   /* the bases sit on the copyright strip */
  width: 110px;
  flex-direction: column;
  pointer-events: none;
}
.pillar--right { right: calc(var(--frame) + 22px); }
.pillar--left  { left:  calc(var(--frame) + 22px); }

.pillar__capital,
.pillar__base {
  flex: none;
  width: 110px;
  background: center / 110px auto no-repeat;
}
.pillar__capital { height: 50px; background-image: url("../img/column-capital.svg"); }
.pillar__base    { height: 46px; background-image: url("../img/column-base.svg"); }

/* fluted shaft */
.pillar__shaft {
  flex: 1;
  position: relative;
  width: 72px;
  margin-inline: auto;
  border-inline: 1.3px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(31, 42, 38, .10), transparent 28%, transparent 66%, rgba(31, 42, 38, .12)),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(63, 110, 80, .5) 11px 12px),
    #F6F4EE;
}

/* vine climbing and twisting around the shaft */
.pillar__shaft::after {
  content: "";
  position: absolute;
  inset: -12px -19px;
  background: url("../img/column-vine.svg") repeat-y center top / 110px 720px;
}
.pillar--left .pillar__shaft::after { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7em 1.6em;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  background: var(--green);
  color: var(--linen);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: #325A41; border-color: #325A41; }

.btn--ghost {
  background: transparent;
  color: var(--walnut);
}
.btn--ghost:hover { background: rgba(31, 42, 38, .08); }

.btn--small {
  min-height: 40px;
  padding: .35em 1.2em;
  font-size: var(--step--1);
}

/* ---------- header ---------- */
/* "With God's help" mark in the top right corner of the header.
   Absolute, so it doesn't take a line of its own and push the page down. */
.bsd {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: var(--step--1);
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  /* stays inside the frame so it doesn't cover it */
  margin-inline: calc(var(--frame) + 12px);
  padding-inline: clamp(12px, 3vw, 36px);
  background: rgba(255, 252, 246, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(63, 110, 80, .35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--walnut);
  text-decoration: none;
}
.brand__mark { width: 30px; height: auto; }

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gold); color: var(--walnut); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  /* leaves room at the top for the rope with vines */
  padding-block: 215px clamp(24px, 4vw, 48px);
  text-align: center;
}

.hero__text {
  max-width: 760px;
  margin-inline: auto;
}

.hero__title {
  font-size: var(--step-6);
  font-weight: 500;
  line-height: 1.1;
}

.hero__logo {
  display: block;
  width: clamp(190px, 21vw, 270px);
  height: auto;
  margin-inline: auto;
}

.hero__subtitle {
  display: block;
  margin-top: .2em;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--walnut);
  line-height: 1.2;
}

.hero__tagline {
  margin: 1.4em auto 0;
  font-size: var(--step-1);
  max-width: 36ch;
}
.hero__tagline::before {
  content: "";
  display: block;
  width: 72px;
  height: 1.5px;
  margin: 0 auto 1em;
  background: var(--gold);
}

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* On computers the hero sits under the rope: tighter gaps, and the logo shrinks on short screens,
   so the logo, the texts and the buttons fit in the first screen. */
@media (min-width: 701px) {
  .hero__logo { width: clamp(170px, calc((100svh - 620px) * .82), 270px); }
  .hero__subtitle { margin-top: 0; }
  .hero__tagline { margin-top: .8em; }
  .hero__tagline::before { margin-bottom: .6em; }
  .hero__actions { margin-top: 1.2rem; }
}

/* ---------- rope with hanging vines, from column to column ---------- */
.garland {
  position: absolute;
  z-index: 2;                          /* same as the columns, which come later and cover it */
  pointer-events: none;
  top: calc(var(--frame) + 92px);
  left: calc(var(--frame) + 7px);
  right: calc(var(--frame) + 7px);
  height: 90px;                        /* = the SVG viewBox: 1 vertical unit = 1px */
}
.garland__rope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.garland__rope path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.garland__rope .garland__twist {      /* the rope's twist */
  stroke: var(--linen);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
/* each strand hangs from its own point of the curve:
   the rope is y = 4 + 320·t·(1−t)  (t = position from 0 to 1) */
.garland__strand {
  position: absolute;
  width: 64px;
  height: auto;
  left: calc(var(--t) * 100% - 32px);
  top: calc(2px + 320px * var(--t) * (1 - var(--t)));
}
.garland__strand--flip { transform: scaleX(-1); }

/* clusters of leaves and flowers twisted around the rope, between strands */
.garland__cluster {
  position: absolute;
  width: 70px;
  height: auto;
  left: calc(var(--t) * 100% - 35px);
  top: calc(4px + 320px * var(--t) * (1 - var(--t)) - 22px);
}
.garland__cluster--flip { transform: scaleX(-1) rotate(-6deg); }

/* ---------- divider: green sprig ---------- */
.divider {
  display: flex;
  justify-content: center;
  padding-block: var(--section-space);
  position: relative;
  z-index: 3;
}
.divider img { width: 150px; }

/* ---------- sections ---------- */
.section {
  position: relative;
  scroll-margin-top: 96px;   /* so the sticky header doesn't cover the title when jumping to an #anchor */
}

.section__title {
  font-size: var(--step-3);
  text-align: center;
}

.section__lead {
  margin: .8em auto 0;
  max-width: 44ch;
  text-align: center;
  font-size: var(--step-1);
}

/* services: cards in a grid of three */
.services__list {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  text-align: center;
}
.service {
  padding: 28px 22px 30px;
  border: 1px solid rgba(63, 110, 80, .35);
  border-radius: var(--radius-panel);
  background: rgba(255, 252, 246, .55);
}

/* an odd one out in the last row sits in the middle */
@media (min-width: 901px) {
  .service:last-child:nth-child(3n + 1) { grid-column: 2; }
}

.service__icon {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--lilac);
  margin-bottom: 20px;
}
.service__icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--walnut);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__title {
  font-size: var(--step-1);
  margin-bottom: .5em;
}
.service__title a { color: inherit; text-decoration: none; }
.service__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service p { max-width: 36ch; margin-inline: auto; }
.service__more {
  display: inline-block;
  margin-top: .9em;
  font-weight: 700;
  color: var(--walnut);
  text-underline-offset: 4px;
}

/* process: three steps joined by a gold vine */
.flower--side {
  width: clamp(120px, 14vw, 190px);
  left: -10px;
  top: 10%;
  rotate: -100deg;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 11px;               /* centered with the circles (46px / 2 - 24px / 2) */
  inset-inline: 16%;
  height: 24px;
  background: url("../img/vine.svg") repeat-x center / 160px 24px;
}

.step {
  counter-increment: step;
  position: relative;
  padding-top: 72px;
  text-align: center;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--lilac);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--walnut);
}

.step__title {
  font-size: var(--step-1);
  margin-bottom: .4em;
}
.step p { max-width: 30ch; margin-inline: auto; }

/* קצת עליי (about): photo + text */
.about__grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 280px);   /* text at the start (right), photo on the left */
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
  max-width: 940px;
}
.about__grid:has(.about__copy:only-child) { grid-template-columns: 1fr; }

.about__photo {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.about__copy { grid-column: 1; grid-row: 1; }
.about__photo img {
  height: auto;
  border-radius: var(--radius-panel);
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow-warm);
}

.about__copy .section__title { text-align: start; }
.about__text {
  margin-top: .8em;
  font-size: var(--step-0);
}
.about__text p + p { margin-top: .9em; }
/* the opening line ("I'm Tamara Yael...") reads as a greeting, a bit larger */
.about__text p:first-child { font-size: var(--step-1); }

/* the "about" page: room at the top for the rope, like the other inner pages */
.about--page { padding-top: 370px; }
.about__more { margin-top: 1.6em; }
.about__actions { margin-top: 2em; }

/* service pages (/services/...): the same text page as .legal, plus a list of the other services */
.service-page__more { margin-top: 2.2em; }
.service-page__all { margin-top: 1.2em; }
/* other services: cards in two columns, with an arrow that points to the next page (left, as the text is RTL) */
.service-page__more ul {
  list-style: none; padding-inline-start: 0; margin-top: 1em;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.service-page__more li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
  padding: 14px 18px; border: 1.5px solid var(--honey); border-radius: var(--radius-panel);
  background: var(--linen); text-decoration: none; line-height: 1.35;
  transition: border-color .2s, background-color .2s;
}
.service-page__more li a::after { content: "←"; color: var(--green); flex-shrink: 0; }
.service-page__more li a:hover,
.service-page__more li a:focus-visible { border-color: var(--green); background: var(--sand-2); }
.service-page__all { text-align: center; }
@media (max-width: 600px) { .service-page__more ul { grid-template-columns: 1fr; } }
.service-page__more a,
.about__text a,
.legal p a { font-weight: 700; color: var(--walnut); text-underline-offset: 4px; }

/* הצהרת נגישות (accessibility statement): a plain, readable text page */
/* room at the top so the rope with vines (it hangs down to ~450px) doesn't cover the text */
.legal { padding-block: 370px var(--section-space); }
.legal__body { max-width: 760px; }
.legal__intro { margin-top: 1em; font-size: var(--step-1); }
.legal h2 { margin-top: 1.6em; font-size: var(--step-2); }
.legal p,
.legal ul { margin-top: .6em; }
.legal ul { padding-inline-start: 1.4em; }
.legal li + li { margin-top: .35em; }
.legal__contact { list-style: none; padding-inline-start: 0 !important; }
.legal__updated { margin-top: 2.4em !important; font-size: var(--step--1); }

/* בלוג (blog): list of posts and one post. The same room at the top as .legal, for the rope with vines. */
.blog,
.post { padding-block: 370px var(--section-space); }
.blog__body { max-width: 940px; }
.blog__empty { margin-top: 2em; text-align: center; font-size: var(--step-1); }
.blog__list {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(63, 110, 80, .45);
  border-radius: var(--radius-panel);
  background: rgba(255, 252, 246, .75);
}
.post-card:has(.post-card__cover) { grid-template-columns: minmax(0, 260px) 1fr; align-items: center; }
.post-card__cover { width: 100%; height: auto; border-radius: 16px; }
.post-card__title { font-size: var(--step-2); }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card__date { margin-top: .3em; font-size: var(--step--1); }
.post-card__excerpt { margin-top: .6em; }
.post-card__more { display: inline-block; margin-top: .6em; font-weight: 700; color: var(--walnut); text-underline-offset: 4px; }
.post-draft {
  display: inline-block;
  margin-bottom: .6em;
  padding: .1em .8em;
  border: 1px dashed var(--walnut);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 700;
}

.post__body { max-width: 760px; }
.post__back a { font-weight: 700; color: var(--walnut); text-underline-offset: 4px; }
.post__title { margin-top: .6em; font-size: var(--step-3); }
.post__meta { margin-top: .4em; font-size: var(--step--1); }
.post__cover { width: 100%; height: auto; margin-top: 1.4em; border-radius: var(--radius-panel); }
.post__cta {
  margin-top: 2.6em;
  padding: clamp(20px, 4vw, 32px);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-panel);
  background: var(--linen);
  text-align: center;
}
.post__cta h2 { font-size: var(--step-2); }
.post__cta p { margin: .5em 0 1.2em; }

/* the text of a post (Markdown) */
.prose { margin-top: 1.4em; font-size: var(--step-0); }
.prose > * + * { margin-top: .9em; }
.prose h2 { margin-top: 1.6em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.3em; font-size: var(--step-1); }
.prose ul,
.prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose a { color: var(--walnut); font-weight: 600; text-underline-offset: 3px; }
.prose img { height: auto; border-radius: 16px; }
.prose blockquote {
  margin-inline: 0;
  padding-inline-start: 1em;
  border-inline-start: 3px solid var(--gold);
  font-style: italic;
}
.prose hr { margin-block: 2em; border: 0; border-top: 1px solid rgba(63, 110, 80, .55); }

/* גלריה (gallery): image grid */
.gallery__grid {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.gallery__item { margin: 0; }
.gallery__item img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(63, 110, 80, .5);
  box-shadow: var(--shadow-warm);
}

/* הודאות לקוחות (testimonials) */
.testimonials__list {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 40px);
}
.testimonial {
  flex: 1 1 280px;
  max-width: 560px;
  margin: 0;
  padding: clamp(28px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
  background: rgba(255, 252, 246, .7);
  border: 1px solid rgba(63, 110, 80, .4);
  border-radius: var(--radius-panel);
  text-align: center;
}
.testimonial__text {
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--walnut);
  line-height: 1.6;
}
.testimonial__name {
  display: block;
  margin-top: 1em;
  font-style: normal;
  font-weight: 600;
  font-size: var(--step--1);
}

/* closing: price + contact in a single card */
.closing__card {
  position: relative;
  margin: clamp(40px, 5vw, 56px) auto 0;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* no backdrop-filter: with the flower sticking out, Chrome painted a white rectangle */
  background: rgba(255, 252, 246, .9);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-warm);
  text-align: center;
}
.closing__card::after {           /* second inner rule, like the frame */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(63, 110, 80, .4);
  border-radius: calc(var(--radius-panel) - 6px);
  pointer-events: none;
}

.flower--card {
  width: 130px;
  top: -58px;
  left: -44px;
  rotate: -90deg;
}

.closing__price,
.closing__contact {
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.closing__price {
  border-inline-end: 1px solid rgba(63, 110, 80, .45);
}

.closing__label {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--walnut);
}

.closing__amount {
  margin-top: .2em;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--walnut);
}
.closing__number {
  display: block;
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
}
.closing__unit { display: block; }
.closing__note { margin-top: .5em; }
.closing__note + .closing__note { margin-top: .2em; }

/* opening discount: a small gold badge and the regular price crossed out */
.closing__discount {
  display: inline-block;
  margin-top: .6em;
  padding: .2em .9em;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--lilac);
  color: var(--cocoa);
  font-weight: 700;
}
.closing__regular {
  display: block;
  margin-top: .3em;
  font-size: var(--step-1);
  color: var(--cocoa);     /* no transparency: it must keep a 4.5:1 contrast */
  text-decoration-thickness: 1.5px;
}

.closing__name {
  margin-top: .8em;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--walnut);
  line-height: 1.2;
}
.closing__phone {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--walnut);
}
.closing__phone a { text-decoration: none; }
.closing__phone a:hover { text-decoration: underline; text-underline-offset: 4px; }

.closing__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* footer: the scene closes the page, between the columns */
.site-footer {
  padding-top: clamp(40px, 6vw, 80px);
  text-align: center;
  font-size: var(--step--1);
  color: var(--walnut);
}

.site-footer__scene {
  --scene-inset: calc(var(--frame) + 7px);        /* up to the frame's inner rule */
  position: relative;
  margin: 0 var(--scene-inset);                   /* the floor of the drawing lines up with the bases */
}

.site-footer__copy {
  min-height: var(--copy-h);
  display: flex;
  flex-wrap: wrap;            /* on phones the accessibility link goes to its own line */
  align-items: center;
  justify-content: center;
  gap: .35em;                 /* flex drops the spaces between "© 2026" and the text */
  padding-inline: var(--gutter);
}
.site-footer__copy a { text-underline-offset: 3px; }

.site-footer__art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2688 / 796;                       /* half the height of the original drawing */
  object-fit: cover;                              /* crops, never distorts */
  object-position: 50% 38%;                       /* from the hat down to the table */
  mix-blend-mode: multiply;                       /* the drawing's paper takes the page's tone */
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 14%),
    linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 14%),
    linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}

.site-footer__filter { position: absolute; width: 0; height: 0; }

/* Roman festoon hanging from column to column */
.site-footer__festoon {
  position: absolute;
  top: -40px;
  left: 12px;
  right: 12px;
  height: clamp(64px, 8vw, 130px);
  background: url("../img/festoon.svg") repeat-x left top / auto 100%;
  background-repeat: round no-repeat;             /* fits the number of tiles to the width */
}

/* floating WhatsApp button (phones only) */
.wa-float {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* music button */
.music-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: rgba(255, 252, 246, .95);
  color: var(--walnut);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(31, 42, 38, .45);
  transition: background-color .2s ease;
}
.music-toggle:hover { background: var(--linen); }
.music-toggle:disabled { opacity: .5; cursor: default; }

.music-toggle__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.music-toggle.is-playing { background: var(--walnut); color: var(--linen); border-color: var(--walnut); }
.music-toggle.is-playing .music-toggle__icon { animation: sway 2.4s ease-in-out infinite; }
.music-toggle.is-loading { cursor: progress; opacity: .7; }

@keyframes sway {
  0%, 100% { rotate: -8deg; }
  50%      { rotate: 8deg; }
}

/* ---------- entrance: the hero text rises once ---------- */
@keyframes rise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}
.hero__text   { animation: rise .9s .15s ease-out both; }
/* ---------- responsive ---------- */
@media (min-width: 1360px) {
  .pillar { display: flex; }
  /* the rope is tied at the center of each shaft, below the capital */
  .garland {
    top: calc(var(--frame) + 150px);
    left: calc(var(--frame) + 22px + 55px);
    right: calc(var(--frame) + 22px + 55px);
  }
  .hero { padding-top: 290px; }
  /* the illustration tucks slightly behind each column */
  /* the garland is tied at the center of each shaft (it stays behind the column) */
  .site-footer__festoon {
    left: calc(22px + 55px - 7px);
    right: calc(22px + 55px - 7px);
  }
  .flower--side { display: none; }   /* the column's vine takes that place */
}


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


  .services__list { grid-template-columns: repeat(2, 1fr); max-width: 700px; }

  .about__grid { grid-template-columns: 1fr; text-align: center; max-width: 460px; }
  .about__copy .section__title { text-align: center; }
  .about__photo { grid-column: auto; grid-row: auto; order: -1; max-width: 260px; margin-inline: auto; }
  .about__copy { grid-column: auto; grid-row: auto; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
  .testimonials__list { grid-template-columns: 1fr; max-width: 460px; }

  /* vertical steps, with the line running down the side */
  .steps { grid-template-columns: 1fr; max-width: 460px; gap: 36px; }
  .steps::before {
    inset-inline: auto;
    right: 22px;
    top: 23px;
    bottom: 23px;
    width: 1.5px;
    height: auto;
    background: var(--gold);
    opacity: .6;
  }
  .step { padding-top: 0; padding-right: 72px; text-align: right; }
  .step::before { left: auto; right: 0; translate: none; }
  .step p { margin-inline: 0; }

  .closing__card { grid-template-columns: 1fr; }
  .closing__price {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(63, 110, 80, .45);
    margin-inline: 24px;
  }
  .flower--card { width: 100px; top: -44px; left: -30px; }

  .flower--side { display: none; }

  .wa-float { display: grid; }
  .site-footer__copy { margin-bottom: 72px; }   /* room for the floating button */
}

@media (max-width: 700px) {
  /* on narrow screens it is cropped (without distortion) centered on the woman */
  .site-footer__art { aspect-ratio: 16 / 10; object-position: 62% 40%; }
}

@media (max-width: 700px) {
  /* fewer and shorter strands so they don't cover the title */
  .garland__strand { width: 46px; left: calc(var(--t) * 100% - 23px); }
  .garland__cluster { width: 50px; left: calc(var(--t) * 100% - 25px); top: calc(4px + 320px * var(--t) * (1 - var(--t)) - 16px); }
  .garland__strand--alt,
  .garland__strand--v5,
  .garland__strand--v6 { display: none; }
  .hero { padding-top: 190px; }
  .legal,
  .blog,
  .post,
  .about--page { padding-top: 230px; }   /* shorter rope: it ends around 295px */
  .post-card:has(.post-card__cover) { grid-template-columns: 1fr; }
  .cloud--a,
  .cloud--c,
  .cloud--d,
  .cloud--e { display: none; }         /* no room beside the texts on narrow screens */
}

@media (max-width: 520px) {
  .services__list { grid-template-columns: 1fr; max-width: 420px; }
  /* on phones, the icon only */
  .music-toggle { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .music-toggle__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .site-header .btn--small { display: none; }
  .site-header { justify-content: center; }
  .hero__actions .btn,
  .closing__actions .btn { width: 100%; }

  .gallery__grid { grid-template-columns: 1fr; max-width: 340px; }
}

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