/* ============================================================
   AVEXA HOMECARE — Shared Design System
   Source: Avexa_UIUX_Design_Guidelines_S.docx
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === Brand Colours === */
  --purple:         #6B2FA0;
  --purple-dark:    #4A1A7A;
  --purple-mid:     #9B59B6;
  --purple-light:   #EDE7F6;
  --purple-pale:    #F5F0FF;
  --orange:         #E86A1A;
  --orange-light:   #FFF3E8;
  --orange-mid:     #F59338;

  /* === Gradients (per guidelines) === */
  --grad-hero:      linear-gradient(135deg, #6B2FA0 0%, #E86A1A 100%);  /* hero banners, CTA, step circles */
  --grad-home-hero: linear-gradient(135deg, #F5EDFF 0%, #FFF3E8 100%); /* homepage top banner */
  --grad-pro-hero:  linear-gradient(135deg, #FFF8F0 0%, #EDE7F6 100%); /* for professionals hero */
  --grad-soft:      linear-gradient(135deg, #EDE7F6 0%, #F5EDFF 100%);
  --grad-step:      linear-gradient(135deg, #6B2FA0 0%, #E86A1A 100%); /* step number circles */

  /* === Backgrounds === */
  --white:    #FFFFFF;
  --bg-grey:  #F7F7F8;
  --bg-alt:   #FAFAFA;
  --dark-bg:  #1A1A2E;

  /* === Text === */
  --text-dark:  #1C1C1E;
  --text-muted: #666666;
  --text-light: #999999;

  /* === Status (map pins / pills) === */
  --green:  #22C55E;
  --amber:  #F59E0B;
  --red:    #EF4444;
  --blue:   #3B82F6;
  --grey-s: #9CA3AF;
  --yellow: #FACC15;

  /* === Other === */
  --border:  #E0D6F0;
  --font:    'Inter', 'Segoe UI', sans-serif;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  --sh-sm: 0 2px 8px  rgba(107,47,160,0.08);
  --sh-md: 0 4px 16px rgba(107,47,160,0.12);
  --sh-lg: 0 8px 32px rgba(107,47,160,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  padding-top: 136px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   STICKY NAV BAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(107,47,160,0.10);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 96px;
  display: flex; align-items: center; gap: 20px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo img { height: 84px; width: auto; display: block; }
.nav-logo .brand-name { font-size: 1.3rem; font-weight: 800; color: var(--purple); letter-spacing: -0.3px; }
.nav-logo .brand-sub  { font-size: 0.68rem; color: var(--text-muted); font-style: italic; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; justify-content: center; }
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > .nav-link-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 11px;
  font-size: 0.855rem; font-weight: 500; color: var(--text-dark);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  cursor: pointer; background: none; border: none;
  white-space: nowrap; font-family: var(--font);
}
.nav-links > li > a:hover,
.nav-links > li > .nav-link-btn:hover { color: var(--purple); background: var(--purple-light); }
/* Active page — highlighted purple */
.nav-links > li > a.active { color: var(--purple); background: var(--purple-light); font-weight: 700; }

.dropdown-arrow { font-size: 0.6rem; transition: transform 0.25s; }
.nav-links > li:hover .dropdown-arrow { transform: rotate(180deg); }

/* ── Dropdown ─────────────────────────────────────────────────
   padding-top acts as an invisible "bridge" so the mouse stays
   inside the <li> hover zone while moving from the button down
   into the menu. JS .open class adds click/touch support too.
───────────────────────────────────────────────────────────── */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  padding-top: 6px;
  min-width: 210px;
  z-index: 200;
}
.nav-links > li:hover > .dropdown-menu,
.nav-links > li.open  > .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  border-bottom: 1px solid #F5F0FF;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:first-child {
  border-radius: var(--r-md) var(--r-md) 0 0;
  border-top: 1px solid var(--border);
  box-shadow: var(--sh-lg);
}
.dropdown-menu a:last-child { border-bottom: none; border-radius: 0 0 var(--r-md) var(--r-md); }
.dropdown-menu a:only-child { border-radius: var(--r-md); }
.dropdown-menu a:hover { background: var(--purple-light); color: var(--purple); }

/* CTA buttons */
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Primary — purple fill, white text */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--purple); color: var(--white);
  font-size: 0.83rem; font-weight: 600;
  border-radius: var(--r-sm); border: 2px solid var(--purple);
  cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap; text-decoration: none; font-family: var(--font);
}
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(107,47,160,0.35); }

/* Outline — white bg, purple border, orange text */
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--white); color: var(--orange);
  font-size: 0.83rem; font-weight: 600;
  border-radius: var(--r-sm); border: 2px solid var(--purple);
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  white-space: nowrap; text-decoration: none; font-family: var(--font);
}
.btn-outline:hover { background: var(--purple-light); transform: translateY(-1px); }

/* White button — used on gradient/dark banners (flips for contrast) */
.btn-white {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 28px;
  background: var(--white); color: var(--purple);
  font-size: 0.95rem; font-weight: 700;
  border-radius: var(--r-sm); border: 2px solid var(--white);
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  text-decoration: none; font-family: var(--font);
}
.btn-white:hover { background: var(--purple-pale); transform: translateY(-1px); }

/* Large primary for main hero */
.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--purple); color: var(--white);
  font-size: 0.95rem; font-weight: 700;
  border-radius: var(--r-sm); border: 2px solid var(--purple);
  cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none; font-family: var(--font);
}
.btn-primary-lg:hover { background: var(--purple-dark); border-color: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(107,47,160,0.4); }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--purple); border-radius: 2px; transition: all 0.25s; }

/* ============================================================
   CITY SELECTOR BAR — light purple strip below nav
   ============================================================ */
.city-bar {
  position: fixed; top: 96px; left: 0; right: 0; z-index: 999;
  background: var(--purple-light); border-bottom: 1px solid var(--border);
  height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.city-bar .city-label { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--purple); }
.city-select {
  padding: 4px 28px 4px 10px;
  font-size: 0.82rem; font-family: var(--font); font-weight: 500; color: var(--text-dark);
  background: var(--white); border: 1px solid var(--purple-mid); border-radius: var(--r-sm);
  cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B2FA0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  outline: none; transition: border-color 0.2s;
}
.city-select:focus { border-color: var(--purple); }

/* ============================================================
   FLOATING WHATSAPP BUTTON — green, bottom-right, all pages
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ============================================================
   UTILITY
   ============================================================ */
.section-tag {
  display: inline-block; font-size: 0.73rem; font-weight: 700;
  color: var(--purple); background: var(--purple-light);
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 12px;
}
.section-tag-light {
  display: inline-block; font-size: 0.73rem; font-weight: 700;
  color: var(--white); background: rgba(255,255,255,0.2);
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 12px;
}
/* Coming soon — orange fill */
.badge-coming-soon {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  color: var(--white); background: var(--orange);
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
/* Trust badge — light purple pill */
.badge-trust {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; color: var(--purple);
  background: var(--purple-light); padding: 5px 12px; border-radius: 20px;
}

/* H1 — one per page */
.section-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; color: var(--text-dark); line-height: 1.15; margin-bottom: 14px; }
.section-title span { color: var(--purple); }

/* H2 section headings */
.section-h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 12px; }

/* Sub-heading — lighter/regular weight */
.section-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.75; font-weight: 400; max-width: 580px; }

/* Step circle — purple-to-orange gradient */
.step-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-step); color: var(--white);
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 14px rgba(107,47,160,0.3);
  position: relative; z-index: 1;
}

/* Status pills — green/amber/red/grey/blue */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.73rem; font-weight: 600; }
.pill-green { background: #DCFCE7; color: #15803D; }
.pill-amber { background: #FEF3C7; color: #92400E; }
.pill-red   { background: #FEE2E2; color: #991B1B; }
.pill-grey  { background: #F3F4F6; color: #6B7280; }
.pill-blue  { background: #DBEAFE; color: #1D4ED8; }

/* ============================================================
   ICON CARD — purple icon top, bold title, short desc
   ============================================================ */
.icon-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 22px; transition: box-shadow 0.25s, transform 0.2s; }
.icon-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.icon-card .ic-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.icon-card .ic-icon svg { stroke: var(--purple); fill: none; }
.icon-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.icon-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* Outline card — coloured border + corner chip */
.outline-card { background: var(--white); border: 2px solid var(--purple); border-radius: var(--r-lg); padding: 28px 22px; position: relative; transition: box-shadow 0.25s, transform 0.2s; }
.outline-card-orange { border-color: var(--orange); }
.outline-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.outline-card .corner-chip { position: absolute; top: -14px; right: 20px; width: 28px; height: 28px; border-radius: 8px; background: var(--purple); display: flex; align-items: center; justify-content: center; }
.outline-card .corner-chip svg { stroke: var(--white); fill: none; width: 14px; height: 14px; }

/* Tick list card — light purple bg, purple checkmarks */
.tick-card { background: var(--purple-light); border-radius: var(--r-lg); padding: 28px 22px; }
.tick-card h3 { font-size: 1rem; font-weight: 700; color: var(--purple); margin-bottom: 14px; }
.tick-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tick-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--purple); font-weight: 500; line-height: 1.5; }
.tick-card ul li::before { content: '✓'; font-weight: 800; flex-shrink: 0; }

/* Testimonial card — yellow stars */
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 22px; }
.testimonial-card .stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testimonial-card .stars svg { fill: var(--yellow); stroke: none; width: 16px; height: 16px; }
.testimonial-card blockquote { font-size: 0.9rem; color: var(--text-dark); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testimonial-card .reviewer { font-size: 0.82rem; font-weight: 700; color: var(--purple); }
.testimonial-card .reviewer-city { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   ORANGE REASSURANCE BOX — below forms
   ============================================================ */
.info-box-orange { border: 2px solid var(--orange); border-radius: var(--r-md); background: var(--orange-light); padding: 18px 20px; margin-top: 20px; }
.info-box-orange h4 { font-size: 0.9rem; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.info-box-orange p, .info-box-orange li { font-size: 0.875rem; color: var(--text-dark); line-height: 1.65; }
.info-box-orange ul { padding-left: 18px; margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }

/* ============================================================
   FORMS — labelled, grey placeholder, red asterisk
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; }
.form-group label .req { color: var(--red); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #D0C4E8; border-radius: var(--r-sm);
  font-size: 0.9rem; font-family: var(--font);
  color: var(--text-dark); background: var(--white);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #BBB; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(107,47,160,0.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%; padding: 13px;
  background: var(--purple); color: var(--white);
  font-size: 0.95rem; font-weight: 700; border-radius: var(--r-sm); border: none;
  cursor: pointer; font-family: var(--font);
  transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px;
}
.form-submit:hover { background: var(--purple-dark); transform: translateY(-1px); }
.form-note { font-size: 0.76rem; color: var(--text-light); text-align: center; margin-top: 10px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { background: var(--grad-home-hero); padding: 60px 24px 64px; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--text-dark); margin: 12px 0 14px; line-height: 1.15; }
.page-hero h1 span { color: var(--purple); }
.page-hero p { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; line-height: 1.75; }

/* CTA Banner — gradient, buttons flip to white */
.cta-banner { background: var(--grad-hero); padding: 72px 24px; text-align: center; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.cta-banner p  { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; }

/* ============================================================
   FOOTER — dark near-black, white text, 3 columns
   ============================================================ */
.footer { background: var(--dark-bg); color: var(--white); padding: 64px 24px 0; margin-top: 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-bottom: 48px; }

.footer-brand .f-brand-name { font-size: 1.25rem; font-weight: 800; color: var(--white); letter-spacing: -0.2px; }
.footer-brand .f-logo { display: inline-block; background: #fff; border-radius: var(--r-md); padding: 8px 14px; margin-bottom: 4px; }
.footer-brand .f-logo img { height: 56px; width: auto; display: block; }
.footer-brand .f-brand-sub  { font-size: 0.76rem; color: var(--purple-mid); font-style: italic; margin-bottom: 14px; margin-top: 3px; }
.footer-brand p { font-size: 0.875rem; color: #C8C8D5; line-height: 1.75; max-width: 290px; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.social-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.15s; cursor: pointer; text-decoration: none; }
.social-icon:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-2px); }
.social-icon svg { width: 16px; height: 16px; fill: none; stroke: #C0C0D0; stroke-width: 1.8; transition: stroke 0.2s; }
.social-icon:hover svg { stroke: var(--white); }

/* Footer column underline is orange (accent) */
.footer-links h4, .footer-contact h4 { font-size: 0.92rem; font-weight: 700; color: var(--white); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links ul li a { font-size: 0.875rem; color: #D5D5E0; transition: color 0.2s, padding-left 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-links ul li a::before { content: '›'; color: var(--orange); font-size: 1.1rem; line-height: 1; }
.footer-links ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-contact .contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.contact-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(107,47,160,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 16px; height: 16px; stroke: var(--orange-mid); fill: none; stroke-width: 1.8; }
.contact-item-text { display: flex; flex-direction: column; }
.contact-item-text .c-label { font-size: 0.7rem; color: var(--orange-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.contact-item-text a, .contact-item-text .c-val { font-size: 0.875rem; color: #D0D0E0; margin-top: 3px; transition: color 0.2s; text-decoration: none; }
.contact-item-text a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); text-align: center; padding: 18px 24px; font-size: 0.8rem; color: #505065; }
.footer-legal { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 24px 20px; margin-top: -6px; font-size: 0.8rem; color: #505065; }
.footer-legal a { color: #8a8aa3; text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: #fff; text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-cta .btn-outline { display: none; }
  .nav-links > li > a,
  .nav-links > li > .nav-link-btn { padding: 8px 8px; font-size: 0.8rem; }
}
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-cta   { display: none; flex-direction: column; width: 100%; }
  .nav-toggle { display: flex; }
  .navbar.mobile-open .nav-links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white); padding: 12px 16px; border-top: 1px solid var(--border); z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .navbar.mobile-open .nav-cta {
    display: flex; position: absolute; top: auto; left: 0; right: 0;
    background: var(--white); padding: 12px 16px 20px; border-top: 1px solid var(--border); z-index: 998;
  }
  .navbar.mobile-open .nav-cta .btn-outline { display: flex; }
  .nav-links > li > a,
  .nav-links > li > .nav-link-btn { width: 100%; padding: 12px 10px; border-radius: 6px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; border-left: 3px solid var(--purple-light); margin-left: 12px; border-radius: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 48px; height: 48px; }
}

/* ============================================================
   CMS EDIT MODE (admin only; inert unless body.cms-editing)
   ============================================================ */
body.cms-editing .cms-editable {
  outline: 1px dashed rgba(107, 47, 160, 0.5);
  outline-offset: 2px;
  cursor: text;
  transition: outline-color 0.15s, background 0.15s;
}
body.cms-editing .cms-editable:hover {
  outline-color: rgba(107, 47, 160, 0.9);
  background: rgba(107, 47, 160, 0.04);
}
body.cms-editing .cms-editable:focus {
  outline: 2px solid #6b2fa0;
  background: rgba(107, 47, 160, 0.06);
}
#cms-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: #2a1442;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}
#cms-bar .cms-bar-title {
  font-weight: 700;
}
#cms-bar .cms-bar-count {
  color: #d9c7f0;
  font-size: 0.82rem;
}
#cms-bar button {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
}
#cms-bar #cms-save {
  background: #e86a1a;
  color: #fff;
}
#cms-bar #cms-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#cms-bar #cms-exit {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
#cms-bar .cms-bar-msg {
  margin-left: auto;
  font-size: 0.82rem;
  color: #a7f3c2;
}
body.cms-editing {
  padding-bottom: 56px;
}
#cms-bar #cms-reset {
  background: transparent;
  color: #fbd5b5;
  border: 1px solid rgba(251, 213, 181, 0.5);
}
#cms-bar [hidden] {
  display: none;
}
#cms-bar .cms-bar-hint {
  color: #bfa9dc;
  font-size: 0.78rem;
}
@media (max-width: 900px) {
  #cms-bar .cms-bar-hint { display: none; }
}

/* Block (section / card) selection + toolbar */
body.cms-editing [data-cms-item] {
  transition: outline-color 0.15s;
}
body.cms-editing .cms-block-active {
  outline: 2px solid #e86a1a !important;
  outline-offset: 3px;
}
#cms-block-bar {
  position: absolute;
  z-index: 100001;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #2a1442;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-family: "Inter", system-ui, sans-serif;
}
#cms-block-bar[hidden],
#cms-icon-picker[hidden] {
  display: none;
}
#cms-block-bar .cms-bb-label {
  color: #d9c7f0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 6px;
}
#cms-block-bar button {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
}
#cms-block-bar button:hover:not(:disabled),
#cms-block-bar button:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}
#cms-block-bar button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
#cms-block-bar .cms-bb-del {
  background: #b42318;
}
#cms-block-bar .cms-bb-del:hover:not(:disabled) {
  background: #d92d20;
}

/* Swappable icons + picker */
body.cms-editing svg.cms-icon-editable {
  cursor: pointer;
  outline: 1px dashed rgba(232, 106, 26, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}
body.cms-editing svg.cms-icon-editable:hover,
body.cms-editing svg.cms-icon-editable:focus {
  outline: 2px solid #e86a1a;
}
#cms-icon-picker {
  position: absolute;
  z-index: 100002;
  width: 300px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e4dcef;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(42, 20, 66, 0.22);
  font-family: "Inter", system-ui, sans-serif;
}
#cms-icon-picker .cms-ip-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2a1442;
  margin-bottom: 8px;
}
#cms-icon-picker .cms-ip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
#cms-icon-picker button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: #f6f1fb;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
#cms-icon-picker button:hover,
#cms-icon-picker button:focus-visible {
  border-color: #6b2fa0;
  background: #efe5f8;
  outline: none;
}
#cms-icon-picker button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #6b2fa0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
