/* Hilltop Day Hub CIC - styles
   Colours sampled from the logo. Fonts: Poppins (headings/UI), Nunito (body), Caveat (quote accent)
   Two themes: light (default, soft) and dark. Switched with data-theme on <html>. */

:root {
  /* brand */
  --orange: #c0581a;
  --orange-dark: #9f4612;
  --blue: #2b78b5;
  --blue-dark: #1d5a8c;
  --navy: #14284b;

  /* light theme (soft, not stark white) */
  --bg: #e8edf4;
  --surface: #f5f8fc;
  --alt: #dde6f1;
  --text: #1f2f48;
  --muted: #4b5c75;
  --heading: #14284b;
  --border: #c5d2e2;
  --link: #1d5a8c;
  --blue-text: #226aa3;
  --orange-text: #b8531a;
  --btn-alt: #14284b;
  --btn-alt-hover: #1d5a8c;
  --icon-bg: #dde6f1;
  --cta-bg: #14284b;
  --footer-bg: #14284b;
  --header-bg: rgba(245, 248, 252, .94);
  --shadow: 0 8px 24px rgba(20, 40, 75, .10);
  --shadow-lg: 0 14px 32px rgba(20, 40, 75, .16);

  /* value-card tints */
  --v1-bg: #f3d9c5; --v1-ac: #c0581a;
  --v2-bg: #cde1f3; --v2-ac: #2b78b5;
  --v3-bg: #d2daea; --v3-ac: #14284b;
  --v4-bg: #f2e0b4; --v4-ac: #b27a12;

  --radius: 14px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f1b2e;
  --surface: #172840;
  --alt: #132238;
  --text: #dbe5f2;
  --muted: #a3b3c9;
  --heading: #f1f5fa;
  --border: #2a3f5f;
  --link: #7bbcf0;
  --blue-text: #6bb3ea;
  --orange-text: #f29a52;
  --btn-alt: #2b78b5;
  --btn-alt-hover: #3b8fd0;
  --icon-bg: #223656;
  --cta-bg: #17335a;
  --footer-bg: #0a1424;
  --header-bg: rgba(15, 27, 46, .94);
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, .45);

  --v1-bg: #3a2618; --v1-ac: #e0752b;
  --v2-bg: #14344f; --v2-ac: #3b8fd0;
  --v3-bg: #1d2d4c; --v3-ac: #5c78b8;
  --v4-bg: #3a3014; --v4-ac: #d29a22;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.08rem; line-height: 1.7;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.script { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text); margin-bottom: .6rem; }
.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: 5rem 0; }
.section.alt { background: var(--alt); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 660px; }
.center .lead, .page-banner .lead { margin-inline: auto; }
.accent-blue { color: var(--blue-text); }
.accent-orange { color: var(--orange-text); }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-blue { background: var(--btn-alt); color: #fff; }
.btn-blue:hover { background: var(--btn-alt-hover); }
.btn-outline { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-outline:hover { background: var(--btn-alt); border-color: var(--btn-alt); color: #fff; }
.btn-light { background: #f5f8fc; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(8px); transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .14); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .45rem 0; gap: 1rem; }
.brand img { height: 84px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--heading); text-decoration: none; position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--orange); border-radius: 3px; transition: width .3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { color: #fff; padding: .55rem 1.2rem; }
.nav-links .btn::after { display: none; }
.nav-actions { display: flex; align-items: center; gap: .4rem; }
.theme-toggle { background: var(--icon-bg); border: 1px solid var(--border); color: var(--heading); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: transform .3s ease, background .3s ease; }
.theme-toggle:hover { transform: rotate(18deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--heading); border-radius: 3px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--alt) 0%, var(--bg) 70%); padding: 4.5rem 0 5.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 span { display: block; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); background-color: var(--blue); background-image: linear-gradient(135deg, var(--blue), var(--orange)); background-size: cover; background-position: center; min-height: 360px; }
.hero .photo { min-height: 420px; }

/* Cards */
.grid { display: grid; gap: 1.6rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.6rem; transition: transform .3s ease, box-shadow .3s ease, background .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--icon-bg); color: var(--heading); margin-bottom: 1rem; font-size: 1.8rem; filter: saturate(.6); transition: transform .4s ease; }
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.card p { margin: 0; color: var(--muted); }

/* Coloured value cards (About page) */
.card.v1, .card.v2, .card.v3, .card.v4 { border: 0; border-top: 5px solid var(--ac); background: var(--tint); }
.card.v1 { --tint: var(--v1-bg); --ac: var(--v1-ac); }
.card.v2 { --tint: var(--v2-bg); --ac: var(--v2-ac); }
.card.v3 { --tint: var(--v3-bg); --ac: var(--v3-ac); }
.card.v4 { --tint: var(--v4-bg); --ac: var(--v4-ac); }
.card.v1 .icon, .card.v2 .icon, .card.v3 .icon, .card.v4 .icon { background: var(--ac); filter: none; }
.card.v1 p, .card.v2 p, .card.v3 p, .card.v4 p { color: var(--text); }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse .photo { order: 2; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: .2rem; width: 1.4rem; height: 1.4rem; background: var(--btn-alt); color: #fff; border-radius: 50%; font-size: .8rem; display: grid; place-items: center; line-height: 1; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.4rem; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--btn-alt); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: .8rem; }
.step p { margin: 0; color: var(--muted); }

.quote { font-family: var(--font-script); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--heading); line-height: 1.25; }

/* CTA */
.cta { background: var(--cta-bg); color: #fff; text-align: center; padding: 4.5rem 0; }
.cta h2 { color: #fff; }
.cta .script { color: #ffd6b0; }
.cta p { color: #dbe7f5; max-width: 560px; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

.page-banner { background: var(--alt); padding: 4rem 0 3.5rem; text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.2rem 1.5rem; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q::after { content: "+"; font-size: 1.6rem; color: var(--orange-text); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 1.5rem 1.3rem; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.contact-list .icon { width: 52px; height: 52px; font-size: 1.3rem; margin: 0; flex-shrink: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a { font-weight: 700; color: var(--heading); text-decoration: none; word-break: break-all; }
.contact-list a:hover { color: var(--orange-text); }
form.enquiry { background: var(--surface); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; color: var(--heading); }
input, select, textarea { width: 100%; padding: .8rem 1rem; border: 2px solid var(--border); border-radius: 12px; font: inherit; color: var(--text); margin-bottom: 1.1rem; background: var(--bg); transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #cfdcf0; padding: 3.5rem 0 1.5rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #cfdcf0; text-decoration: none; }
.site-footer a:hover { color: #f29a52; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-logo img { height: 96px; width: auto; margin-bottom: .8rem; }
.footer-name { color: #fff; font-family: var(--font-head); font-weight: 600; margin: 0; }
.footer-tag { font-style: italic; margin-bottom: .8rem; }
.socials { display: flex; gap: .8rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-weight: 700; transition: background .25s, transform .25s; }
.socials a:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.2rem; text-align: center; font-size: .9rem; }

/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; align-items: center; gap: .6rem; background: #25d366; color: #fff; text-decoration: none; padding: .8rem 1.2rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); animation: pulse 2.6s infinite; }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
.wa-float:hover { background: #1ebe5a; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5), 0 8px 24px rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 24px rgba(37, 211, 102, .45); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(37, 211, 102, .45); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.left { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .2s; } .delay-3 { transition-delay: .3s; }

/* Responsive */
@media (min-width: 961px) {
  .grid-3 > :last-child:nth-child(3n+1) { grid-column: 2; }
}
@media (max-width: 960px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .photo { order: 0; }
  .hero .photo { min-height: 320px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .brand img { height: 68px; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 1.2rem 0 1.6rem; gap: 1.1rem; box-shadow: 0 12px 20px rgba(0, 0, 0, .15); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s; margin: 0; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav { position: relative; }
}
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
