/* ============================================================
   ÁGNES KOZMETIKA — Master Stylesheet
   
   Structure:
     1.  CSS Custom Properties (Design Tokens)
     2.  Reset & Base Styles
     3.  Utility Classes
     4.  Buttons
     5.  Header & Navigation
     6.  Hero Section
     7.  Homepage Sections (Gallery, Services List, Contact)
     8.  Page Layout (Subpages)
     9.  Contact Page
     10. About (Rólam) Page
     11. Pricing Table
     12. Treatment Cards (Arckezelések)
     13. Fascia / Special Treatment Pages
     14. Footer
     15. Lightbox
     16. Booking Widget (.bw-)
     17. Responsive (ALL @media queries — never put them above!)
   ============================================================ */


/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Dancing Script', cursive;

  /* Font Scale — single source of truth */
  --fs-xs:   0.8rem;    /* 12.8px — tiny captions, badges */
  --fs-sm:   0.85rem;   /* 13.6px — nav links, meta, small labels */
  --fs-base: 1rem;      /* 16px   — body text */
  --fs-md:   1.1rem;    /* 17.6px — emphasized body, prices */
  --fs-lg:   1.2rem;    /* 19.2px — lead text, h4-level */
  --fs-xl:   1.3rem;    /* 20.8px — h3, subheadings */
  --fs-2xl:  1.5rem;    /* 24px   — large subheadings */
  --fs-3xl:  1.8rem;    /* 28.8px — page section headings */
  --fs-4xl:  2rem;      /* 32px   — page titles */
  --fs-5xl:  2.2rem;    /* 35.2px — feature headings */
  --fs-6xl:  2.5rem;    /* 40px   — main h2 */
  --fs-7xl:  3rem;      /* 48px   — hero h1 */

  /* Brand Colors — Forest Green & Cream */
  --accent: #225941;
  --accent-hover: #1a4633;
  --accent-light: #e8f0ed;
  --accent-shadow: rgba(34, 89, 65, 0.3);
  --accent-warm: #C9A87C;
  --accent-warm-light: #e8dbc9;

  /* Action Buttons — premium black */
  --btn-primary: #222;
  --btn-primary-hover: #444;

  /* Text Colors */
  --text-dark: #225941;
  --text-main: #3d3d3d;
  --text-muted: #4a5a54;
  --text-light: #5a6a64;
  --text-lighter: #7a8a84;
  --text-on-accent: #ffffff;

  /* Background Colors */
  --bg-body: #ffffff;
  --bg-white: #ffffff;
  --bg-alt: #F3F2EE;
  --bg-hero: #F3F2EE;
  --bg-hover: #F7F6F3;

  /* Border Colors */
  --border-light: #e0ddd6;
  --border-medium: #d0cdc6;
  --border-subtle: #eae7e1;
  --border-separator: #c5c2bb;

  /* Shadows */
  --shadow-soft: rgba(34, 89, 65, 0.03);
  --shadow-light: rgba(34, 89, 65, 0.06);
  --shadow-medium: rgba(34, 89, 65, 0.12);
  --shadow-dark: rgba(0,0,0,0.5);

  /* Layout */
  --max-width: 1100px;
  --spacing-section: 4rem;
  --spacing-element: 1.5rem;

  /* Design System */
  --radius: 4px;
  --shadow-card: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-button: 0 2px 8px rgba(34, 89, 65, 0.2);

  /* Minimalist Theme (Arckezelések) */
  --text-strong: #222;
  --text-clean: #666;
  --bg-light: #fafafa;
  --border-color: #e5e5e5;
  --accent-subtle: #f0f0f0;
}


/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.2;
  font-family: var(--font-heading);
}

h2 {
  font-size: var(--fs-6xl);
  text-align: center;
  margin-bottom: var(--spacing-element);
  position: relative;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }
b { font-weight: 700; }


/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--spacing-section) 0; }
.section-alt { background-color: var(--bg-alt); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-light { color: var(--text-light); }

.separator {
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--accent-warm);
  margin: 1.5rem auto;
  border: none;
}
.separator.left {
  margin-left: 0;
}

.section-desc {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  background-color: var(--btn-primary);
  border-radius: var(--radius);
  border: 2px solid var(--btn-primary);
  padding: 0.8rem 2rem;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  font-size: var(--fs-base);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: normal;
  text-align: center;
  text-decoration: none;
}
.btn:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid #333;
  border-radius: var(--radius);
  color: #333;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: normal;
  text-align: center;
  text-decoration: none;
}
.btn-outline:hover {
  background: #333;
  color: #fff;
  box-shadow: var(--shadow-button);
  transform: translateY(-2px);
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  font-size: var(--fs-base);
  text-decoration: none;
  transition: color 0.2s ease;
}
.text-link:hover {
  color: var(--btn-primary-hover);
}

.btn-sm {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}
.btn-sm:hover {
  background: var(--accent);
  color: var(--text-on-accent);
}


/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */
header {
  --header-outer-height: 100px;
  --header-inner-height: 76px;
  --header-height-diff: calc(var(--header-outer-height) - var(--header-inner-height));
  width: 100%;
  height: var(--header-outer-height);
  position: sticky;
  top: calc(var(--header-height-diff) * -1);
  display: flex;
  align-items: center;
  background: var(--accent);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  color: #fff;
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-inner-height);
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: var(--fs-5xl);
  text-transform: none;
  font-weight: 400;
  color: #fff;
  border: none;
  padding: 0;
  transition: font-size .25s ease;
  display: flex;
  align-items: baseline;
  gap: .4rem;
}
.logo-name {
  letter-spacing: -.02em;  
    font-size: 1.8rem;
    font-weight: 400;
    margin-right: -6px;
    letter-spacing: -.03em;
}

.logo-sub {
  font-size: 1.3rem;
  font-weight: 200;
  color: var(--accent-warm);
  letter-spacing: -.03em;
      text-transform: uppercase;

}


nav ul {
  display: flex;
  gap: 2.5rem;
  font-family: var(--font-heading);
  text-transform: none;
  font-size: var(--fs-base);
  letter-spacing: 0.5px;
  font-weight: 500;
  color: inherit;
}

nav a {
  position: relative;
  padding-bottom: 4px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-warm);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--accent-warm); }
nav a:hover::after { width: 100%; }

nav .nav-cta {
  background: #fff;
  color: var(--accent) !important;
  padding: .45rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .2s;
}
nav .nav-cta::after { display: none; }
nav .nav-cta:hover {
  background: var(--accent-warm);
  color: #333;
}

/* Hamburger Menu Toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  background-color: var(--bg-hero);
  padding: var(--spacing-section) 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-container-flex {
  width: 100%;
  padding: 0 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content .separator {
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-7xl);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.hero p {
  font-family: var(--font-body);
  color: var(--text-lighter);
  font-size: var(--fs-base);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 450px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-portrait-img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: 12px 12px 0px var(--accent-warm);
  transform: translateX(-6px);
}


/* ============================================================
   7. HOMEPAGE SECTIONS
   ============================================================ */

/* --- Gallery Home --- */
.gallery-home {
  padding: var(--spacing-section) 0;
}
.gallery-home-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.gallery-home-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-home-text h2 {
  font-size: var(--fs-5xl);
}
.gallery-home-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.gallery-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.10);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.gallery-img:nth-child(2) { transform: translateY(1.5rem); }
.gallery-img:nth-child(4) { transform: translateY(1.5rem); }
.gallery-img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.16);
  z-index: 2;
  position: relative;
}

/* --- Services Home List --- */
.services-home-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 680px;
  margin: 2rem auto 0;
  list-style: none;
  padding: 0;
}
.services-home-list > li {
  padding: 1.5rem;
  text-align: left;
  background: #fff;
  border-radius: var(--radius);
  transition: box-shadow .2s;
}

.services-home-list h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.services-home-list h3 svg {
  color: var(--accent-warm);
  flex-shrink: 0;
}
.services-home-list li ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
}
.services-home-list li ul li {
  font-size: var(--fs-sm);
  color: var(--text-light);
  line-height: 1.8;
  padding: 0;
  border-bottom: none;
}
.services-home-list li ul li::marker {
  color: var(--accent-warm);
}

/* --- Contact Home --- */
.contact-home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.contact-home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
  padding: 1.5rem 1rem;
  background: var(--bg-alt);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
a.contact-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
}
.contact-home-card i {
  font-size: var(--fs-lg);
  color: var(--accent);
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 89, 65, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.contact-home-card strong {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.contact-home-card span {
  font-size: var(--fs-base);
  color: var(--text-light);
}
.contact-home-card span a {
  color: var(--text-light);
  text-decoration: none;
}
.contact-home-card span a:hover {
  color: var(--accent);
}
.contact-home-map {
  max-width: 800px;
  margin: 1.5rem auto 0;
}


/* ============================================================
   8. PAGE LAYOUT (Subpages)
   ============================================================ */

/* Page Title Banner */
.page-title-banner {
  background-color: var(--bg-hero);
  padding: 2.25rem 0 2rem;
  margin-bottom: 0;
}

.page-title-large {
  font-size: var(--fs-4xl);
  margin: 0;
  line-height: 1.2;
}
.page-title-large.centered {
  text-align: center;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--text-clean);
  margin-top: .35rem;
}
.page-subtitle.centered {
  text-align: center;
}

/* Section Heading (consistent across pages) */
.section-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  margin-top: 3rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-warm);
}

/* Page Content — subpage headings */
.page-content h2 {
  text-align: left;
  font-size: var(--fs-3xl);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: none;
  background: linear-gradient(to right, var(--accent-warm) 0%, var(--accent-warm) 30%, transparent 100%);
  background-size: 100% 3px;
  background-position: bottom left;
  background-repeat: no-repeat;
  display: inline-block;
}
.page-content h3 {
  text-align: left;
  font-size: var(--fs-xl);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page-content {
  max-width: 100%;
}

/* Intro Split (e.g. Fascia page) */
.intro-split {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}
.intro-text {
  flex: 1;
}
.intro-text .lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}
.intro-img {
  flex: 1;
  max-width: 500px;
}
.intro-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.intro-split:has(.intro-img:only-child) {
  justify-content: center;
}
.intro-split .intro-img:only-child {
  max-width: 100%;
  flex: 0 0 auto;
}


/* ============================================================
   9. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.contact-info-box {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
}
.contact-info-box h4 {
  margin-bottom: 1rem;
}
.contact-info-box p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
.form-group label {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
.form-control {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  width: 100%;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.opening-hours-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.opening-hours-table td { padding: 0.3rem 0; border-bottom: 1px solid #eee; }
.opening-hours-table tr:last-child td { border-bottom: none; }


/* ============================================================
   10. ABOUT (RÓLAM) PAGE
   ============================================================ */
.about-grid-large {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.about-image-col {
  position: relative;
}
.about-portrait-large {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--accent-warm);
}
.about-text-col .lead-text {
  font-size: var(--fs-lg);
  margin-bottom: 2rem;
  font-weight: 400;
}

.cta-section {
  padding: 5rem 0;
  background: var(--accent);
  margin-top: 4rem;
}
.cta-section h2 {
  color: var(--text-on-accent);
  margin-bottom: 1rem;
}
.cta-section p {
  margin-bottom: 2rem;
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.9);
}
.cta-section .btn {
  background: var(--bg-white);
  color: var(--accent);
  border-color: var(--bg-white);
}
.cta-section .btn:hover {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: #333;
}


/* ============================================================
   11. PRICING TABLE
   ============================================================ */
.pricing-category h2 {
  text-align: left;
  font-size: var(--fs-3xl);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table tr { border-bottom: 1px solid var(--border-light); transition: background 0.2s; }
.price-table tr:hover { background: var(--bg-hover); }
.price-table td { padding: 1rem 1.5rem; vertical-align: middle; }
.price-table td small { display: block; margin-top: 0.25rem; font-size: var(--fs-sm); color: var(--text-lighter); }
.price-table .price { text-align: right; font-weight: 700; color: var(--accent); font-size: var(--fs-md); white-space: nowrap; }


/* ============================================================
   12. TREATMENT CARDS (Arckezelések, etc.)
   ============================================================ */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.treatment-item {
  padding: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.treatment-item .treatment-header {
  padding: 1rem 1.25rem 0.5rem;
}
.treatment-item .title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.treatment-item .name {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
}
.treatment-item .price {
  font-size: var(--fs-base);
  font-weight: 700;
  white-space: nowrap;
}
.treatment-item .time {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.treatment-item p {
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  flex: 1;
}
.treatment-item small {
  display: none;
}


/* ============================================================
   13. FASCIA / SPECIAL TREATMENT PAGES
   ============================================================ */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.benefit-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.benefit-list li::before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
}

.promo-box {
  background: var(--bg-white);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin: 4rem 0 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.promo-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent);
}
.promo-box h3 {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  margin-bottom: 1rem;
}
.promo-box p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.promo-badge {
  display: inline-block;
  background: var(--accent-warm);
  color: #333;
  font-weight: bold;
  padding: 0.25rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
}

/* Service CTA (bottom of treatment subpages) */
.service-cta {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.service-cta h3 {
  font-size: var(--fs-4xl);
  margin-bottom: 1rem;
}
.service-cta p {
  color: var(--text-light);
  margin-bottom: 2rem;
}


/* ============================================================
   14. FOOTER
   ============================================================ */
footer {
  background: var(--accent);
  color: var(--text-on-accent);
  text-align: center;
  padding: 2rem 0;
  font-size: var(--fs-sm);
}
footer p { opacity: 0.8; }


/* ============================================================
   15. LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.15);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ============================================================
   16. BOOKING WIDGET (.bw-)
   ============================================================ */
.bw {
  /* Booking-specific design tokens — neutral dark palette */
  --bw-active: #222;
  --bw-active-hover: #444;
  --bw-active-light: #f5f5f5;
  --bw-active-shadow: rgba(0, 0, 0, 0.15);
  --bw-radius: 8px;
  --bw-radius-sm: 6px;
  --bw-radius-lg: 12px;
  margin: 0 auto;
}

/* Booking buttons — separate from main site .btn */
.bw-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--bw-active);
  border-radius: var(--bw-radius);
  background: var(--bw-active);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}
@media (hover: hover) {
  .bw-btn:hover {
    background: var(--bw-active-hover);
    border-color: var(--bw-active-hover);
    color: #fff;
  }
}
.bw-btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--bw-radius);
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}
.bw-btn-outline:hover {
  background: var(--bw-active-light);
  border-color: var(--bw-active);
  color: var(--bw-active);
}

/* Progress Steps */
.bw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.75rem;
  position: relative;
}
.bw-steps[hidden] { display: none !important; }

.bw-step {
  display: flex;
  align-items: center;
  gap: .5rem;
  opacity: .4;
  transition: opacity .3s;
}
.bw-step.active,
.bw-step.done { opacity: 1; }
.bw-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all .3s;
}
.bw-step.active .bw-step-num {
  background: var(--bw-active);
  color: #fff;
}
.bw-step.done .bw-step-num {
  background: var(--bw-active-light);
  color: var(--bw-active);
}
.bw-step-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-heading);
}
.bw-step.active .bw-step-label { color: var(--bw-active); }
.bw-step-line {
  width: 40px;
  height: 2px;
  background: var(--border-light);
  margin: 0 .75rem;
}

/* Panels */
.bw-panel h2 {
  font-size: var(--fs-xl);
  margin-bottom: .25rem;
}
.bw-subtitle {
  color: var(--text-light);
  font-size: var(--fs-base);
  margin-bottom: 1.5rem;
}
.bw-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}
/* Back arrow at top of step panels */
.bw-panel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.bw-back-arrow,
.bw-close-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.bw-back-arrow:hover,
.bw-close-arrow:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
  background: var(--bg-offset);
}

/* Cancel confirmation modal */
.bw-cancel-modal {
  text-align: left;
}
.bw-cancel-modal h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  margin-bottom: .75rem;
}
.bw-cancel-modal p {
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.bw-cancel-modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}
.bw-actions .bw-btn,
.bw-actions .bw-btn-outline { min-width: 180px; }
.bw-btn-next:only-child,
.bw-btn-submit:only-child { margin-left: auto; }

/* Hide in-panel action bars on steps 2-3 — sidebar handles forward, top link handles back */
.bw[data-step="2"] .bw-actions,
.bw[data-step="3"] .bw-actions { display: none; }

/* Loading / Spinner */
.bw-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}
.bw-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-top-color: var(--bw-active);
  border-radius: 50%;
  animation: bw-spin .6s linear infinite;
  vertical-align: middle;
  margin-right: .5rem;
}
@keyframes bw-spin { to { transform: rotate(360deg); } }
.bw-error-msg {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

/* Main layout: content + persistent sidebar */
.bw-main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  max-width: 100%;
}
.bw-content {
  min-width: 0;
}
/* Panels within content area */
#bw-step-2,
#bw-step-3,
#bw-step-done,
#bw-step-error {
  max-width: 780px;
}
/* Hide sidebar on success/error steps */
.bw.bw-finished .bw-sidebar { display: none; }
.bw.bw-finished .bw-main-layout { grid-template-columns: 1fr; }
/* Remove max-width constraint on success/error for centered content */
.bw.bw-finished #bw-step-done,
.bw.bw-finished #bw-step-error { max-width: none; }
/* Tighter top spacing when steps are hidden */
.bw.bw-finished .bw-success,
.bw.bw-finished .bw-error { padding-top: 0; }
.bw-services-col {
  min-width: 0;
}
.bw-services-col h2 {
  font-size: var(--fs-xl);
  margin-bottom: .25rem;
}
/* Override for main category headings inside the service list */
.bw-services-col .bw-maincat-heading {
  font-size: var(--fs-4xl);
  margin: 0 0 .75rem;
}

/* Category tabs */
.bw-cat-tabs {
  --elevation-clipping: 0 4px 2px -2px rgba(20, 20, 20, 0.06);
  display: flex;
  gap: .4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0;
  padding: .85rem 0;
  background: #fff;
  position: sticky;
  top: var(--header-inner-height, 76px);
  z-index: 90;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: box-shadow .2s, border-color .2s;
}
.bw-cat-tabs::-webkit-scrollbar { display: none; }
.bw-cat-tabs.stuck {
  border-bottom-color: var(--border-light);
  box-shadow: var(--elevation-clipping);
}
.bw-cat-tab {
  padding: .7rem 1.15rem;
  border: 1.5px solid var(--border-medium, #ddd);
  border-radius: var(--bw-radius);
  font-size: var(--fs-md);
  font-weight: 500;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex: 1 0 auto;
  text-align: center;
}
.bw-cat-tab:hover {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}
.bw-cat-tab.active {
  color: #333;
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Selected services pill */
/* Category section heading */
.bw-cat-heading {
  font-size: var(--fs-lg);
  font-family: var(--font-heading);
  margin-bottom: .75rem;
}
.bw-maincat-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 700;
  margin: 0 0 .75rem;
  letter-spacing: -.02em;
}
.bw-subcat-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-bottom: .4rem;
  letter-spacing: -.01em;
  display: inline-block;
  background: linear-gradient(to right, var(--accent-warm) 0%, transparent 40%);
  background-size: 100% 2.5px;
  background-position: bottom left;
  background-repeat: no-repeat;
}
.bw-maincat-heading + .bw-subcat-heading { margin-top: .75rem; }

/* Service cards */
.bw-service-list {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
}
.bw-cat-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bw-cat-section.hidden { display: none; }
.bw-svc-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--bw-radius-lg);
  background: #fff;
  transition: border-color .2s, box-shadow .25s, transform .2s;
}
.bw-svc-card:hover {
  background: var(--bg-alt);
  border-color: var(--border-medium);
}
.bw-svc-card.selected {
  border-color: var(--bw-active);
  box-shadow: inset 0 0 0 1.5px var(--bw-active);
}
.bw-svc-card-info {
  flex: 1;
  min-width: 0;
}
.bw-svc-card-name {
  font-weight: 500;
  font-size: var(--fs-md);
  margin-bottom: 3px;
}
.bw-svc-card-duration {
  font-size: var(--fs-sm);
  color: var(--text-lighter);
  margin-bottom: 5px;
}
.bw-svc-card-snippet {
  font-size: var(--fs-base);
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.bw-svc-card-price {
  font-weight: 500;
  font-size: var(--fs-base);
}

/* + / ✓ button */
.bw-svc-card-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: all .2s;
}
.bw-svc-card-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-lighter);
  stroke-width: 2;
  fill: none;
  transition: stroke .2s;
}
.bw-svc-card-btn:hover {
  border-color: var(--border-medium);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.bw-svc-card-btn:hover svg { stroke: #333; }
.bw-svc-card-btn.checked {
  background: var(--bw-active);
  border-color: var(--bw-active);
  box-shadow: 0 2px 8px var(--bw-active-shadow);
}
.bw-svc-card-btn.checked svg { stroke: #fff; }
.bw-svc-card-btn.checked:hover {
  background: var(--bw-active-hover);
  border-color: var(--bw-active-hover);
}

/* Sidebar Cart */
.bw-sidebar {
  position: sticky;
  top: var(--bw-sidebar-top, 140px);
}
.bw-sidebar-inner {
  border: 1px solid var(--border-light);
  border-radius: var(--bw-radius-lg);
  background: #fff;
  position: relative;
}
.bw-sheet-close { display: none; }
.bw-sheet-header { display: none; }
.bw-sidebar-empty {
  padding: 2rem 1.5rem;
  text-align: center;
}
.bw-sidebar-empty p {
  color: var(--text-lighter);
  font-size: var(--fs-sm);
  margin: 0;
}
.bw-sidebar-summary { padding: 1.25rem 1.5rem 0; }
.bw-sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.bw-sidebar-item:last-child { border-bottom: none; }
.bw-sidebar-item-name {
  font-weight: 700;
  font-size: var(--fs-sm);
}
.bw-sidebar-item-info {
  cursor: pointer;
}
.bw-sidebar-item-info:hover .bw-sidebar-item-name {
  text-decoration: underline;
}
.bw-sidebar-item-meta {
  font-size: var(--fs-xs);
  color: var(--text-lighter);
  margin-top: 2px;
}
.bw-sidebar-item-price {
  font-weight: 700;
  font-size: var(--fs-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.bw-sidebar-item-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.bw-sidebar-item-remove {
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  color: var(--text-lighter);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bw-sidebar-item-remove:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, .08);
}
.bw-sidebar-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-light); }
.bw-sidebar-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: 1rem;
}
.bw-sidebar-total-meta { display: none; }
.bw-sidebar-total-text { font-weight: 700; }
.bw-btn-continue {
  width: 100%;
  text-align: center;
}

/* Service Detail Modal */
.bw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.bw-modal-overlay[hidden] { display: none; }
.bw-modal {
  background: #fff;
  border-radius: var(--bw-radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: bw-modal-in .2s ease-out;
}
@keyframes bw-modal-in {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.bw-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-lighter);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .15s;
}
.bw-modal-close:hover {
  background: var(--bg-alt);
  color: #333;
}
.bw-modal h3 {
  font-size: var(--fs-lg);
  font-family: var(--font-heading);
  margin: 0 0 .5rem;
  padding-right: 2rem;
}
.bw-modal-meta {
  font-size: var(--fs-sm);
  color: var(--text-lighter);
  margin-bottom: 1.25rem;
}
.bw-modal-meta i { margin-right: 3px; }
.bw-modal-desc {
  font-size: var(--fs-base);
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.bw-modal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
.bw-modal-price-val {
  font-weight: 600;
  font-size: var(--fs-md);
}
.bw-modal-add {
  padding: .6rem 1.5rem;
  font-size: var(--fs-sm);
}
.bw-modal-add.remove {
  background: var(--bg-alt);
  color: #333;
  border: 1px solid var(--border-medium);
}
.bw-modal-add.remove:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

/* Step 2: Calendar */
.bw-datetime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.bw-calendar {
  padding: 0;
}
.bw-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.bw-cal-title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
}
.bw-cal-title strong {
  font-weight: 700;
}
.bw-cal-title span {
  font-weight: 500;
  color: var(--text-lighter);
}
.bw-cal-arrows {
  display: flex;
  gap: 4px;
}
.bw-cal-nav {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--bw-radius-sm);
  transition: all .2s;
}
.bw-cal-nav:hover:not(:disabled) {
  background: var(--bg-alt);
  color: var(--text-main);
}
.bw-cal-nav:disabled {
  opacity: .3;
  cursor: default;
}
.bw-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: .75rem 0;
}
.bw-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding-top: 6px;
}
.bw-cal-day {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: var(--bw-radius-sm);
  cursor: pointer;
  color: var(--text-main);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all .15s;
  padding: 0;
  position: relative;
}
.bw-cal-empty { cursor: default; }
.bw-cal-day:not(.bw-cal-disabled):not(.bw-cal-empty):not(.bw-cal-selected) {
  background: var(--bg-alt);
}
.bw-cal-day:not(.bw-cal-disabled):not(.bw-cal-empty):not(.bw-cal-selected):hover {
  background: var(--border-medium, #ddd);
}
.bw-cal-disabled {
  color: var(--text-lighter);
  opacity: .35;
  cursor: default;
  background: none;
}
.bw-cal-today {
  font-weight: 700;
  color: var(--text-main);
}
.bw-cal-today-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bw-active);
}
.bw-cal-selected .bw-cal-today-dot {
  background: rgba(255, 255, 255, .8);
}
.bw-cal-full {
  color: var(--text-lighter);
  opacity: .5;
  cursor: default;
  text-decoration: line-through;
}
.bw-cal-full:hover {
  background: none;
  color: var(--text-lighter);
}
.bw-cal-selected {
  background: var(--bw-active) !important;
  color: #fff !important;
  text-decoration: none !important;
  opacity: 1 !important;
  font-weight: 600;
}

/* Time Slots */
.bw-timeslots { min-height: 200px; }
.bw-time-placeholder {
  text-align: center;
  color: var(--text-lighter);
  padding: 3rem 1rem;
}
.bw-time-placeholder i {
  font-size: 2rem;
  display: block;
  margin-bottom: .75rem;
}
.bw-time-placeholder p {
  margin: 0;
  font-size: var(--fs-sm);
}
.bw-time-message {
  text-align: center;
  color: var(--text-lighter);
  padding: 3rem 1rem;
  font-size: var(--fs-sm);
}
.bw-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: .5rem;
  align-content: start;
}
.bw-time-grid[hidden],
.bw-time-placeholder[hidden],
.bw-time-message[hidden] { display: none; }
.bw-time-label {
  grid-column: 1 / -1;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-lighter);
  margin-top: .75rem;
  margin-bottom: .25rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
}
.bw-time-label:first-child { margin-top: 0; }
.bw-time-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  display: inline-block;
}
.bw-time-slot {
  padding: .5rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--bw-radius);
  background: none;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-main);
  transition: all .15s;
}
.bw-time-slot:hover {
  border-color: var(--bw-active);
  color: var(--bw-active);
  background: var(--bw-active-light);
}
.bw-time-slot.selected {
  background: var(--bw-active);
  border-color: var(--bw-active);
  color: #fff;
}

/* Step 3: Confirm Summary */
.bw-confirm-summary {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--bw-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.bw-summary-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  font-size: var(--fs-sm);
  color: var(--text-main);
}
.bw-summary-row i {
  color: var(--text-lighter);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: var(--fs-sm);
}
.bw-summary-row + .bw-summary-row { border-top: 1px solid var(--border-subtle); }
.bw-summary-total { font-weight: 700; }

/* Cancellation notice — inside summary box */
.bw-cancel-notice {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border-light);
}
.bw-cancel-notice h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: .5rem;
}
.bw-cancel-notice p {
  font-size: var(--fs-sm);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0 0 .75rem;
}
.bw-cancel-notice p:last-child {
  margin-bottom: 0;
}
.bw-text-muted {
  color: var(--text-lighter);
  font-size: var(--fs-sm);
}
.bw-form .form-group { margin-bottom: 1.25rem; }
.bw-form label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: .35rem;
  font-family: var(--font-heading);
}

/* Success / Error */
.bw-success,
.bw-error {
  text-align: center;
  padding: 1rem 0;
}
.bw-success-icon {
  font-size: 3.5rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}
.bw-success h2,
.bw-error h2 { text-align: center; margin-bottom: 0.3rem; }
.bw-success p,
.bw-error p {
  color: var(--text-light);
  max-width: 400px;
  margin: 0 auto 1rem;
  font-size: 0.9rem;
}
.bw-success .bw-actions,
.bw-error .bw-actions { justify-content: center; }

/* Add to Calendar button */
.bw-calendar-add {
  margin-top: 1.5rem;
  text-align: center;
}
.bw-calendar-section {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.bw-calendar-label {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}
.bw-calendar-btns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.bw-btn-cal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--bw-active);
  border-radius: var(--bw-radius);
  background: var(--bw-active);
  color: #fff;
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: normal;
}
.bw-btn-cal.bw-btn-cal-outline {
  background: #fff;
  color: var(--bw-active);
}
@media (hover: hover) {
  .bw-btn-cal:hover {
    background: var(--bw-active-hover);
    border-color: var(--bw-active-hover);
    color: #fff;
  }
}

/* Disabled state for all booking buttons */
.bw-btn:disabled,
.bw-btn-continue:disabled,
.bw-btn-next:disabled,
.bw-btn-submit:disabled {
  opacity: 1;
  background: #ccc !important;
  color: #888 !important;
  border-color: #ccc !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Inline field validation errors */
.form-control.error {
  border-color: #e74c3c;
}
.bw-field-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}


/* ============================================================
   17. RESPONSIVE
   ⚠️  ALL @media queries live here — NEVER above this line!
   This prevents cascade-order bugs where later desktop rules
   override earlier mobile overrides.
   ============================================================ */

/* ----- Booking tabs: 2×2 grid on narrower desktops ----- */
@media (max-width: 1085px) {
  .bw-cat-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    overflow-x: visible;
  }
  .bw-cat-tab {
    text-align: center;
    justify-content: center;
  }
}

/* ----- Tablet & below (≤900px) ----- */
@media (max-width: 900px) {

  /* Scale down font variables for tablet */
  :root {
    --fs-6xl: 1.85rem;
    --fs-7xl: 2.3rem;
    --fs-5xl: 1.75rem;
    --fs-4xl: 1.6rem;
    --fs-3xl: 1.45rem;
  }

  /* General spacing */
  section { padding: 2.25rem 0; }
  .separator { margin: 0.6rem auto; width: 48px; }

  /* Header & Nav */
  header {
    --header-outer-height: 80px;
    --header-inner-height: 60px;
  }
  .logo { font-size: 1.4rem; }
  .menu-toggle { display: block; }

  #mainNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--accent);
    color: #fff;
    padding-top: 6rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px var(--shadow-medium);
    z-index: 999;
  }
  #mainNav.active { right: 0; }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-size: 1.1rem;
  }
  nav .nav-cta {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    max-height: none;
    min-height: auto;
    padding: 1.75rem 0 2rem;
  }
  .hero-container-flex {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    gap: 0;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-content .separator {
    margin-left: auto;
    margin-right: auto;
  }
  .hero h1 { margin-bottom: 0.75rem; }
  .hero p { margin-bottom: 1.25rem; font-size: var(--fs-sm); }
  .hero-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .hero-portrait-img {
    max-width: 85%;
    aspect-ratio: 3 / 3.5;
    object-position: center 40%;
    box-shadow: 6px 6px 0px var(--accent-warm);
    transform: none;
    border-radius: 6px;
  }

  /* Gallery — text on top, images below */
  .gallery-home {
    padding: 2rem 0;
  }
  .gallery-home-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-home-text {
    order: -1;
  }
  .gallery-home-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-img:nth-child(2),
  .gallery-img:nth-child(4) {
    transform: none;
  }

  /* Services home list — keep 2-col on mobile */
  .services-home-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: .75rem;
  }
  .services-home-list > li {
    padding: 1rem;
  }
  .services-home-list h3 {
    font-size: var(--fs-base);
  }
  .services-home-list li ul li {
    font-size: var(--fs-xs);
    line-height: 1.6;
  }

  /* Contact home cards */
  .contact-home-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 1rem;
  }

  /* Contact & About grids */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* About page */
  .about-grid-large {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-portrait-large {
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 8px 8px 0 var(--accent-warm);
  }

  /* Intro split */
  .intro-split { flex-direction: column; }
  .intro-img { width: 100%; max-width: 100%; }
  .intro-text .lead { text-align: center; }
  .page-title-large { text-align: center; }

  /* Booking widget — Fresha-style mobile */
  .bw-steps { gap: 0; margin-bottom: .5rem; }
  .bw-step-label { display: none; }
  .bw-step-line { width: 28px; margin: 0 .5rem; }
  .bw-main-layout { grid-template-columns: 1fr; }

  /* Tabs: 2×2 grid on mobile so all 4 visible, same style as desktop */
  .bw-cat-tabs {
    margin-left: 0;
    margin-right: 0;
    padding: 1 0rem;
    gap: .35rem;
    flex-wrap: wrap;
    overflow-x: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    top: var(--header-inner-height, 60px);
    border-bottom: 1px solid var(--border-light);
  }
  .bw-cat-tab {
    padding: .55rem .75rem;
    font-size: var(--fs-sm);
    text-align: center;
    justify-content: center;
  }

  /* Main category heading on mobile */
  .bw-maincat-heading {
    font-size: var(--fs-3xl);
    margin: 0 0 .5rem;
  }

  /* Subcat headings: keep bold uppercase + add gradient underline */
  .bw-subcat-heading {
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: .03em;
    margin: 1.5rem 0 .75rem;
  }
  .bw-maincat-heading + .bw-subcat-heading {
    margin-top: .5rem;
  }
  /* Space below last card before the next subcat heading */
  .bw-svc-card + .bw-subcat-heading {
    margin-top: 0;
    padding-top: 4rem;
  }

  /* Service cards: flat rows with divider lines */
  .bw-cat-section {
    gap: 0;
  }
  .bw-svc-card {
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    padding: 1rem 0;
    gap: 1rem;
  }
  .bw-svc-card-name {
    font-size: var(--fs-base);
    font-weight: 500;
  }
  .bw-svc-card-duration {
    font-size: var(--fs-xs);
  }
  .bw-svc-card-snippet {
    font-size: var(--fs-sm);
  }
  .bw-svc-card-price {
    font-size: var(--fs-sm);
    font-weight: 500;
  }
  .bw-svc-card:last-child {
    border-bottom: none;
  }
  /* Also remove border from last card before a subcategory heading */
  .bw-svc-card + .bw-subcat-heading { border-top: none; }
  .bw-subcat-heading ~ .bw-svc-card:has(+ .bw-subcat-heading),
  .bw-cat-section > .bw-svc-card:has(+ .bw-subcat-heading) {
    border-bottom: none;
  }
  .bw-svc-card:hover {
    background: transparent;
    border-color: var(--border-subtle);
  }
  .bw-svc-card.selected {
    box-shadow: none;
    border-color: var(--border-subtle);
    background: transparent;
  }
  .bw-svc-card-btn {
    width: 38px;
    height: 38px;
    border-color: var(--border-medium);
  }
  .bw-svc-card-btn.checked {
    background: #333;
    border-color: #333;
  }
  .bw-svc-card-btn.checked:hover {
    background: #555;
    border-color: #555;
  }

  /* Services column */
  .bw-services-col {
    overflow-x: hidden;
    padding-bottom: 90px;
  }

  /* Bottom bar — Fresha-style slim fixed bar */
  .bw-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1100;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .bw-sidebar.has-items {
    transform: translateY(0);
  }
  .bw-sidebar-inner {
    border-radius: 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.1);
    border-top: 1px solid var(--border-light);
  }
  .bw-sidebar-empty { display: none; }

  /* In-panel actions already hidden globally for steps 2-3 */

  /* Summary: hidden by default, shown as bottom sheet */
  .bw-sidebar-summary {
    display: none;
    padding: 1rem 1.25rem 0;
  }
  .bw-sidebar.sheet-open .bw-sidebar-summary {
    display: block;
  }
  .bw-sidebar.sheet-open .bw-sidebar-inner {
    border-radius: var(--bw-radius-lg) var(--bw-radius-lg) 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,.18);
    max-height: 60vh;
    overflow-y: auto;
  }
  .bw-sidebar.sheet-open .bw-sheet-close {
    display: flex;
  }

  /* Sheet header */
  .bw-sheet-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
  }
  .bw-sidebar.sheet-open .bw-sheet-header {
    display: flex;
  }
  .bw-sheet-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-xl);
  }

  /* Items inside sheet: clean look, hide remove × */
  .bw-sidebar-item {
    padding: .85rem 0;
  }
  .bw-sidebar-item-remove {
    display: none;
  }
  .bw-sidebar-item-info {
    cursor: default;
  }
  .bw-sidebar-item-info:hover .bw-sidebar-item-name {
    text-decoration: none;
  }

  /* When sheet is open: footer goes vertical like Fresha */
  .bw-sidebar.sheet-open .bw-sidebar-footer {
    flex-direction: column;
    padding: 0 1.25rem 1.25rem;
    gap: 1rem;
  }
  .bw-sidebar.sheet-open .bw-sidebar-total {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    cursor: default;
  }
  .bw-sidebar.sheet-open .bw-sidebar-total-text {
    display: inline;
    font-size: var(--fs-base);
  }
  .bw-sidebar.sheet-open .bw-sidebar-total-meta {
    display: none;
  }
  .bw-sidebar.sheet-open .bw-btn-continue {
    width: 100%;
    min-width: 0;
  }

  /* Bottom bar footer: compact horizontal layout */
  .bw-sidebar-footer {
    border-top: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
  }
  .bw-sidebar-total {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 0;
    font-size: var(--fs-sm);
    cursor: pointer;
  }
  .bw-sidebar-total-text { display: none; }
  .bw-sidebar-total-meta { display: block; }
  .bw-sidebar-total-label {
    font-weight: 700;
    font-size: var(--fs-base);
  }
  .bw-sidebar-total-meta {
    font-size: var(--fs-xs);
    color: var(--text-lighter);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bw-btn-continue {
    width: auto;
    flex-shrink: 0;
    min-width: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Sheet close button */
  .bw-sheet-close {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 1.4rem;
    color: var(--text-lighter);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .bw-sheet-close:hover {
    background: var(--bg-alt);
    color: #333;
  }
}

/* ----- Small tablets (≤700px) — Booking & treatment grids ----- */
@media (max-width: 700px) {
  /* Keep treatment-grid 2-col, just make cards more compact */
  .treatment-grid { gap: 0.75rem; }
  .treatment-item .treatment-header { padding: 0.75rem 0.75rem 0.25rem; }
  .treatment-item .name { font-size: var(--fs-sm); }
  .treatment-item .price { font-size: var(--fs-sm); }
  .treatment-item .title-row { flex-direction: column; gap: 0.15rem; }
  .treatment-item p { padding: 0.25rem 0.75rem 0.75rem; font-size: var(--fs-xs); }
  .treatment-item + .treatment-item { border-top: none; }

  .bw-datetime-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bw-timeslots { min-height: 280px; }
  .bw-actions .bw-btn,
  .bw-actions .bw-btn-outline { min-width: 0; flex: 1; }
}

/* ----- Small phones (≤480px) ----- */
@media (max-width: 480px) {

  /* Scale down further for small phones */
  :root {
    --fs-7xl: 2.2rem;
    --fs-6xl: 1.8rem;
    --fs-5xl: 1.8rem;
    --fs-4xl: 1.6rem;
    --fs-3xl: 1.5rem;
    --fs-xl:  1.2rem;
  }

  section { padding: 2rem 0; }
  .container { padding: 0 1rem; }

  .btn { padding: 0.7rem 1.4rem; }
  .btn-outline { padding: 0.7rem 1.4rem; }

  .contact-home-card { padding: 1.25rem 0.75rem; }

  footer { padding: 2rem 0; }
}
