/* Red Pen Tuition: main stylesheet */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --red: #D85A30;          /* Signal Red: accents, large blocks */
  --red-deep: #B5451F;     /* Accessible red for buttons, small text, bands */
  --red-band: #C94F27;    /* Accessible Signal Red for header, hero and footer bands */
  --red-soft: #E8794F;     /* Red for small text on dark backgrounds */
  --ink: #1D1008;          /* Brown-black */
  --ink-2: #2A1A12;
  --paper: #FAF9F5;        /* Off-white */
  --cream: #FAECE7;        /* Warm cream */
  --muted: #5C4A40;
  --line: #E9DCD4;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(29, 16, 8, 0.08);
  --max: 1160px;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-deep); margin-bottom: 12px; }
.bg-ink .eyebrow { color: var(--red-soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.bg-ink .lead { color: #E6D6CC; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red-deep); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--red-deep); }
.btn-light:hover { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--red-band); color: var(--white); box-shadow: 0 2px 12px rgba(29,16,8,0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.logo { display: inline-flex; text-decoration: none; flex-shrink: 0; }
.logo svg { height: 52px; width: auto; }
.logo img { height: 52px; width: auto; }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--white); color: var(--white); border-radius: 10px; padding: 8px 12px; font: 600 0.95rem var(--font); cursor: pointer; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 0; padding: 0; align-items: center; justify-content: flex-end; }
.main-nav a { color: var(--white); text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 8px 11px; border-radius: 8px; display: block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(29,16,8,0.22); color: var(--white); }
.main-nav .nav-cta a { background: var(--white); color: var(--red-deep); font-weight: 600; margin-left: 6px; padding: 9px 16px; border-radius: 999px; }
.main-nav .nav-cta a:hover { background: var(--ink); color: var(--white); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--red-band); padding: 8px 24px 20px; box-shadow: 0 10px 20px rgba(29,16,8,0.15); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 10px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .main-nav .nav-cta a { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* Hero */
.hero { background: var(--red-band); color: var(--white); padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--paper); clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 85%, 0 0); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero .hero-sub { font-size: 1.18rem; max-width: 600px; color: var(--white); }
.hero .eyebrow { color: var(--ink); background: rgba(255,255,255,0.85); padding: 5px 12px; border-radius: 999px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 24px; border: 6px solid rgba(255,255,255,0.9); box-shadow: 0 20px 50px rgba(29,16,8,0.25); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--cream); }
.hero-badge { position: absolute; left: -22px; bottom: 26px; background: var(--ink); color: var(--white); padding: 14px 18px; border-radius: 14px; font-size: 0.9rem; line-height: 1.4; box-shadow: var(--shadow); max-width: 240px; }
.hero-badge strong { display: block; color: var(--red-soft); font-size: 1rem; }
.credential-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.credential-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.credential-list li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23B5451F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.page-hero { background: var(--red-band); color: var(--white); padding: 64px 0 84px; position: relative; text-align: center; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; background: var(--paper); clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 85%, 0 0); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero p { max-width: 700px; margin: 0 auto; font-size: 1.12rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .hero-badge { left: 12px; }
}

/* Trust strip */
.trust-strip { background: var(--ink); color: var(--white); padding: 18px 0; }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }
.trust-strip li { display: flex; align-items: center; gap: 10px; }
.trust-strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Cards and grids */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.icon-badge { width: 54px; height: 54px; border-radius: 14px; background: var(--red-deep); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 1.35rem; margin-bottom: 18px; }
.icon-badge svg { width: 28px; height: 28px; }
.bg-ink .card { background: var(--ink-2); border-color: #3B2A20; box-shadow: none; color: #EFE3DB; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps-3 { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid #3B2A20; }
.step-num { font-size: 2.4rem; font-weight: 700; color: var(--red-soft); line-height: 1; margin-bottom: 12px; }
.step h3 { color: var(--white); }
.step p { color: #E6D6CC; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 40px 82px; }
.timeline li::before { content: ""; position: absolute; left: 25px; top: 54px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .num { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--red-deep); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
.timeline h3 { margin-bottom: 6px; padding-top: 10px; }

/* Video */
.video-wrap { border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(29,16,8,0.18); border-left: 8px solid var(--red); background: var(--ink); max-width: 940px; margin: 36px auto 0; }
.video-wrap video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }

/* Testimonials */
.quote-feature { max-width: 860px; margin: 0 auto; text-align: center; }
.quote-feature blockquote { margin: 0; font-size: clamp(1.2rem, 2.3vw, 1.55rem); font-style: italic; line-height: 1.6; }
.quote-feature cite { display: block; margin-top: 18px; font-style: normal; font-weight: 600; color: var(--muted); font-size: 0.98rem; }
.carousel { max-width: 860px; margin: 0 auto; }
.carousel-card { background: var(--white); border-radius: 22px; padding: 44px 44px 34px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; min-height: 300px; }
.carousel-card::before { content: "\201C"; position: absolute; top: 4px; left: 26px; font-size: 6rem; line-height: 1; color: var(--red); opacity: 0.25; font-family: Georgia, serif; }
.carousel-quote { font-size: 1.12rem; line-height: 1.75; margin: 16px 0 26px; }
.carousel-person { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--cream); color: var(--red-deep); flex-shrink: 0; }
.carousel-person strong { display: block; }
.carousel-person span { font-size: 0.9rem; color: var(--muted); }
.carousel-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #D9C8BE; cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: var(--red-deep); transform: scale(1.25); }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.arrows button:hover { background: var(--ink); color: var(--white); }
.review-list { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .review-list { grid-template-columns: 1fr; } .carousel-card { padding: 38px 24px 28px; } }
.review { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
.review p { font-size: 1.02rem; }
.review footer { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.review footer div span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); }

/* Feedback example */
.feedback-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 860px) { .feedback-demo { grid-template-columns: 1fr; } }
.paper { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.paper-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.paper .student { font-size: 1.02rem; line-height: 2; }
.mark { text-decoration: underline wavy var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.margin-note { display: block; color: var(--red-deep); font-weight: 600; font-size: 0.92rem; border-left: 3px solid var(--red); padding: 4px 0 4px 12px; margin: 10px 0; line-height: 1.5; }
.feedback-note h4 { font-size: 1rem; margin: 18px 0 4px; color: var(--red-deep); }
.feedback-note h4:first-of-type { margin-top: 0; }
.feedback-note p { margin: 0; font-size: 0.98rem; }
.improved { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 18px; font-size: 0.98rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { background: var(--white); border-radius: 22px; padding: 38px 30px 32px; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.price-card.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price-card .tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--red-deep); color: var(--white); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.price-card .plan { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-deep); text-align: center; }
.price-card.featured .plan { color: var(--red-soft); }
.price-card .amount { font-size: 3.4rem; font-weight: 700; text-align: center; line-height: 1.1; margin: 10px 0 2px; }
.price-card .per { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.price-card.featured .per { color: #E6D6CC; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.price-card li { padding-left: 30px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--red-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.price-card .btn { width: 100%; }
.mini-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .mini-prices { grid-template-columns: 1fr; } }
.mini-price { background: var(--white); border-radius: var(--radius); padding: 26px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mini-price .label { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.mini-price .amount { font-size: 2.3rem; font-weight: 700; color: var(--red-deep); line-height: 1.2; margin-top: 6px; }
.mini-price .per { font-size: 0.9rem; color: var(--muted); }
.note-list li { margin-bottom: 8px; }

/* CTA band */
.cta-band { background: var(--red-deep); color: var(--white); border-radius: 26px; padding: 56px 40px; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { font-size: 1.1rem; margin: 0 auto; max-width: 620px; }
.cta-band .btn-row { justify-content: center; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.photo { border-radius: 24px; box-shadow: var(--shadow); object-fit: cover; width: 100%; background: var(--cream); }

/* Tutors */
.tutor { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; background: var(--white); border-radius: 22px; padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tutor + .tutor { margin-top: 28px; }
.tutor img { border-radius: 18px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--cream); }
.tutor .role { color: var(--red-deep); font-weight: 600; margin: -6px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--cream); color: var(--ink); font-size: 0.85rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 760px) { .tutor { grid-template-columns: 1fr; padding: 24px; } .tutor img { max-width: 240px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--ink); }
.gallery figcaption { padding: 14px 18px; font-size: 0.92rem; color: var(--muted); }
.gallery figcaption strong { color: var(--ink); display: block; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--white); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(29,16,8,0.05); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; font-weight: 600; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--red-deep); display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; background: var(--red-deep); color: var(--white); }
.faq .answer { padding: 0 26px 22px; color: var(--ink); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
form .hint { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: 400 1rem var(--font); color: var(--ink); background: var(--white); border: 1.5px solid #D9C8BE; border-radius: 12px; padding: 13px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--red-deep); outline: none; box-shadow: 0 0 0 3px rgba(216,90,48,0.2); }
textarea { min-height: 130px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 0.95rem !important; }
.checkbox input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--red-deep); }
.form-status { margin-top: 14px; font-weight: 600; }
.info-panel { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 32px; }
.info-panel h3 { color: var(--white); }
.info-panel a { color: var(--white); }
.info-panel dl { margin: 0 0 22px; }
.info-panel dt { font-weight: 600; color: var(--red-soft); font-size: 0.9rem; margin-top: 14px; }
.info-panel dd { margin: 2px 0 0; }
.info-panel ul { margin: 0; padding-left: 1.1em; color: #E6D6CC; }
.info-panel li { margin-bottom: 8px; }

/* Legal / prose */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: 6px; }
.notice { background: var(--cream); border-left: 4px solid var(--red); padding: 16px 20px; border-radius: 10px; margin: 0 0 28px; }

/* Footer */
.site-footer { background: var(--red-band); color: var(--white); padding: 70px 0 28px; margin-top: 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-brand { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 8px; }
.footer-tagline { opacity: 0.95; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--white); display: grid; place-items: center; }
.social a:hover { background: var(--white); color: var(--red-deep); text-decoration: none; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.3); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* WhatsApp */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: #1F8A4C; color: var(--white); text-decoration: none; font-weight: 600; padding: 13px 20px 13px 16px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.whatsapp:hover { background: #166B3A; color: var(--white); }
.whatsapp svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 560px) { .whatsapp span { display: none; } .whatsapp { padding: 14px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Blog */
.article-head { background: var(--cream); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 10px; }
.article-head .lead { max-width: 760px; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.byline { font-size: 0.92rem; color: var(--muted); margin: 14px 0 0; }
.byline a { color: var(--red-deep); }
.jump { margin-top: 18px; font-size: 0.95rem; }
.article h2 { font-size: 1.55rem; margin-top: 1.8em; }
.article > h2:first-child { margin-top: 0; }
.article li { margin-bottom: 8px; }
.facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); margin-bottom: 10px; }
.facts h2 { font-size: 1.25rem; margin: 0 0 14px; }
.facts table { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
.facts th { width: 34%; font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { .facts th, .facts td { display: block; width: 100%; padding: 6px 0; border: 0; } .facts tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; } .facts tr:first-child { border-top: 0; } }
.facts-note { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }
.article-cta { background: var(--red-deep); color: var(--white); border-radius: 22px; padding: 34px; margin: 40px 0; }
.article-cta h2 { color: var(--white); margin-top: 0 !important; font-size: 1.5rem; }
.article-cta p { margin: 0; }
.related { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.25rem; margin-top: 0 !important; }
.related ul { columns: 2; column-gap: 30px; padding-left: 1.1em; }
@media (max-width: 600px) { .related ul { columns: 1; } }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-top: 5px solid var(--red); transition: transform .15s ease; }
.post-card:hover { transform: translateY(-3px); color: var(--ink); }
.post-card h3 { margin-bottom: 8px; }
.post-card p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.post-card .more { font-weight: 600; color: var(--red-deep); font-size: 0.95rem; }
.text-search { width: 100%; max-width: 560px; font: 400 1.05rem var(--font); padding: 14px 18px; border: 1.5px solid #D9C8BE; border-radius: 999px; margin: 6px 0 20px; background: var(--white); }
.text-search:focus { outline: none; border-color: var(--red-deep); box-shadow: 0 0 0 3px rgba(216,90,48,0.2); }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table.az { width: 100%; border-collapse: collapse; min-width: 560px; }
table.az th, table.az td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.96rem; vertical-align: top; }
table.az thead th { background: var(--ink); color: var(--white); font-weight: 600; position: sticky; top: 0; }
table.az tbody tr:hover { background: #FDF6F3; }
table.az td:first-child { font-weight: 600; }
.no-results { margin-top: 14px; font-weight: 600; }
.board { padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.board h2 { font-size: 1.7rem; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 16px; }
.board-sec { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.board-sec h3 { font-size: 1.02rem; color: var(--red-deep); margin-bottom: 10px; }
.board-sec ul { margin: 0; padding-left: 1.1em; }
.board-sec li { margin-bottom: 6px; font-size: 0.96rem; }
.board-sec .author { color: var(--muted); font-size: 0.88rem; display: block; }
.board-sec .see-guide { list-style: none; margin-left: -1.1em; margin-top: 10px; font-weight: 600; }
#a-z { scroll-margin-top: 90px; }
