/* Shared brand layer, loaded on EVERY page (home included): colour tokens, header, footer and the
   floating call/WhatsApp buttons. Everything is prefixed sst- so it never clashes with Bootstrap.
   Brand: the SST logo gold on a deep blue, Cormorant Garamond headings, Rubik text. */

:root {
  --ink: #12274A;
  --ink-2: #1A3460;
  --ink-3: #234174;
  --ink-rgb: 18, 39, 74;
  --gold: #DCAC64;
  --gold-2: #E8C282;
  --gold-deep: #7D5F17;
  --paper: #FFFFFF;
  --bg: #F4F7FC;
  --tint: #E6EDF8;
  --text: #14213A;
  --muted: #4A5872;
  --on-ink: #F5F6F8;
  --on-ink-muted: #B9C6DE;
  --line: rgba(var(--ink-rgb), .14);
  --line-ink: rgba(255, 255, 255, .13);
  --wa: #25D366;
  --wa-deep: #12703A;
  --header-h: 64px;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* Pages sometimes style a bare `header` element for their own hero; keep the site header immune to that. */
header.sst-header { padding: 0; margin: 0; text-align: left; overflow: visible; border-radius: 0; box-shadow: none; text-shadow: none; }
header.sst-header::before, header.sst-header::after { content: none; display: none; }
header.sst-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }

/* ---- Buttons used by the header, footer and quick bar ---- */
.sst-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.2em; border-radius: 8px; border: 1.5px solid transparent; font: 500 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .18s, background-color .18s, color .18s; }
.sst-btn:hover { transform: translateY(-1px); text-decoration: none; }
.sst-btn-sm { padding: .5em .9em; font-size: .88rem; }
.sst-btn-accent { background: var(--gold); color: var(--ink); }
.sst-btn-accent:hover { background: var(--gold-2); color: var(--ink); }
.sst-ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

/* ---- Header ---- */
.sst-header { position: sticky; top: 0; z-index: 1000; height: var(--header-h); background: rgba(var(--ink-rgb), .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-ink); color: var(--on-ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
.sst-header, .sst-header *, .sst-footer, .sst-footer *, .sst-quick, .sst-quick * { box-sizing: border-box; }
.sst-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sst-header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sst-header .sst-brand, .sst-footer .sst-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-ink); white-space: nowrap; }
.sst-brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--gold); color: var(--gold); font: 700 1.05rem/1 var(--serif); letter-spacing: .04em; }
.sst-brand-text { display: grid; line-height: 1.1; }
.sst-wm { font: 700 1.28rem/1.1 var(--serif); letter-spacing: .12em; color: var(--gold); }
.sst-brand-text small { font-size: .62rem; letter-spacing: .26em; color: var(--on-ink-muted); }
.sst-nav { display: flex; align-items: center; gap: 4px; }
.sst-header .sst-nav a:not(.sst-btn) { padding: 8px 12px; border-radius: 8px; text-decoration: none; font: 400 .94rem/1.4 var(--font); color: var(--on-ink-muted); transition: color .2s; }
.sst-header .sst-nav a:not(.sst-btn):hover, .sst-header .sst-nav a[aria-current] { color: var(--on-ink); }
.sst-header .sst-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.sst-nav-call { margin-left: 10px; }
.sst-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-ink); border-radius: 8px; background: transparent; color: var(--on-ink); cursor: pointer; place-items: center; }
.sst-toggle .sst-ic { width: 22px; height: 22px; }
.sst-toggle .sst-ic-close { display: none; }
.sst-toggle[aria-expanded="true"] .sst-ic-open { display: none; }
.sst-toggle[aria-expanded="true"] .sst-ic-close { display: inline; }
.sst-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }

/* ---- Footer ---- */
.sst-footer { background: var(--ink); color: var(--on-ink-muted); padding: 40px 0 24px; font: 400 .94rem/1.6 var(--font); }
.sst-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.sst-footer h3 { color: var(--on-ink); font: 600 .8rem/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.sst-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sst-footer li { margin: 0; padding: 0; line-height: inherit; }   /* pages with a bare `li {}` rule must not change the footer */
.sst-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.sst-footer ul a:hover, .sst-footer .sst-contact a:hover { color: var(--gold); }
.sst-foot-about { margin: 12px 0; max-width: 36ch; }
.sst-contact { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.sst-contact li { display: flex; gap: 10px; align-items: flex-start; }
.sst-contact .sst-ic { color: var(--gold); margin-top: .25em; }
.sst-social { display: flex; gap: 10px; }
.sst-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-ink); color: var(--on-ink); transition: background-color .2s, color .2s, border-color .2s; }
.sst-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.sst-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line-ink); font-size: .86rem; }
.sst-foot-bottom p { margin: 0; }

/* ---- Floating call / WhatsApp: round buttons on desktop, a bottom bar on phones ---- */
.sst-quick { position: fixed; z-index: 1001; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.sst-quick a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 52px; height: 52px; border-radius: 50%; font: 500 0/1 var(--font); text-decoration: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); transition: transform .2s; }
.sst-quick a:hover { transform: scale(1.06); }
.sst-quick .sst-ic { width: 24px; height: 24px; }
.sst-qb-call { background: var(--gold); color: var(--ink); }
.sst-qb-wa { background: var(--wa); color: #06281A; }
.sst-qb-book { display: none !important; }

@media (max-width: 1024px) {
  .sst-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .sst-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--ink); border-bottom: 1px solid var(--line-ink); transform: translateY(-120%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s; }
  .sst-nav.is-open { transform: none; visibility: visible; }
  .sst-header .sst-nav a:not(.sst-btn) { padding: 12px 8px; }
  .sst-header .sst-nav a[aria-current] { box-shadow: none; color: var(--gold); }
  .sst-nav-call { margin: 8px 0 0; }
  .sst-toggle { display: inline-grid; }
}
@media (max-width: 600px) {
  .sst-wrap { padding: 0 16px; }
  .sst-wm { font-size: 1.15rem; }
  .sst-footer { padding-bottom: 80px; }
  .sst-footer-grid { grid-template-columns: 1fr; }
  .sst-quick { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(var(--ink-rgb), .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-ink); }
  .sst-quick a { flex: 1; width: auto; height: 48px; margin: 0 4px; border-radius: 8px; font-size: .92rem; font-weight: 500; box-shadow: none; }
  .sst-quick .sst-ic { width: 19px; height: 19px; }
  .sst-qb-book { display: inline-flex !important; background: transparent; color: var(--on-ink); border: 1px solid var(--line-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .sst-header *, .sst-footer *, .sst-quick * { transition: none !important; }
}

/* ---- Legacy Bootstrap-template pages (service, contact, blogs): brand colours and type ----
   The compiled template theme now uses the brand gold and deep blue; these lines fix text contrast and
   set the brand fonts. */
h1, h2, .h1, .h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }
h3, h4, h5, h6, .h3, .h4, .h5, .h6 { font-family: var(--font); }
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active { color: var(--ink) !important; }
.text-primary { color: var(--gold-deep) !important; }
.bg-secondary .text-primary, .bg-dark .text-primary, .page-header .text-primary, .carousel-caption .text-primary { color: var(--gold) !important; }
.bg-primary .text-secondary { color: var(--ink) !important; }
/* Headings on dark hero banners stay white (the theme colours every other heading deep blue) */
.blog-hero h1, .blog-hero h2, .hero-section h1, .hero-section h2, .hero h1, .hero h2, .page-header h1, .landing-hero h1 { color: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active { color: var(--ink) !important; }
/* Bootstrap utility colours: readable on white, and the green buttons follow the WhatsApp pairing (green + dark text) */
.btn-success, .btn-success:hover, .btn-success:focus, .btn-success:active { background-color: var(--wa) !important; border-color: var(--wa) !important; color: #06281A !important; }
.text-info { color: #0F6274 !important; }
.text-warning { color: var(--gold-deep) !important; }
.text-danger { color: #B02A37 !important; }
.text-success { color: #1E7E34 !important; }
.text-muted { color: #5A6478 !important; }
/* Headings on the dark blue panels (call-to-action, stats, contact, alert) are white; the theme colours other headings deep blue */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6,
.cta-box h1,
.cta-box h2,
.cta-box h3,
.cta-box h4,
.cta-box h5,
.cta-box h6,
.stats-section h1,
.stats-section h2,
.stats-section h3,
.stats-section h4,
.stats-section h5,
.stats-section h6,
.contact-info h1,
.contact-info h2,
.contact-info h3,
.contact-info h4,
.contact-info h5,
.contact-info h6,
.emergency-alert h1,
.emergency-alert h2,
.emergency-alert h3,
.emergency-alert h4,
.emergency-alert h5,
.emergency-alert h6 { color: #fff !important; }
.hero-band h1, .hero-band h2 { color: #fff !important; }
#contact-cta h1, #contact-cta h2, #contact-cta h3, #contact-cta h4, #contact-cta h5, #contact-cta h6 { color: #fff !important; }
.comparison-table th { color: #fff !important; }   /* Bootstrap 5 tables reset the header text to black */
.page-header h6 { color: var(--on-ink-muted) !important; }
