/* The Tax Academy — shared site styles */
:root {
  --ink: #061619;          /* deepest green-black */
  --ink-2: #001d21;        /* dark section bg */
  --slate: #283338;        /* videos band */
  --green: #7abc32;        /* brand accent */
  --green-dark: #5f9a22;
  --green-soft: #cef5a4;
  --cream: #f6f9f1;        /* light section bg */
  --text: #3a4f66;
  --muted: #7b808c;
  --line: #e3e8dc;
  --white: #fff;
  --radius: 14px;
  --maxw: 1240px;
  --font: "Rethink Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; background: var(--white); padding: 8px 14px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.eyebrow--light { color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: var(--white);
  font: 600 14px/1 var(--font);
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn--sm { padding: 10px 20px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px 0 0; height: 120px;
}
.site-header--solid { position: relative; background: var(--ink); height: auto; }
.logo-badge {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 330px; height: 195px; align-self: flex-start;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  padding: 16px 96px 16px 36px;
}
.logo-badge img { width: 160px; height: auto; }
.main-nav ul { list-style: none; display: flex; gap: 44px; margin: 0; padding: 0; }
.main-nav a {
  color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .03em; transition: color .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 860px; display: flex; flex-direction: column; justify-content: flex-end;
  background: url("../img/hero-bg.jpg") center 30% / cover no-repeat;
  color: var(--white); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,25,.15) 0%, rgba(6,22,25,.35) 50%, rgba(6,22,25,.85) 100%);
}
.hero > * { position: relative; }
.hero__intro { align-self: flex-end; max-width: 560px; margin: 0 60px 70px 0; }
.hero__intro p { font-size: 22px; font-weight: 500; line-height: 1.45; color: var(--white); margin-bottom: 22px; }
.hero__intro .hl { color: var(--green-soft); }
.hero__title {
  margin: 0; padding: 0 24px 40px; text-align: center; color: var(--white);
  font-size: clamp(48px, 9.8vw, 140px); font-weight: 700; line-height: .95; letter-spacing: -.02em;
}
.hero__title span { display: block; }
.hero__title span:last-child { letter-spacing: .04em; }

/* ---------- Features (dark) ---------- */
.features { background: var(--ink-2); color: #c8cbd1; }
.features__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; }
.features__col { padding: 70px 30px 80px; border-left: 1px solid rgba(255,255,255,.08); }
.features__col:first-child { border-left: 0; padding-left: 30px; display: flex; flex-direction: column; }
.features__col:first-child .btn { margin-top: auto; align-self: flex-start; }
.features h2 { color: var(--white); font-size: 36px; font-weight: 500; }
.features h3 { color: var(--white); font-size: 23px; font-weight: 500; margin-top: 24px; }
.features img { width: 100%; aspect-ratio: 1 / 1.04; object-fit: cover; }
.features p { font-size: 15px; }

/* ---------- About ---------- */
.about { background: var(--cream); padding: 110px 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; }
.about__img img { width: 100%; aspect-ratio: 1.3 / 1; object-fit: cover; object-position: center 20%; }
.about h2 { font-size: clamp(32px, 3.6vw, 51px); font-weight: 600; }
.about p { color: var(--muted); max-width: 520px; margin-bottom: 40px; }

/* ---------- Products ---------- */
.products { padding: 110px 0; }
.products__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.products__head h2 { font-size: clamp(32px, 3.6vw, 51px); font-weight: 700; }
.products__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.product-card {
  background: var(--cream); border-radius: 4px; padding: 40px 30px 36px;
  display: flex; flex-direction: column; min-height: 340px;
}
.product-card .eyebrow { margin-bottom: auto; }
.product-card h3 { font-size: 26px; font-weight: 700; margin: 80px 0 16px; }
.product-card p { color: var(--muted); font-size: 15px; max-width: 460px; margin-bottom: 22px; }
.product-card .btn { align-self: flex-start; }
.product-card--dark { background: var(--ink-2); }
.product-card--dark .eyebrow, .product-card--dark h3 { color: var(--white); }
.product-card--dark p { color: #c8cbd1; }

/* ---------- Videos ---------- */
.videos {
  background: var(--slate); color: #c8cbd1; padding: 130px 0;
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}
.videos__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.05fr; gap: 30px; align-items: center; }
.video-card { background: var(--white); border-radius: 10px; overflow: hidden; }
.video-card__frame { position: relative; aspect-ratio: 16/10; background: #000; }
.video-card__frame button, .video-card__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  background: #000 center / cover no-repeat;
}
.video-card__frame button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 12px; background: rgba(0,0,0,.7)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: background-color .2s;
}
.video-card__frame button:hover::after { background-color: #f00; }
.video-card__body { padding: 18px 20px 22px; }
.video-card__author { color: var(--green); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.video-card h3 { font-size: 18px; font-weight: 600; margin: 0; }
.videos h2 { color: var(--white); font-size: 26px; font-weight: 600; }
.videos__aside p { font-size: 15px; }

/* ---------- Services ---------- */
.services { padding: 110px 0; text-align: center; }
.services > .container > h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; max-width: 760px; margin: 0 auto 60px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.service-card { background: var(--cream); padding: 34px 30px 36px; border-radius: 4px; }
.service-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 26px; }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.service-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  position: relative; padding: 80px 0;
  background: url("../img/custom-img-051.jpg") center / cover no-repeat;
}
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(6,22,25,.25); }
.contact .container { position: relative; display: flex; justify-content: flex-end; }
.contact-card { background: var(--white); width: 100%; max-width: 520px; padding: 44px 40px; border-radius: 4px; }
.contact-card h2 { font-size: 30px; font-weight: 600; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 15px var(--font); color: var(--ink);
  border: 0; border-bottom: 1px solid #c8cbd1; padding: 10px 2px; background: transparent; border-radius: 0;
}
.field textarea { border: 1px solid #c8cbd1; min-height: 150px; resize: vertical; padding: 10px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.req { color: #e51919; }
.contact-card .btn { background: var(--ink-2); border-radius: 4px; }
.contact-card .btn:hover { background: var(--green); }
.form-status { margin-top: 14px; font-size: 14px; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: #e51919; }
.hp { position: absolute; left: -9999px; }

/* ---------- FAQ ---------- */
.faq { padding: 110px 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.faq h2 { font-size: clamp(32px, 3.6vw, 51px); font-weight: 600; }
.faq__intro p { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #c8cbd1; padding: 80px 0 52px; overflow: hidden; border-radius: 22px 22px 0 0; position: relative; }
/* Full-width footer that scales with the screen, like the original WordPress footer */
.site-footer .container { max-width: none; padding: 0 60px; }
.footer__top {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 0 20px 0 120px;
  font-size: 16px; font-weight: 600; line-height: 1.65;
}
.footer__top a { text-decoration: none; }
.footer__top a:hover { color: var(--green); }
.footer__top .credit { text-align: right; }
.footer__top .credit a { color: var(--green); }
.footer__brand {
  margin: clamp(48px, 6.4vw, 130px) 0 clamp(24px, 2vw, 40px); text-align: center; color: #dbecff; font-weight: 600;
  /* 120px at 1440px wide, 180px at 1920px, scaling smoothly in between and below */
  font-size: max(30px, 8.333vw, calc(12.5vw - 60px)); line-height: 1; letter-spacing: -.005em; white-space: nowrap;
}
.footer__disclaimer { font-size: 13px; line-height: 1.3; color: #c8cbd1; text-align: justify; margin: 0 clamp(10px, 4.7vw, 90px); }
.footer__disclaimer a { color: var(--green); text-decoration: none; }
.footer__disclaimer a:hover { text-decoration: underline; }

/* Back-to-top button (added by site.js) */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 44px; height: 44px; border: 0; border-radius: 6px;
  background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Generic content page (legal, login) ---------- */
.page-hero { background: var(--ink-2); color: var(--white); padding: 60px 0 70px; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 48px); font-weight: 600; margin: 0; }
.prose { max-width: 860px; margin: 0 auto; padding: 70px 24px 100px; color: #33414f; font-size: 16px; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 19px; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .3em; }
.prose a { color: var(--green-dark); }

.notice-card { max-width: 520px; margin: 80px auto 110px; padding: 44px 40px; background: var(--cream); border-radius: var(--radius); text-align: center; }
.notice-card img { width: 96px; margin: 0 auto 20px; }
.notice-card h1 { font-size: 30px; }
.notice-card p { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .features__col { border-top: 1px solid rgba(255,255,255,.08); }
  .videos__grid { grid-template-columns: 1fr 1fr; }
  .videos__aside { grid-column: 1 / -1; grid-row: 1; }
  .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-header { height: 90px; padding-right: 16px; }
  .site-header--solid { height: auto; }
  .logo-badge { width: 230px; height: 136px; padding: 10px 66px 10px 22px; }
  .logo-badge img { width: 108px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: 16px 24px 24px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero { min-height: 680px; }
  .hero__intro { align-self: stretch; margin: 0 24px 40px; max-width: none; }
  .hero__intro p { font-size: 18px; }
  .about__grid, .products__head, .products__grid, .faq__grid { grid-template-columns: 1fr; gap: 30px; }
  .about, .products, .services, .faq { padding: 70px 0; }
  .site-footer .container { padding: 0 24px; }
  .footer__top { grid-template-columns: 1fr; padding: 0; gap: 18px; font-size: 15px; }
  .footer__top .credit { text-align: left; }
  .footer__disclaimer { margin: 0; }
  .footer__brand { margin: 48px 0 24px; }
  .site-footer { padding: 56px 0 32px; border-radius: 16px 16px 0 0; }
  .videos { clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%); padding: 90px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .features__grid, .videos__grid, .services__grid, .form-row { grid-template-columns: 1fr; }
  .features__col { padding: 50px 16px; border-left: 0; }
  .features__col:first-child { padding-left: 16px; }
  .features__col:first-child .btn { margin-top: 20px; }
  .product-card h3 { margin-top: 50px; }
  .contact-card { padding: 32px 22px; }
  .hero__title { padding: 0 16px 30px; font-size: clamp(26px, 8.6vw, 54px); line-height: 1.05; }
  .hero__title span:last-child { letter-spacing: .02em; }
  .notice-card { margin: 50px 16px 80px; padding: 34px 22px; }
}

/* ---- Legal pages (Privacy Policy, Terms of Use) ---- */
.legal-hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
/* Legal pages: the site header sits over the hero (as on the homepage), so the
   hero starts at the top of the page and its content clears the logo tab. */
.site-header + main .legal-hero { padding-top: 240px; background: radial-gradient(90% 120% at 85% 0%, rgba(122,188,50,.12), rgba(122,188,50,0) 55%), var(--ink-2); }
@media (max-width: 900px) { .site-header + main .legal-hero { padding-top: 186px; } }
.legal-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(122,188,50,.18); pointer-events: none; }
.legal-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 14px; }
.legal-lede { color: rgba(255,255,255,.7); font-size: 17px; margin: 14px 0 22px; max-width: 640px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-meta span { font-size: 13px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; }
.legal-meta strong { color: var(--green); font-weight: 600; }

.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 56px 0 40px; }
.legal-toc-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.legal-toc ol, .legal-toc-mobile ol { list-style: none; margin: 0; padding: 0; }
.legal-toc li a, .legal-toc-mobile li a { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; color: var(--text); text-decoration: none; border-left: 2px solid transparent; transition: background .15s, color .15s; }
.legal-toc li a span, .legal-toc-mobile li a span { font-size: 11px; font-weight: 700; color: var(--green-dark); min-width: 18px; }
.legal-toc li a:hover, .legal-toc-mobile li a:hover { background: var(--cream); color: var(--ink-2); }
.legal-toc li a.is-current { background: var(--cream); color: var(--ink-2); border-left-color: var(--green); font-weight: 600; }
.legal-other { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--green-dark); text-decoration: none; padding-left: 10px; }
.legal-toc-mobile { display: none; }

.legal-body.prose { max-width: 820px; margin: 0; padding: 56px 0 90px; font-size: 16px; line-height: 1.75; }
.legal-intro { font-size: 17px; color: var(--ink-2); padding-bottom: 8px; }
.legal-section { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 34px; scroll-margin-top: 20px; }
.legal-section h2 { display: flex; align-items: center; gap: 14px; font-size: 23px; line-height: 1.3; margin: 0 0 18px; color: var(--ink-2); }
.legal-num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink-2); color: var(--green); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.legal-section h3 { font-size: 17px; color: var(--ink-2); margin: 1.6em 0 .5em; padding-left: 12px; border-left: 3px solid var(--green); }
.legal-section p strong { color: var(--ink-2); }
.legal-section ul, .legal-section ol { background: var(--cream); border-radius: 12px; padding: 16px 20px 16px 38px; }
.legal-section li { margin-bottom: .4em; }
.legal-section li::marker { color: var(--green-dark); }
.legal-section ul.legal-cols, .legal-section ol.legal-cols { columns: 3 190px; column-gap: 28px; }
.legal-section .legal-cols li { break-inside: avoid; }
.legal-section:last-of-type { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.legal-section:last-of-type ul, .legal-section:last-of-type ol { background: var(--white); }
.legal-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-end a { font-size: 14px; font-weight: 600; color: var(--green-dark); text-decoration: none; }
.legal-end a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .legal-layout { display: block; }
  .legal-toc { display: none; }
  .legal-body.prose { padding: 32px 0 70px; }
  .legal-toc-mobile { display: block; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px; margin-bottom: 28px; }
  .legal-toc-mobile summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 12px 10px; }
  .legal-toc-mobile ol { padding: 0 0 8px; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 40px 0 46px; }
  .site-header + main .legal-hero { padding-top: 168px; }
  .legal-lede { font-size: 16px; }
  .legal-intro { font-size: 16px; }
  .legal-section h2 { font-size: 20px; gap: 12px; }
  .legal-num { width: 34px; height: 34px; font-size: 13px; }
  .legal-section ul, .legal-section ol { padding: 14px 16px 14px 32px; }
  .legal-section:last-of-type { padding: 22px 18px; }
}
@media print {
  .site-header, .site-footer, .legal-toc, .legal-toc-mobile, .legal-end, .to-top { display: none !important; }
  .legal-hero { background: none; color: #000; padding: 0 0 20px; }
  .legal-hero h1, .legal-meta span, .legal-lede { color: #000; }
  .legal-layout { display: block; }
}
