/* Directory member mini website (templates/site/member_site.php). --brand / --on-brand come from the member's colour. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.ms { margin: 0; font: 400 16px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: #1E293B; background: #fff; }
.ms img { max-width: 100%; height: auto; }
.ms a { color: inherit; }
.ms h1, .ms h2, .ms h3 { line-height: 1.2; margin: 0 0 .5em; color: #0F172A; letter-spacing: -.01em; }
.ms h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
.ms h3 { font-size: 1.08rem; font-weight: 700; }
.ms-wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.ms-skip { position: absolute; left: -9999px; }
.ms-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }
.ms-preview { background: #FEF3C7; color: #78350F; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }
section[id] { scroll-margin-top: 84px; }

/* Sticky header with anchor navigation */
.ms-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #E2E8F0; }
.ms-header-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.ms-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; text-decoration: none; color: #0F172A; min-width: 0; }
.ms-brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; }
.ms-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-initials { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; }
.ms-nav { display: flex; gap: 2px; margin-left: auto; }
.ms-nav a { padding: 8px 11px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; color: #334155; white-space: nowrap; }
.ms-nav a:hover, .ms-nav a:focus-visible { background: #F1F5F9; color: var(--brand); }

/* Buttons */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font: 700 .95rem/1 inherit; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ms-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 23, 42, .14); }
.ms-btn-light { background: #fff; color: var(--brand) !important; }
.ms-btn-ghost { border-color: currentColor; color: var(--on-brand) !important; }
.ms-btn-brand { background: var(--brand); color: var(--on-brand) !important; width: 100%; }
.ms-btn-wa { background: #25D366; color: #06331A !important; }
.ms-header-cta { min-height: 40px; padding: 0 16px; }

/* Hero (Home) */
.ms-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, .18), transparent), var(--brand); color: var(--on-brand); padding: clamp(48px, 8vw, 96px) 0; }
.ms-hero h1 { color: inherit; font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
.ms-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.ms-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 12px; }
.ms-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: .92; margin: 0 0 28px; max-width: 34em; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ms-member { margin: 24px 0 0; font-size: .9rem; opacity: .85; }
.ms-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.ms-hero-logo { object-fit: contain; background: #fff; padding: 12%; }

/* Sections */
.ms-section { padding: clamp(56px, 8vw, 96px) 0; }
.ms-alt { background: #F8FAFC; }
.ms-eyebrow { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 8px; }
.ms-about { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: start; }
.ms-prose p { margin: 0 0 1em; }
.ms-facts { margin: 0; padding: 24px; border: 1px solid #E2E8F0; border-radius: 16px; display: grid; gap: 14px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.ms-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #64748B; font-weight: 700; }
.ms-facts dd { margin: 2px 0 0; font-weight: 600; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 28px; }
.ms-card { position: relative; padding: 26px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 6px 18px rgba(15, 23, 42, .04); transition: transform .15s, box-shadow .15s; }
.ms-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 23, 42, .09); }
.ms-card p, .ms-why-item p { margin: 0; color: #475569; font-size: .95rem; }
.ms-num { display: inline-block; font-weight: 800; color: var(--brand); font-size: .85rem; margin-bottom: 10px; }
.ms-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ms-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.ms-why-item { display: flex; gap: 14px; align-items: flex-start; }
.ms-tick { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; }
.ms-quote { margin: 0; padding: 26px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; }
.ms-quote blockquote { margin: 0 0 12px; font-size: 1.02rem; }
.ms-quote blockquote p::before { content: "“"; color: var(--brand); font-size: 2.2rem; line-height: 0; vertical-align: -.4em; margin-right: 4px; }
.ms-quote figcaption { color: #64748B; font-weight: 600; font-size: .9rem; }

/* Contact */
.ms-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; align-items: start; }
.ms-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.ms-list li { display: grid; gap: 2px; }
.ms-list strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #64748B; }
.ms-list a { color: var(--brand); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ms-map { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid #E2E8F0; }
.ms-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ms-maplink { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--brand) !important; }
.ms-form { display: grid; gap: 12px; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 16px 40px rgba(15, 23, 42, .07); }
.ms-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.ms-form input, .ms-form textarea { font: inherit; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 10px; width: 100%; }
.ms-form input:focus, .ms-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
.ms-hp { position: absolute; left: -9999px; }
.ms-flash { margin: 0; padding: 10px 12px; border-radius: 8px; background: #DCFCE7; color: #14532D; font-weight: 600; }
.ms-flash-error { background: #FEE2E2; color: #7F1D1D; }
.ms .field-error { color: #B91C1C; font-size: .85rem; margin: -6px 0 0; }

/* Footer */
.ms-footer { background: #0F172A; color: #CBD5E1; padding: 56px 0 0; }
.ms-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ms-footer strong { display: block; color: #fff; margin-bottom: 10px; }
.ms-footer nav, .ms-footer-in > div { display: flex; flex-direction: column; gap: 6px; font-size: .93rem; }
.ms-footer a { text-decoration: none; }
.ms-footer a:hover { color: #fff; }
.ms-brand-foot { color: #fff; }
.ms-brand-foot img { width: 40px; height: 40px; }
.ms-assoc a { display: inline-flex; align-items: center; gap: 8px; }
.ms-assoc img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 8px; }
.ms-copy { margin: 40px 0 0; padding: 18px 16px; border-top: 1px solid #1E293B; text-align: center; font-size: .88rem; }
.ms-copy a { color: #fff; }

/* Floating WhatsApp */
.ms-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .15s; }
.ms-wa-float:hover { transform: scale(1.06); }

/* Responsive */
@media (max-width: 1060px) {
  .ms-header-in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .ms-nav { order: 3; width: 100%; margin: 6px -8px 0; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
  .ms-nav::-webkit-scrollbar { display: none; }
  .ms-header-cta { margin-left: auto; }
  section[id] { scroll-margin-top: 116px; }
}
@media (max-width: 960px) {
  .ms-hero-in, .ms-about, .ms-contact { grid-template-columns: 1fr; gap: 32px; }
  .ms-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ms-brand { font-size: .98rem; }
  .ms-brand img, .ms-initials { width: 38px; height: 38px; }
  .ms-header-cta { display: none; }
  .ms-actions .ms-btn { flex: 1 1 100%; }
  .ms-footer-in { grid-template-columns: 1fr; }
  .ms-form { padding: 20px; }
}

/* Google Reviews (beside the testimonials) */
.ms-google { margin-top: 36px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; }
.ms-google-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ms-g-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 1.4rem/1 Arial, sans-serif; color: #4285F4; background: #F1F5F9; flex: none; }
.ms-g-score { margin: 2px 0 0; color: #475569; }
.ms-g-num { font-weight: 800; color: #0F172A; font-size: 1.15rem; }
.ms-stars { color: #FBBC04; letter-spacing: 1px; }
.ms-g-count { color: #64748B; font-size: .9rem; }
.ms-g-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.ms-btn-outline { border-color: #CBD5E1; background: #fff; color: #0F172A !important; min-height: 42px; }
.ms-btn-brand-sm { background: var(--brand); color: var(--on-brand) !important; min-height: 42px; }
.ms-g-review .ms-stars { display: block; margin-bottom: 8px; }
.ms-g-review blockquote p::before { content: none; }
.ms-g-review figcaption { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ms-g-review figcaption img { width: 28px; height: 28px; border-radius: 50%; }
.ms-g-review figcaption a { color: inherit; }
.ms-g-attrib { margin: 14px 0 0; color: #64748B; font-size: .8rem; text-align: right; }
@media (max-width: 560px) { .ms-g-actions { margin-left: 0; width: 100%; } .ms-g-actions .ms-btn { flex: 1 1 100%; } }

.ms-google:first-of-type { margin-top: 28px; }
.ms-g-list { margin-top: 20px; }
.ms-g-review time { color: #64748B; font-size: .85rem; }
.ms-g-review .ms-g-link { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.ms-g-note { margin: 18px 0 0; color: #475569; }
.ms-g-maps { font-family: Roboto, Arial, sans-serif; font-weight: 500; color: #5E5E5E; }
.ms-g-skeleton { min-height: 170px; display: grid; gap: 10px; align-content: start; }
.ms-g-skeleton span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #EEF2F7, #F8FAFC, #EEF2F7); background-size: 200% 100%; animation: ms-shine 1.2s infinite linear; }
.ms-g-skeleton span:first-child { width: 40%; } .ms-g-skeleton span:last-child { width: 60%; }
@keyframes ms-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ms-g-skeleton span { animation: none; } }


/* Our own customer reviews (stored in the CMS, not Google) */
.ms-rsum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.ms-rsum-num { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.ms-rsum-count { color: #475569; }
.ms-stars { color: #F59E0B; letter-spacing: 2px; }
.ms-review .ms-stars { display: block; margin-bottom: 10px; }
.ms-review figcaption time { font-weight: 400; }
.ms-review-write { margin-top: 24px; }
.ms-review-write > summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 10px 0; }
.ms-review-write .ms-form { margin-top: 12px; max-width: 560px; }
.ms-review-write select { font: inherit; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 10px; width: 100%; background: #fff; }
.ms-review-write select:focus { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
