/* ============================================================
   BrightPine Solutions — Premium Website Theme
   ============================================================ */

:root {
  /* Brand palette — derived from the BP logo (deep navy → bright blue) */
  --pine-950: #06142e;
  --pine-900: #0a1f44;
  --navy-900: #0a1f44;
  --navy-800: #16315f;
  --teal-700: #123a73;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --ink: #0f172a;
  --ink-soft: #4b5a6e;
  --emerald: #1565d8;        /* primary brand blue */
  --emerald-light: #46a6f5;  /* bright/light blue */
  --sky: #3b9aef;
  --accent: #1565d8;
  --accent-dark: #0d4ea8;
  --line: #e6ebf3;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 38px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 12px 30px rgba(21, 101, 216, 0.30);
  --maxw: 1160px;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--emerald), var(--sky)); transition: width .1s linear; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; cursor: pointer; border: 0; transition: transform .18s ease, box-shadow .22s ease, background .22s ease; }
.btn svg { transition: transform .2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--emerald), var(--sky)); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(21,101,216,0.4); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; }
.brand-mark { display: grid; place-items: center; height: 46px; }
.brand-mark img { height: 46px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; font-size: 1.18rem; color: var(--ink); line-height: 1.05; }
.brand-text small { font-size: 0.62rem; font-weight: 600; color: var(--emerald); letter-spacing: 0.18em; text-transform: uppercase; }
.brand-footer .brand-text { color: #fff; }
/* logo PNG has a white background — give it a clean white chip on the dark footer */
/* (.site-footer .brand-footer beats the generic ".footer-grid a { display:block }" rule) */
.site-footer .brand-footer { display: inline-flex; align-items: center; }
.brand-footer .brand-mark { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 0; box-shadow: var(--shadow-md); }
.brand-footer .brand-mark img { width: 48px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: 0.94rem; color: var(--slate-600); transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--ink); background: var(--slate-100); }
.main-nav .nav-cta { background: linear-gradient(135deg, var(--emerald), var(--sky)); color: #fff; margin-left: 8px; font-weight: 600; box-shadow: var(--shadow-glow); }
.main-nav .nav-cta:hover { color: #fff; transform: translateY(-2px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .28s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; color: #fff; overflow: hidden; padding: clamp(72px, 11vw, 120px) 0 clamp(90px, 12vw, 150px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(900px 480px at 88% -8%, rgba(70,166,245,0.34), transparent 60%),
  radial-gradient(760px 520px at 6% 108%, rgba(21,101,216,0.34), transparent 60%),
  linear-gradient(155deg, var(--navy-900) 0%, var(--teal-700) 60%, var(--pine-900) 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 50px 50px; mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000, transparent 78%); }
.hero-orbs { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; animation: float 9s ease-in-out infinite; }
.orb-1 { width: 280px; height: 280px; background: #1565d8; top: 8%; right: 12%; }
.orb-2 { width: 220px; height: 220px; background: #3b9aef; bottom: 14%; left: 8%; animation-delay: -3s; }
.orb-3 { width: 160px; height: 160px; background: #46a6f5; top: 40%; left: 42%; animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(14px); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald-light); margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-light); box-shadow: 0 0 0 4px rgba(70,166,245,0.25); }
.eyebrow-dark { color: var(--accent-dark); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.grad-text { background: linear-gradient(120deg, var(--emerald-light), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: rgba(255,255,255,0.82); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { list-style: none; display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* Code window visual */
.hero-visual { position: relative; z-index: 2; }
.code-window { background: rgba(7,20,30,0.72); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,0.45); backdrop-filter: blur(10px); overflow: hidden; transform: perspective(1200px) rotateY(-9deg) rotateX(3deg); transition: transform .4s ease; }
.hero-visual:hover .code-window { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.cw-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cw-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.cw-bar span:nth-child(2) { background: #febc2e; }
.cw-bar span:nth-child(3) { background: #28c840; }
.cw-bar em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: rgba(255,255,255,0.4); font-family: var(--font-body); }
.cw-body { padding: 20px 22px; margin: 0; font-family: "SF Mono", "Consolas", monospace; font-size: 0.86rem; line-height: 1.75; color: #cfe0f5; overflow-x: auto; }
.cw-body .k { color: #38bdf8; } .cw-body .c { color: #46a6f5; } .cw-body .s { color: #fbbf24; } .cw-body .cm { color: #64748b; font-style: italic; }

.float-badge { position: absolute; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #0f2440; background: #fff; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.fb-1 { top: -22px; left: -18px; color: var(--emerald); } .fb-2 { bottom: 30px; left: -28px; color: var(--sky); animation-delay: -2s; } .fb-3 { top: -10px; right: -16px; color: #6366f1; animation-delay: -3.5s; } .fb-4 { bottom: -20px; right: 22px; color: var(--accent-dark); animation-delay: -1s; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--bg-soft); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 14px 44px; justify-content: center; padding: 26px 24px; }
.trust-strip span { color: var(--slate-500); font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 116px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-team { background: linear-gradient(180deg, #fff 0%, #eef3fb 100%); }
.section-dark { background: linear-gradient(155deg, var(--navy-900), var(--teal-700)); color: #fff; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; max-width: 660px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 8px 0 12px; }
.on-dark { color: #fff; }
.section-intro { font-size: 1.06rem; }
.section-dark .section-intro { color: rgba(255,255,255,0.75); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.13rem; color: var(--slate-600); margin: 16px 0; }

.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--slate-600); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; background: rgba(21,101,216,0.12); color: var(--accent-dark); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }

/* Glass card */
.glass { background: rgba(255,255,255,0.78); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.7); }
.about-card { border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.about-card h3 { margin-bottom: 22px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mini-grid strong { display: block; font-family: var(--font-head); margin-bottom: 4px; color: var(--ink); }
.mini-grid p { font-size: 0.92rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--emerald), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: #cdddf5; }
.card:hover::before { transform: scaleX(1); }
.card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(21,101,216,0.14), rgba(70,166,245,0.14)); color: var(--accent-dark); transition: transform .25s ease; }
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }
.portfolio-card .tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-dark); background: rgba(21,101,216,0.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Chips / Tech ---------- */
.chips, .tech-grid { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.chips span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 11px 22px; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: #fff; transition: transform .2s, background .2s; backdrop-filter: blur(6px); }
.chips span:hover { transform: translateY(-3px); background: rgba(21,101,216,0.28); }
.tech-grid span { background: linear-gradient(135deg, var(--navy-900), var(--teal-700)); color: #fff; border-radius: var(--radius-sm); padding: 14px 28px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.tech-grid span:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }

/* ---------- Leadership ---------- */
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 900px; margin: 0 auto; }
.leader-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .25s ease, box-shadow .25s ease; }
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.leader-photo { position: relative; aspect-ratio: 4 / 5; background: var(--slate-100); overflow: hidden; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.leader-card:hover .leader-photo img { transform: scale(1.05); }
.leader-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,31,68,0.4), transparent 40%); }
.leader-body { padding: 24px 26px 28px; }
.leader-body h3 { font-size: 1.4rem; }
.leader-role { color: var(--accent-dark); font-weight: 600; font-family: var(--font-head); font-size: 0.92rem; margin: 4px 0 12px; }
.leader-bio { font-size: 0.95rem; margin-bottom: 16px; }
.leader-contact { list-style: none; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.leader-contact a { font-size: 0.92rem; color: var(--slate-600); transition: color .15s; }
.leader-contact a:hover { color: var(--accent-dark); }

/* ---------- Contact form ---------- */
.contact-grid { align-items: start; }
.contact-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-400); font-weight: 600; }
.contact-list a { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--accent-dark); }
.enquiry-form { border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; font-family: var(--font-head); margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.96rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(21,101,216,0.16); }
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.9rem; min-height: 20px; opacity: 1; transition: opacity .5s ease; }
.form-note.hide { opacity: 0; }
.form-note.ok { color: #15803d; } .form-note.err { color: #b91c1c; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* ---------- Customer Reviews ---------- */
.review-form { margin: 0; }
.review-form-title { margin: 0 0 18px; font-size: 1.3rem; }
.review-form .optional { color: #8a97ad; font-weight: 400; font-size: 0.85em; }

/* Carousel header: heading on the left, nav arrows + add button on the right */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.reviews-head-text .eyebrow { margin-bottom: 6px; }
.reviews-head-text h2 { margin: 0; }
.reviews-controls { display: flex; align-items: center; gap: 10px; }
.rev-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(15,40,80,0.15);
  background: #fff; color: var(--navy-900); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.rev-arrow:hover:not(:disabled) { background: #2563eb; color: #fff; border-color: #2563eb; }
.rev-arrow:disabled { opacity: .35; cursor: default; }
.rev-arrow[hidden] { display: none; }
.rev-add { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }

/* Modal / popup */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15,40,80,0.55); animation: modalFade .2s ease; }
.modal-overlay[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 30px 30px 32px; box-shadow: 0 30px 80px rgba(15,40,80,0.32);
  animation: modalPop .22s cubic-bezier(.2,.8,.3,1); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.9rem;
  line-height: 1; color: #8a97ad; cursor: pointer; padding: 0; }
.modal-close:hover { color: var(--navy-900); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.star-input { display: inline-flex; gap: 6px; font-size: 2rem; line-height: 1; }
.star-input .star { background: none; border: none; padding: 0; cursor: pointer; color: #d1d9e6; transition: color .12s, transform .1s; }
.star-input .star:hover { transform: scale(1.12); }
.star-input .star.on { color: #f5b50a; }

/* Horizontal testimonial carousel.
   Card width/height/gap are driven by CSS variables so every card is an
   identical rectangle and the whole row rescales cleanly per breakpoint. */
.reviews-carousel { --card-w: 360px; --card-h: 300px; --card-gap: 26px;
  display: flex; gap: var(--card-gap); overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; padding: 8px 4px 20px; -ms-overflow-style: none; scrollbar-width: none; }
.reviews-carousel::-webkit-scrollbar { display: none; }
.reviews-carousel:focus-visible { outline: 2px solid rgba(37,99,235,0.5); outline-offset: 4px; border-radius: 12px; }

/* Card: a fixed-size rectangle — identical width and height on every card.
   A long review scrolls inside the text area instead of stretching the card. */
.testimonial-card { flex: 0 0 var(--card-w); width: var(--card-w); height: var(--card-h);
  box-sizing: border-box; scroll-snap-align: start; display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(15,40,80,0.08); border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(15,40,80,0.10); animation: reviewIn .45s ease both; }
@keyframes reviewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .testimonial-card { animation: none; } }

/* Tablet: slightly narrower cards and a tighter gap. */
@media (max-width: 1024px) { .reviews-carousel { --card-w: 330px; --card-h: 300px; --card-gap: 22px; } }
/* Large phones / small tablets: a single card fills most of the viewport. */
@media (max-width: 680px) { .reviews-carousel { --card-w: min(82vw, 360px); --card-h: 320px; --card-gap: 18px; } }
/* Small phones. */
@media (max-width: 420px) { .reviews-carousel { --card-w: 86vw; --card-h: 340px; --card-gap: 14px; } }

.tc-body { flex: 1; min-width: 0; min-height: 0; box-sizing: border-box; position: relative; display: flex; flex-direction: column; padding: 28px 28px 22px; }
@media (max-width: 680px) { .tc-body { padding: 24px 22px 20px; } }
@media (max-width: 420px) { .tc-body { padding: 22px 20px 18px; } }
.tc-quote { position: absolute; top: 18px; right: 24px; width: 44px; height: 44px; border-radius: 50%; z-index: 2;
  background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 1.7rem; line-height: 1; box-shadow: 0 8px 20px rgba(37,99,235,0.35); }
.tc-stars { color: #f5b50a; font-size: 1.05rem; letter-spacing: 2px; flex: 0 0 auto; }
.tc-stars .off { color: #d1d9e6; }
/* Author name: pinned below the scroll area and always visible. */
.tc-name { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(15,40,80,0.07);
  font-size: 1.02rem; font-weight: 700; color: var(--navy-900); flex: 0 0 auto; }

/* Review text sits in a fixed-height area that takes the space between the
   stars and the name. It auto-scrolls for long reviews, can also be scrolled
   by hand, and hides its scrollbar — so the name below it is always visible.
   Soft fade at the top/bottom edges. */
.tc-scroll { flex: 1 1 auto; min-height: 0; margin-top: 14px; position: relative;
  overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.tc-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.tc-text { margin: 0; color: #51607a; font-size: 0.93rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.tc-text.auto-scroll { animation: tcScroll var(--dur, 12s) ease-in-out infinite alternate; will-change: transform; }
.tc-scroll:hover .tc-text.auto-scroll { animation-play-state: paused; }
@keyframes tcScroll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--shift, 0)); } }
@media (prefers-reduced-motion: reduce) {
  /* No marquee animation — the area stays hand-scrollable with a hidden bar. */
  .tc-text.auto-scroll { animation: none; }
}

.reviews-empty { color: #8a97ad; padding: 10px 4px 4px; }
.reviews-empty[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--pine-950), var(--navy-900)); color: rgba(255,255,255,0.7); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 42px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.65); padding: 5px 0; font-size: 0.92rem; transition: color .15s; }
.footer-grid a:hover { color: var(--emerald-light); }
.footer-tagline { margin-top: 14px; max-width: 320px; font-size: 0.92rem; color: rgba(255,255,255,0.55); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 24px; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--sky)); box-shadow: var(--shadow-glow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s ease; z-index: 60; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .float-badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 22px; box-shadow: var(--shadow-md); transform: translateY(-14px); opacity: 0; pointer-events: none; transition: .24s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; }
  .main-nav .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 460px; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 26px; }
  .hero-stats strong { font-size: 1.7rem; }
  .leaders { grid-template-columns: 1fr; max-width: 380px; }
  .cards { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .float-badge { display: none; }
}
