/* ==================================================================
   The Suite Life Ātelier — custom styles (works with tailwind.css)
   Palette from the logo: wine #8E1116 · ink #1E1719 · linen #FAF4F1
   ================================================================== */

:root {
  --wine: #8E1116;
  --wine-dark: #6E0C10;
  --ink: #1E1719;
  --linen: #FAF4F1;
  --tint: #F3E7E3;
  --card: #FFFFFF;
  --line: rgba(142, 17, 22, .14);
  --text: var(--ink);
  --muted: rgba(30, 23, 25, .72);
  --header-h: 76px;
  --radius: 1.25rem;
  --a11y-scale: 1;
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --header-h: 92px; } }

html.dark {
  --tint: #1C1315;
  --card: #221719;
  --line: rgba(255, 255, 255, .1);
  --text: #FFF9F6;
  --muted: rgba(255, 249, 246, .72);
  color-scheme: dark;
}

html { font-size: calc(100% * var(--a11y-scale)); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-weight: 400; line-height: 1.6; }
h1, h2, h3, .font-display { font-family: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
img { max-width: 100%; height: auto; }
::selection { background: var(--wine); color: #fff; }

/* ---------- Focus & skip link (WCAG 2.4.1 / 2.4.7) ---------- */
:focus-visible { outline: 3px solid #D9475A; outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--wine); color: #fff; padding: .75rem 1.1rem; border-radius: .6rem; font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header (transparent over banner, solid on scroll) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  transition: background-color .35s ease, color .35s ease, border-color .35s, box-shadow .35s;
}
.site-header.is-solid {
  background: rgba(250, 244, 241, .94); color: var(--ink);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(30, 23, 25, .35);
}
html.dark .site-header.is-solid { background: rgba(21, 14, 16, .94); color: #FFF9F6; }
.header-phone:hover { opacity: .8; }

.logo { height: 54px; width: auto; display: block; }
@media (min-width: 1024px) { .logo { height: 70px; } }
/* transparent header → ivory logo; solid header → logo for the current theme */
.logo-light { display: none; }
.logo-dark { display: block; }
.site-header.is-solid .logo-light { display: block; }
.site-header.is-solid .logo-dark { display: none; }
html.dark .site-header.is-solid .logo-light { display: none; }
html.dark .site-header.is-solid .logo-dark { display: block; }

.nav-link {
  position: relative; display: inline-block; padding: .55rem .8rem; font-size: .95rem; font-weight: 500;
  color: inherit; border-radius: 999px; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-header.is-solid .nav-link::after { background: var(--wine); }
html.dark .site-header.is-solid .nav-link::after { background: #F08A94; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #fff; }
.site-header.is-solid .nav-link.is-active { color: var(--wine); }
html.dark .site-header.is-solid .nav-link.is-active { color: #F5A3AA; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45); color: inherit;
}
.site-header.is-solid .menu-toggle { border-color: var(--line); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--linen); color: var(--ink); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
html.dark .mobile-nav { background: #150E10; color: #FFF9F6; }
.mobile-link { display: block; padding: .85rem 1.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-link.is-active { color: var(--wine); font-weight: 600; }
html.dark .mobile-link.is-active { color: #F5A3AA; }

/* Keep Tailwind's responsive display utilities in charge of these components */
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.btn.hidden { display: none; }
@media (min-width: 640px) { .btn.sm\:inline-flex { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; line-height: 1.2; border: 1.5px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
  min-height: 44px; /* touch target */
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .85rem 1.55rem; font-size: 1rem; }
.btn-wine { background: var(--wine); color: #fff; box-shadow: 0 10px 24px -12px rgba(142, 17, 22, .7); }
.btn-wine:hover { background: var(--wine-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #F6E9E6; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }
html.dark .btn-ghost:hover { border-color: #F5A3AA; color: #F5A3AA; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--wine);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; width: fit-content;
}
.link-arrow::after { content: ""; width: 14px; height: 1.5px; background: currentColor; transition: width .25s; }
.link-arrow:hover::after { width: 24px; }
html.dark .link-arrow { color: #F5A3AA; }
.link-arrow.text-white { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  height: 100vh; height: 100svh;
  min-height: 520px;
}
.hero-slides, .hero-overlay { position: absolute; inset: 0; }
.hero-slides { z-index: -3; background: #1E1719; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { z-index: -2; background: rgba(0, 0, 0, .5); } /* solid 50% black — no gradient */
.petals-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.hero .petals-canvas { z-index: 1; }
.page-hero .petals-canvas { z-index: 0; }
.site-footer { position: relative; isolation: isolate; overflow: hidden; }

/* Slide progress bars + pause (bottom-left) and scroll cue (bottom-centre) */
.hero-controls { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.25rem; z-index: 2;
  width: 100%; max-width: 80rem; padding-inline: 1rem; display: flex; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .hero-controls { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .hero-controls { padding-inline: 2rem; } }
.hero-progress { display: flex; gap: .5rem; }
.hero-bar { width: 44px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero-bar i { display: block; height: 100%; width: 0; background: #F5A3AA; }
.hero-bar.is-done i { width: 100%; }
.hero-bar.is-active i { animation: barFill 6s linear forwards; }
.hero.is-paused .hero-bar.is-active i { animation-play-state: paused; }
@keyframes barFill { to { width: 100%; } }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .75); border-radius: 14px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 768px) { .scroll-cue { display: block; } }
.hero-inner { position: relative; padding-block: calc(var(--header-h) + 1rem) 3.5rem; }

.hero-kicker { font-family: "Bodoni Moda", Georgia, serif; font-style: italic; font-size: 1.05rem; color: #F8CDD1; }
.hero-title {
  margin-top: .6rem; max-width: 17ch; color: #fff; line-height: 1.08;
  font-size: clamp(1.9rem, min(4.3vw, 6.6vh), 3.4rem);
}
.hero-lead { margin-top: 1rem; max-width: 52ch; font-size: clamp(1rem, 1.05rem + .2vw, 1.15rem); color: rgba(255, 255, 255, .92); }

[data-rise] { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
[data-rise]:nth-child(2) { animation-delay: .12s; }
[data-rise]:nth-child(3) { animation-delay: .24s; }
[data-rise]:nth-child(4) { animation-delay: .36s; }
[data-rise]:nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-card { color: #fff; perspective: 900px; justify-self: end; width: 100%; max-width: 330px; }
.hero-card .tilt-inner {
  padding: 1.5rem; border-radius: var(--radius);
  background: rgba(30, 23, 25, .55); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  animation: rise 1s .5s cubic-bezier(.2, .7, .2, 1) both;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #E9A23B; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(233, 162, 59, .25); }
.status-dot.is-open { background: #4CC38A; box-shadow: 0 0 0 4px rgba(76, 195, 138, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(76, 195, 138, 0); } }

.hero-pause, .strip-pause {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 500;
  padding: .45rem .85rem; border-radius: 999px; min-height: 32px;
  background: rgba(0, 0, 0, .45); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
}
.hero-pause { position: relative; }
.hero-pause .i-play, .strip-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-play, .strip-pause[aria-pressed="true"] .i-play { display: inline; }
.hero-pause[aria-pressed="true"] .i-pause, .strip-pause[aria-pressed="true"] .i-pause { display: none; }

/* ---------- 3D tilt (light) ---------- */
.tilt { perspective: 900px; }
.tilt-inner { transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .7, .2, 1); will-change: transform; }

/* ---------- Ribbon marquee ---------- */
.ribbon { background: var(--wine); color: #fff; overflow: hidden; }
.ribbon-track, .filmstrip-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ribbon-list { display: flex; flex-shrink: 0; }
.ribbon-list li { display: inline-flex; align-items: center; gap: .65rem; padding: .85rem 1.4rem; font-size: .98rem; white-space: nowrap; font-family: "Bodoni Moda", Georgia, serif; font-style: italic; }
.ribbon:hover .ribbon-track, .filmstrip:hover .filmstrip-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.is-paused [data-marquee], [data-marquee].is-paused { animation-play-state: paused !important; }

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section-compact { padding-block: 3rem; }
@media (min-width: 1024px) { .section { padding-block: 5rem; } .section-compact { padding-block: 3.5rem; } }
.section-tint { background: var(--tint); }
.section-ink { background: #1E1719; color: #FFF9F6; }
.section-title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.15; color: var(--text); }
.section-ink .section-title { color: #fff; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* Arch frame — echoes a salon mirror */
.arch-frame { position: relative; }
.arch-frame::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1.5px solid var(--wine);
  border-radius: 999px 999px var(--radius) var(--radius); z-index: -1;
}
html.dark .arch-frame::before { border-color: #C24850; }
.arch-img { width: 100%; aspect-ratio: 750 / 735; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); }
.welcome-badge {
  position: absolute; right: -.5rem; bottom: 1.5rem; display: flex; align-items: center; gap: .6rem;
  max-width: 220px; padding: .8rem 1rem; border-radius: 1rem; font-size: .85rem; line-height: 1.35;
  background: var(--card); color: var(--text); box-shadow: 0 18px 40px -18px rgba(30, 23, 25, .45);
  border: 1px solid var(--line);
}
.welcome-badge svg { color: var(--wine); }
html.dark .welcome-badge svg { color: #F5A3AA; }

.value-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: rgba(142, 17, 22, .09); color: var(--wine);
}
html.dark .value-icon { background: rgba(245, 163, 170, .12); color: #F5A3AA; }

/* ---------- Home services: expanding drape panels ---------- */
.drape { display: flex; gap: 10px; height: clamp(440px, 64vh, 560px); }
.drape-item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  border-radius: 1.1rem; background: #1E1719; color: #fff;
  transition: flex-grow .75s cubic-bezier(.2, .7, .2, 1);
}
.drape-item.is-open { flex-grow: 7.5; }
.drape-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.12); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.drape-item.is-open .drape-img { transform: scale(1); }
.drape-shade { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); }
.drape-tab {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: .9rem; padding: 1.1rem .5rem; color: #fff; text-align: left; width: 100%;
}
.drape-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(142, 17, 22, .85); flex-shrink: 0; }
.drape-label {
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-family: "Bodoni Moda", Georgia, serif; font-size: 1.05rem; letter-spacing: .01em;
}
.drape-item.is-open .drape-tab { inset: 1rem auto auto 1rem; width: auto; padding: 0; pointer-events: none; }
.drape-item.is-open .drape-label { display: none; }
.drape-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem 2rem;
  animation: drapeIn .7s .25s cubic-bezier(.2, .7, .2, 1) both;
}
.drape-body[hidden] { display: none; }
.drape-chip { font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
@keyframes drapeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .drape { flex-direction: column; height: auto; gap: 8px; }
  .drape-item { flex: none; height: 64px; transition: height .6s cubic-bezier(.2, .7, .2, 1); }
  .drape-item.is-open { height: 470px; }
  .drape-tab { flex-direction: row; justify-content: flex-start; padding: 0 1rem; }
  .drape-label { writing-mode: horizontal-tb; transform: none; white-space: normal; }
  .drape-body { padding: 1.25rem; }
}
@media (max-width: 480px) { .drape-item.is-open { height: 540px; } }

/* ---------- Lifestyle: 3D photo deck ---------- */
.deck { position: relative; height: 360px; perspective: 1100px; display: grid; place-items: center; }
.deck-card {
  position: absolute; width: 226px; padding: 10px 10px 14px; margin: 0;
  background: #fff; border-radius: .9rem; box-shadow: 0 30px 50px -28px rgba(30, 23, 25, .55);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .6s, filter .6s; transform-style: preserve-3d;
}
html.dark .deck-card { background: #2a1d20; }
.deck-card img { display: block; width: 206px; height: 206px; object-fit: cover; border-radius: .55rem; }
.deck-card figcaption { margin-top: .6rem; text-align: center; font-family: "Bodoni Moda", Georgia, serif; font-size: 1.05rem; color: var(--ink); }
html.dark .deck-card figcaption { color: #FFF9F6; }
.deck-card[data-pos="0"] { z-index: 3; transform: translate3d(0, 0, 60px) rotateY(-8deg) rotateZ(-2deg); }
.deck-card[data-pos="1"] { z-index: 2; transform: translate3d(118px, -14px, 0) rotateY(-18deg) rotateZ(7deg) scale(.9); filter: brightness(.92); }
.deck-card[data-pos="2"] { z-index: 1; transform: translate3d(-118px, 12px, -30px) rotateY(14deg) rotateZ(-9deg) scale(.86); filter: brightness(.86); }
.deck::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 999px 999px 1.5rem 1.5rem;
  border: 1.5px solid var(--wine); opacity: .35; transform: translateY(6px);
}
@media (max-width: 480px) {
  .deck { height: 320px; }
  .deck-card[data-pos="1"] { transform: translate3d(70px, -12px, 0) rotateY(-18deg) rotateZ(7deg) scale(.82); }
  .deck-card[data-pos="2"] { transform: translate3d(-70px, 10px, -30px) rotateY(14deg) rotateZ(-9deg) scale(.78); }
}

.life-list { display: grid; gap: .6rem; }
.life-row {
  display: flex; align-items: center; gap: 1rem; width: 100%; padding: .8rem 1rem .8rem .8rem; border-radius: 1rem;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.life-row:hover { transform: translateX(4px); }
.life-row.is-active { border-color: var(--wine); box-shadow: inset 4px 0 0 var(--wine); }
html.dark .life-row.is-active { border-color: #C24850; box-shadow: inset 4px 0 0 #C24850; }
.life-thumb { width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 999px 999px .6rem .6rem; }
.life-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Filmstrip (original 206 px photos shown at ≤ 180 px — stays sharp) ---------- */
.filmstrip { display: grid; gap: 14px; overflow: hidden; }
.filmstrip-track { animation-duration: 70s; }
.filmstrip-track.is-reverse { animation-direction: reverse; }
.filmstrip-list { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; }
.filmstrip-list img { width: 168px; height: 168px; object-fit: cover; border-radius: .9rem; display: block; }
@media (min-width: 1024px) { .filmstrip-list img { width: 180px; height: 180px; } }

/* ---------- Team ---------- */
.team-card {
  padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(30, 23, 25, .5); }
.monogram {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--wine); color: #fff; font-family: "Bodoni Moda", Georgia, serif; font-size: 1.35rem;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25);
}
.monogram-lg { width: 84px; height: 84px; font-size: 1.75rem; flex-shrink: 0; }
.team-row { display: flex; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tag { font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(142, 17, 22, .08); color: var(--wine); }
html.dark .tag { background: rgba(245, 163, 170, .12); color: #F5A3AA; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); z-index: -1; }
.cta-box { padding: 1.75rem; border-radius: var(--radius); background: rgba(30, 23, 25, .55); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.cta-slim { background: var(--wine); }

/* ---------- Map ---------- */
.map-wrap { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
html.dark .map-wrap iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
.map-wide iframe { min-height: 360px; }

/* ---------- Inner page hero (compact) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 2.25rem) 0 2.75rem; min-height: 340px; display: flex; align-items: center; }
@media (min-width: 1024px) { .page-hero { min-height: 390px; } }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; animation: slowZoom 14s ease-out both; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); z-index: -1; }
.page-hero > div { width: 100%; }
@keyframes slowZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Services page ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; font-size: .88rem;
  font-weight: 500; border: 1px solid var(--line); background: var(--card); color: var(--text); white-space: nowrap;
  min-height: 40px; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--wine); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--wine); color: #fff; border-color: var(--wine); }
.notice {
  display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: 1rem;
  background: rgba(142, 17, 22, .07); border: 1px solid var(--line); color: var(--text); font-size: .95rem;
}
.notice svg { color: var(--wine); margin-top: .15rem; }
html.dark .notice svg { color: #F5A3AA; }
/* Services page: sticky category index + card grid */
.svc-index { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; z-index: 5; min-width: 0; }
.svc-index-list { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
@media (min-width: 1024px) { .svc-index-list { flex-direction: column; gap: .25rem; margin-top: .75rem; border-left: 1px solid var(--line); overflow: visible; } }
.svc-index-link {
  display: flex; align-items: center; gap: .55rem; white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--text);
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); min-height: 40px;
  transition: color .25s, background-color .25s, border-color .25s;
}
@media (min-width: 1024px) {
  .svc-index-link { white-space: normal; border: 0; border-radius: 0; background: none; margin-left: -1px; border-left: 2px solid transparent; padding: .45rem .9rem; }
  .svc-index-link:hover { color: var(--wine); }
  .svc-index-link.is-active { border-left-color: var(--wine); color: var(--wine); background: rgba(142, 17, 22, .06); }
  html.dark .svc-index-link.is-active, html.dark .svc-index-link:hover { color: #F5A3AA; border-left-color: #F5A3AA; }
}
@media (max-width: 1023px) {
  .svc-index { top: var(--header-h); margin-inline: -1rem; padding: .6rem 1rem; background: var(--linen); border-bottom: 1px solid var(--line); }
  html.dark .svc-index { background: #150E10; }
  .svc-index-link.is-active { background: var(--wine); color: #fff; border-color: var(--wine); }
}
.svc-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 80px); transition: transform .35s, box-shadow .35s;
}
@media (min-width: 1024px) { .svc-card { scroll-margin-top: calc(var(--header-h) + 20px); } }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(30, 23, 25, .55); }
.svc-card-head { position: relative; height: 170px; overflow: hidden; isolation: isolate; }
.svc-card-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.svc-card:hover .svc-card-head img { transform: scale(1.06); }
.svc-card-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); z-index: -1; }
.svc-card-title { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.svc-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff; flex-shrink: 0; }
.svc-card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.svc-card-body .link-arrow { margin-top: auto; padding-top: 1rem; border-bottom: 0; }

/* ---------- About ---------- */
.prose-sla p { margin-top: 1rem; line-height: 1.8; color: var(--muted); font-size: 1.05rem; max-width: 68ch; }
.prose-sla p:first-child { margin-top: 0; color: var(--text); font-size: 1.15rem; }
.promise-card { padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 196px)); justify-content: center; } }
.gallery-item[hidden] { display: none; }
.gallery-item figure { position: relative; overflow: hidden; border-radius: 1rem; background: var(--card); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-item figcaption {
  position: absolute; left: .5rem; bottom: .5rem; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem;
  background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }

/* ---------- Contact & form ---------- */
.contact-card, .form-card { padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
@media (min-width: 1024px) { .form-card { padding: 2rem; } }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .95rem; border-radius: .75rem; font: inherit; font-size: 1rem; min-height: 46px;
  background: var(--linen); color: var(--text); border: 1.5px solid rgba(30, 23, 25, .18); transition: border-color .2s, box-shadow .2s;
}
html.dark .field input, html.dark .field select, html.dark .field textarea { background: #150E10; border-color: rgba(255, 255, 255, .2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(142, 17, 22, .18); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.req { color: var(--wine); }
html.dark .req { color: #F5A3AA; }
.field-hint { font-size: .8rem; margin-top: .3rem; color: var(--muted); }
.field-error { font-size: .85rem; margin-top: .35rem; color: #B3261E; font-weight: 500; }
html.dark .field-error { color: #FF9C94; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: .9rem; font-size: .95rem; font-weight: 500; }
.form-status.is-success { background: #E7F6EE; color: #11603B; border: 1px solid #A7DDBF; }
.form-status.is-error { background: #FDECEA; color: #8C1D18; border: 1px solid #F3B8B3; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
[data-submit][disabled] { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: #1E1719; color: #FFF9F6; }
.footer-title { font-family: "Bodoni Moda", Georgia, serif; font-size: 1.1rem; margin-bottom: 1rem; color: #fff; }
.footer-link { color: rgba(255, 249, 246, .85); transition: color .2s; }
.footer-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #F5A3AA; flex-shrink: 0; }

/* ---------- Floating controls (theme + ADA) — bottom-left, clear of Tawk.to ---------- */
.float-controls { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.float-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); transition: transform .25s;
}
.float-btn:hover { transform: scale(1.07); }
.float-btn-main { width: 56px; height: 56px; background: var(--wine); color: #fff; border-color: var(--wine); }
.float-btn .icon-sun { display: none; }
html.dark .float-btn .icon-sun { display: block; }
html.dark .float-btn .icon-moon { display: none; }

.a11y-panel {
  position: fixed; left: 1rem; bottom: 8.6rem; z-index: 61; width: min(320px, calc(100vw - 2rem));
  max-height: calc(100vh - 10rem); overflow-y: auto;
  padding: 1.25rem; border-radius: var(--radius); background: var(--card); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  animation: panelIn .35s ease;
}
.a11y-panel[hidden] { display: none; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.icon-btn:hover { background: rgba(142, 17, 22, .08); }
.a11y-step { display: inline-flex; align-items: center; gap: 2px; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; min-height: 40px; }
.a11y-output { min-width: 3.5rem; text-align: center; font-weight: 600; }
.a11y-opt {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 100%; padding: .75rem .5rem;
  border-radius: .9rem; border: 1px solid var(--line); font-size: .8rem; font-weight: 500; text-align: center; min-height: 72px;
}
.a11y-opt[aria-pressed="true"] { background: var(--wine); color: #fff; border-color: var(--wine); }

.to-top {
  position: fixed; right: 1rem; bottom: 6.2rem; z-index: 55; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: #fff;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ==================================================================
   Accessibility modes (toggled from the ADA panel)
   ================================================================== */
html.a11y-contrast { --line: #000; --muted: #000; --text: #000; --card: #fff; --tint: #fff; }
html.a11y-contrast body { background: #fff !important; color: #000 !important; }
html.a11y-contrast.dark { --line: #fff; --muted: #fff; --text: #fff; --card: #000; --tint: #000; }
html.a11y-contrast.dark body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .hero-overlay, html.a11y-contrast .page-hero-overlay, html.a11y-contrast .cta-overlay { background: rgba(0, 0, 0, .78); }
html.a11y-contrast [class*="text-ink/"], html.a11y-contrast [class*="text-porcelain/"] { color: inherit !important; }

html.a11y-links a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-links a { outline: 2px dashed #E9A23B; outline-offset: 2px; }

html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable .font-display,
html.a11y-readable .hero-kicker, html.a11y-readable .ribbon-list li {
  font-family: Verdana, Tahoma, Arial, sans-serif !important; font-style: normal !important; letter-spacing: .01em;
}

html.a11y-spacing body { letter-spacing: .06em; word-spacing: .16em; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 1.95 !important; }

html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 3l15 7-7 2-2 7z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 3, auto !important;
}

/* Stop motion: user choice OR system preference */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.a11y-motion [data-marquee] { animation: none !important; }
html.a11y-motion .petals-canvas { display: none; }
html.a11y-motion [data-reveal], html.a11y-motion [data-rise] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-marquee] { animation: none !important; }
  [data-reveal], [data-rise] { opacity: 1 !important; transform: none !important; }
}

/* Windows high-contrast */
@media (forced-colors: active) {
  .btn, .chip, .menu-tab, .float-btn { border: 2px solid ButtonText; }
}

@media print {
  .site-header, .float-controls, .a11y-panel, .to-top, .ribbon, .petals-canvas, .hero-controls, .scroll-cue { display: none !important; }
}
