/* ==========================================================
   Solis Wellness — style.css
   1. Tokens  2. Base  3. Utilities  4. Buttons  5. Header
   6. Hero  7. Sections  8. Programs  9. Schedule  10. Benefits
   11. Membership  12. FAQ  13. Booking  14. Footer
   15. Motion & fallback  16. Responsive
   ========================================================== */

/* 1. Tokens ----------------------------------------------- */
:root {
  --c-bg: #fbf8f3;
  --c-sand: #f4efe6;
  --c-sage: #5f7a61;
  --c-sage-dark: #41574a;
  --c-sage-light: #e3ebe1;
  --c-sun: #e0a458;
  --c-ink: #2b2a26;
  --c-muted: #6f6c64;
  --c-line: #e4ddd0;

  --f-display: "DM Serif Display", Georgia, serif;
  --f-body: "Nunito Sans", system-ui, sans-serif;

  --radius: 24px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 76px;
  --shadow: 0 20px 50px rgba(65, 87, 74, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--f-body); font-size: 16.5px; line-height: 1.7; color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--f-display); font-weight: 400; }
h1 em, h2 em { color: var(--c-sage); }
h3 { font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--c-sun); outline-offset: 3px; }

/* 3. Utilities -------------------------------------------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--c-sage-dark); color: #fff; border-radius: 8px; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
.eyebrow { margin-bottom: 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-sage); }
.eyebrow-light { color: #f2c078; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }
.text-link { font-weight: 700; color: var(--c-sage-dark); text-decoration: none; }
.text-link span { display: inline-block; transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* 4. Buttons ---------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border: 1.5px solid transparent; border-radius: 999px; font: 700 0.95rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-sage); color: #fff; }
.btn-primary:hover { background: var(--c-sage-dark); box-shadow: 0 10px 24px rgba(65, 87, 74, 0.25); }
.btn-outline { border-color: var(--c-sage); color: var(--c-sage-dark); background: transparent; }
.btn-outline:hover { background: var(--c-sage); color: #fff; }
.btn-block { width: 100%; }

/* 5. Header ----------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 243, 0.88); backdrop-filter: blur(10px); transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--c-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 1.5rem var(--f-display); text-decoration: none; }
.logo em { font-style: italic; color: var(--c-sage); }
.logo-light em { color: #b9cdb8; }
.logo-sun { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #f2c078 45%, var(--c-sage) 47%); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; gap: 30px; }
.nav-list a { font-weight: 600; text-decoration: none; color: var(--c-muted); transition: color 0.2s; }
.nav-list a:hover, .nav-list a.is-active { color: var(--c-sage-dark); }
.nav-cta { padding: 11px 22px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. Hero ------------------------------------------------- */
.hero { padding: 56px 0 100px; background: radial-gradient(circle at 85% 20%, rgba(224, 164, 88, 0.18), transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 1.5rem; font-size: clamp(2.8rem, 6vw, 4.8rem); }
.lead { max-width: 500px; font-size: 1.12rem; color: var(--c-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 1.5rem; }
.hero-offer { display: inline-block; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--c-sage-light); font-size: 0.92rem; color: var(--c-sage-dark); }

.hero-visual { position: relative; }
.arch { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); background: var(--c-sage-light); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; left: -32px; bottom: 48px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.float-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fbe9d0; color: var(--c-sun); font-size: 1.3rem; }
.float-title { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.float-text { margin: 0; font-weight: 700; }

/* 7. Sections --------------------------------------------- */
.section { padding: 104px 0; }
.section-sand { background: var(--c-sand); }
.section-sage { background: var(--c-sage-dark); color: #fff; }
.section-head { margin-bottom: 52px; }
.section-head h2, .benefit-grid h2, .booking-intro h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.section-sub { max-width: 560px; margin-top: 1rem; color: var(--c-muted); }

/* 8. Programs --------------------------------------------- */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.program-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(65, 87, 74, 0.06); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.program-media { aspect-ratio: 7 / 8; overflow: hidden; background: var(--c-sage-light); }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.program-card:hover .program-media img { transform: scale(1.05); }
.program-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.program-body h3 { font: 400 1.6rem var(--f-display); margin-bottom: 8px; }
.program-body p { flex: 1; color: var(--c-muted); font-size: 0.95rem; }

/* 9. Schedule --------------------------------------------- */
.type-filter { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.type-filter select { padding: 10px 36px 10px 14px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font: 600 0.95rem var(--f-body); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
.type-filter option { color: var(--c-ink); }

.schedule { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.day-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 24px; }
.day-tab { display: grid; gap: 2px; padding: 12px 6px; border: 0; border-radius: 16px; background: transparent; color: rgba(255, 255, 255, 0.75); font: 600 0.9rem var(--f-body); cursor: pointer; transition: background 0.2s, color 0.2s; }
.day-tab small { font-size: 0.72rem; font-weight: 400; opacity: 0.8; }
.day-tab:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.day-tab[aria-selected="true"] { background: #fff; color: var(--c-sage-dark); }

.class-list { display: grid; gap: 10px; }
.class-row { display: grid; grid-template-columns: 90px 1fr auto auto; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 16px; background: #fff; color: var(--c-ink); animation: fadeIn 0.35s var(--ease) both; }
.class-time { font: 400 1.4rem var(--f-display); color: var(--c-sage-dark); }
.class-name { margin: 0; font-weight: 700; }
.class-meta { margin: 0; font-size: 0.85rem; color: var(--c-muted); }
.level { padding: 5px 12px; border-radius: 999px; background: var(--c-sage-light); color: var(--c-sage-dark); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.class-row .btn { padding: 10px 18px; font-size: 0.85rem; }
.class-empty { padding: 28px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); text-align: center; }

/* 10. Benefits -------------------------------------------- */
.benefit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.benefit-grid h2 { margin-bottom: 2rem; }
.benefit-media { aspect-ratio: 9 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 999px 999px; background: var(--c-sand); }
.benefit-media img { width: 100%; height: 100%; object-fit: cover; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.benefits li { display: flex; gap: 16px; }
.b-icon { flex: 0 0 46px; display: grid; place-items: center; height: 46px; border-radius: 50%; background: var(--c-sage-light); color: var(--c-sage-dark); }
.b-icon svg { width: 22px; height: 22px; }
.benefits h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefits p { margin: 0; color: var(--c-muted); font-size: 0.94rem; }

/* 11. Membership ------------------------------------------ */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 30px; border-radius: var(--radius); background: #fff; }
.plan-featured { background: var(--c-sage-dark); color: #fff; box-shadow: var(--shadow); transform: translateY(-12px); }
.plan-tag { position: absolute; top: 22px; right: 22px; padding: 5px 12px; border-radius: 999px; background: var(--c-sun); color: var(--c-ink); font-size: 0.75rem; font-weight: 700; }
.plan h3 { font: 400 1.7rem var(--f-display); }
.plan-desc { margin: 4px 0 20px; color: var(--c-muted); }
.plan-featured .plan-desc { color: rgba(255, 255, 255, 0.7); }
.plan-price { margin-bottom: 24px; font-size: 1.9rem; font-weight: 700; }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--c-muted); }
.plan-featured .plan-price span { color: rgba(255, 255, 255, 0.7); }
.plan-list { flex: 1; display: grid; gap: 10px; align-content: start; margin-bottom: 30px; }
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-sun); }
.plan-featured .btn-primary { background: #fff; color: var(--c-sage-dark); }
.plan-featured .btn-primary:hover { background: var(--c-sand); }

/* 12. FAQ ------------------------------------------------- */
.faq-wrap { max-width: 800px; }
.accordion { display: grid; gap: 12px; }
.accordion details { border-radius: 18px; background: var(--c-sand); }
.accordion summary { position: relative; padding: 20px 60px 20px 24px; font-weight: 700; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-sage); border-bottom: 2px solid var(--c-sage); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion details p { padding: 0 24px 20px; color: var(--c-muted); }

/* 13. Booking --------------------------------------------- */
.booking-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.booking-intro h2 { margin-bottom: 1rem; }
.booking-intro > p { color: var(--c-muted); }
.info-list { display: grid; gap: 18px; margin: 2rem 0 0; }
.info-list dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-sage); }
.info-list dd { margin: 2px 0 0; }

.booking-form { display: grid; gap: 16px; padding: 36px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-form label:not(.check) { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 700; }
.booking-form input:not([type="checkbox"]), .booking-form select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-bg); color: var(--c-ink); font: 600 0.95rem var(--f-body); transition: border-color 0.2s, box-shadow 0.2s;
}
.booking-form input:focus, .booking-form select:focus { outline: none; border-color: var(--c-sage); box-shadow: 0 0 0 4px rgba(95, 122, 97, 0.15); }
.booking-form .is-invalid { border-color: #c0533c !important; }
.error { display: block; min-height: 1.1em; margin-top: 4px; font-size: 0.82rem; color: #b5452f; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--c-muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-sage); }
.form-success { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--c-sage-light); color: var(--c-sage-dark); font-weight: 700; text-align: center; }
.form-success:empty { display: none; }

/* 14. Footer ---------------------------------------------- */
.site-footer { padding: 44px 0; background: var(--c-ink); color: rgba(255, 255, 255, 0.75); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.logo-light { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #f2c078; }
.copyright { margin: 0; font-size: 0.88rem; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; padding: 14px 22px; border-radius: 999px; background: var(--c-sage-dark); color: #fff; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 15. Motion & fallback ----------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.plan-featured.reveal.is-visible { transform: translateY(-12px); }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.img-fallback { background: radial-gradient(circle at 70% 25%, #f2c078 0 14%, transparent 15%), linear-gradient(160deg, var(--c-sage-light), #b9cdb8); }
.img-fallback > img { visibility: hidden; }

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

/* 16. Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-featured, .plan-featured.reveal.is-visible { transform: none; order: -1; }
  .benefits { grid-template-columns: 1fr; }
  .benefit-grid, .booking-grid { gap: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px; background: var(--c-bg); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06); max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s; }
  .nav.is-open { max-height: 420px; padding: 8px 16px 20px; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .nav-cta { margin-top: 16px; }

  .hero-grid, .benefit-grid, .booking-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .float-card { left: 12px; }
  .benefit-media { aspect-ratio: 16 / 10; border-radius: var(--radius); }
  .day-tabs { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .day-tab { flex: 0 0 72px; }
  .class-row { grid-template-columns: 70px 1fr; gap: 6px 16px; }
  .class-row .level { justify-self: start; grid-column: 2; }
  .class-row .btn { grid-column: 1 / -1; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .program-grid { grid-template-columns: 1fr; }
  .program-media { aspect-ratio: 16 / 10; }
  .schedule { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .booking-form { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
