/* Wellness page — Sol Spa Tesori. Layout rhythm inspired by editorial spa pages;
   type, colour and buttons follow the existing Solaria Tesori styles. */

.tw {
  --tw-ink: #373635;
  --tw-text: rgba(55, 54, 53, .82);
  --tw-muted: rgba(55, 54, 53, .62);
  --tw-bg: #ece3de;
  --tw-surface: #f4f2ef;
  --tw-line: rgba(55, 54, 53, .18);
  --tw-gutter: clamp(16px, 4vw, 64px);
  --tw-section: clamp(64px, 8vw, 128px);
  background: var(--tw-bg);
  color: var(--tw-text);
  font-family: Montserrat, sans-serif;
}
.tw *, .tw *::before, .tw *::after { box-sizing: border-box; }
.tw figure { margin: 0; }
.tw img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tw p { margin: 0 0 1em; font-size: 16px; line-height: 1.75; }
.tw a { color: inherit; }
.tw-container { max-width: 1320px; margin: 0 auto; padding: 0 var(--tw-gutter); }

/* Type (site styles: Cormorant/Kepler display uppercase, Montserrat body) */
.tw-h1, .tw-h2, .tw-h3 { font-family: KeplerStdDisplay, "Cormorant Garamond", Georgia, serif; font-weight: 300; color: var(--tw-ink); text-transform: uppercase; margin: 0; }
.tw-h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: .01em; }
.tw-h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.tw-h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
.tw-eyebrow { font-size: 12px !important; letter-spacing: .18em; text-transform: uppercase; color: var(--tw-muted); margin-bottom: 14px !important; }
.tw-lead { font-size: clamp(17px, 1.4vw, 19px) !important; color: var(--tw-text); max-width: 32ch; margin-top: 20px !important; }

/* Buttons (match the site's dark VIEW MENU button; outline variant) */
.tw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tw-actions--center { justify-content: center; }
.tw-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--tw-ink); transition: background-color .2s ease, color .2s ease;
}
.tw-btn--solid { background: var(--tw-ink); color: #fff !important; }
.tw-btn--solid:hover { background: #1f1e1d; }
.tw-btn--outline { background: transparent; color: var(--tw-ink) !important; }
.tw-btn--outline:hover { background: var(--tw-ink); color: #fff !important; }
.tw-btn--sm { min-height: 42px; padding: 0 22px; }
.tw-link { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; color: var(--tw-ink) !important; }
.tw a:focus-visible, .tw summary:focus-visible { outline: 2px solid #b4232a; outline-offset: 3px; }

/* Hero: text column + large image */
.tw-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(86vh, 860px); }
.tw-hero__text { align-self: center; padding: var(--tw-section) var(--tw-gutter); max-width: 560px; margin-left: auto; width: 100%; }
.tw-hero__media { min-height: 420px; }

/* Intro + facts */
.tw-intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); padding-top: var(--tw-section); padding-bottom: var(--tw-section); }
.tw-intro__text p { font-size: clamp(17px, 1.3vw, 19px); max-width: 60ch; }
.tw-facts { margin: 0; border-top: 1px solid var(--tw-line); }
.tw-facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--tw-line); }
.tw-facts dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--tw-muted); padding-top: 3px; }
.tw-facts dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--tw-ink); text-transform: none !important; letter-spacing: 0; font-weight: 400; }
.tw-facts a { text-decoration: underline; text-underline-offset: 4px; }

/* Treatments: heading row + horizontally scrolling cards */
.tw-treatments { padding-bottom: var(--tw-section); }
.tw-treatments__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 32px; margin-bottom: 40px; }
.tw-treatments__head p { grid-column: 1; margin: 0; }
.tw-treatments__head .tw-link { grid-column: 2; grid-row: 1 / span 2; }
.tw-cards {
  list-style: none; margin: 0; padding: 0 var(--tw-gutter) 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((min(100vw, 1320px) - 2 * var(--tw-gutter) - 72px) / 4));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--tw-gutter); scrollbar-width: thin;
  max-width: 1320px; margin: 0 auto;
}
.tw-card { scroll-snap-align: start; display: flex; flex-direction: column; }
.tw-card img { aspect-ratio: 4 / 5; height: auto; margin-bottom: 20px; }
.tw-card .tw-h3 { margin-bottom: 8px; }
.tw-card__meta { font-size: 13px !important; letter-spacing: .06em; color: var(--tw-ink) !important; margin-bottom: 10px !important; }
.tw-card .tw-btn { margin-top: auto; align-self: flex-start; }
.tw-note { font-size: 13px !important; color: var(--tw-muted) !important; margin-top: 24px !important; }

/* Feature split: large image + text with accordion */
.tw-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--tw-surface); }
.tw-feature__media { min-height: 520px; }
.tw-feature__text { padding: var(--tw-section) var(--tw-gutter); align-self: center; max-width: 560px; }
.tw-feature__text .tw-h2 { margin-bottom: 20px; }
.tw-accordion { margin: 28px 0 32px; border-top: 1px solid var(--tw-line); }
.tw-accordion details { border-bottom: 1px solid var(--tw-line); }
.tw-accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 56px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--tw-ink);
}
.tw-accordion summary::-webkit-details-marker { display: none; }
.tw-accordion summary::after { content: "+"; font-size: 20px; font-weight: 300; transition: transform .2s ease; }
.tw-accordion details[open] summary::after { transform: rotate(45deg); }
.tw-accordion details p { padding-bottom: 8px; }
.tw-accordion a { text-decoration: underline; text-underline-offset: 4px; }

/* Gallery: one wide image + four portraits */
.tw-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: var(--tw-section); padding-bottom: var(--tw-section); height: clamp(520px, 62vw, 820px); }
.tw-gallery__wide { grid-row: 1 / span 2; }
.tw-gallery--3 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: minmax(0, 1fr); height: clamp(420px, 44vw, 640px); }
.tw-gallery--3 figure { grid-row: 1; }

/* Closing CTA */
.tw-cta { text-align: center; padding: var(--tw-section) var(--tw-gutter); border-top: 1px solid var(--tw-line); }
.tw-cta .tw-h2 { margin-bottom: 16px; }
.tw-cta .tw-actions { margin-bottom: 28px; }

/* Tablet & mobile */
@media (max-width: 849px) {
  .tw-hero, .tw-intro, .tw-feature { grid-template-columns: 1fr; }
  .tw-hero__text { padding-top: 48px; padding-bottom: 40px; margin: 0; max-width: none; }
  .tw-hero__media { min-height: 0; aspect-ratio: 4 / 3; }
  .tw-facts > div { grid-template-columns: 110px 1fr; }
  .tw-treatments__head { grid-template-columns: 1fr; }
  .tw-treatments__head .tw-link { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .tw-cards { grid-auto-columns: 78%; }
  .tw-feature__media { min-height: 0; aspect-ratio: 4 / 3; order: 0; }
  .tw-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .tw-gallery__wide { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .tw-gallery--3 { height: auto; }
  .tw-gallery--3 figure { grid-row: auto; }
  .tw-gallery figure:not(.tw-gallery__wide) { aspect-ratio: 2 / 3; }
  .tw-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .tw * { transition: none !important; }
}
