/* =========================================================================
   沈嶸魔法命理學院 — Redesign design system (framework-free)
   Brand: soft rose / magenta-pink + mystical purple + champagne gold.
   Theme variables are injected from admin settings in the layout <head>;
   the values below are fallbacks.
   ========================================================================= */

:root {
  --c-primary: #c9268d;     /* magenta-pink (logo) */
  --c-secondary: #7b2d8e;   /* mystical purple */
  --c-accent: #e4007f;      /* hot pink accent */

  --c-rose-50:  #fff6f9;
  --c-rose-100: #ffeaf1;
  --c-rose-200: #fdd5e1;
  --c-rose-300: #f9b8cd;
  --c-rose-400: #f191b3;

  --c-gold: #d8b46a;
  --c-ink: #422036;         /* deep plum text */
  --c-body: #5a3a4c;
  --c-muted: #9b7d8c;
  --c-line: #f3dde6;

  --c-emph: #e1004b;        /* red emphasis (prices/promo) */
  --c-link: #b81f7e;

  --shadow-sm: 0 2px 10px rgba(150, 40, 100, .08);
  --shadow: 0 10px 30px rgba(160, 40, 110, .12);
  --shadow-lg: 0 20px 50px rgba(150, 30, 100, .18);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --container: 1200px;
  --header-h: 96px;

  --grad-brand: linear-gradient(135deg, var(--c-accent), var(--c-secondary));
  --grad-soft: linear-gradient(180deg, var(--c-rose-50), #ffffff);
  --grad-header: linear-gradient(180deg, var(--c-rose-200), var(--c-rose-100) 60%, #ffffff);
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
}

/* ---- Theme variants ---- */
body.theme-purple {
  --c-primary: #7b2d8e;
  --c-secondary: #4a1d6e;
  --c-accent: #9b30b5;
  --c-rose-50: #f8f4fb; --c-rose-100: #efe6f6; --c-rose-200: #ddc9ee;
  --c-rose-300: #c79fe0; --c-line: #e7daf2; --c-link: #7b2d8e;
  --grad-header: linear-gradient(180deg, #e3d3f1, #f1e8f8 60%, #fff);
}
body.theme-gold {
  --c-primary: #c0922f;
  --c-secondary: #7b4b1e;
  --c-accent: #d8a93a;
  --c-rose-50: #fffaf0; --c-rose-100: #fdf1da; --c-rose-200: #f6e2bd;
  --c-rose-300: #ecca8d; --c-line: #f2e6cf; --c-link: #b07d22; --c-emph:#c0392b;
  --grad-header: linear-gradient(180deg, #f4e4c1, #fdf4e2 60%, #fff);
}

/* =================== Base =================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-body);
  line-height: 1.85;
  font-size: 16px;
  background:
    radial-gradient(1200px 480px at 50% -120px, var(--c-rose-100), transparent 70%),
    linear-gradient(180deg, var(--c-rose-50), #ffffff 380px);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--c-ink); line-height: 1.4; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(40px, 6vw, 84px) 0; position: relative; }
.section--tint { background: var(--grad-soft); }
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.emph { color: var(--c-emph); font-weight: 700; }

/* =================== Buttons =================== */
.c-btn, .btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.8em; border-radius: 999px;
  background: var(--grad-brand); color: #fff !important;
  font-weight: 700; border: 0; cursor: pointer;
  box-shadow: 0 8px 20px rgba(228, 0, 127, .28);
  transition: transform .2s, box-shadow .2s, filter .2s;
  font-family: var(--font-sans);
}
.c-btn:hover, .btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 26px rgba(228, 0, 127, .36); color:#fff; }
.c-btn--ghost {
  background: #fff; color: var(--c-primary) !important;
  border: 1.5px solid var(--c-rose-300); box-shadow: var(--shadow-sm);
}
.c-btn--ghost:hover { background: var(--c-rose-50); color: var(--c-accent) !important; }
.c-btn--sm { padding: .55em 1.2em; font-size: .9rem; }

.badge {
  display: inline-block; padding: .25em .8em; border-radius: 999px;
  background: var(--c-rose-100); color: var(--c-primary);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.badge--hot { background: linear-gradient(135deg,#ff6aa0,#e1004b); color:#fff; }

/* =================== Top contact bar =================== */
.topbar {
  background: var(--grad-brand); color: #fff; font-size: .82rem;
  letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #fff; opacity: .95; }
.topbar a:hover { opacity: 1; color:#fff; }
.topbar__social { display: flex; gap: 14px; align-items: center; }

/* =================== Header / Nav =================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--grad-header);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s, background .3s;
  backdrop-filter: saturate(1.1);
}
.site-header.is-stuck { box-shadow: var(--shadow); background: rgba(255, 247, 250, .96); backdrop-filter: blur(10px) saturate(1.2); }

.nav { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.nav__logo { flex: 0 0 auto; }
.nav__logo img { height: 64px; width: auto; transition: height .3s; }
.is-stuck .nav__logo img { height: 50px; }

.nav__menu { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 22px); list-style: none; margin: 0; padding: 0; }
.nav__side { flex: 1 1 0; }
.nav__side--left { justify-content: flex-end; }
.nav__side--right { justify-content: flex-start; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; color: var(--c-secondary); padding: 10px 4px;
  white-space: nowrap; font-size: 1.02rem;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--c-accent); }
.nav__link .caret { font-size: .6em; opacity: .7; transition: transform .2s; }
.nav__item:hover .caret { transform: rotate(180deg); }

/* dropdown */
.nav__sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: .22s; border: 1px solid var(--c-line);
}
.nav__item:hover > .nav__sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(2px); }
.nav__sub .nav__link { padding: 9px 14px; border-radius: 8px; width: 100%; font-size: .96rem; justify-content: space-between; }
.nav__sub .nav__link:hover { background: var(--c-rose-50); }

/* 3rd-level flyout submenu */
.nav__sub .nav__sub { top: -10px; left: 100%; transform: translateX(12px); }
.nav__sub .nav__item:hover > .nav__sub { transform: translateX(4px); }
.nav__sub .caret { margin-left: 8px; opacity: .8; }

/* nav layout variants */
.nav-left .nav, .nav-minimal .nav { justify-content: space-between; }
.nav-left .nav__side--left, .nav-minimal .nav__side--left { display: none; }
.nav-left .nav__logo, .nav-minimal .nav__logo { order: -1; }
.nav-minimal .nav__menu.nav__side--right { display: none; }

/* hamburger */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 10px; margin-left: auto;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--c-primary); border-radius: 3px; transition: .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile slide-down menu (preserves the original top-of-page mobile menu style) */
.mobile-menu {
  display: none; position: fixed; inset: 0 0 auto 0; top: var(--mm-top, 60px);
  background: #fff; box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--mm-top, 60px)); overflow-y: auto;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: .28s ease; z-index: 55; border-top: 3px solid var(--c-primary);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul { padding: 6px 0 18px; }
.mobile-menu a { display: block; padding: 13px 22px; color: var(--c-secondary); font-weight: 700; border-bottom: 1px solid var(--c-rose-100); }
.mobile-menu a:hover { background: var(--c-rose-50); color: var(--c-accent); }
.mobile-menu .has-children > .mm-row { display: flex; align-items: center; }
.mobile-menu .has-children > .mm-row > a { flex: 1; }
.mobile-menu .mm-expand { background: none; border: 0; padding: 13px 18px; color: var(--c-primary); font-size: 1.1rem; cursor: pointer; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu .mm-sub { display: none; background: var(--c-rose-50); }
.mobile-menu .mm-sub.is-open { display: block; }
.mobile-menu .mm-sub a { padding-left: 40px; font-weight: 500; }
.mobile-menu .mm-sub .mm-sub a { padding-left: 60px; background: #fff; }

/* mobile-only quick-access bar (resident on every mobile page) — original tight 4-per-row layout */
.mobile-quickbar { display: none; }
@media (max-width: 1024px) {
  .mobile-quickbar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding: 0; margin: 0; background: none; border: 0;
  }
  .mobile-quickbar a { display: block; border-radius: 0; overflow: hidden; box-shadow: none; line-height: 0; }
  .mobile-quickbar a:active { opacity: .85; }
  .mobile-quickbar img { width: 100%; height: auto; display: block; }
  .mobile-quickbar a > span { display: block; line-height: 1.25; padding: 8px 3px; text-align: center; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .74rem; }
}

/* ===================== home hero carousel ===================== */
.hero-slider { position: relative; max-width: 1280px; margin: 24px auto 0; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-md); background: var(--c-rose-100); }
.hero-slider__track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.hero-slide { min-width: 100%; aspect-ratio: 1241 / 403; line-height: 0; display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slider__prev, .hero-slider__next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .72); color: var(--c-primary); font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.hero-slider__prev:hover, .hero-slider__next:hover { background: #fff; }
.hero-slider__prev { left: 16px; }
.hero-slider__next { right: 16px; }
.hero-slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.hero-slider__dots .dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: background .2s, transform .2s; }
.hero-slider__dots .dot.is-active { background: #fff; transform: scale(1.25); }
.hero-intro { text-align: center; padding: 30px 0 4px; }
.hero-intro__title { font-family: var(--font-serif, serif); font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--c-secondary); margin: 8px 0 10px; }
.hero-intro__sub { color: var(--c-muted); max-width: 720px; margin: 0 auto 18px; }
@media (max-width: 1024px) {
  .hero-slider { margin: 0; border-radius: 0; box-shadow: none; }
  .hero-slider__prev, .hero-slider__next { width: 36px; height: 36px; font-size: 1.3rem; }
  .hero-intro { padding: 22px 0 2px; }
}

/* =================== Ornate section title =================== */
.sec-title { text-align: center; margin: 0 auto clamp(26px, 4vw, 48px); max-width: 760px; position: relative; }
.sec-title__kicker { color: var(--c-primary); font-weight: 700; letter-spacing: .35em; font-size: .78rem; text-transform: uppercase; display:block; margin-bottom:.5em; }
.sec-title h2 {
  display: inline-block; position: relative; font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  padding: 0 .7em; margin: 0; color: var(--c-secondary);
}
.sec-title h2::before, .sec-title h2::after {
  content: "❁"; color: var(--c-gold); font-size: .7em; vertical-align: middle;
  margin: 0 .35em; opacity: .85;
}
.sec-title__rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.sec-title__rule::before, .sec-title__rule::after {
  content: ""; height: 2px; width: min(120px, 22vw);
  background: linear-gradient(90deg, transparent, var(--c-rose-300));
}
.sec-title__rule::after { background: linear-gradient(90deg, var(--c-rose-300), transparent); }
.sec-title__rule i { color: var(--c-primary); font-style: normal; }
.sec-title p { margin-top: 12px; color: var(--c-muted); }

/* banner-style heading (like the original framed title) */
.title-banner {
  display: inline-block; padding: 14px 46px; border-radius: 14px;
  background: linear-gradient(180deg,#fff, var(--c-rose-50));
  border: 2px solid var(--c-rose-200); box-shadow: var(--shadow-sm);
  position: relative; color: var(--c-secondary); font-family: var(--font-serif);
  font-weight: 800; letter-spacing: .12em;
}
.title-banner::before, .title-banner::after {
  content:"✦"; color: var(--c-primary); position:absolute; top:50%; transform:translateY(-50%); font-size:.8em;
}
.title-banner::before { left: 16px; } .title-banner::after { right: 16px; }

/* =================== Cards =================== */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid rgba(249, 184, 205, .35);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cards-bordered .card { box-shadow: none; border: 1.5px solid var(--c-rose-200); }
.cards-bordered .card:hover { box-shadow: var(--shadow); }
.cards-flat .card { box-shadow: none; border: 1px solid var(--c-line); }

.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--c-rose-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__media--portrait { aspect-ratio: 3/4; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.12rem; margin: 0; color: var(--c-ink); }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--c-accent); }
.card__excerpt { color: var(--c-muted); font-size: .92rem; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--c-muted); }
.card__cat { color: var(--c-primary); font-weight: 700; }

/* image placeholder when no media */
.thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 14px;
  background: linear-gradient(135deg, var(--c-rose-200), var(--c-rose-100)); color: var(--c-primary);
  font-family: var(--font-serif); font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; }
.thumb-ph span { opacity: .85; }
.thumb-ph::after { content: "✦"; position: absolute; right: 12px; bottom: 10px; color: #fff; opacity: .6; }

/* =================== Hero =================== */
.hero { position: relative; overflow: hidden; }
.hero--banner {
  background:
    radial-gradient(900px 360px at 80% -40px, var(--c-rose-200), transparent),
    var(--grad-header);
  padding: clamp(48px, 8vw, 110px) 0 clamp(60px, 9vw, 120px);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__eyebrow { color: var(--c-primary); font-weight: 700; letter-spacing: .3em; font-size: .8rem; }
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: .2em 0 .3em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.25; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--c-body); max-width: 36ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__qr { background:#fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align:center; }
.hero__qr img { width: 190px; margin: 0 auto 10px; }
.home-split .hero__inner { grid-template-columns: 1fr; text-align: center; place-items: center; }
.home-split .hero__sub { margin-inline: auto; }
.home-split .hero__cta { justify-content: center; }

/* =================== Service plan list =================== */
.service-card { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.service-card .card__media { aspect-ratio: auto; height: 100%; min-height: 200px; }
.service-card__body { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.service-card__head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.service-card__title { font-size: 1.2rem; margin: 0; }
.service-card__price { color: var(--c-emph); font-weight: 800; font-size: 1.25rem; }
.service-card__price small { color: var(--c-muted); text-decoration: line-through; font-weight: 500; font-size: .8rem; margin-left:6px;}
.service-card__features { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.service-card__features li { padding-left: 1.5em; position: relative; color: var(--c-body); }
.service-card__features li::before { content: "✦"; position: absolute; left: 0; color: var(--c-primary); }
.service-card__teacher { font-size:.85rem; color: var(--c-muted); }

/* =================== Prose (article content) =================== */
.prose { color: var(--c-body); font-size: 1.04rem; line-height: 1.95; word-break: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; color: var(--c-secondary); }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .5em; }
.prose img { border-radius: var(--radius-sm); margin: 1em auto; box-shadow: var(--shadow-sm); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--c-ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose .c-figure { margin: 1.2em 0; }
.prose .c-btn-wrap { margin: 1.2em 0; }
.prose .c-toggle { background:#fff; border:1px solid var(--c-rose-200); border-radius: var(--radius-sm); padding: 4px 18px; margin:.8em 0; box-shadow: var(--shadow-sm); }
.prose .c-toggle > summary { cursor:pointer; font-weight:700; color: var(--c-primary); padding:12px 0; list-style:none; }
.prose .c-toggle > summary::-webkit-details-marker { display:none; }
.prose .c-toggle > summary::before { content:"＋"; margin-right:.5em; color:var(--c-accent); }
.prose .c-toggle[open] > summary::before { content:"－"; }
.prose .c-video { position: relative; padding-top: 56.25%; margin: 1.2em 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.prose .c-video iframe, .prose .c-video video { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* Normalise leftover Divi (et_pb_*) wrappers from imported rendered pages */
.prose [class^="et_pb_"], .prose [class*=" et_pb_"] { width: auto !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; background: none !important; float: none !important; }
.prose .et_pb_image, .prose .et_pb_text { margin: .8em 0 !important; }
.prose .et_pb_button { display:inline-flex !important; }

/* =================== Breadcrumb =================== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--c-muted); padding: 18px 0; }
.breadcrumb a { color: var(--c-muted); } .breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { opacity: .5; }

/* =================== Pagination =================== */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 40px 0 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content:center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--c-rose-200); color: var(--c-secondary); font-weight: 700; }
.pagination a:hover { background: var(--c-rose-50); color: var(--c-accent); }
.pagination .active span { background: var(--grad-brand); color: #fff; border-color: transparent; }
.pagination .disabled span { opacity: .4; }

/* =================== Page hero (sub pages) =================== */
.page-hero { background: var(--grad-header); padding: clamp(36px, 6vw, 70px) 0 clamp(28px,4vw,46px); text-align: center; border-bottom: 1px solid var(--c-line); position: relative; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0; color: var(--c-secondary); }
.page-hero p { color: var(--c-muted); margin: .6em auto 0; max-width: 56ch; }

/* =================== Footer =================== */
.site-footer { margin-top: 40px; background: linear-gradient(180deg, var(--c-rose-100), var(--c-rose-200)); color: var(--c-body); }
.site-footer__top { padding: clamp(40px, 6vw, 70px) 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--c-secondary); font-size: 1.05rem; margin: 0 0 16px; }
.site-footer a { color: var(--c-body); }
.site-footer a:hover { color: var(--c-accent); }
.footer-logo img { height: 70px; margin-bottom: 14px; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { margin-bottom: 10px; display: flex; gap: 10px; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--c-primary); }
.footer-social a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-3px); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.5); padding: 18px 0; text-align: center; font-size: .85rem; color: var(--c-muted); }

/* =================== Sparkle decor =================== */
.has-sparkle .section::before, .has-sparkle .section::after {
  content: "✦"; position: absolute; color: var(--c-rose-300); opacity: .6; font-size: 1.4rem;
  animation: twinkle 4s ease-in-out infinite; pointer-events: none;
}
.has-sparkle .section::before { left: 3%; top: 16%; }
.has-sparkle .section::after { right: 4%; top: 60%; font-size: 1rem; animation-delay: 1.5s; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.9) rotate(0); } 50% { opacity: .8; transform: scale(1.15) rotate(20deg); } }

/* =================== Back to top =================== */
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s; z-index: 50; font-size: 1.2rem; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* =================== Utilities / animation =================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }
.cta-band { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px,4vw,48px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band .c-btn { background: #fff; color: var(--c-primary) !important; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background:#fff; border:1px solid var(--c-rose-200); border-radius:999px; padding:.5em 1.1em; font-weight:700; color:var(--c-secondary); font-size:.9rem; box-shadow:var(--shadow-sm); }
.chip:hover { background: var(--c-rose-50); color: var(--c-accent); }
.chip .n { color: var(--c-muted); font-weight: 500; margin-left: 4px; }

/* =================== Responsive =================== */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .nav__menu.nav__side { display: none; }
  .nav__toggle { display: flex; }
  .nav { justify-content: space-between; }
  .nav-centered .nav__logo { order: 0; margin: 0 auto 0 0; }
  .mobile-menu { display: block; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__media { max-width: 420px; margin: 0 auto; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; }
  .service-card .card__media { min-height: 180px; aspect-ratio: 16/9; }
  .site-footer__top { grid-template-columns: 1fr; }
  .topbar__social { display: none; }
  .sec-title__rule::before, .sec-title__rule::after { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
