/* ---------------------------------------------------------------
   Lena Henna Art — shared stylesheet
   Palette drawn from Background.pdf: cream parchment, deep botanical
   green watercolour, antique gold linework.
---------------------------------------------------------------- */

:root {
  --cream:        #f8f4e6;
  --cream-bright: #fdfaf0;
  --panel:        rgba(253, 250, 240, 0.78);
  --ink:          #33423a;
  --ink-soft:     #55655c;
  --green:        #40594c;
  --green-deep:   #2e463c;
  --sage:         #7e9c8b;
  --gold:         #b8892c;
  --gold-bright:  #d9b04c;
  --gold-pale:    #e7ce8f;
  --hairline:     rgba(184, 137, 44, 0.35);
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body:    "Karla", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* The middleware toggles the `hidden` attribute to show/hide CMS elements
   (logo fallback text, contact buttons, photo placeholders). Several classes
   set their own `display` at the same specificity as the browser's default
   [hidden] rule, which silently wins the tie — this forces hidden to always
   win regardless of what else targets the element. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; background: var(--cream); }

body {
  /* Without this, a short page (e.g. Gallery with no photos yet) is shorter
     than the viewport, and the flat html background shows below it instead
     of the mandala tile continuing. min-height + the flex/main pairing below
     also pushes the footer to the bottom of the viewport on short pages. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  /* The seamless mandala tile: mirrored vertically so every joint is a
     reflection — repeats forever down the page without a visible seam. */
  background-image: url("../assets/bg-tile.webp");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
}
main { flex: 1 0 auto; }
footer { flex: none; }

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

a { color: var(--green-deep); }

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.12;
}

h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); }

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--green);
}

/* ---------- layout ---------- */

.wrap  { max-width: 66rem; margin: 0 auto; padding: 0 1.4rem; }
.narrow { max-width: 46rem; margin-left: auto; margin-right: auto; }
.medium { max-width: 54rem; margin-left: auto; margin-right: auto; }

section { padding: 5.5rem 0; }

.center { text-align: center; }

/* ---------- ornament divider ---------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.6rem auto;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: min(110px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ornament .star { width: 16px; height: 16px; fill: var(--gold); }

/* twinkling accent stars */
.star-twinkle { animation: twinkle 3.6s ease-in-out infinite; transform-origin: center; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

/* ---------- nav ---------- */

/* No background panel — the mandala background reads straight through.
   Legibility comes from a soft cream glow behind the text instead of a box,
   which holds up over both the cream centre and the green mandala edges. */
.nav {
  position: relative;
  z-index: 50;
  padding-bottom: 1.6rem;
}
/* Six equal columns, fixed order: Home | Services | Logo | Book Lena |
   Gallery | My Story. Each item centres in its own column — deterministic
   even spacing across the full width, no clustering. */
.nav-inner {
  max-width: 66rem;
  margin: 0 auto;
  padding: 1.6rem 1.4rem 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 0.6rem;
  text-shadow:
    0 0 1px var(--cream-bright),
    0 1px 3px rgba(253, 250, 240, 0.9),
    0 0 16px rgba(253, 250, 240, 0.75);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: center;
  text-shadow: inherit;
}
.brand-logo { height: 52px; width: auto; max-width: 210px; display: block; }
.brand-fallback { display: flex; align-items: center; gap: 0.55rem; }
.brand svg { width: 15px; height: 15px; fill: var(--gold); filter: drop-shadow(0 0 6px rgba(253, 250, 240, 0.85)); }
.nav-link {
  justify-self: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
  text-shadow: inherit;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-inner .btn--small { justify-self: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 1rem 2.3rem;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--green-deep);
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 137, 44, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--gold);
}
.btn--ghost:hover { background: var(--gold); color: #fff; }
.btn--small { padding: 0.75rem 1.3rem; font-size: 0.7rem; letter-spacing: 0.15em; white-space: nowrap; }

/* ---------- hero ---------- */

.hero {
  min-height: calc(88vh - 4rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 0 5rem;
}
.hero h1 { max-width: 17ch; margin: 0 auto 1.4rem; }
.hero .lede { max-width: 42ch; margin: 0 auto 2.4rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- trust strip ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
}
.trust-item {
  background: var(--panel);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.5rem 1.3rem;
  text-align: center;
}
.trust-item svg {
  width: 30px;
  height: 30px;
  margin: 0 auto 0.8rem;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.25rem;
}
.trust-item span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.card {
  background: var(--panel);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 34px rgba(46, 70, 60, 0.07);
  transition: transform 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(46, 70, 60, 0.13);
}
.card .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--gold);
  margin: 0.3rem 0 1rem;
}
.card p { flex-grow: 0; }
.card .btn { align-self: flex-start; margin-top: auto; }

.know {
  list-style: none;
  margin: 1.3rem 0 1.7rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.know li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}
.know li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.know strong { color: var(--ink); font-weight: 700; }

/* ---------- philosophy / numbered columns ---------- */

.philosophy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.philosophy > div {
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 2.2rem 1.9rem;
}
.philosophy .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.philosophy h3 { margin-bottom: 0.7rem; }

/* ---------- prose (about page) ---------- */

.prose p { margin-bottom: 1.35rem; }
.prose .quote { display: block; margin: 2.4rem 0; text-align: center; }

/* ---------- credentials ---------- */

.creds {
  background: var(--panel);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 2.2rem 2rem;
  margin: 2.5rem 0;
}
.creds h3 { margin-bottom: 1.1rem; }
.creds ul { list-style: none; }
.creds li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.creds li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(150deg, var(--green-deep), var(--green));
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--cream);
  box-shadow: 0 24px 60px rgba(46, 70, 60, 0.28);
}
.cta-band h2 { color: var(--cream-bright); }
.cta-band .quote { color: var(--gold-pale); }
.cta-band p { max-width: 52ch; margin: 1.2rem auto 2rem; color: rgba(248, 244, 230, 0.85); }
.cta-band .btn { background: var(--gold); border-color: var(--gold); color: #fff; }
.cta-band .btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.cta-band .note { font-size: 0.85rem; color: rgba(248, 244, 230, 0.55); margin-top: 1.4rem; }

/* ---------- before-you-book note ---------- */

.notice {
  border-left: 3px solid var(--gold);
  background: var(--panel);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 0 12px 12px 0;
  padding: 1.8rem 2rem;
}
.notice .fine { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- contact / socials ---------- */

.btn svg {
  display: inline-block;
  width: 17px;
  height: 17px;
  fill: currentColor;
  vertical-align: -3px;
  margin-right: 0.45rem;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold-pale);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}
.socials a svg { width: 20px; height: 20px; fill: var(--gold-pale); }
.socials a:hover { background: var(--gold); transform: translateY(-2px); }
.socials a:hover svg { fill: #fff; }

/* ---------- fixed photo slots (services cards, about page) ---------- */

.photo-slot {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(46, 70, 60, 0.07);
  margin-bottom: 1.5rem;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.photo-slot.r-16-10 { aspect-ratio: 16 / 10; }
.photo-slot.r-21-9 { aspect-ratio: 21 / 9; }

/* ---------- gallery ---------- */

/* Every row is the same height; orientation controls width instead (how
   many of the 6 columns a tile spans) — a justified-gallery layout rather
   than each photo keeping its own aspect ratio. dense fill avoids gaps left
   when a wide tile doesn't fit the rest of a row. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  height: 100%;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(46, 70, 60, 0.08);
  grid-column: span 3; /* fallback if no orientation class matches */
}
.gallery-item.o-portrait { grid-column: span 2; }
.gallery-item.o-square { grid-column: span 3; }
.gallery-item.o-landscape { grid-column: span 4; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Caption overlays the photo instead of adding height below it, since the
   row height is fixed. */
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 0.7rem;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
.gallery-item figcaption span { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item, .gallery-ph { grid-column: span 2 !important; }
}

/* ---------- gallery placeholders ---------- */

.gallery-ph {
  grid-column: span 3;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

/* No background — same reasoning as .nav: the mandala tile should read all
   the way to the bottom of the page, legibility comes from the glow. */
footer {
  margin-top: 5rem;
  padding: 3.5rem 0 3rem;
  text-align: center;
  text-shadow:
    0 0 1px var(--cream-bright),
    0 1px 3px rgba(253, 250, 240, 0.9),
    0 0 16px rgba(253, 250, 240, 0.75);
}
footer .quote { color: var(--green); font-size: 1.35rem; margin-bottom: 1.6rem; }
footer nav { display: flex; justify-content: center; gap: 1.8rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
footer nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
footer nav a:hover { color: var(--gold); }
footer .fine { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .star-twinkle { animation: none; }
  html { scroll-behavior: auto; }
}

/* On phones the tile's green edges reach much further into the content
   column — panel any marked container so text always sits on cream. */
@media (max-width: 900px) {
  /* A plain full-width tint band, not a floating card — no border, no
     radius, edge-to-edge. A rounded bordered box only reads well with
     margin around it; at full width that just looks like a stuck-on
     sticker, so we break it out to the true viewport edge instead. */
  .mobile-panel {
    background: rgba(255, 253, 246, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 2rem 1.4rem;
    max-width: none;
    width: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  section { padding: 3.8rem 0; }
  /* Minimal mobile header: logo + Book Lena only, the 4 text links drop. */
  .nav-inner { grid-template-columns: auto 1fr; justify-content: space-between; }
  .nav-link { display: none; }
  .nav-inner .btn--small { justify-self: end; }
  .brand-logo { height: 40px; }
  .btn--small { padding: 0.55rem 1.1rem; }
  .hero { min-height: 70vh; }
}
