/* SLPS public website. Mobile first; no build step. */

:root {
  --ink: #12161f;
  --ink-2: #2a3140;
  --text: #1f2430;
  --muted: #4a5262;
  --line: #e3e6ec;
  --bg: #ffffff;
  --cream: #f7f3ec;
  /* Brand colours taken from the real SLPS signage: red letters, black logo, gold reception logo. */
  --brand: #d62828;
  --brand-dark: #a51d1d;
  --brand-ink: #a51d1d;
  --gold: #e0a93b;
  --wa: #0d7a3e;
  --wa-hover: #0a6533;
  --focus: #1d5fd8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 22, 31, .06), 0 8px 24px rgba(18, 22, 31, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

*, *::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 {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible, .mobile-cta :focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 8px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; line-height: 1.1;
  border: 2px solid transparent; transition: background-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--brand); color: #fff; }
.btn-call:hover { background: var(--brand-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 44px; padding: .55em 1em; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: block; padding: 6px 0; }
.brand img { width: 112px; height: auto; }
.header-call { margin-left: auto; }
.site-nav { order: 3; width: 100%; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.site-nav ul { display: flex; gap: 4px; white-space: nowrap; padding-bottom: 6px; }
.site-nav a {
  display: block; padding: 8px 10px; text-decoration: none; font-weight: 600; color: var(--ink-2); font-size: .95rem; border-radius: 8px;
}
.site-nav a:hover { background: var(--cream); color: var(--ink); }

/* Hero */
.hero { background: var(--ink); color: #e9ebef; padding: 36px 0 28px; overflow: hidden; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.85rem, 7vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; }
.hero .hl { color: var(--gold); display: block; }
.lead { font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: #d3d7de; max-width: 38em; }
.eyebrow { font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .75em; }
.eyebrow-dark { color: var(--brand-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.cta-row .btn { flex: 1 1 200px; }
.hero-note a { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.hero-art { margin: 0; }

/* Trust strip */
.trust { background: var(--brand); color: #fff; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding-top: 18px; padding-bottom: 18px; }
.trust-list li { display: flex; flex-direction: column; line-height: 1.25; }
.trust-list strong { font-size: 1.4rem; font-weight: 900; }
.trust-list span { font-size: .9rem; font-weight: 600; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--cream); }
.section h2 { font-size: clamp(1.55rem, 5vw, 2.4rem); font-weight: 900; letter-spacing: -.015em; max-width: 22em; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

[id] { scroll-margin-top: 112px; }

/* Feature cards */
.cards { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; align-items: start; }
.card h3 { font-size: 1.12rem; margin: 0; align-self: center; }
.card p { grid-column: 1 / -1; color: var(--muted); margin: 10px 0 0; }
.card-ico {
  width: 48px; height: 48px; padding: 10px; border-radius: 12px; background: var(--brand);
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Journey (how it works) */
.journey { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.leg { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.leg img { width: 100%; aspect-ratio: 640 / 420; object-fit: cover; border-bottom: 1px solid var(--line); }
.leg-text { padding: 16px 18px 20px; }
.leg h3 { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; }
.leg p { color: var(--muted); margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; font-size: .95rem;
}

/* Real photos */
.photo-frame { margin: 0; }
.photo-frame img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #ddd; }
.photo-frame figcaption { margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.gallery { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: 1fr 1fr; }
.gallery-wide { grid-column: 1 / -1; }
.gallery li { min-width: 0; }

/* Demo video */
.video-block { display: grid; gap: 18px; margin-top: 24px; align-items: center; background: var(--ink); color: #d3d7de; border-radius: var(--radius); padding: 12px; }
.demo-video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.video-text { padding: 4px 8px 10px; }
.video-text h3 { color: #fff; font-size: 1.2rem; }
.video-text p { font-size: .97rem; }
.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-dark:hover { background: rgba(255, 255, 255, .1); }

/* For business */
.business { background: var(--ink); color: #d3d7de; }
.business h2 { color: #fff; }
.business-lead { font-size: 1.08rem; max-width: 34em; }
.business-grid { display: grid; gap: 28px; align-items: start; }
.biz-list { display: grid; gap: 12px; }
.biz-list li { background: #1e232d; border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 16px; display: grid; gap: 2px; }
.biz-list strong { color: #fff; font-size: 1.05rem; }
.biz-list span { color: #c2c7d0; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 800; color: var(--ink); position: relative; min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 700; color: var(--brand);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

.share-link { margin-top: 4px; }
.hero-note a { margin-right: 4px; }

/* Branches */
.branch-groups { display: grid; gap: 28px; margin-top: 24px; }
.state { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); border-bottom: 2px solid var(--brand); padding-bottom: 6px; }
.branches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.branch { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow); }
.branch h4 { font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.branch-ho { border: 2px solid var(--ink); }
.tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--gold); padding: 3px 8px; border-radius: 999px; }
.branch-addr { color: var(--muted); font-size: .95rem; }
.wa-inline { color: var(--wa); font-weight: 700; }

.phones { display: grid; gap: 8px; }
.phones li { display: flex; gap: 8px; align-items: stretch; }
.phones a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 10px;
  text-decoration: none; font-weight: 800;
}
.phones .tel { flex: 1 1 auto; min-width: 0; padding: 0 12px; background: var(--cream); color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phones .tel:hover { background: #ece4d6; }
.phones .tel .ico { color: var(--brand-ink); }
.phones .wa { flex: none; padding: 0 12px; background: var(--wa); color: #fff; font-size: .9rem; }
.phones .wa:hover { background: var(--wa-hover); }
.phones-dark .tel { background: #fff; }
.branch-groups > *, .branches > *, .cards > *, .journey > * { min-width: 0; }

/* Very narrow phones: WhatsApp buttons become icon-only (the link keeps its aria-label). */
@media (max-width: 359px) {
  .phones .wa { padding: 0 14px; }
  .phones .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .phones .wa .ico { width: 1.4em; height: 1.4em; }
}

/* About */
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-grid p { color: var(--muted); font-size: 1.05rem; max-width: 36em; }
.about-art { margin: 0; }

/* Contact */
.contact { background: var(--ink); color: #e9ebef; }
.contact h2 { color: #fff; }
.contact address { margin-bottom: 18px; line-height: 1.7; }
.contact address strong { color: #fff; }
.contact .phones { max-width: 420px; }
.gst { margin-top: 16px; color: #c2c7d0; font-size: .95rem; }
.contact-grid { display: grid; gap: 28px; align-items: start; }
.map-slot { margin: 0; }
.map-slot figcaption { margin-top: 12px; }

/* Footer */
.site-footer { background: #0b0e14; color: #c2c7d0; padding: 36px 0 28px; font-size: .95rem; }
.footer-inner { display: grid; gap: 22px; }
.footer-logo { filter: invert(1); width: 130px; margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: none; font-weight: 600; color: #fff; display: inline-block; padding: 6px 0; }
.footer-links a:hover { text-decoration: underline; }
.legal { margin: 0; color: #a3a9b4; }

/* Sticky call bar on phones */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 22, 31, .97); box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
}
.mobile-cta .btn { min-height: 48px; padding: .6em .5em; }
.site-footer { padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom)); }

/* Photo slots: visible outline only when the page is opened with ?photo-slots */
.show-slots .photo-slot { position: relative; outline: 3px dashed #e5484d; outline-offset: 4px; }
.show-slots .photo-slot::before {
  content: "PHOTO SLOT · " attr(data-photo-slot);
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2;
  background: #e5484d; color: #fff; font: 700 12px/1.3 var(--font); padding: 6px 8px; border-radius: 6px;
}

/* Tablet and up */
@media (min-width: 640px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; min-height: 72px; }
  .brand img { width: 132px; }
  .site-nav { order: 0; width: auto; margin: 0 0 0 auto; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .site-nav ul { padding: 0; }
  .header-call { margin-left: 8px; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .section { padding: 88px 0; }
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .journey { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .video-block { grid-template-columns: 1.7fr 1fr; padding: 16px; }
  .business-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; align-items: start; }
  .mobile-cta { display: none; }
  .site-footer { padding-bottom: 28px; }
  [id] { scroll-margin-top: 84px; }
  .card { display: block; }
  .card p { margin-top: 0; }
  .card h3 { margin-top: 12px; margin-bottom: .5em; }
  .gallery { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
  .gallery-wide { grid-column: auto; }
}

@media (min-width: 900px) {
  .gallery .photo-frame img { height: 360px; object-fit: cover; }
}

/* ---------- Motion and polish ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 40%, rgba(214, 40, 40, .28), transparent 70%),
    radial-gradient(40% 50% at 5% 0%, rgba(224, 169, 59, .12), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 22px 22px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #e9ebef; font-size: .88rem; font-weight: 600;
}
.hero-badges li::before { content: "✓"; color: var(--gold); font-weight: 900; }

.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 2px; background: currentColor; vertical-align: middle; margin-right: 8px; }

.btn { box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.card, .leg, .branch, .biz-list li, .photo-frame img { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .leg:hover, .branch:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(18, 22, 31, .06), 0 16px 32px rgba(18, 22, 31, .12); }

.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(18, 22, 31, .08); }

.wa-float {
  display: none; position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-hover); transform: scale(1.05); }
@media (min-width: 900px) { .wa-float { display: inline-flex; } }

/* Scroll reveal: only when JavaScript is running, so content never hides without it */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .leg:hover, .branch:hover, .wa-float:hover { transform: none; }
}

/* Privacy and 404 pages */
.simple-page .site-footer { padding-bottom: 28px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }
.prose a:not(.btn) { color: var(--brand-dark); font-weight: 700; }
.muted { font-size: .9rem; }
.not-found { text-align: center; }
.not-found img { width: min(100%, 520px); margin: 0 auto 24px; border-radius: var(--radius); }
.not-found h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; }
.not-found p { color: var(--muted); }
.not-found .cta-row { justify-content: center; }
.not-found .cta-row .btn { flex: 0 1 auto; }

/* Team photo (About) */
.team-photo img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%; }
.about-cta { margin-top: 8px; }
@media (min-width: 900px) {
  .team-photo { max-width: 460px; justify-self: center; }
}

/* Diwali moments: a sideways strip that works by touch, trackpad or keyboard */
.moments { margin-top: 44px; }
.moments-head { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 16px; margin-bottom: 16px; }
.moments-head h3 { font-size: 1.35rem; margin: 0; flex-basis: 100%; }
.moments-head p { color: var(--muted); margin: 0; flex: 1 1 220px; }
.moments-nav { display: flex; gap: 8px; }
.moments-nav[hidden] { display: none; }
.moments-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.2rem; font-weight: 800; color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
}
.moments-btn:hover { background: var(--cream); }
.moments-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 260px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.moments-strip li { scroll-snap-align: start; }
.moments-strip img { width: 100%; height: auto; aspect-ratio: 600 / 704; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #ddd; }
@media (min-width: 900px) { .moments-strip { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }

/* Footer credit */
.credit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: center;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); color: #a3a9b4; font-size: .9rem;
}
.credit-logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 6px 12px; }
.credit-logo img { width: 152px; height: auto; }
.credit-logo:hover { box-shadow: 0 0 0 3px rgba(255, 85, 139, .45); }
.credit-phones { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.credit-phones a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.credit-phones a:hover { text-decoration: underline; }
.credit-wa { color: #25d366 !important; padding: 0 4px; }
.credit-wa .ico { width: 1.2em; height: 1.2em; }

/* Google Map (contact) */
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #2a3140; box-shadow: var(--shadow); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .map-frame { aspect-ratio: 16 / 11; } }
