/* SG Math Tutor: styles follow the book "Problem Sums? No Problem!" (colours, type, cover motifs). */
@font-face { font-family: Inter; src: url(../fonts/inter-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-400-italic.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(../fonts/inter-display-900.woff) format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/poppins-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/poppins-700.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
  --blue: #1868D8; --deep: #0A347F; --yellow: #F8C800; --cyan: #00A8E8;
  --coral: #E8603C; --violet: #7B4FD6; --ink: #14254A; --text: #1F2633;
  --muted: #4A5366; --line: #D9DEE7; --tint: #E8F0FC; --soft: #F5F7FB;
  --wrap: 1120px; --gutter: 20px;
  --display: "Inter Display", Inter, system-ui, sans-serif;
  --head: Poppins, Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 700; }
blockquote { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section.tint { background: var(--tint); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .actions { justify-content: center; }
.cover-bg h2 { color: #fff; }
.cover-bg .lead { color: rgba(255,255,255,.92); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; border-radius: 999px; border: 2px solid transparent; font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn svg { flex: 0 0 auto; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFD933; color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--deep); color: #fff; }
.btn-line { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-line:hover { background: var(--tint); color: var(--deep); }
.btn-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.logo { margin-right: auto; }
.logo img { width: 128px; height: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; font-family: var(--head); font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--tint); }
.header-cta { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20,37,74,.08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 12px; font-size: 1.05rem; }
}
@media (max-width: 380px) { .logo img { width: 104px; } .header-cta { padding: 8px 14px; } }

/* Hero: the book cover */
.cover-bg { color: #fff; background:
  linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 28px 28px,
  radial-gradient(560px 460px at 88% 6%, rgba(0,168,232,.55), transparent 70%),
  linear-gradient(165deg, var(--blue) 0%, var(--deep) 78%); }
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.pill { display: inline-block; border: 1.5px solid var(--yellow); background: rgba(10,52,127,.55); color: var(--yellow); border-radius: 999px; padding: 5px 16px; font-family: var(--head); font-weight: 500; font-size: .95rem; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; color: #fff; margin: 20px 0; }
.hero-lead { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 36ch; margin: 0; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; padding-bottom: 48px; }
  .hero-art { margin: 8px -8px 0; }
}

/* White band with ticks, as on the cover */
.band { border-top: 6px solid var(--yellow); background: #fff; }
.ticks { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.tick { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
@media (max-width: 860px) { .ticks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .ticks { grid-template-columns: 1fr; } }

/* Page heading band for inner pages */
.page-head { padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.05; margin: 12px 0 14px; }
.page-head .lead { color: rgba(255,255,255,.92); }
.crumbs { font-size: .95rem; color: rgba(255,255,255,.85); }
.crumbs a { color: #fff; }

/* Worries */
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.worry { background: var(--soft); border-radius: 16px; overflow: hidden; }
.worry img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.worry-body { padding: 20px 22px 24px; }
.worry h3 { font-size: 1.1rem; }
.worry blockquote { margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--cyan); color: var(--muted); font-style: italic; }
@media (max-width: 960px) { .worries { grid-template-columns: 1fr; max-width: 560px; } }

/* Numbered steps, styled like the book's question numbers */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; counter-increment: step; }
.steps > li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin-bottom: .25em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.top { align-items: start; }
.split img { border-radius: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* "You care" band */
.care { position: relative; color: #fff; background: var(--deep) center / cover no-repeat; }
.care::before { content: ""; position: absolute; inset: 0; background: rgba(10,52,127,.86); }
.care .wrap { position: relative; }
.care h2 { color: #fff; }
.care p { color: rgba(255,255,255,.92); }
.quote { margin: 32px 0 0; padding: 28px 0 0; border-top: 2px solid rgba(255,255,255,.25); }
.quote p { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.25; color: #fff; margin: 0; }
.quote .inspires { color: var(--yellow); }
.quote figcaption { margin-top: 14px; color: rgba(255,255,255,.85); }

/* Tips */
.tips { display: grid; gap: 56px; margin-top: 40px; }
.tip { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.tip > div:only-child { grid-column: 1 / -1; max-width: 68ch; }
.tip-num { font-family: var(--head); font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.tip figure { margin: 0; }
.tip figure img { border-radius: 12px; margin: 0 auto; }
@media (max-width: 860px) { .tip { grid-template-columns: 1fr; gap: 20px; } .tip figure img { max-width: 420px; width: 100%; } }
.problem { background: var(--tint); border-left: 6px solid var(--blue); border-radius: 0 16px 16px 0; padding: 24px 26px; font-size: 1.1rem; color: var(--ink); }
.problem p:last-child { margin: 0; }
.problem .ask { font-weight: 700; }

/* Teacher */
.teacher { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.portrait { border-radius: 20px; border: 6px solid #fff; box-shadow: 0 16px 32px rgba(20,37,74,.16); transform: rotate(-2deg); }
@media (max-width: 760px) { .teacher { grid-template-columns: 1fr; gap: 24px; } .portrait { max-width: 260px; } }
.facts { margin: 24px 0 0; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--head); font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 28px; margin-top: 28px; }
.books figure { margin: 0; }
.books img { border-radius: 6px; box-shadow: 0 12px 24px rgba(20,37,74,.18); }
.books figcaption { margin-top: 12px; font-size: .95rem; color: var(--muted); }
.books figcaption strong { display: block; color: var(--ink); }
@media (max-width: 640px) { .books { grid-template-columns: repeat(2, 1fr); } }

/* Testimonials */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.result { align-self: flex-start; background: var(--tint); color: var(--deep); font-family: var(--head); font-weight: 700; font-size: .95rem; border-radius: 8px; padding: 4px 12px; }
.review blockquote p { font-size: 1.08rem; color: var(--ink); margin-bottom: .6em; }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.who { font-weight: 600; color: var(--muted); font-size: .95rem; }
.shots { display: flex; gap: 8px; margin-left: auto; }
.shots a { display: block; width: 52px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.shots img { aspect-ratio: 9 / 16; object-fit: cover; object-position: left top; }
.letter { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.letter-shots { display: grid; gap: 16px; }
.letter-shots a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 12px 28px rgba(20,37,74,.16); }
.letter-text { margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 64ch; }
.letter-text h2 { margin: 0; }
.letter-text blockquote p { font-size: 1.12rem; color: var(--ink); margin-bottom: .7em; }
.letter-text blockquote p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .letter { grid-template-columns: 1fr; gap: 28px; } .letter-shots { grid-template-columns: 1fr 1fr; } }
.reviews.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .reviews.two { grid-template-columns: 1fr; } }
.pinboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; margin-top: 36px; }
@media (max-width: 860px) { .pinboard { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; } }
@media (max-width: 520px) { .pinboard { grid-template-columns: 1fr; } }
.pin { margin: 0; background: #fff; padding: 10px 10px 16px; border-radius: 6px; box-shadow: 0 10px 24px rgba(20,37,74,.14); transform: rotate(-1.4deg); }
.pin:nth-child(even) { transform: rotate(1.2deg); }
.pin:nth-child(3n) { transform: rotate(-.6deg); }
.pin a { display: block; border-radius: 3px; overflow: hidden; }
.pin img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pin figcaption { padding: 12px 4px 0; font-size: .98rem; color: var(--ink); }
.pin figcaption .who { display: block; margin-top: 6px; font-size: .9rem; }
.note { font-size: .95rem; color: var(--muted); }

/* Classes */
.schedule { width: 100%; max-width: 640px; border-collapse: collapse; margin-top: 8px; font-size: 1.02rem; }
.schedule th, .schedule td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.schedule thead th { background: var(--ink); color: #fff; font-family: var(--head); font-weight: 500; }
.schedule tbody th { font-family: var(--head); font-weight: 700; color: var(--ink); }
.schedule tbody th, .schedule td:last-child { white-space: nowrap; }
.schedule + .note { margin-top: 14px; }
@media (max-width: 480px) { .schedule th, .schedule td { padding: 12px 10px; } }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.info { background: #fff; border-radius: 16px; padding: 24px; border-top: 6px solid var(--blue); }
.info:nth-child(2) { border-top-color: var(--cyan); }
.info:nth-child(3) { border-top-color: var(--yellow); }
.info p:last-child { margin: 0; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.reasons { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 36px; counter-reset: reason; }
.reasons li { counter-increment: reason; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.reasons li::before { content: counter(reason); width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.1rem; display: grid; place-items: center; }
.reasons h3 { margin-bottom: .3em; }
.reasons p { margin: 0; }

/* Book */
.book-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.book-title { font-family: var(--display); font-weight: 900; line-height: .98; margin: 16px 0 18px; }
.book-title span { display: block; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); color: #fff; }
.book-title .yes { color: var(--yellow); }
.book-sub { font-family: var(--head); font-weight: 500; font-size: 1.3rem; color: #fff; margin: 0 0 8px; }
.book-by { color: rgba(255,255,255,.88); margin: 0; }
.book-cover { max-width: 380px; width: 100%; margin: 0 auto; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(3deg); }
@media (max-width: 860px) { .book-hero { grid-template-columns: 1fr; } .book-cover { max-width: 280px; } }
.status { display: inline-block; background: var(--yellow); color: var(--ink); font-family: var(--head); font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: .95rem; }
.status + h2 { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.part { border-radius: 16px; padding: 22px 24px; background: var(--pt); border-top: 8px solid var(--pc); }
.part h3 { color: var(--ink); }
.part-label { font-family: var(--head); font-weight: 700; color: color-mix(in srgb, var(--pc) 78%, #000); font-size: .95rem; margin: 0 0 4px; }
.part ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.part a, .part .ch { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.part a:hover span:last-child { text-decoration: underline; }
.part .n { font-family: var(--head); font-weight: 700; color: color-mix(in srgb, var(--pc) 78%, #000); }
@media (max-width: 960px) { .parts { grid-template-columns: 1fr; max-width: 560px; } }

/* Chapter video pages */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); }
.video + h2 { margin-top: 40px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: #fff; padding: 24px; background:
  linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(165deg, var(--pc, var(--blue)) 0%, var(--deep) 85%); }
.video-soon p { margin: 12px 0 0; font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.video-soon small { display: block; margin-top: 4px; font-family: Inter, system-ui, sans-serif; font-weight: 400; font-size: .95rem; color: rgba(255,255,255,.85); }
.chapter-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.chapter-nav a { font-family: var(--head); font-weight: 500; text-decoration: none; }

/* Forms */
.form { display: grid; gap: 18px; margin-top: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); padding: 12px 14px; border: 1.5px solid #AEB7C6; border-radius: 10px; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,104,216,.22); }
.form-note { font-size: .95rem; color: var(--muted); margin: 0; }
.panel { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 20px 48px rgba(20,37,74,.12); }
@media (max-width: 640px) { .panel { padding: 24px 20px; } }
.trial { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.trial-intro p { color: rgba(255,255,255,.92); }
.trial-intro .ticks { grid-template-columns: 1fr; padding: 8px 0 0; }
.trial-intro .ticks li { color: #fff; font-weight: 500; }
@media (max-width: 860px) { .trial { grid-template-columns: 1fr; gap: 28px; } }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list h3 { margin-bottom: .2em; font-size: 1.05rem; }
.contact-list p { margin: 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 16px; background: var(--soft); }
.where { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 6px solid var(--yellow); background: var(--soft); padding: 48px 0 104px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid img { width: 150px; margin-bottom: 14px; }
.footer-grid h2 { font-size: 1rem; margin-bottom: .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--ink); }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 20px; border-radius: 999px; background: #15803D; color: #fff; font-family: var(--head); font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.wa-float:hover { background: #116A32; color: #fff; }
@media (max-width: 700px) {
  .wa-float { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; width: min(94vw, 960px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8,18,40,.95); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 8px; background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; max-width: 60ch; font-size: 1rem; }
.lb-bar { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.lb-bar button { min-width: 48px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff; font: 700 1rem var(--head); cursor: pointer; }
.lb-bar button:hover { background: rgba(255,255,255,.14); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .wa-float, .site-footer, .nav-toggle { display: none; } }
