/* ================================================================
   Cary Studio — consolidated stylesheet
   Sources: docs/project/Cary Studio - Home.html (<style> lines 23-635)
            docs/project/assets/site.css (sub-page styles, lines 591-839)
   The prototype's tweak-overrides (Home.html lines 11-22) are intentionally
   NOT carried over: theme variables make those !important hacks unnecessary.
   ================================================================ */

/* ============ FONTS (self-hosted) ============ */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ovo';
  src: url('../fonts/ovo-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ============ DESIGN TOKENS ============ */
:root {
  --primary: #D5E8DF;
  --primary-hover: #C5DED9;
  --accent: #417572;
  --accent-hover: #2D5450;
  --accent-soft: #DDECEA;
  --secondary: #F2DD64;
  --bg: #F2F0EC;
  --bg-warm: #EAE6DC;
  --white: #FFFFFF;
  --ink: #1E1F1E;
  --muted: #4F5E5B; /* darkened from #5F6F6B for WCAG AA contrast on --bg */
  --border: #E5E0D6;
  --btn-color: #dd0795;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-button: 24px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 12px rgba(31, 63, 60, 0.06);
  --shadow-hover: 0 12px 24px rgba(31, 63, 60, 0.10);
  --container: 1200px;
  /* Typography tokens — overridden per-request by <style id="typography-vars">
     in the layout, populated from settings (typography_heading_family,
     typography_body_family, typography_base_size). The values here are the
     default fallback (Cary "Ovo + Manrope" preset). */
  --font-heading: 'Ovo', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-size-base: 17px;
}

/* ============ RESET / BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Global focus ring — visible on keyboard navigation only.
   Form inputs that set outline:none on :focus still get a ring on :focus-visible. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent, #417572);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ensure [hidden] attribute actually hides elements. Class selectors like
   .baehr-form-wrap { display: grid } can override the UA [hidden] rule;
   this !important guards against that for all hidden elements. */
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(40px, 5.5vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2vw, 26px); font-family: var(--font-body); font-weight: 600; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 19px; }
p { color: var(--muted); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 8px 16px; border-radius: var(--radius-full);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: var(--radius-button);
  border: none; cursor: pointer; transition: all .2s ease;
  line-height: 1; white-space: nowrap;
}
/* Primary + accent CTAs use the themable --btn-color (magenta by default). */
.btn-primary { background: var(--btn-color, #dd0795); color: #fff; }
.btn-primary:hover { background: var(--btn-color, #dd0795); filter: brightness(0.92); transform: translateY(-1px); }
.btn-accent { background: var(--btn-color, #dd0795); color: #fff; }
.btn-accent:hover { background: var(--btn-color, #dd0795); filter: brightness(0.92); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--btn-color, #dd0795); border: 1px solid var(--btn-color, #dd0795); }
.btn-ghost:hover { background: var(--btn-color, #dd0795); color: #fff; }
.btn i { font-size: 13px; }
/* Keep ghost-on-dark surfaces readable */
.final-cta .btn-ghost, .testimonials .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.final-cta .btn-ghost:hover, .testimonials .btn-ghost:hover { background: #fff; color: var(--btn-color, #dd0795); }

section { padding: clamp(64px, 8vw, 112px) 0; }

/* ============ HEADER ============ */
.top-bar { background: var(--accent); color: var(--white); font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; gap: 24px; }
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: white; }
.top-bar-meta { display: flex; gap: 24px; }
.top-bar-meta span i { margin-right: 6px; opacity: .8; }
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,240,236,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .container { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img.mark { width: 52px; height: 52px; object-fit: contain; }
.logo .name { font-family: var(--font-heading); font-size: 22px; line-height: 1; }
.logo .tag { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
nav.primary { display: flex; gap: 4px; margin-left: auto; }
nav.primary a {
  color: var(--ink); padding: 10px 16px; font-weight: 500; font-size: 15px;
  border-radius: var(--radius-button); transition: background .15s;
}
nav.primary a:hover { background: var(--accent-soft); color: var(--accent); }
nav.primary a.active { background: var(--accent-soft); color: var(--accent); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.phone-link { font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 8px; font-size: 15px; }

/* MEGAMENU */
nav.primary .has-mega { position: static; }
nav.primary .mega-trigger { display: inline-flex; align-items: center; gap: 6px; }
nav.primary .mega-trigger .chev { font-size: 10px; transition: transform .2s; }
nav.primary .has-mega:hover .mega-trigger .chev,
nav.primary .has-mega:focus-within .mega-trigger .chev { transform: rotate(180deg); }
nav.primary .mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); box-shadow: 0 24px 60px rgba(31,63,60,.18);
  border-top: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 100;
}
nav.primary .has-mega:hover .mega-panel,
nav.primary .has-mega:focus-within .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
nav.primary .mega-inner {
  max-width: 1180px; margin: 0 auto; padding: 36px 24px;
  display: grid; grid-template-columns: 1fr 320px; gap: 40px;
}
nav.primary .mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
nav.primary .mega-grid a {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-md);
  color: var(--ink); transition: background .15s;
}
nav.primary .mega-grid a:hover { background: var(--bg); }
nav.primary .mega-grid .ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary); display: grid; place-items: center;
  color: var(--accent); font-size: 16px;
}
nav.primary .mega-grid .meta { display: flex; flex-direction: column; gap: 3px; }
nav.primary .mega-grid .ttl { font-weight: 600; font-size: 14px; line-height: 1.3; }
nav.primary .mega-grid .sub { font-size: 12px; color: var(--muted); line-height: 1.4; font-weight: 400; }
nav.primary .mega-cta {
  background: linear-gradient(135deg, var(--primary), var(--bg-warm));
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
nav.primary .mega-cta::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 160px; height: 160px; border: 1px dashed rgba(65,117,114,.3); border-radius: 50%;
}
nav.primary .mega-cta .eb { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
nav.primary .mega-cta h4 { font-family: var(--font-heading); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--ink); margin: 0; }
nav.primary .mega-cta p { font-size: 13px; color: var(--ink); opacity: .75; margin: 0; line-height: 1.5; }
nav.primary .mega-cta .btn { margin-top: auto; padding: 10px 16px; font-size: 13px; align-self: flex-start; }

/* ============ HERO ============ */
.hero { padding: 64px 0 96px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
.hero-text .eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px;
  background: var(--primary); z-index: -1; border-radius: 4px;
}
.hero-text p.lead { font-size: 18px; line-height: 1.7; max-width: 540px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 540px; }
.hero-stat .num { font-family: var(--font-heading); font-size: 36px; color: var(--accent); margin-bottom: 4px; line-height: 1; }
.hero-stat .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.hero-visual { position: relative; }
.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #d5e8df 0%, #b6cfc6 100%);
  position: relative;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; top: 60px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 18px 22px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 14px; max-width: 240px;
}
.hero-badge .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
}
.hero-badge .ttl { font-weight: 600; font-size: 14px; }
.hero-badge .sub { font-size: 12px; color: var(--muted); }
.hero-badge.right { left: auto; right: -32px; top: auto; bottom: 80px; }
.hero-arc {
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  border: 1px dashed var(--accent); border-radius: 50%;
  opacity: 0.25; pointer-events: none;
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-strip .container {
  display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
.trust-strip .item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.trust-strip i { color: var(--accent); font-size: 18px; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 240px; gap: 16px; }
.about-imgs > div { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-warm); }
.about-imgs > div img { width: 100%; height: 100%; object-fit: cover; }
.about-imgs .a { grid-row: 1 / span 2; height: 456px; }
.about-imgs .b { }
.about-imgs .c { }
.about-text .eyebrow { margin-bottom: 20px; }
.about-text h2 { margin-bottom: 24px; }
.about-text h2 em { font-style: normal; color: var(--accent); }
.about-text p { margin-bottom: 18px; }
.about-feats { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.about-feat { display: flex; gap: 16px; align-items: flex-start; }
.about-feat .ic {
  flex: 0 0 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 16px;
}
.about-feat h4 { margin-bottom: 4px; }
.about-feat p { font-size: 15px; margin: 0; }

/* ============ BENEFITS ============ */
.benefits { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head p { font-size: 17px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  background: var(--bg);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  transition: all .25s ease;
  border: 1px solid transparent;
}
.benefit-card:hover { background: var(--white); border-color: var(--border); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.benefit-card .ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary); color: var(--accent);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 24px;
}
.benefit-card h4 { margin-bottom: 10px; font-family: var(--font-heading); font-weight: 400; font-size: 22px; }
.benefit-card p { font-size: 15px; }

/* ============ SPORT / WHY ============ */
.why { background: var(--bg); }
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.why-head .eyebrow { margin-bottom: 16px; }
.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.why-card::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
  background: var(--primary); opacity: .35; border-radius: 50%;
}
.why-card .ic {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: white;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 28px;
}
.why-card h4 { font-family: var(--font-heading); font-weight: 400; font-size: 24px; margin-bottom: 12px; position: relative; }
.why-card p { position: relative; font-size: 15px; }

/* ============ BEFORE / AFTER ============ */
.ba { background: var(--white); }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.ba-card {
  background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.ba-slider {
  position: relative; aspect-ratio: 4/5; overflow: hidden; cursor: ew-resize;
  user-select: none; touch-action: none; background: #ddd;
}
.ba-slider .img-after, .ba-slider .img-before {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ba-slider .img-before { clip-path: inset(0 50% 0 0); transition: clip-path 0s; }
.ba-slider .handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: var(--white); transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.ba-slider .handle::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); border: 3px solid white;
  transform: translate(-50%,-50%);
  box-shadow: 0 6px 16px rgba(31,63,60,.25);
}
.ba-slider .handle::after {
  content: "\f0ec"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); color: white; font-size: 14px;
}
.ba-slider .label {
  position: absolute; top: 16px; padding: 6px 12px; font-size: 11px; font-weight: 600;
  background: rgba(30,31,30,.78); color: white; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ba-slider .label.before { left: 16px; }
.ba-slider .label.after { right: 16px; }
.ba-card .meta { padding: 20px 24px; }
.ba-card .meta h4 { margin-bottom: 4px; font-family: var(--font-heading); font-weight: 400; font-size: 20px; }
.ba-card .meta span { font-size: 13px; color: var(--muted); }
.ba-disclaimer { font-size: 13px; color: var(--muted); text-align: center; max-width: 700px; margin: 24px auto 0; font-style: italic; }

/* ============ SERVICES PREVIEW ============ */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--border);
  transition: all .25s ease;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 260px;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.service-card .head { display: flex; gap: 16px; align-items: center; }
.service-card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary); color: var(--accent);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.service-card .badge {
  align-self: flex-start;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  background: var(--secondary); color: var(--ink);
  border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.06em;
}
.service-card h4 { font-family: var(--font-heading); font-weight: 400; font-size: 22px; line-height: 1.25; }
.service-card p { font-size: 14px; flex: 1; }
.service-card .more { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.services-cta { text-align: center; margin-top: 48px; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--accent); color: white; }
.testimonials .section-head h2,
.testimonials .section-head h2 em,
.testimonials .section-head p { color: white; }
.testimonials .section-head h2 em { color: var(--secondary); }
.testimonials .eyebrow { background: rgba(255,255,255,.12); color: white; }
.testimonials .eyebrow::before { background: var(--secondary); }
.testimonials .section-head p { color: rgba(255,255,255,.8); }
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testi {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg); padding: 40px 36px;
  position: relative;
}
.testi .quote {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-heading); font-size: 64px; line-height: 1; color: rgba(213,232,223,.25);
}
.testi .stars { color: var(--secondary); margin-bottom: 16px; font-size: 13px; letter-spacing: 4px; }
.testi p {
  color: rgba(255,255,255,.92); font-style: italic; font-size: 16px; line-height: 1.7; margin-bottom: 24px;
}
.testi .who { display: flex; align-items: center; gap: 14px; }
.testi .who .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.testi .who .name { font-weight: 600; }
.testi .who .role { font-size: 13px; color: rgba(255,255,255,.65); }

/* ============ BOOKING + CURS BANNER ============ */
.promo-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.promo-card {
  background: var(--white); border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); display: flex; flex-direction: column;
}
.promo-card.dark { background: var(--accent); color: white; border: none; }
.promo-card .pad { padding: 48px; flex: 1; display: flex; flex-direction: column; }
.promo-card.dark h2 { color: white; }
.promo-card .eyebrow { margin-bottom: 18px; }
.promo-card.dark .eyebrow { background: rgba(255,255,255,.12); color: var(--secondary); }
.promo-card.dark .eyebrow::before { background: var(--secondary); }
.promo-card.dark p { color: rgba(255,255,255,.85); }
.promo-card h2 { font-size: 36px; margin-bottom: 16px; }
.promo-card .meta-row { display: flex; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.promo-card .meta-item .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.promo-card.dark .meta-item .lbl { color: rgba(255,255,255,.6); }
.promo-card .meta-item .val { font-family: var(--font-heading); font-size: 26px; color: var(--accent); }
.promo-card.dark .meta-item .val { color: var(--secondary); }
.promo-card .actions { margin-top: auto; padding-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ BAEHR ============ */
.baehr { background: var(--bg-warm); position: relative; overflow: hidden; }
.baehr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.baehr h2 { margin-bottom: 20px; }
.baehr .points { margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.baehr .points li { display: flex; gap: 12px; align-items: flex-start; list-style: none; font-size: 15px; }
.baehr .points i {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: white;
  display: grid; place-items: center; font-size: 11px; margin-top: 2px;
}
.baehr-form {
  background: var(--white); border-radius: var(--radius-xl); padding: 40px;
  box-shadow: var(--shadow-card);
}
.baehr-form h3 { font-family: var(--font-heading); font-weight: 400; font-size: 28px; margin-bottom: 8px; }
.baehr-form > p { font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field input[type="email"] {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-button);
  background: var(--bg); border: 1px solid var(--border);
  font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s;
}
.field input[type="email"]:focus { outline: none; border-color: var(--accent); background: white; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.check label { font-size: 13px; color: var(--muted); cursor: pointer; }
.baehr-form .btn { width: 100%; justify-content: center; padding: 16px; }
/* Success-state action row: narrower buttons (auto width, not full-bleed),
   visible breathing room between them. Overrides the form's full-width btn. */
.baehr-success-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-width: 280px;
  margin: 18px auto 0;
}
.baehr-success-actions .btn {
  width: auto;
  padding: 12px 22px;
  gap: 8px;
}
.baehr-form small { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

.baehr-success { display: none; text-align: center; padding: 12px 0; }
.baehr-success.on { display: block; }
.baehr-form.hidden { display: none; }
.baehr-success .check-ic {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary);
  color: var(--accent); display: grid; place-items: center; font-size: 28px;
  margin: 0 auto 20px;
}
.code-box {
  background: var(--bg); border: 2px dashed var(--accent);
  padding: 18px; border-radius: var(--radius-md); margin: 20px 0;
  font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: 0.04em;
  color: var(--accent);
}
.code-box .lbl { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }

/* ============ FINAL CTA ============ */
.final-cta {
  background: var(--accent); color: white; text-align: center;
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  margin: 64px auto;
  max-width: 1100px;
  position: relative; overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: ""; position: absolute;
  border: 1px dashed rgba(213,232,223,.3); border-radius: 50%;
  pointer-events: none;
}
.final-cta::before { width: 400px; height: 400px; left: -100px; top: -180px; }
.final-cta::after { width: 280px; height: 280px; right: -80px; bottom: -120px; }
.final-cta h2 { color: white; margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.final-cta p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 600px; margin: 0 auto 36px; }
.final-cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============ FOOTER (Flexora-style teal) ============ */
/* ================================================================
   FOOTER — Cary Studio (vertical-flow, teal body with top inset card)
   ================================================================ */
/* Footer silhouette — same cubic-bezier curves as Flexora's vamtam-cp-big-top,
   but anchored to viewport CENTER via --ft-half so the tab keeps a fixed width
   independent of viewport.

   Geometry (within the clipped element, in pixels from top):
   - y=0:    narrowest top of tab (between center ± --ft-half)
   - y=37:   widest point (convex top curve flares ~48px outward each side)
   - y=83.5: body-top line — shoulder concave curve ends ~114px outward each side
   - y>83.5: full container width (body region)

   Disabled on <=700px viewports (tab portion would be too narrow). */
footer.site {
  --ft-half: 250px;   /* half of desired tab top width (500px desktop default) */
  background: var(--accent, #417572);
  color: rgba(255,255,255,.8);
  position: relative;
  margin-top: 120px;
  padding-bottom: 0;
  -webkit-clip-path: polygon(
    calc(50% + var(--ft-half) + 47.784px) 32.8977px, calc(50% + var(--ft-half) + 47.784px) 32.8977px,
    calc(50% + var(--ft-half) + 45.289px) 27.1769256px, calc(50% + var(--ft-half) + 42.155px) 21.8917248px,
    calc(50% + var(--ft-half) + 38.437px) 17.0813412px, calc(50% + var(--ft-half) + 34.193px) 12.7850184px,
    calc(50% + var(--ft-half) + 29.478px) 9.042px, calc(50% + var(--ft-half) + 24.348px) 5.8915296px,
    calc(50% + var(--ft-half) + 18.859px) 3.3728508px, calc(50% + var(--ft-half) + 13.067px) 1.5252072px,
    calc(50% + var(--ft-half) + 7.028px) 0.3878424px, calc(50% + var(--ft-half) + 0.799px) 0,
    calc(50% - var(--ft-half)) 0, calc(50% - var(--ft-half)) 0,
    calc(50% - var(--ft-half) - 6.26px) 0.3916515px, calc(50% - var(--ft-half) - 12.326px) 1.53996px,
    calc(50% - var(--ft-half) - 18.142px) 3.4049565px, calc(50% - var(--ft-half) - 23.651px) 5.946672px,
    calc(50% - var(--ft-half) - 28.796px) 9.1251375px, calc(50% - var(--ft-half) - 33.521px) 12.900384px,
    calc(50% - var(--ft-half) - 37.769px) 17.2324425px, calc(50% - var(--ft-half) - 41.483px) 22.081344px,
    calc(50% - var(--ft-half) - 44.606px) 27.4071195px, calc(50% - var(--ft-half) - 47.082px) 33.1698px,
    calc(50% - var(--ft-half) - 48.474px) 37.0623px, calc(50% - var(--ft-half) - 48.474px) 37.0623px,
    calc(50% - var(--ft-half) - 51.94px) 45.130057px, calc(50% - var(--ft-half) - 56.312px) 52.586144px,
    calc(50% - var(--ft-half) - 61.512px) 59.374605px, calc(50% - var(--ft-half) - 67.459px) 65.439484px,
    calc(50% - var(--ft-half) - 74.074px) 70.724825px, calc(50% - var(--ft-half) - 81.277px) 75.174672px,
    calc(50% - var(--ft-half) - 88.99px) 78.733069px, calc(50% - var(--ft-half) - 97.132px) 81.34406px,
    calc(50% - var(--ft-half) - 105.625px) 82.951689px, calc(50% - var(--ft-half) - 114.389px) 83.5px,
    0 83.5px, 0 100%, 100% 100%, 100% 83.5px,
    calc(50% + var(--ft-half) + 112.938px) 83.5px, calc(50% + var(--ft-half) + 112.938px) 83.5px,
    calc(50% + var(--ft-half) + 104.36px) 82.8020193px, calc(50% + var(--ft-half) + 96.056px) 81.0591944px,
    calc(50% + var(--ft-half) + 88.099px) 78.3324511px, calc(50% + var(--ft-half) + 80.565px) 74.6827152px,
    calc(50% + var(--ft-half) + 73.528px) 70.1709125px, calc(50% + var(--ft-half) + 67.063px) 64.8579688px,
    calc(50% + var(--ft-half) + 61.244px) 58.8048099px, calc(50% + var(--ft-half) + 56.146px) 52.0723616px,
    calc(50% + var(--ft-half) + 51.843px) 44.7215497px, calc(50% + var(--ft-half) + 48.41px) 36.8133px,
    calc(50% + var(--ft-half) + 47.784px) 32.8977px
  );
  clip-path: polygon(
    calc(50% + var(--ft-half) + 47.784px) 32.8977px, calc(50% + var(--ft-half) + 47.784px) 32.8977px,
    calc(50% + var(--ft-half) + 45.289px) 27.1769256px, calc(50% + var(--ft-half) + 42.155px) 21.8917248px,
    calc(50% + var(--ft-half) + 38.437px) 17.0813412px, calc(50% + var(--ft-half) + 34.193px) 12.7850184px,
    calc(50% + var(--ft-half) + 29.478px) 9.042px, calc(50% + var(--ft-half) + 24.348px) 5.8915296px,
    calc(50% + var(--ft-half) + 18.859px) 3.3728508px, calc(50% + var(--ft-half) + 13.067px) 1.5252072px,
    calc(50% + var(--ft-half) + 7.028px) 0.3878424px, calc(50% + var(--ft-half) + 0.799px) 0,
    calc(50% - var(--ft-half)) 0, calc(50% - var(--ft-half)) 0,
    calc(50% - var(--ft-half) - 6.26px) 0.3916515px, calc(50% - var(--ft-half) - 12.326px) 1.53996px,
    calc(50% - var(--ft-half) - 18.142px) 3.4049565px, calc(50% - var(--ft-half) - 23.651px) 5.946672px,
    calc(50% - var(--ft-half) - 28.796px) 9.1251375px, calc(50% - var(--ft-half) - 33.521px) 12.900384px,
    calc(50% - var(--ft-half) - 37.769px) 17.2324425px, calc(50% - var(--ft-half) - 41.483px) 22.081344px,
    calc(50% - var(--ft-half) - 44.606px) 27.4071195px, calc(50% - var(--ft-half) - 47.082px) 33.1698px,
    calc(50% - var(--ft-half) - 48.474px) 37.0623px, calc(50% - var(--ft-half) - 48.474px) 37.0623px,
    calc(50% - var(--ft-half) - 51.94px) 45.130057px, calc(50% - var(--ft-half) - 56.312px) 52.586144px,
    calc(50% - var(--ft-half) - 61.512px) 59.374605px, calc(50% - var(--ft-half) - 67.459px) 65.439484px,
    calc(50% - var(--ft-half) - 74.074px) 70.724825px, calc(50% - var(--ft-half) - 81.277px) 75.174672px,
    calc(50% - var(--ft-half) - 88.99px) 78.733069px, calc(50% - var(--ft-half) - 97.132px) 81.34406px,
    calc(50% - var(--ft-half) - 105.625px) 82.951689px, calc(50% - var(--ft-half) - 114.389px) 83.5px,
    0 83.5px, 0 100%, 100% 100%, 100% 83.5px,
    calc(50% + var(--ft-half) + 112.938px) 83.5px, calc(50% + var(--ft-half) + 112.938px) 83.5px,
    calc(50% + var(--ft-half) + 104.36px) 82.8020193px, calc(50% + var(--ft-half) + 96.056px) 81.0591944px,
    calc(50% + var(--ft-half) + 88.099px) 78.3324511px, calc(50% + var(--ft-half) + 80.565px) 74.6827152px,
    calc(50% + var(--ft-half) + 73.528px) 70.1709125px, calc(50% + var(--ft-half) + 67.063px) 64.8579688px,
    calc(50% + var(--ft-half) + 61.244px) 58.8048099px, calc(50% + var(--ft-half) + 56.146px) 52.0723616px,
    calc(50% + var(--ft-half) + 51.843px) 44.7215497px, calc(50% + var(--ft-half) + 48.41px) 36.8133px,
    calc(50% + var(--ft-half) + 47.784px) 32.8977px
  );
}

/* Tab content area — sits in the upper ~83.5px of the clipped silhouette */
.footer-top {
  position: relative;
}
.footer-top-card {
  width: 100%;
  max-width: 460px;   /* fits inside the ~500px tab silhouette at its widest (y≈37) */
  margin: 0 auto;
  padding: 14px 24px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  color: #fff;
  box-sizing: border-box;
}
.ft-top-item { text-align: center; }
.ft-top-eyebrow {
  font-family: var(--font-body), sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 4px;
}
.ft-top-value {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}
.ft-top-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.25);
}

/* Body region — sits below y=83.5 in the clipped silhouette (full width). */
.footer-body {
  padding: 24px 0 32px;
}

/* Brand center — logo + name */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 32px 0 36px;
}
.footer-brand .mark {
  width: 64px; height: 64px;
  object-fit: contain;
}
.footer-brand-name {
  font-family: var(--font-heading), serif;
  font-weight: 400;
  font-size: 32px;
  color: white;
  line-height: 1;
}

/* Phone + dotted line + CTA pill row */
.footer-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto 48px;
  max-width: 760px;
  padding: 0 24px;
}
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
  font-family: var(--font-heading), serif;
  font-size: 22px;
  font-weight: 400;
  transition: opacity .15s;
}
.footer-phone:hover { opacity: .85; }
.ft-phone-ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
  color: var(--primary);
  font-size: 15px;
  flex-shrink: 0;
}
.footer-cta-line {
  flex: 1;
  height: 0;
  border-top: 1px dashed rgba(255,255,255,.25);
}
.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary, #D5E8DF);
  color: var(--ink);
  padding: 12px 22px 12px 16px;
  border-radius: 99px;
  font-family: var(--font-body), sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.footer-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.ft-pill-plus {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

/* 4-col link grid */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 24px 0 32px;
}
.ft-col-eyebrow {
  font-family: var(--font-body), sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.ft-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .15s, transform .15s;
}
.ft-col a:hover {
  color: white;
  transform: translateX(2px);
}
.ft-col a i { width: 16px; color: var(--primary); margin-right: 6px; opacity: .75; }

/* Compliance images (REQUIRED) */
footer.site .footer-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
footer.site .footer-badges a {
  padding: 0;
  display: inline-flex;
  transform: none;
}
footer.site .footer-badges a:hover { opacity: .85; }
footer.site .footer-badges img {
  height: 44px;
  width: auto;
  background: white;
  padding: 4px 10px;
  border-radius: 10px;
  display: block;
}

/* Dotted divider line */
.footer-rule {
  height: 0;
  border-top: 1px dashed rgba(255,255,255,.18);
  margin: 16px 0 24px;
}

/* Bottom row — copyright + socials */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0 28px;
}
.ft-copy {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.ft-socials {
  display: flex;
  gap: 10px;
}
.ft-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.ft-socials a:hover {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ============ BACKGROUND DECORATIONS ============ */
.hero, #about, .why, .benefits, .ba, .services, .testimonials, .baehr, #booking { position: relative; overflow: hidden; }

/* dashed-ring helpers */
.deco-ring { position: absolute; border: 1px dashed rgba(65,117,114,.18); border-radius: 50%; pointer-events: none; z-index: 0; }
.deco-ring.solid { border-style: solid; border-color: rgba(65,117,114,.10); }
.deco-ring.sage { border-color: rgba(213,232,223,.55); }
.deco-ring.mustard { border-color: rgba(242,221,100,.45); }
.deco-ring.light { border-color: rgba(255,255,255,.18); }
/* soft blob */
.deco-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; }
.deco-blob.sage { background: var(--primary); }
.deco-blob.cream { background: var(--bg-warm); }
.deco-blob.mustard { background: var(--secondary); opacity: .25; }
/* dot pattern */
.deco-dots { position: absolute; width: 140px; height: 140px; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(65,117,114,.35) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
.deco-dots.light { background-image: radial-gradient(rgba(255,255,255,.35) 1.5px, transparent 1.5px); opacity: .35; }
.deco-dots.mustard { background-image: radial-gradient(rgba(242,221,100,.65) 1.5px, transparent 1.5px); opacity: .55; }
/* tilted square */
.deco-square { position: absolute; border: 1px solid rgba(65,117,114,.18); transform: rotate(45deg); pointer-events: none; z-index: 0; }
.deco-square.mustard { border-color: rgba(242,221,100,.6); background: rgba(242,221,100,.18); }
/* keep content above decorations */
.hero > .container, #about > .container, .why > .container, .benefits > .container, .ba > .container, .services > .container, .testimonials > .container, .baehr > .container, #booking > .container { position: relative; z-index: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .baehr-grid, .why-head, .promo-row { grid-template-columns: 1fr; gap: 48px; }
  .benefits-grid, .why-cards, .ba-grid, .services-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  footer.site .container { grid-template-columns: 1fr 1fr; }
  .top-bar { display: none; }
}
@media (max-width: 860px) {
  nav.primary { display: none; }
}
@media (max-width: 640px) {
  .benefits-grid, .why-cards, .ba-grid, .services-grid, .testi-grid { grid-template-columns: 1fr; }
  footer.site .container { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-badge.right { display: none; }
  .promo-card .pad { padding: 32px; }
}

/* ================================================================
   ADDITIONAL STYLES (sub-pages: Servicii, Despre, Cursuri, Contact, Legal)
   ================================================================ */

/* PAGE HERO (used on Servicii, Despre, Cursuri, Contact, Shop) */
.page-hero { padding: 80px 0 56px; background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%); position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .crumbs .sep { opacity: .5; }
.page-hero h1 { max-width: 880px; margin-bottom: 20px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p.lead { font-size: 18px; line-height: 1.7; max-width: 720px; }

/* INFO STRIP (icon + label/value pills) */
.info-strip {
  background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.info-strip .item { display: flex; gap: 14px; align-items: center; }
.info-strip .item i { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: var(--accent); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.info-strip .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.info-strip .val { font-family: var(--font-heading); font-size: 18px; color: var(--ink); }

/* Service-detail hero grid: text left, visual right.
   Falls back to single column on mobile. */
.svc-page-hero { padding: 64px 0 48px; }
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* equal columns — visually balanced */
  gap: 32px;
  align-items: center;
  max-width: 1080px;                /* constrain so hero feels centered, not slammed against the container edges on wide viewports */
  margin: 0 auto;
}
.svc-hero-text h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; }
.svc-hero-text h1 em { color: var(--accent); font-style: normal; }

/* Decorative medallion when service has no uploaded image — sage primary tint
   + dashed accent ring + giant centered icon. Identifies the service visually
   without forcing a placeholder image to be uploaded for every entry. */
.svc-hero-visual { position: relative; min-height: 320px; }
.svc-hero-medallion {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
}
.svc-hero-deco-ring {
  position: absolute; inset: -16px;
  border: 1.5px dashed var(--accent);
  border-radius: 50%;
  opacity: .35;
}
.svc-hero-deco-blob {
  position: absolute; inset: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent-soft));
  border-radius: 50%;
  filter: drop-shadow(0 22px 36px rgba(31,63,60,.18));
}
.svc-hero-icon {
  position: absolute; inset: 14px;
  display: grid; place-items: center;
  color: var(--accent);
  font-size: clamp(72px, 9vw, 120px);
  z-index: 1;
}

/* Floating trust-chips around the medallion (used on /servicii hero). */
.svc-hero-chip {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 28px rgba(31,63,60,.12);
  z-index: 2;
}
.svc-hero-chip i { color: var(--accent); font-size: 11px; }
.svc-hero-chip-1 { top: 6%;  right: -18px; transform: rotate(4deg); }
.svc-hero-chip-2 { left: -22px; top: 38%;  transform: rotate(-3deg); }
.svc-hero-chip-3 { bottom: 4%; right: -8px;
  background: var(--secondary); border-color: transparent;
  transform: rotate(2deg);
}
.svc-hero-chip-3 i { color: var(--ink); }
@media (max-width: 540px) {
  .svc-hero-chip-1 { right: -4px; top: -8px; }
  .svc-hero-chip-2 { left: -4px; }
  .svc-hero-chip-3 { right: 0; bottom: -4px; }
}

@media (max-width: 900px) {
  .svc-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-hero-visual { min-height: auto; }
  .svc-hero-medallion { max-width: 260px; }
}

/* ================================================================
   /servicii — Categorized layout
   Sticky-ish in-page nav (pills) + per-category section with heading.
   Built so the grid expands cleanly when admin adds new services.
   ================================================================ */
.svc-categories-nav { padding: 24px 0 8px; }
.svc-cat-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.svc-cat-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.svc-cat-nav-pill:hover,
.svc-cat-nav-pill:focus-visible {
  background: var(--accent-soft, #DDECEA);
  border-color: var(--accent, #417572);
  color: var(--accent, #417572);
  transform: translateY(-1px);
}
.svc-cat-nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent, #417572);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
}

/* Per-category section: smaller vertical padding so multiple sections
   stack tightly without feeling like separate pages. Anchor offset for
   sticky header (top-bar + nav). */
.svc-cat-section { padding: 40px 0 24px; scroll-margin-top: 96px; }
.svc-cat-section:first-of-type { padding-top: 32px; }
.svc-cat-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.svc-cat-head-text { flex: 0 0 auto; }
.svc-cat-head-text .eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft, #DDECEA);
  color: var(--accent, #417572);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.svc-cat-head-text h2 {
  font-family: var(--font-heading), serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.svc-cat-head-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, var(--border) 0%, transparent 100%);
  margin-top: 12px;  /* aligns optically with the h2 baseline */
}
.svc-cat-section .svc-grid { margin-top: 0; }

/* "De ce noi" — 4 value cards in 2x2 (desktop) / 1-col (mobile). */
.svc-values { padding: 64px 0 32px; }
.svc-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.svc-value {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 4px 16px -8px rgba(31,63,60,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-value:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(31,63,60,.16);
}
.svc-value-ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary, #D5E8DF);
  color: var(--accent, #417572);
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.svc-value h3 {
  font-family: var(--font-heading), serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.25;
}
.svc-value p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #4F5E5B);
  margin: 0;
}

@media (max-width: 720px) {
  .svc-cat-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .svc-cat-head-rule { display: none; }
  .svc-cat-section { padding: 32px 0 16px; }
  .svc-values { padding: 48px 0 16px; }
  .svc-value { padding: 22px 20px; }
  .svc-cat-nav-pill { padding: 8px 14px; font-size: 12.5px; }
}

/* Service-detail hero image — sits between lead paragraph and info-strip. */
.svc-hero-img {
  margin: 32px 0 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(31,63,60,.12);
  max-width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-warm);
}
.svc-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* TWO-COL (prose + sidebar booking).
   On desktop: prose left, sticky booking-card right.
   On tablet/mobile (<1024px): aside moves ABOVE prose so the booking CTA isn't
   buried under 1500px of article + FAQ. We use grid-template-areas to swap. */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-areas: "main aside";
  gap: 56px;
  align-items: start;
}
.two-col > .prose { grid-area: main; min-width: 0; }
.two-col > aside  { grid-area: aside; position: sticky; top: 100px; }
.two-col .booking-card {
  background: var(--white); border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
  position: sticky; top: 110px;
}
.booking-card .stars { color: var(--secondary); font-size: 14px; letter-spacing: 4px; margin-bottom: 4px; }
.booking-card .trust-line { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.booking-card h3 { font-family: var(--font-heading); font-weight: 400; font-size: 24px; margin-bottom: 20px; }
.booking-card .field { margin-bottom: 14px; }
.booking-card .field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.booking-card .field input,
.booking-card .field select,
.booking-card .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg);
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.booking-card .field textarea { min-height: 80px; resize: vertical; }
.booking-card .field input:focus,
.booking-card .field select:focus,
.booking-card .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.booking-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-card .btn { width: 100%; justify-content: center; padding: 14px; margin-top: 4px; }
.booking-card .footnote { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* PROSE (long-form serviciu / cursuri body text) */
.prose h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin: 56px 0 18px;
  padding-left: 18px;
  position: relative;
  line-height: 1.2;
}
.prose h2::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 4px; border-radius: 4px;
  background: var(--accent);
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.75; margin-bottom: 18px; color: var(--ink); }
.prose p strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 24px 0; padding-left: 0; list-style: none; }
.prose ul li, .prose ol li {
  position: relative;
  padding: 4px 0 4px 32px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 6px;
}
.prose ul li::before {
  content: '\f00c'; /* fa-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft, #DDECEA);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 11px;
}
.prose ol { counter-reset: prose-ol; }
.prose ol li { counter-increment: prose-ol; }
.prose ol li::before {
  content: counter(prose-ol);
  position: absolute; left: 0; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 16px; color: var(--ink);
  list-style: none; position: relative; padding-right: 50px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--accent); font-weight: 300;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 22px 18px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* SVC GRID (used on Servicii list page) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.svc-item::before {
  /* Subtle top-accent line that grows on hover */
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  opacity: 0;
  transition: opacity .25s;
}
.svc-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.svc-item:hover::before { opacity: 1; }
.svc-item .ic {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent-soft, #DDECEA));
  color: var(--accent);
  display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 8px 18px rgba(31,63,60,.08);
  transition: transform .25s;
}
.svc-item:hover .ic { transform: rotate(-4deg) scale(1.05); }
.svc-item h4 { font-family: var(--font-heading); font-weight: 400; font-size: 24px; line-height: 1.25; }
.svc-item p { font-size: 14px; line-height: 1.65; flex: 1; }
.svc-item .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto; }
.svc-item .meta i { margin-right: 4px; opacity: .7; }
.svc-item .meta .price { color: var(--accent); font-weight: 700; font-family: var(--font-heading); font-size: 16px; }
.svc-item .more { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* COURSE HERO + PRICE CARD */
.course-hero { display: grid; grid-template-columns: 1.2fr 380px; gap: 56px; align-items: start; }
.course-hero h1 em { font-style: normal; color: var(--accent); }
.course-hero p { font-size: 17px; line-height: 1.7; margin: 18px 0 28px; }
.course-hero .meta-row { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.course-hero .meta-item .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.course-hero .meta-item .val { font-family: var(--font-heading); font-size: 24px; color: var(--accent); }
.price-card {
  background: var(--white); border-radius: var(--radius-xl); padding: 36px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
  position: relative; position: sticky; top: 110px;
}
.price-card .ribbon {
  position: absolute; top: -14px; right: 24px;
  background: var(--secondary); color: var(--ink);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.price-card .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.price-card .price { font-family: var(--font-heading); font-size: 56px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.price-card .price small { font-size: 18px; color: var(--muted); margin-left: 6px; }
.price-card ul { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.price-card ul li i { color: var(--btn-color, #dd0795); margin-top: 4px; flex-shrink: 0; }
.price-card .btn { width: 100%; justify-content: center; padding: 16px; }
.price-card .footnote { display: block; text-align: center; font-size: 12px; color: var(--muted); }

/* TEAM GRID (Despre noi) */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.team-card .ph {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent-soft));
  display: grid; place-items: center; color: var(--accent);
  font-family: var(--font-heading); font-size: 64px;
}
.team-card .body { padding: 24px; }
.team-card .body h4 { font-family: var(--font-heading); font-weight: 400; font-size: 22px; margin-bottom: 4px; }
.team-card .body .role { font-size: 13px; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.team-card .body p { font-size: 14px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; gap: 18px; align-items: flex-start;
}
.contact-card .ic {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
}
.contact-card h4 { font-family: var(--font-heading); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.contact-card p { font-size: 14px; line-height: 1.6; }
.contact-card a { color: var(--accent); font-weight: 600; font-size: 16px; }

.cal-mock {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-card);
}
.cal-mock .cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cal-mock .cal-head h4 { font-family: var(--font-heading); font-weight: 400; font-size: 22px; }
.cal-mock .cal-nav { display: flex; gap: 8px; }
.cal-mock .cal-nav button {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; color: var(--accent); font-size: 13px;
}
.cal-mock .cal-nav button:hover { background: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.cal-grid .day-name { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 0; text-transform: uppercase; letter-spacing: 0.06em; }
.cal-grid .day {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: 14px; border-radius: 10px; cursor: pointer;
  position: relative; transition: all .15s;
}
.cal-grid .day:hover { background: var(--bg-warm); }
.cal-grid .day.muted { color: rgba(95,111,107,0.3); cursor: not-allowed; }
.cal-grid .day.muted:hover { background: transparent; }
.cal-grid .day.dot::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.cal-grid .day.selected { background: var(--accent); color: white; font-weight: 600; }
.cal-grid .day.selected::after { background: var(--secondary); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots button {
  padding: 10px 6px; border-radius: var(--radius-md);
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink); transition: all .15s;
}
.slots button:hover:not(:disabled) { background: var(--primary); border-color: var(--accent); }
.slots button.selected { background: var(--accent); color: white; border-color: var(--accent); }
.slots button:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.map-frame {
  position: relative;
  border-radius: var(--radius-xl); overflow: hidden;
  height: 480px; box-shadow: var(--shadow-card); border: 1px solid var(--border);
}
/* iframe is 22px taller than the container so the OSM attribution bar at the
   bottom of the embed overflows out of the rounded card (hidden by overflow). */
.map-frame iframe {
  width: 100%;
  height: calc(100% + 22px);
  border: none;
  display: block;
}
/* Minimal OSM attribution overlay (legal compliance). Sits inside the rounded
   card as a small white pill at bottom-right, like Google Maps does. */
.map-attribution-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  font-size: 10px;
  line-height: 1;
  color: #555;
  background: rgba(255, 255, 255, 0.82);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: auto;
}
.map-attribution-overlay a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* LEGAL PAGES */
.legal-page { padding: 80px 0; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: 16px; }
.legal-page .updated { font-size: 13px; color: var(--muted); padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.legal-page .prose h2 { font-size: 24px; margin: 32px 0 12px; }
.legal-page .prose p, .legal-page .prose ul, .legal-page .prose ol { font-size: 15px; }

/* RESPONSIVE additions for sub-pages */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
    grid-template-areas: "aside" "main";
    gap: 40px;
  }
  .course-hero, .contact-grid { grid-template-columns: 1fr; }
  .two-col > aside { position: static; max-width: 540px; margin: 0 auto; }
  .two-col .booking-card, .price-card { position: static; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .info-strip { grid-template-columns: 1fr; }
  .svc-grid, .team-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   MOBILE NAV (hamburger + full-screen overlay)
   ================================================================ */

/* Hamburger button — hidden on desktop, shown on mobile */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  padding: 12px 8px;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column; justify-content: space-between;
  align-items: stretch;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink, #222);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, background .15s;
}
.hamburger:hover span { background: var(--accent); }
.hamburger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Mobile menu overlay — full-screen, slides+fades in */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg, #F2F0EC);
  z-index: 1000;
  display: flex; flex-direction: column;
  padding: 20px 24px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
  margin-bottom: 24px;
}
.mobile-menu-top .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.mobile-menu-top .logo .mark { width: 40px; height: 40px; }
.mobile-menu-top .logo .name { font-family: var(--font-heading), serif; font-size: 18px; line-height: 1.2; }
.mobile-menu-top .logo .tag { font-size: 11px; color: var(--muted, #666); letter-spacing: 0.04em; }

.mobile-menu-close {
  width: 44px; height: 44px;
  background: var(--white, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.1));
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink, #222);
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus-visible {
  background: var(--accent, #417572); color: #fff; outline: none;
}

/* Vertical link list */
.mobile-nav {
  display: flex; flex-direction: column;
  flex: 1;
  gap: 4px;
}
.mobile-nav > a, .mobile-nav-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 4px;
  font-family: var(--font-heading), serif;
  font-size: 22px; line-height: 1.2;
  color: var(--ink, #222);
  text-decoration: none;
  border: none; background: transparent;
  text-align: left;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, padding-left .15s;
}
.mobile-nav > a:hover, .mobile-nav-trigger:hover { color: var(--accent); padding-left: 8px; }
.mobile-nav > a.active, .mobile-nav-trigger.active { color: var(--accent); }
.mobile-nav > a.active::before, .mobile-nav-trigger.active::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
}

.mobile-nav-trigger i { margin-left: auto; transition: transform .25s ease; font-size: .8em; opacity: .6; }
.mobile-nav-trigger[aria-expanded="true"] i { transform: rotate(180deg); }

.mobile-submenu {
  display: flex; flex-direction: column;
  padding: 4px 0 8px 16px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  border-left: 2px solid var(--accent, #417572);
  margin-left: 4px;
}
.mobile-submenu[hidden] { display: none; }
.mobile-submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, transform .15s;
}
.mobile-submenu a:hover { color: var(--accent); transform: translateX(4px); }
.mobile-submenu a i { width: 22px; text-align: center; color: var(--accent); opacity: .75; font-size: 14px; flex-shrink: 0; }
.mobile-submenu-all { font-weight: 600; border-bottom: 1px dashed rgba(0,0,0,.08); margin-bottom: 4px; }

/* CTA bar at bottom of overlay */
.mobile-menu-cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px;
}
.mobile-menu-cta .btn {
  width: 100%; justify-content: center;
  padding: 14px 22px;
  min-height: 48px;
}

.mobile-menu-socials {
  display: flex; justify-content: center; gap: 18px;
  margin-top: 20px;
}
.mobile-menu-socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.1));
  display: grid; place-items: center;
  color: var(--accent);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s;
}
.mobile-menu-socials a:hover { background: var(--accent); color: #fff; }

/* Body lock when menu is open */
body.mobile-menu-open { overflow: hidden; }

/* Show hamburger and hide desktop nav/CTA below 860px */
@media (max-width: 860px) {
  .hamburger { display: flex; }
  header.site .header-cta { display: none; }
  /* Top-bar (program + adresă) ascuns pe mobil — zgomot vizual inutil */
  .top-bar { display: none; }
  /* Header stays clickable above the overlay so hamburger toggles to X in place */
  header.site { z-index: 1001; }
  /* Menu opens BELOW the sticky header — padding-top clears it */
  .mobile-menu { padding-top: 96px; }
}

/* ================================================================
   HERO + GENERAL MOBILE TWEAKS
   ================================================================ */

/* Hero h1 scaling — smaller min for narrow phones */
@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero .lead { font-size: 16px; line-height: 1.6; }

  /* 3 stats in a single row (was 2-col leaving 3rd alone in row 2) */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .hero-stat .num { font-size: 1.05rem; }
  .hero-stat .lbl { font-size: .72rem; }

  /* CTAs full-width on narrow screens */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }

  /* Hero visual: don't waste space */
  .hero-visual { min-height: auto; }
  .hero-image { position: relative; inset: 0; aspect-ratio: 4/5; max-width: 360px; margin: 0 auto; }
  .hero-arc { display: none; }

  /* Trust strip: 2-col grid instead of haphazard flex-wrap */
  .trust-strip .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    justify-content: stretch;
    text-align: left;
  }
  .trust-strip .item { font-size: 13px; }
}

/* Narrow phones (iPhone SE 375px etc.) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  /* Smaller eyebrow text */
  .eyebrow, .top-bar { font-size: 11px; }

  /* Single-column trust strip + larger touch target per item */
  .trust-strip .container { grid-template-columns: 1fr; gap: 10px; }
  .trust-strip .item { padding: 6px 0; }

  /* Section heads tighter */
  .section-head { margin-bottom: 32px; }
  .section-head h2 { margin-bottom: 12px; }
  .section-head p { font-size: 15px; }

  /* Footer compact */
  footer.site .container { gap: 32px; padding: 40px 16px 24px; }

  /* Before/after slider — limit height to fit narrow screens */
  .ba-slider { max-height: 70vh; }

  /* Booking widget tighter */
  .promo-card .pad { padding: 24px; }
  .promo-card h2 { font-size: 1.4rem; }

  /* BAEHR form */
  .baehr-form { padding: 24px; }
  .baehr-form h3 { font-size: 1.3rem; }
}

/* Ensure all tappable inline icons in top-bar/social meet 44px target on touch */
@media (hover: none) and (pointer: coarse) {
  .top-bar-meta a, .socials a { padding: 6px 4px; min-height: 36px; display: inline-flex; align-items: center; }
}

/* ================================================================
   VISUAL POLISH — second pass (footer + hero + general rhythm)
   ================================================================ */

/* Hamburger: animate to X when open */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu: softer backdrop + smoother enter */
.mobile-menu {
  background: linear-gradient(180deg, var(--bg, #F2F0EC) 0%, #fff 100%);
  box-shadow: -16px 0 32px rgba(31,63,60,.05);
}
.mobile-menu-top { padding-bottom: 20px; }
.mobile-nav-trigger, .mobile-nav > a { font-size: 20px; padding: 18px 4px; }

@media (max-width: 640px) {

  /* ----- HERO refinement ----- */
  .hero { padding: 32px 0 48px; }
  .hero .container { padding: 0 20px; }
  .hero-grid { gap: 28px !important; }
  .hero h1 { font-size: clamp(1.85rem, 7.4vw, 2.35rem); line-height: 1.18; margin-bottom: 14px; }
  .hero .eyebrow { margin-bottom: 12px; font-size: 11px; }
  .hero .lead { font-size: 15.5px; line-height: 1.65; margin-bottom: 22px; max-width: 100%; }
  .hero-cta { gap: 10px; margin-bottom: 28px; }

  /* Bring hero image back to a comfortable size (was over-constrained at 360px) */
  .hero-visual { min-height: auto; margin-top: 8px; }
  .hero-image {
    position: relative; inset: auto;
    aspect-ratio: 5/6;
    max-width: 92%;
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: 0 30px 60px -20px rgba(31,63,60,.25);
  }
  /* hero-arc stays hidden on mobile — the image shadow + .hero-image rounded
     corners provide enough visual interest without the offset deco-ring. */
  .hero-arc { display: none; }

  /* Hero stats: card-like row with subtle dividers between */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 26px;
    background: var(--white, #fff);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 14px 4px;
    box-shadow: 0 6px 14px rgba(31,63,60,.04);
  }
  .hero-stat {
    text-align: center;
    padding: 4px 6px;
    border-right: 1px solid rgba(0,0,0,.06);
  }
  .hero-stat:last-child { border-right: none; }
  .hero-stat .num { font-size: 0.95rem; line-height: 1.2; margin-bottom: 2px; }
  .hero-stat .lbl { font-size: 0.7rem; line-height: 1.25; }

  /* Hero floating badges — keep only one, repositioned cleanly */
  .hero-badge { display: none; }

  /* ----- DECO simplification on mobile (less clutter) ----- */
  .deco-blob, .deco-ring, .deco-dots, .deco-square { opacity: .35; transform: scale(.6); }

  /* ----- SECTIONS: consistent vertical rhythm ----- */
  section, .ba, .why, .benefits, .testimonials, .services, .baehr, #about, #booking { padding: 56px 0; }
  .section-head { margin-bottom: 28px; text-align: center; }
  .section-head h2 { font-size: clamp(1.55rem, 6.5vw, 2rem); line-height: 1.2; margin-bottom: 10px; }
  .section-head p { font-size: 15px; line-height: 1.65; max-width: 100%; }

  /* Cards (about-feat, why-card, benefit-card, testi) — softer */
  .about-feat, .why-card, .benefit-card, .testi { border-radius: 18px; padding: 24px 22px; }
  .why-card h4, .benefit-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
  .why-card p, .benefit-card p { font-size: 14.5px; line-height: 1.65; }

  /* Trust strip: rounded chip-like items, one per row for symmetric layout (5 items) */
  .trust-strip { padding: 22px 0; }
  .trust-strip .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .trust-strip .item {
    background: rgba(213,232,223,.35);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    gap: 10px;
    color: var(--ink);
  }
  .trust-strip .item i { color: var(--accent); }

  /* Promo cards (Booking/Curs) */
  .promo-card { border-radius: 22px; }
  .promo-card .pad { padding: 28px 24px; }
  .promo-card h2 { font-size: 1.35rem; }
  .promo-card .meta-row { gap: 16px; margin: 18px 0; }
  .promo-card .meta-item .lbl { font-size: 11px; }
  .promo-card .meta-item .val { font-size: 16px; }

  /* BAEHR form — breathe + softer */
  .baehr-form { border-radius: 22px; padding: 28px 22px !important; }
  .baehr-form h3 { font-size: 1.3rem; }
  .baehr-form input[type="email"] { font-size: 16px; padding: 12px 14px; min-height: 48px; border-radius: 12px; }
  .baehr-tos { font-size: 13px; align-items: flex-start; gap: 8px; }

  /* Final CTA */
  .final-cta { padding: 36px 24px; border-radius: 22px; }
  .final-cta h2 { font-size: 1.5rem; line-height: 1.25; }
  .final-cta .actions { flex-direction: column; gap: 10px; }
  .final-cta .actions .btn { width: 100%; justify-content: center; min-height: 48px; }
}

/* ================================================================
   FOOTER — responsive (tablet + mobile)
   ================================================================ */
@media (max-width: 860px) {
  footer.site {
    margin-top: 80px;
    --ft-half: 190px;   /* tab top ≈ 380px on tablet */
  }

  /* Tab: stack into 1 column, divider hidden */
  .footer-top-card {
    padding: 12px 20px 10px;
    max-width: 340px;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ft-top-divider { display: none; }

  /* Body */
  .footer-body { padding: 40px 0 24px; }

  /* Brand */
  .footer-brand { margin: 16px 0 24px; }
  .footer-brand .mark { width: 48px; height: 48px; }
  .footer-brand-name { font-size: 26px; }

  /* CTA row: stack vertically, dotted line goes horizontal across */
  .footer-cta-row {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
    padding: 0 20px;
  }
  .footer-phone { font-size: 19px; }
  .footer-cta-line {
    width: 100%;
    flex: none;
  }
  .footer-pill { padding: 11px 20px 11px 14px; font-size: 14px; }

  /* Cols: 2x2 grid on tablet */
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding: 16px 0 24px;
  }
  .ft-col-eyebrow { margin-bottom: 12px; font-size: 10.5px; }
  .ft-col a { padding: 5px 0; font-size: 14px; }

  /* Badges + bottom */
  footer.site .footer-badges {
    padding: 22px 0;
    gap: 8px;
  }
  footer.site .footer-badges img {
    height: 36px;
    padding: 4px 8px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 12px 0 24px;
  }
  .ft-copy { font-size: 12.5px; }
}

/* Below 700px the polygon's side margins leave too little width for
   the tab content. Disable clip-path and fall back to a simple rounded-top
   footer rectangle. */
@media (max-width: 700px) {
  footer.site {
    -webkit-clip-path: none;
    clip-path: none;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }
  .footer-top { padding-top: 26px; }
  .footer-body { padding-top: 12px; }
}

@media (max-width: 480px) {
  .footer-top-card { padding: 12px 20px 10px; max-width: 320px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  footer.site .footer-badges img { height: 30px; padding: 4px 7px; border-radius: 8px; }
  .footer-brand-name { font-size: 24px; }
}

/* ================================================================
   POLICLINICA MAIERU BANNER (Home page mini-banner)
   ================================================================ */
.maieru-banner { margin-top: 64px; }
.maieru-banner-card {
  display: block;
  background: var(--primary, #D5E8DF);
  border: 1px solid rgba(65,117,114,.28);
  border-radius: var(--radius-xl, 32px);
  padding: 24px 32px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(31,63,60,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.maieru-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31,63,60,.12);
}
.maieru-banner-inner {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; justify-content: space-between;
}
.maieru-banner-left {
  display: flex; align-items: center; gap: 20px;
  flex: 1; min-width: 0;
}
.maieru-banner-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white, #fff);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 20px;
}
.maieru-banner-label {
  font-family: var(--font-body), sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 4px;
}
.maieru-banner-body {
  font-family: var(--font-heading), serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.3;
}
.maieru-banner-body strong { font-weight: 400; color: var(--accent); }
.maieru-banner-cta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body), sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .maieru-banner { margin-top: 40px; }
  .maieru-banner-card { padding: 20px; }
  .maieru-banner-inner { flex-direction: column; gap: 16px; text-align: center; }
  .maieru-banner-left { flex-direction: column; gap: 12px; min-width: 0; }
  .maieru-banner-body { font-size: 17px; }
  .maieru-banner-cta { justify-content: center; }
}

/* ================================================================
   SVC PAGE — service detail page (vertical-flow layout B)
   ================================================================ */
.svc-page { /* outer wrapper, scoping context */ }

.svc-page-crumbs { font-size: 13px; color: var(--muted); margin: 32px 0 16px; }
.svc-page-crumbs a { color: var(--accent); }
.svc-page-crumbs .sep { margin: 0 8px; opacity: .5; }

/* HERO — 2-col on desktop, stack on mobile */
.svc-page-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 32px 0 64px;
  position: relative;
}
.svc-page-hero-text h1 { margin: 0 0 18px; }
.svc-page-hero-text h1 em { color: var(--accent); font-style: italic; }
.svc-page-hero-text .lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }
.svc-page-hero-text .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.svc-page-hero-visual { position: relative; min-height: 360px; }
.svc-page-medallion-lg {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #fff);
  margin: 0 auto;
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 88px;
  box-shadow: 0 24px 48px -16px rgba(65,117,114,.25);
  position: relative;
}
.svc-page-medallion-lg::before, .svc-page-medallion-lg::after {
  content: ''; position: absolute;
  border: 1px solid rgba(65,117,114,.15);
  border-radius: 50%;
}
.svc-page-medallion-lg::before { inset: -24px; }
.svc-page-medallion-lg::after { inset: -56px; border-style: dashed; opacity: .5; }

.svc-page-float-chip {
  position: absolute;
  background: white;
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(65,117,114,.12);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.svc-page-float-chip.fc-1 { top: 30px; left: 8%; }
.svc-page-float-chip.fc-2 { top: 50%; right: 0; }
.svc-page-float-chip.fc-3 { bottom: 30px; left: 24%; background: var(--accent); color: white; }

/* TRUST STRIP — 3 chips in sage card */
.svc-page-trust {
  background: var(--primary);
  border-radius: var(--radius-xl, 32px);
  padding: 28px 32px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.svc-page-trust .chip {
  display: flex; align-items: center; gap: 12px;
  background: white;
  color: var(--ink);
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 600;
}
.svc-page-trust .chip i { color: var(--accent); font-size: 18px; flex-shrink: 0; }

/* PROSE — narrowed for readability */
.svc-page-prose-container { max-width: 760px; margin: 0 auto; }
.svc-page-prose { font-size: 17px; line-height: 1.75; color: var(--ink); }
.svc-page-prose h2 {
  margin: 56px 0 18px;
  position: relative;
  padding-left: 18px;
}
.svc-page-prose h2::before {
  content: ''; position: absolute; left: 0; top: .2em; bottom: .25em;
  width: 4px; border-radius: 4px;
  background: var(--accent);
}
.svc-page-prose p { margin: 0 0 16px; }
.svc-page-prose ul { list-style: none; padding: 0; margin: 18px 0; }
.svc-page-prose ul li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.svc-page-prose ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 2px;
  color: var(--accent); background: var(--primary);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
}

/* CTA mid-page — dashed border card */
.svc-page-cta-mid {
  text-align: center;
  background: var(--white);
  border: 1px dashed rgba(65,117,114,.4);
  border-radius: var(--radius-xl, 32px);
  padding: 36px 32px;
  margin: 56px auto;
  max-width: 760px;
}
.svc-page-cta-mid p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }

/* FAQ accordion */
.svc-page-faq { margin: 24px 0; }
.svc-page-faq h2 {
  font-family: var(--font-heading), serif; font-weight: 400;
  margin: 56px 0 18px;
  position: relative; padding-left: 18px;
}
.svc-page-faq h2::before {
  content: ''; position: absolute; left: 0; top: .2em; bottom: .25em;
  width: 4px; border-radius: 4px;
  background: var(--accent);
}
.svc-page-faq details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.svc-page-faq details[open] { box-shadow: 0 8px 20px rgba(31,63,60,.06); border-color: var(--primary); }
.svc-page-faq summary {
  cursor: pointer; padding: 20px 28px;
  font-weight: 600; color: var(--ink); font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; list-style: none;
}
.svc-page-faq summary::-webkit-details-marker { display: none; }
.svc-page-faq summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--accent);
  transition: transform .2s;
  font-size: 13px;
}
.svc-page-faq details[open] summary::after { transform: rotate(180deg); }
.svc-page-faq .answer { padding: 0 28px 20px; color: var(--muted); line-height: 1.65; }

/* FINAL CTA — dark asymmetric card */
.svc-page-final-cta {
  background: var(--accent);
  color: white;
  border-radius: var(--radius-xl, 32px);
  padding: 56px 64px;
  margin: 64px 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
}
.svc-page-final-cta::before {
  content: ''; position: absolute;
  width: 320px; height: 320px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  right: -120px; top: -120px;
}
.svc-page-final-cta::after {
  content: ''; position: absolute;
  width: 200px; height: 200px;
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 50%;
  left: -80px; bottom: -100px;
}
.svc-page-final-cta h2 { color: white; font-style: italic; margin-bottom: 12px; }
.svc-page-final-cta h2 em { color: var(--secondary); font-style: normal; }
.svc-page-final-cta p { color: rgba(255,255,255,.85); margin: 0; font-size: 16px; line-height: 1.65; }
.svc-page-final-cta .actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.svc-page-final-cta .actions .btn { justify-content: center; width: 100%; }
.btn-on-dark { background: white; color: var(--accent); }
.btn-on-dark:hover { filter: brightness(.95); }
.btn-ghost-on-dark { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost-on-dark:hover { background: white; color: var(--accent); border-color: white; }

/* RELATED services */
.svc-page-related-head { text-align: center; margin: 56px 0 32px; }
.svc-page-related-head .label {
  display: inline-block;
  color: var(--accent); font-weight: 600;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 8px;
}
.svc-page-related-head h2 { margin: 0; }
.svc-page-related-head h2 em { color: var(--accent); font-style: italic; }
.svc-page-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-page-related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 20px);
  padding: 32px 28px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: block; color: inherit;
  text-align: left;
  text-decoration: none;
}
.svc-page-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31,63,60,.08);
  border-color: var(--primary);
}
.svc-page-related-card .ic {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  margin-bottom: 16px;
  display: grid; place-items: center;
  font-size: 22px;
}
.svc-page-related-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; }
.svc-page-related-card .desc { color: var(--muted); font-size: 14px; margin: 0 0 14px; line-height: 1.6; }
.svc-page-related-card .more { color: var(--btn-color); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* STICKY MOBILE BAR */
.svc-page-sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: none;
  gap: 8px;
  z-index: 100;
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.svc-page-sticky-bar .btn { padding: 12px 16px; font-size: 14px; justify-content: center; }
.svc-page-sticky-bar .btn-ghost { flex: 1; }
.svc-page-sticky-bar .btn-primary { flex: 2; }

/* Responsive — stack at <=860px */
@media (max-width: 860px) {
  .svc-page { padding-bottom: 88px; }
  .svc-page-sticky-bar { display: flex; }
  .svc-page-hero { grid-template-columns: 1fr; gap: 32px; text-align: center; padding: 16px 0 32px; }
  .svc-page-hero-text .lead { margin-left: auto; margin-right: auto; }
  .svc-page-hero-text .actions { justify-content: center; }
  .svc-page-hero-visual { min-height: 240px; order: -1; }
  .svc-page-medallion-lg { width: 180px; height: 180px; font-size: 56px; }
  .svc-page-medallion-lg::before { inset: -16px; }
  .svc-page-medallion-lg::after { inset: -36px; }
  .svc-page-float-chip { font-size: 11px; padding: 6px 10px; }
  .svc-page-float-chip.fc-1 { top: 10px; left: 4%; }
  .svc-page-float-chip.fc-2 { top: 40%; right: 0; }
  .svc-page-float-chip.fc-3 { bottom: 0; left: 12%; }
  .svc-page-trust { grid-template-columns: 1fr; padding: 16px; gap: 8px; margin-bottom: 32px; }
  .svc-page-trust .chip { font-size: 13.5px; padding: 12px 14px; }
  .svc-page-final-cta { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; gap: 24px; }
  .svc-page-final-cta .actions { align-items: center; }
  .svc-page-related-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MAIERU SECTION — Contact page partner office card
   ================================================================ */
.maieru-section { padding: 32px 0 64px; }
.maieru-card {
  background: var(--primary, #D5E8DF);
  border-radius: var(--radius-xl, 32px);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: stretch;
  box-shadow: 0 8px 32px -12px rgba(65,117,114,.18);
  position: relative;
  overflow: hidden;
}
.maieru-card::before {
  content: ''; position: absolute;
  width: 240px; height: 240px;
  border: 1px dashed rgba(65,117,114,.18);
  border-radius: 50%;
  right: -80px; bottom: -80px;
  pointer-events: none;
}

.maieru-info { position: relative; z-index: 1; }
.maieru-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  color: var(--accent, #417572);
  font-size: 11px; font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.maieru-eyebrow i { font-size: 12px; }
.maieru-title {
  font-family: var(--font-heading), serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}
.maieru-title em {
  font-style: italic;
  color: var(--accent, #417572);
}
.maieru-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted, #4F5E5B);
  margin: 0 0 28px;
  max-width: 52ch;
}

.maieru-contacts {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.maieru-chip {
  display: flex; align-items: center; gap: 14px;
  background: white;
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.maieru-chip-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(65,117,114,.12);
}
.maieru-chip-link:hover .maieru-chip-ic {
  background: var(--accent, #417572);
  color: white;
}
.maieru-chip-ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary, #D5E8DF);
  color: var(--accent, #417572);
  display: grid; place-items: center;
  font-size: 16px;
  transition: background .15s ease, color .15s ease;
}
.maieru-chip-body { min-width: 0; flex: 1; }
.maieru-chip-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted, #4F5E5B);
  margin-bottom: 2px;
}
.maieru-chip-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.maieru-map {
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 8px 24px rgba(31,63,60,.12);
  background: white;
  position: relative;
  z-index: 1;
}
.maieru-map iframe {
  width: 100%;
  height: calc(100% + 22px);  /* push OSM attribution bar out of view */
  min-height: 380px;
  border: none;
  display: block;
  border: 0;
  display: block;
}

@media (max-width: 860px) {
  .maieru-section { padding: 24px 0 48px; }
  .maieru-card {
    padding: 28px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .maieru-title { font-size: clamp(22px, 6vw, 28px); }
  .maieru-lead { font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
  .maieru-chip { padding: 12px 14px; gap: 12px; }
  .maieru-chip-ic { width: 36px; height: 36px; font-size: 14px; }
  .maieru-chip-value { font-size: 13.5px; }
  .maieru-cta { width: 100%; justify-content: center; }
  .maieru-map { min-height: 260px; }
  .maieru-map iframe { min-height: 260px; }
}

/* ==========================================================================
   Cookie banner — brand-styled, slide-up, z-index below mobile menu (1000)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid #E5E0D6;
  border-radius: 18px;
  padding: 18px 22px 16px;
  box-shadow: 0 18px 44px rgba(31, 63, 60, .18), 0 2px 6px rgba(31, 63, 60, .06);
  z-index: 999;
  font-family: var(--font-body, 'Manrope', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .28s ease, transform .32s cubic-bezier(.22, .61, .36, 1);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted, #4F5E5B);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cookie-banner-close:hover,
.cookie-banner-close:focus-visible {
  background: var(--accent-soft, #DDECEA);
  color: var(--accent, #417572);
  border-color: rgba(65, 117, 114, .2);
}
.cookie-banner-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-right: 36px; /* leave room for close button */
}
.cookie-banner-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft, #DDECEA);
  color: var(--accent, #417572);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.cookie-banner-eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent, #417572);
  font-weight: 600;
}
.cookie-banner-body {
  margin: 0 0 14px;
  color: var(--muted, #4F5E5B);
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent, #417572);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cookie-banner-link:hover,
.cookie-banner-link:focus-visible {
  color: var(--accent-hover, #2D5450);
}
.cookie-banner-accept {
  padding: 10px 20px;
  font-size: 13.5px;
}
.cookie-banner-accept i {
  margin-right: 4px;
}

@media (max-width: 520px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px 18px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 16px 18px 18px;
    max-width: none;
  }
  .cookie-banner-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cookie-banner-accept {
    width: 100%;
    justify-content: center;
  }
  .cookie-banner-link {
    text-align: center;
    padding: 4px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: opacity .15s linear;
    transform: none;
  }
}
