/* Follows gcctvms.com colors: purple top bar, white nav, light page, Poppins headings,
   purple-outlined boxes, white primary buttons. Kept flat on purpose: solid colors, no glows. */
:root {
  --purple: #6b0181;
  --purple-2: #512075;
  --navy: #121a73;
  --deep: #1b0044;
  --outline: #d9c6e6;
  --outline-hover: #6b0181;
  --link: #6b0181;
  --bg: #ffffff;
  --band: #f7f2fa;
  --card: #faf7fc;
  --ink: #1d1a24;
  --muted: #5f5a6b;
  --line: #e6e1ec;
  --ok: #1f7a4d;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--font); }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }

.wrap {
  width: 100%; max-width: 1140px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.topbar { background: linear-gradient(135deg, var(--purple), var(--deep)); font-size: .84rem; font-weight: 500; }
.topbar-in { display: flex; justify-content: center; gap: 6px 28px; flex-wrap: wrap; padding-block: 10px; }
.topbar span, .topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 2px solid var(--purple); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 12px; flex-wrap: wrap; }
.brand img { width: 165px; display: block; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-links a { color: #222; text-decoration: none; font-size: .88rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { background: #efe4f7; color: var(--purple); }
@media (max-width: 900px) { .nav-links { order: 3; width: 100%; justify-content: center; } }

/* Buttons */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: linear-gradient(90deg, var(--purple), var(--navy)); color: #fff; border: 0; cursor: pointer;
  padding: 10px 22px; border-radius: 999px; font: 600 .92rem var(--font); text-decoration: none;
  transition: opacity .15s;
}
.btn-pill:hover { opacity: .88; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--purple); color: #fff; border: 2px solid var(--purple); border-radius: 4px; cursor: pointer;
  padding: 8px 20px; font: 600 .9rem var(--font); text-decoration: none; transition: background .15s, color .15s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn-small { padding: 5px 14px; font-size: .84rem; }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

main { padding-bottom: 64px; }
.page { display: grid; gap: 44px; padding-top: 36px; }

/* Page header */
.band { background: var(--band); border-bottom: 1px solid var(--line); }
.band .wrap { padding-block: 44px 36px; }
.hero { display: grid; gap: 14px; max-width: 760px; }
.lede { color: var(--muted); font-size: 1rem; max-width: 62ch; }
.crumbs { font-size: .84rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--purple); }
.search { display: flex; gap: 8px; margin-top: 6px; max-width: 560px; }
.search input { flex: 1; min-width: 0; }

input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--outline); border-radius: 4px; padding: 9px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--outline-hover); }
textarea { min-height: 96px; resize: vertical; }

/* Stat boxes, as on the gcctvms.com hero */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; color: var(--purple); border: 2px solid var(--outline); border-radius: 8px; }
.stat b, .stat span { color: var(--ink); }
.stat b { display: block; font-size: 1.1rem; line-height: 1.15; }
.stat span { font-size: .74rem; font-weight: 600; text-transform: uppercase; }

/* Sections */
.section { display: grid; gap: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }

/* Regions */
.map { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); grid-template-areas: "north north northeast" "west central east"; }
.region-tile { display: grid; gap: 4px; align-content: start; padding: 18px; color: var(--ink); text-decoration: none; border: 2px solid var(--outline); border-radius: 8px; transition: border-color .15s, background .15s; }
.region-tile:hover { border-color: var(--outline-hover); background: var(--card); }
.region-tile h2 { font-size: 1.25rem; }
.region-tile .count { font-size: .8rem; color: var(--muted); }
.region-tile .towns-preview { color: var(--muted); font-size: .85rem; }
.r-north { grid-area: north; } .r-north-east { grid-area: northeast; }
.r-west { grid-area: west; } .r-central { grid-area: central; } .r-east { grid-area: east; }
@media (max-width: 640px) { .map { grid-template-columns: 1fr; grid-template-areas: "north" "northeast" "west" "central" "east"; } }

/* Towns */
.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.town-link { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 11px 14px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; transition: border-color .15s; }
.town-link:hover { border-color: var(--outline-hover); }
.town-link strong { font-weight: 500; font-size: .95rem; }
.tag { font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* Company list: plain rows */
.company-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.company { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border-top: 1px solid var(--line); transition: background .15s; }
.company:first-child { border-top: 0; }
.company:hover { background: var(--card); }
.company .rank { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.company-body { display: grid; gap: 3px; min-width: 0; }
.company-body .addr { color: var(--muted); font-size: .86rem; }
.company-body .site { font-size: .84rem; overflow-wrap: anywhere; }
.company-body .services { font-size: .84rem; color: var(--ink); }
.local { color: var(--ok); font-size: .82rem; font-weight: 500; }
@media (max-width: 640px) { .company { grid-template-columns: 26px 1fr; } .company .btn { grid-column: 2; justify-self: start; } }

.empty { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; border: 1px dashed var(--outline); border-radius: 8px; }

/* GCCTVMS box */
.featured { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px; border: 2px solid var(--outline); border-radius: 8px; }
.featured-main { display: grid; gap: 8px; min-width: 0; }
.featured-label { font-size: .8rem; color: var(--muted); }
.featured h3 { font-size: 1.2rem; }
.featured-side { display: grid; gap: 8px; min-width: 220px; }
.featured-addr { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured-side { min-width: 0; } }

/* GCCTVMS services */
.services-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.service { display: grid; gap: 4px; padding: 16px 18px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; transition: border-color .15s; }
.service:hover { border-color: var(--outline-hover); }
.service h3 { color: var(--ink); }
.service p { color: var(--muted); font-size: .86rem; }

/* Contact strip */
.cta { margin-top: 56px; background: var(--purple-2); }
.cta-in { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta p { color: rgba(255, 255, 255, .85); margin-top: 4px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta .btn { background: #fff; color: var(--purple); border-color: #fff; }
.cta .btn:hover { background: transparent; color: #fff; }
.cta .btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.cta .btn-ghost-light:hover { background: #fff; color: var(--purple); }

/* Form */
.form-card { display: grid; gap: 18px; max-width: 780px; padding: 24px; border: 2px solid var(--outline); border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .88rem; }
.field .hint { color: var(--muted); font-size: .78rem; }
.req { color: #ff7a7a; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.notice { padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line); }
.notice.ok { border-color: var(--ok); }
.notice.err { border-color: #ff7a7a; }

/* Social bar and chat button, as on gcctvms.com */

.chat { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 16; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; color: #fff; text-decoration: none; background: linear-gradient(90deg, var(--purple), var(--navy)); }
.chat-icon { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--purple); }
.chat-icon::after { content: ""; position: absolute; top: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: #2fd36e; border: 2px solid #fff; }
.chat-text { display: grid; line-height: 1.2; font-weight: 600; font-size: .86rem; }
.chat-text small { font-weight: 400; font-size: .7rem; opacity: .85; }
@media (max-width: 480px) { .chat-text { display: none; } .chat { padding: 6px; } }
/* Live chat states (Tawk.to), matching gcctvms.com's chat button. */
.chat { transition: transform .25s, box-shadow .25s, opacity .25s; box-shadow: 0 10px 30px rgba(81, 32, 117, .45); }
.chat:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(81, 32, 117, .6); }
.chat:focus-visible { outline: 3px solid #b14dff; outline-offset: 3px; }
.chat-icon::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #e3ccff; opacity: .6; animation: chatPulse 2s ease-out infinite; }
.chat-badge { position: absolute; top: -6px; right: -6px; z-index: 1; display: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.chat.chat-unread .chat-badge { display: block; }
.chat.chat-unread .chat-icon::after { display: none; }
.chat.chat-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
@keyframes chatPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chat-icon::before { animation: none; } }

/* Footer */
.foot { background: var(--deep); color: rgba(255, 255, 255, .78); font-size: .85rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot h4 { margin-bottom: 4px; color: #fff; font-size: .92rem; }
.foot-in { padding-block: 36px 22px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand img { width: 220px; display: block; }
.foot-col { display: grid; gap: 5px; align-content: start; }
.foot-bottom { padding-block: 14px 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .78rem; }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr; } }

/* One gentle motion: content fades up as it scrolls into view. Hidden only while JS runs. */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Added for the pre-built SEO pages */
.region-tile h3 { font-size: 1.2rem; }
.featured-h { font-size: 1.2rem; }
.sub { font-size: .95rem; color: var(--muted); margin-top: 6px; }
.prose p { max-width: 72ch; color: var(--ink); }
.prose { gap: 12px; }
.foot-h { margin-bottom: 4px; color: #fff; font-size: .92rem; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; }
.faq details[open] { border-color: var(--outline); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { font-size: .98rem; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--muted); max-width: 75ch; }

/* ---------- Social dock (matches the gcctvms.com dock), with minimize ---------- */
.social {
  position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 30;
  display: grid; justify-items: center; gap: 8px; padding: 18px 8px 8px; border-radius: 30px; isolation: isolate;
  background: rgba(58, 6, 96, .88);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 40px rgba(27, 0, 68, .45), 0 0 0 1px rgba(107, 1, 129, .25), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: padding .35s ease, border-radius .35s ease;
}
/* gradient sheen behind the icons */
.social::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: linear-gradient(165deg, rgba(150, 40, 190, .75) 0%, rgba(81, 32, 117, .55) 45%, rgba(18, 26, 115, .85) 100%);
}
/* yellow brand accent at the top */
.social::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px;
  background: linear-gradient(90deg, #f7c504, #ffdf5e); box-shadow: 0 0 10px rgba(247, 197, 4, .7);
}
.social-icons {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  max-height: 420px; transition: max-height .4s ease, opacity .25s ease, margin .35s ease;
}
.social-icons a {
  --c: #fff; position: relative; isolation: isolate;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .3s, box-shadow .3s, border-color .3s;
  animation: dockIn .6s cubic-bezier(.34, 1.56, .64, 1) both;
}
.social-icons a svg { width: 18px; height: 18px; transition: transform .3s; }
.social-icons a:hover, .social-icons a:focus-visible {
  background: var(--c); border-color: transparent; outline: none;
  transform: translateX(-6px) scale(1.12); box-shadow: 0 8px 22px -4px var(--c);
}
.social-icons a:hover svg { transform: scale(1.08); }
/* label that slides out to the left */
.social-icons a::after {
  content: attr(data-label); position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(8px, -50%);
  opacity: 0; pointer-events: none; white-space: nowrap;
  font: 600 13px/1 var(--font); color: #fff; padding: 8px 12px; border-radius: 20px;
  background: var(--deep); box-shadow: 0 8px 20px rgba(27, 0, 68, .35); transition: .25s;
}
.social-icons a:hover::after, .social-icons a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
/* network colours */
.s-facebook { --c: #1877f2 !important; }
.s-x, .s-tiktok { --c: #111 !important; }
.s-youtube { --c: #ff0033 !important; }
.s-instagram { --c: #e1306c !important; }
.s-linkedin { --c: #0a66c2 !important; }
.s-whatsapp { --c: #25d366 !important; }
.s-instagram::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.s-instagram:hover::before { opacity: 1; }
.s-tiktok:hover { box-shadow: -3px 0 0 #25f4ee, 3px 0 0 #fe2c55, 0 8px 22px -4px #000 !important; }
/* staggered entrance */
.social-icons a:nth-child(1) { animation-delay: .10s; } .social-icons a:nth-child(2) { animation-delay: .17s; }
.social-icons a:nth-child(3) { animation-delay: .24s; } .social-icons a:nth-child(4) { animation-delay: .31s; }
.social-icons a:nth-child(5) { animation-delay: .38s; } .social-icons a:nth-child(6) { animation-delay: .45s; }
.social-icons a:nth-child(7) { animation-delay: .52s; }
@keyframes dockIn { from { opacity: 0; transform: translateX(30px) scale(.6); } to { opacity: 1; transform: none; } }

/* minimize button */
.social-toggle {
  width: 32px; height: 26px; border: 0; border-radius: 14px; cursor: pointer; color: #fff;
  display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s;
}
.social-toggle:hover { background: rgba(255, 255, 255, .2); }
.social-toggle:focus-visible { outline: 2px solid #f7c504; outline-offset: 2px; }
.social-toggle .ico-min { transform: rotate(90deg); transition: transform .3s; }
.social-toggle .ico-share { display: none; }

/* minimized: icons fold away, the dock becomes a small share tab */
.social.collapsed { padding: 16px 6px 6px; }
.social.collapsed .social-icons { max-height: 0; opacity: 0; margin-bottom: -8px; overflow: hidden; pointer-events: none; }
.social.collapsed .social-toggle { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.social.collapsed .social-toggle .ico-min { display: none; }
.social.collapsed .social-toggle .ico-share { display: block; }
.social.collapsed .social-toggle:hover { transform: scale(1.08); }

@media (max-width: 1023px) { .social { display: none; } }
@media (prefers-reduced-motion: reduce) { .social-icons a { animation: none !important; } }

/* ===================== Colour & gradients =====================
   GCCTVMS palette plus one colour per region:
   North = purple, North East = royal blue, East = teal, West = amber, Central = navy. */
:root {
  --yellow: #f7c504;
  --blue: #163d98;
  --brand-grad: linear-gradient(120deg, #6b0181 0%, #512075 45%, #121a73 100%);
  --rg1: #6b0181; --rg2: #121a73;                 /* page accent, set per region below */
}
.rg-north      { --rg1: #6b0181; --rg2: #a12cb8; }
.rg-north-east { --rg1: #163d98; --rg2: #3b7be0; }
.rg-east       { --rg1: #0b6e78; --rg2: #1aa39f; }
.rg-west       { --rg1: #b4470e; --rg2: #f0a20a; }
.rg-central    { --rg1: #121a73; --rg2: #6b0181; }

/* Page header: brand gradient on the home page, region gradient elsewhere */
.band {
  position: relative; overflow: hidden; border-bottom: 0; color: #fff;
  background: linear-gradient(120deg, var(--rg1) 0%, var(--rg2) 100%);
}
.rg-home .band { background: var(--brand-grad); }
.band::after {   /* soft diagonal light band for depth */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 55%, rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .08) 70%, transparent 70%);
}
.band .wrap { position: relative; z-index: 1; }
.band h1 { color: #fff; }
.band .lede { color: rgba(255, 255, 255, .88); }
.band .crumbs, .band .crumbs a { color: rgba(255, 255, 255, .8); }
.band .crumbs a:hover { color: #fff; }
.band .search input { border-color: transparent; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.band .search .btn { background: var(--yellow); border-color: var(--yellow); color: #1b0044; }
.band .search .btn:hover { background: #fff; border-color: #fff; }
.band .stat { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: var(--yellow); }
.band .stat b, .band .stat span { color: #fff; }

/* Section headings: short gradient rule under the line */
.section-head { position: relative; }
.section-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rg1), var(--rg2));
}
.rg-home .section-head::after { background: linear-gradient(90deg, #6b0181, var(--yellow)); }

/* Region tiles: each in its own colour */
.r-north      { --t1: #6b0181; --t2: #a12cb8; }
.r-north-east { --t1: #163d98; --t2: #3b7be0; }
.r-east       { --t1: #0b6e78; --t2: #1aa39f; }
.r-west       { --t1: #b4470e; --t2: #f0a20a; }
.r-central    { --t1: #121a73; --t2: #6b0181; }
.region-tile {
  position: relative; overflow: hidden; border: 0; padding-top: 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t1) 9%, #fff) 0%, #fff 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--t1) 22%, #fff), 0 4px 14px rgba(27, 0, 68, .06);
  transition: transform .2s, box-shadow .2s;
}
.region-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--t1), var(--t2)); }
.region-tile h3 { color: var(--t1); }
.region-tile .count { color: var(--t1); font-weight: 600; }
.region-tile:hover { background: linear-gradient(160deg, color-mix(in srgb, var(--t1) 14%, #fff) 0%, #fff 75%); transform: translateY(-3px); box-shadow: 0 0 0 1px var(--t1), 0 10px 24px color-mix(in srgb, var(--t1) 25%, transparent); }

/* Town links take the page's region colour on hover */
.town-link { background: #fff; }
.town-link:hover { border-color: var(--rg1); background: linear-gradient(90deg, color-mix(in srgb, var(--rg1) 8%, #fff), #fff); }
.town-link:hover strong { color: var(--rg1); }

/* Company rows: gradient rank badge and buttons */
.company .rank {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  color: #fff; font-size: .85rem; background: linear-gradient(135deg, var(--rg1), var(--rg2));
}
.company:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--rg1) 6%, #fff), #fff 60%); }
.btn { background: linear-gradient(90deg, #6b0181, #121a73); border-color: transparent; }
.btn:hover { background: linear-gradient(90deg, #512075, #1b0044); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple); }
.local { background: #e7f6ee; padding: 1px 8px; border-radius: 4px; justify-self: start; }

/* GCCTVMS box: dark brand gradient with a yellow call to action */
.featured { border: 0; color: #fff; background: var(--brand-grad); box-shadow: 0 12px 30px rgba(27, 0, 68, .25); }
.featured .featured-label { color: var(--yellow); font-weight: 600; }
.featured .featured-h, .featured .services { color: #fff; }
.featured .muted, .featured .featured-addr { color: rgba(255, 255, 255, .8); }
.featured .btn { background: var(--yellow); color: #1b0044; }
.featured .btn:hover { background: #fff; }
.featured .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.featured .btn-ghost:hover { background: #fff; color: var(--purple); }

/* Stat icons, FAQ, form */
.stat { color: var(--rg1); }
.faq details { background: #fff; }
.faq details[open] { border-color: transparent; box-shadow: inset 3px 0 0 var(--rg1), 0 0 0 1px color-mix(in srgb, var(--rg1) 25%, #fff); }
.faq summary::after { color: var(--rg1); }
.form-card { border: 0; box-shadow: 0 0 0 1px var(--outline), 0 8px 24px rgba(27, 0, 68, .06); background: linear-gradient(180deg, #fbf8fd, #fff 40%); }

/* Contact strip and footer */
.cta { background: linear-gradient(110deg, #6b0181 0%, #512075 40%, #163d98 100%); }
.cta .btn { background: var(--yellow); color: #1b0044; border-color: var(--yellow); }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--purple); }
.foot { background: linear-gradient(180deg, #1b0044 0%, #0f0a3a 100%); }
.foot-h { color: var(--yellow); }

/* ---------- Custom cursor (added by app.js for mouse users only) ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label, .has-cursor select { cursor: none; }
.has-cursor.cursor-text input, .has-cursor.cursor-text textarea { cursor: text; }
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity .2s;
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-text .cursor-dot, .cursor-text .cursor-ring { opacity: 0; }
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--rg1);
}
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 2px solid color-mix(in srgb, var(--rg1) 60%, transparent);
}
.cursor-ring { transition: opacity .2s, width .25s, height .25s, margin .25s, border-color .25s, background .25s; }
.cursor-ring.is-link {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-color: transparent; background: color-mix(in srgb, var(--rg1) 16%, transparent);
}
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-ring.is-dark { border-color: rgba(255, 255, 255, .7); }
.cursor-ring.is-dark.is-link { border-color: transparent; background: rgba(255, 255, 255, .18); }
.cursor-dot.is-dark { background: #f7c504; }

/* ---------- Singapore touches ---------- */
/* Thin red-and-white flag stripe above the top bar */
.topbar { border-top: 4px solid #ef3340; box-shadow: inset 0 2px 0 #fff; }
.sg-welcome { display: inline-flex; align-items: center; gap: 8px; }
.sg-flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.sg-line { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }

/* Skyline along the bottom of every page header:
   HDB blocks, Singapore Flyer, Supertrees at Gardens by the Bay, Marina Bay Sands, CBD towers */
.band { padding-bottom: 0; }
.band .wrap { padding-bottom: 118px; }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: 0;
  opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='xMidYMax meet'%3E%3Cg fill='white'%3E%3Crect x='10' y='52' width='46' height='68'/%3E%3Crect x='62' y='38' width='40' height='82'/%3E%3Crect x='108' y='60' width='52' height='60'/%3E%3Crect x='166' y='30' width='38' height='90'/%3E%3Crect x='210' y='56' width='44' height='64'/%3E%3Crect x='260' y='44' width='40' height='76'/%3E%3C/g%3E%3Cg fill='none' stroke='white' stroke-width='3'%3E%3Ccircle cx='392' cy='52' r='44'/%3E%3Cpath d='M392 8v88M348 52h88M361 21l62 62M423 21l-62 62'/%3E%3Cpath d='M392 52 366 120M392 52l26 68M360 120h64'/%3E%3C/g%3E%3Cg fill='white'%3E%3Cpath d='M488 120l4-62-16-18h40l-16 18 4 62z'/%3E%3Cpath d='M532 120l4-82-20-22h48l-20 22 4 82z'/%3E%3Cpath d='M584 120l4-52-14-16h36l-14 16 4 52z'/%3E%3Cpath d='M626 120l4-70-18-20h44l-18 20 4 70z'/%3E%3Cpath d='M700 120l8-92h30l-4 92z'/%3E%3Cpath d='M752 120l6-92h30l-2 92z'/%3E%3Cpath d='M802 120l6-92h30l0 92z'/%3E%3Cpath d='M684 24l178-6 14 8-192 8z'/%3E%3Crect x='900' y='22' width='34' height='98'/%3E%3Crect x='940' y='6' width='30' height='114'/%3E%3Crect x='976' y='34' width='40' height='86'/%3E%3Cpath d='M1022 120V18l18-14 18 14v102z'/%3E%3Crect x='1064' y='40' width='36' height='80'/%3E%3Crect x='1106' y='14' width='28' height='106'/%3E%3Crect x='1140' y='48' width='44' height='72'/%3E%3Crect x='1190' y='60' width='50' height='60'/%3E%3Crect x='1246' y='44' width='40' height='76'/%3E%3Crect x='1292' y='66' width='52' height='54'/%3E%3Crect x='1350' y='50' width='40' height='70'/%3E%3Crect x='1396' y='62' width='44' height='58'/%3E%3C/g%3E%3C/svg%3E") bottom center / auto 100% repeat-x;
}
@media (max-width: 640px) { .band::before { height: 80px; } .band .wrap { padding-bottom: 64px; } }

/* ===================== Responsive fixes ===================== */
html, body { overflow-x: hidden; }
img, svg { max-width: 100%; }
.company-body, .featured-main, .foot-col, .hero { min-width: 0; }
.company-body .site, .foot-col p, .featured-addr { overflow-wrap: anywhere; }

/* Large screens: a little more room */
@media (min-width: 1600px) {
  .wrap { max-width: 1280px; }
  body { font-size: 16px; }
}

/* Tablets */
@media (max-width: 1024px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-side { grid-template-columns: 1fr 1fr; min-width: 0; }
  .featured-side .featured-addr { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 640px) {
  /* Top bar: one tidy line, phone number kept */
  .topbar { font-size: .74rem; }
  .topbar-in { gap: 4px 14px; padding-block: 7px; }
  .topbar-in > a[href*="gcctvms.sg"] { display: none; }
  .sg-welcome { white-space: nowrap; gap: 6px; }
  .sg-welcome .sg-flag { width: 18px; height: 12px; }

  /* Header: logo and button on one row, region links scroll sideways. Not sticky, to save screen space. */
  .nav { position: relative; }
  .nav-in { flex-wrap: wrap; gap: 8px; padding-block: 10px 6px; }
  .brand img { width: 128px; }
  .nav .btn-pill { padding: 7px 14px; font-size: .8rem; }
  .nav-links {
    order: 3; width: 100%; justify-content: flex-start; flex-wrap: nowrap; gap: 4px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: -4px; padding: 2px 4px 6px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; padding: 6px 12px; background: #f6f1fa; }
  .nav-links a.active { background: #efe4f7; }

  /* Page header */
  .band .wrap { padding-block: 28px 76px; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .lede { font-size: .93rem; }
  .search { flex-direction: column; }
  .search .btn { width: 100%; padding-block: 10px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; }
  .stat svg { width: 20px; height: 20px; }
  .stat span { font-size: .64rem; }

  /* Content */
  .page { gap: 34px; padding-top: 26px; }
  h2 { font-size: 1.2rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .company { padding: 14px 12px; gap: 10px; grid-template-columns: 30px 1fr; }
  .company .btn { grid-column: 2; justify-self: start; }
  .featured { padding: 18px; }
  .featured-side { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: 1fr 1fr; }
  .town-link { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
  .form-card { padding: 18px; }
  .cta-in { padding-block: 24px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .foot-in { grid-template-columns: 1fr; gap: 22px; padding-block: 28px 18px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  /* keep the chat button clear of page content */
  main { padding-bottom: 0; }
  .foot { padding-bottom: 64px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .town-grid { grid-template-columns: 1fr; }
  .topbar-in > a[href^="tel:"] { display: none; }
}

/* ===== Festival themes (switched on by app.js for each festival's dates) ===== */
.fest { --fest-grad: var(--brand-grad); --fest-bar-bg: var(--purple); --fest-bar-ink: #fff; --fest-link: var(--yellow);
  --l1: #ffd166; --l2: #ff7b00; --l3: #ff4d8d; --decor: #ffd166; --glow: rgba(255, 183, 3, .35); }
.fest-deepavali { --fest-grad: linear-gradient(120deg, #4a0a5e 0%, #8a1060 45%, #c2410c 100%);
  --fest-bar-bg: linear-gradient(90deg, #b45309, #f59f00 50%, #b45309); --fest-bar-ink: #2b0700; --fest-link: #4a0a5e;
  --l1: #ffd166; --l2: #ff9f1c; --l3: #ff4d8d; --glow: rgba(255, 183, 3, .45); }
.fest-cny { --fest-grad: linear-gradient(120deg, #7a0b0b 0%, #b91c1c 50%, #6b0181 100%);
  --fest-bar-bg: #b91c1c; --fest-bar-ink: #fff; --fest-link: #ffd166;
  --l1: #ffd166; --l2: #ff4d4d; --l3: #ffe8a3; --glow: rgba(255, 77, 77, .35); }
.fest-christmas { --fest-grad: linear-gradient(120deg, #0f3d24 0%, #166534 50%, #7f1d1d 100%);
  --fest-bar-bg: #14532d; --fest-bar-ink: #fff; --fest-link: #ffd166;
  --l1: #ffd166; --l2: #ef4444; --l3: #4ade80; --decor: #ffd166; --glow: rgba(255, 209, 102, .3); }
.fest-national-day { --fest-grad: linear-gradient(120deg, #8a0a1c 0%, #c8102e 55%, #ef3340 100%);
  --fest-bar-bg: #c8102e; --fest-bar-ink: #fff; --fest-link: #fff;
  --l1: #fff; --l2: #ff8a8a; --l3: #fff; --decor: #fff; --glow: rgba(255, 255, 255, .25); }

/* Page header takes the festival colours on every page */
html.fest .band { background: var(--fest-grad); }

/* Greeting bar under the top bar */
.fest-bar { background: var(--fest-bar-bg); color: var(--fest-bar-ink); font-size: .86rem; }
.fest-bar-in { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 8px; position: relative; padding-right: 44px; }
.fest-bar p { text-align: center; }
.fest-bar b { font-weight: 700; margin-right: 4px; }
.fest-bar a { color: var(--fest-link); font-weight: 600; white-space: nowrap; }
.fest-bar-icon { width: 26px; flex: 0 0 auto; color: var(--decor); }
.fest-bar-icon svg { display: block; width: 100%; height: auto; }
.fest-bar-close { position: absolute; right: max(8px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.fest-bar-close:hover { background: rgba(0, 0, 0, .12); }
.fest-bar-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* String lights across the top of the page header */
.fest-lights { position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 26px; display: flex; justify-content: space-between;
  padding: 0 12px; pointer-events: none; }
.fest-lights::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 22px;
  border-bottom: 1.5px solid rgba(255, 255, 255, .35); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.fest-lights i { position: relative; width: 8px; height: 11px; margin-top: 10px; border-radius: 50% 50% 45% 45%; background: var(--l1);
  box-shadow: 0 0 10px 2px var(--l1); animation: festTwinkle 1.8s ease-in-out infinite; }
.fest-lights i:nth-child(3n+2) { background: var(--l2); box-shadow: 0 0 10px 2px var(--l2); animation-delay: .6s; }
.fest-lights i:nth-child(3n) { background: var(--l3); box-shadow: 0 0 10px 2px var(--l3); animation-delay: 1.2s; }
.fest-lights i:nth-child(4n+1) { margin-top: 13px; }
.fest-lights i:nth-child(n+15) { display: none; }
@media (min-width: 700px) { .fest-lights i:nth-child(n+15) { display: block; } }

/* Warm glow behind the decorations */
.fest-glow { position: absolute; right: -60px; bottom: -80px; width: 420px; height: 320px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent); }

/* Decorations, bottom right of the page header */
.fest-decor { position: absolute; right: max(16px, calc((100% - 1140px) / 2 + 16px)); bottom: 14px; z-index: 1;
  display: flex; align-items: flex-end; gap: 14px; pointer-events: none; color: var(--decor); }
.fest-decor span { display: block; width: 46px; filter: drop-shadow(0 0 10px var(--glow)); }
.fest-decor span:nth-child(2) { width: 64px; }
.fest-decor svg { display: block; width: 100%; height: auto; overflow: visible; }
.fest-decor .flame, .fest-bar-icon .flame { transform-origin: 50% 90%; transform-box: fill-box; animation: festFlicker 1.4s ease-in-out infinite alternate; }
.fest-decor span:nth-child(2) .flame { animation-delay: .4s; }
.fest-decor span:nth-child(3) .flame { animation-delay: .8s; }
.fest-cny .fest-decor { top: 0; bottom: auto; align-items: flex-start; }
.fest-cny .fest-decor span { transform-origin: 50% 0; animation: festSway 3.5s ease-in-out infinite alternate; }
.fest-cny .fest-decor span:nth-child(2) { animation-delay: -1.5s; }
.fest-christmas .fest-decor span, .fest-national-day .fest-decor span { animation: festTwinkle 2.4s ease-in-out infinite; }
.fest-christmas .fest-decor span:nth-child(2), .fest-national-day .fest-decor span:nth-child(2) { animation-delay: -1.2s; }
@media (max-width: 760px) {
  .fest-decor { gap: 8px; opacity: .5; }
  .fest-decor span { width: 30px; }
  .fest-decor span:nth-child(2) { width: 40px; }
}

@keyframes festTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes festFlicker { from { transform: scale(1, 1) rotate(-2deg); } to { transform: scale(.92, 1.08) rotate(2deg); } }
@keyframes festSway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  .fest-lights i, .fest-decor span, .fest-decor .flame, .fest-bar-icon .flame { animation: none; }
}
@media (max-width: 600px) { .fest-bar .fest-pitch { display: none; } .fest-bar { font-size: .8rem; } }

/* More festivals on Singapore's calendar */
.fest-new-year { --fest-grad: linear-gradient(120deg, #0b1240 0%, #121a73 50%, #6b0181 100%);
  --fest-bar-bg: #121a73; --fest-bar-ink: #fff; --fest-link: #ffd166;
  --l1: #ffd166; --l2: #fff; --l3: #ff7ab8; --decor: #ffd166; --glow: rgba(255, 209, 102, .3); }
.fest-hari-raya { --fest-grad: linear-gradient(120deg, #053b2c 0%, #0b6b47 50%, #12805c 100%);
  --fest-bar-bg: #065f46; --fest-bar-ink: #fff; --fest-link: #ffd166;
  --l1: #ffd166; --l2: #fff; --l3: #86efac; --decor: #ffd166; --glow: rgba(255, 209, 102, .3); }
.fest-vesak { --fest-grad: linear-gradient(120deg, #312e81 0%, #6b0181 55%, #be185d 100%);
  --fest-bar-bg: #fde68a; --fest-bar-ink: #3b0764; --fest-link: #6b0181;
  --l1: #fde68a; --l2: #fff; --l3: #f9a8d4; --glow: rgba(249, 168, 212, .35); }
.fest-mid-autumn { --fest-grad: linear-gradient(120deg, #0b1240 0%, #1e1b4b 50%, #7c2d12 100%);
  --fest-bar-bg: #9a3412; --fest-bar-ink: #fff; --fest-link: #fde68a;
  --l1: #ffb703; --l2: #ef4444; --l3: #fde68a; --glow: rgba(253, 230, 138, .35); }

.fest-new-year .fest-decor span { animation: festBurst 2.2s ease-out infinite; }
.fest-new-year .fest-decor span:nth-child(2) { animation-delay: -.8s; }
.fest-new-year .fest-decor span:nth-child(3) { animation-delay: -1.5s; }
.fest-hari-raya .fest-decor span { animation: festTwinkle 3s ease-in-out infinite; }
.fest-hari-raya .fest-decor span:nth-child(2) { animation-delay: -1.5s; }
.fest-vesak .fest-decor span { animation: festFloat 4s ease-in-out infinite alternate; }
.fest-vesak .fest-decor span:nth-child(2) { animation-delay: -2s; }
.fest-mid-autumn .fest-decor { top: 0; bottom: auto; align-items: flex-start; }
.fest-mid-autumn .fest-decor span:nth-child(odd) { transform-origin: 50% 0; animation: festSway 3.5s ease-in-out infinite alternate; }
.fest-mid-autumn .fest-decor span:nth-child(2) { width: 80px; margin-top: 30px; }
@keyframes festBurst { 0% { transform: scale(.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes festFloat { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .fest-decor span { animation: none !important; } }
