/* =========================================================================
   Chico Taxes: site theme (template group `chicotaxes`). Private to the
   chicotaxes tenant (Yenisley Diaz, EA: ITIN and CAA training for tax
   professionals).
   Auto-linked into every page of the group by website-app (/chicotaxes.css)
   and loaded into the page builder canvas from template.json `css`.

   Everything is prefixed `ct-`, and every colour goes through a CSS variable
   so the colour schemes in template.json (colorSchemeMapping) recolour it.

   Palette (from the logo: navy circle, orange-to-red hand, rainbow people):
     Navy        #1B2470  dark bands, headings
     Blue        #1F5FAE  links, secondary buttons
     Orange      #F7941D  gradient start, accents
     Coral       #EF4136  gradient end, primary buttons
     Sun         #FDD719  small highlights on navy
     Ink         #121735  text
     Muted       #555B78  secondary text
     Paper       #FFFBF5  page background
     Sand        #FFF1E2  soft panels
     Line        #EFE6DA  borders
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --ct-navy: #1B2470;
  --ct-navy-deep: #111851;
  --ct-blue: #1F5FAE;
  --ct-orange: #F7941D;
  --ct-coral: #EF4136;
  --ct-coral-dark: #D12F25;
  --ct-sun: #FDD719;
  --ct-ink: #121735;
  --ct-muted: #555B78;
  --ct-paper: #FFFBF5;
  --ct-sand: #FFF1E2;
  --ct-line: #EFE6DA;
  --ct-white: #FFFFFF;
  --ct-grad: linear-gradient(100deg, var(--ct-orange) 0%, var(--ct-coral) 100%);
  --ct-rainbow: linear-gradient(90deg, #74B3DB 0%, #F7941D 18%, #ED1C24 34%, #FDD719 50%, #C49A6C 64%, #8DC63F 80%, #B636FF 100%);

  /* Platform names, so the page builder picks the theme up */
  --color-primary: var(--ct-coral);
  --color-primary-dark: var(--ct-coral-dark);
  --color-primary-light: var(--ct-orange);
  --color-secondary: var(--ct-navy);
  --color-secondary-dark: var(--ct-navy-deep);
  --color-secondary-light: var(--ct-blue);
  --color-accent: var(--ct-orange);
  --color-dark: var(--ct-navy-deep);
  --color-text: var(--ct-ink);
  --color-text-muted: var(--ct-muted);
  --color-border: var(--ct-line);
  --color-background: var(--ct-paper);
  --color-white: #FFFFFF;

  --ct-font-head: "Bricolage Grotesque", "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --ct-font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--ct-font-head);
  --font-body: var(--ct-font-body);

  --ct-radius: 12px;
  --ct-radius-lg: 22px;
  --ct-shadow: 0 18px 48px rgba(17, 24, 81, 0.10);
  --ct-shadow-lg: 0 30px 70px rgba(17, 24, 81, 0.18);
}

/* ---------- Base ---------- */
body.ct-page { margin: 0; background: var(--ct-paper); color: var(--ct-ink); font-family: var(--ct-font-body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
.ct-page *, .ct-page *::before, .ct-page *::after { box-sizing: border-box; }
.ct-page img { max-width: 100%; height: auto; display: block; }
.ct-page a { color: var(--ct-blue); }
.ct-page a:hover { color: var(--ct-navy); }

.ct-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ct-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.ct-section { padding: 104px 0; }
.ct-section-sm { padding: 68px 0; }
.ct-white { background: #FFFFFF; }
.ct-sand { background: var(--ct-sand); }
.ct-center { text-align: center; }

/* ---------- Type ---------- */
.ct-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-coral); }
.ct-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--ct-grad); }
.ct-center .ct-eyebrow::after, .ct-head .ct-eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--ct-grad); }
.ct-h1, .ct-h2, .ct-h3 { font-family: var(--ct-font-head); color: var(--ct-navy); font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.ct-h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; }
.ct-h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; }
.ct-h3 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.ct-mark { background: var(--ct-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-lead { margin: 22px 0 0; font-size: 19px; line-height: 1.65; color: var(--ct-muted); }
.ct-text { margin: 14px 0 0; color: var(--ct-muted); }
.ct-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.ct-small { font-size: 14px; color: var(--ct-muted); }

/* ---------- Buttons ---------- */
.ct-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.ct-center .ct-btns, .ct-head .ct-btns { justify-content: center; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; font-family: var(--ct-font-body); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.ct-btn:hover { transform: translateY(-2px); }
.ct-page a.ct-btn-primary, .ct-btn-primary { background: var(--ct-grad); color: #FFFFFF; box-shadow: 0 12px 28px rgba(239, 65, 54, 0.28); }
.ct-page a.ct-btn-primary:hover, .ct-btn-primary:hover { color: #FFFFFF; box-shadow: 0 16px 34px rgba(239, 65, 54, 0.38); }
.ct-page a.ct-btn-navy, .ct-btn-navy { background: var(--ct-navy); color: #FFFFFF; }
.ct-page a.ct-btn-navy:hover, .ct-btn-navy:hover { background: var(--ct-navy-deep); color: #FFFFFF; }
.ct-page a.ct-btn-ghost, .ct-btn-ghost { background: transparent; color: var(--ct-navy); border-color: rgba(27, 36, 112, 0.22); }
.ct-page a.ct-btn-ghost:hover, .ct-btn-ghost:hover { border-color: var(--ct-navy); color: var(--ct-navy); }
.ct-page a.ct-btn-light, .ct-btn-light { background: #FFFFFF; color: var(--ct-navy); }
.ct-page a.ct-btn-light:hover, .ct-btn-light:hover { color: var(--ct-coral); }
.ct-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 700; text-decoration: none; }
.ct-link:hover { text-decoration: underline; }

/* ---------- Hero (home: headline + opt-in card) ---------- */
.ct-hero { position: relative; overflow: hidden; padding: 88px 0 104px; background:
  radial-gradient(900px 520px at 92% -10%, rgba(247, 148, 29, 0.16), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, rgba(31, 95, 174, 0.12), transparent 60%),
  var(--ct-paper); }
.ct-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.ct-hero .ct-lead { max-width: 560px; }
.ct-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--ct-line); font-size: 14px; font-weight: 600; color: var(--ct-navy); box-shadow: 0 6px 18px rgba(17, 24, 81, 0.06); margin-bottom: 24px; }
.ct-badge b { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ct-grad); color: #FFFFFF; font-size: 12px; letter-spacing: 0.06em; }
.ct-ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ct-ticks li { position: relative; padding-left: 34px; color: var(--ct-ink); font-weight: 500; }
.ct-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ct-sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4136' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Opt-in card */
.ct-optin { position: relative; background: #FFFFFF; border-radius: var(--ct-radius-lg); padding: 38px 36px 32px; box-shadow: var(--ct-shadow-lg); border: 1px solid var(--ct-line); }
.ct-optin::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: var(--ct-rainbow); }
.ct-optin-title { font-family: var(--ct-font-head); font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ct-navy); margin: 0; letter-spacing: -0.01em; }
.ct-optin-sub { margin: 10px 0 22px; color: var(--ct-muted); font-size: 16px; }
.ct-optin .ct-btn { width: 100%; }
.ct-optin-note { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--ct-muted); }

/* Workbook mock (pure CSS, so it needs no image) */
.ct-book { position: relative; width: 132px; height: 170px; flex-shrink: 0; border-radius: 6px 14px 14px 6px; background: linear-gradient(160deg, var(--ct-navy) 0%, var(--ct-navy-deep) 100%); box-shadow: 10px 14px 28px rgba(17, 24, 81, 0.28), inset 6px 0 0 rgba(255, 255, 255, 0.08); color: #FFFFFF; padding: 16px 14px; overflow: hidden; }
.ct-book::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--ct-rainbow); }
.ct-book small { display: block; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ct-sun); font-weight: 700; }
.ct-book strong { display: block; margin-top: 8px; font-family: var(--ct-font-head); font-size: 17px; line-height: 1.1; font-weight: 800; }
.ct-book span { display: block; margin-top: 10px; font-size: 10.5px; opacity: 0.8; }
.ct-optin-top { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }

/* Page title bar (inner pages) */
.ct-titlebar { position: relative; padding: 96px 0 72px; background:
  radial-gradient(700px 380px at 100% 0%, rgba(247, 148, 29, 0.16), transparent 60%),
  var(--ct-paper); }
.ct-titlebar .ct-lead { max-width: 700px; }
.ct-titlebar.ct-center .ct-lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards and grids ---------- */
.ct-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.ct-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ct-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ct-card { position: relative; background: #FFFFFF; border: 1px solid var(--ct-line); border-radius: var(--ct-radius-lg); padding: 34px 30px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ct-card:hover { transform: translateY(-4px); box-shadow: var(--ct-shadow); }
.ct-card .ct-text { font-size: 16px; }
.ct-icon { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--ct-sand); color: var(--ct-coral); margin-bottom: 22px; }
.ct-icon svg { width: 26px; height: 26px; }
.ct-icon-blue { background: #E8F0FB; color: var(--ct-blue); }
.ct-icon-green { background: #EEF7E2; color: #5E9A1E; }
.ct-icon-purple { background: #F5E8FF; color: #8A1FD1; }

/* Topic chips */
.ct-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ct-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--ct-line); font-weight: 600; color: var(--ct-navy); font-size: 15.5px; }
.ct-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ct-grad); }
.ct-navy .ct-chip { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #FFFFFF; }

/* ---------- Steps (become a CAA) ---------- */
.ct-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: ct-step; }
.ct-step { position: relative; background: #FFFFFF; border: 1px solid var(--ct-line); border-radius: var(--ct-radius-lg); padding: 30px 26px; }
.ct-step-num { display: block; font-family: var(--ct-font-head); font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 18px; background: var(--ct-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-step .ct-h3 { font-size: 20px; }
.ct-step .ct-text { font-size: 15.5px; }
.ct-steps-list { display: grid; gap: 20px; }
.ct-steps-list .ct-step { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; padding: 34px 34px; }
.ct-steps-list .ct-step-num { margin: 0; font-size: 56px; }

/* ---------- Split (founder) ---------- */
.ct-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.ct-split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ct-photo { position: relative; }
.ct-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 28px; box-shadow: var(--ct-shadow-lg); }
.ct-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 28px; background: var(--ct-grad); opacity: 0.9; z-index: -1; }
.ct-photo-tag { position: absolute; left: -18px; bottom: 34px; background: #FFFFFF; border-radius: 16px; padding: 14px 18px; box-shadow: var(--ct-shadow); }
.ct-photo-tag strong { display: block; font-family: var(--ct-font-head); color: var(--ct-navy); font-size: 18px; line-height: 1.2; }
.ct-photo-tag span { font-size: 13.5px; color: var(--ct-muted); }
.ct-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ct-cred { padding: 6px 12px; border-radius: 8px; background: #E8F0FB; color: var(--ct-blue); font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; }
.ct-list { margin: 18px 0 0; padding: 0; list-style: none; }
.ct-list li { position: relative; padding-left: 30px; margin-top: 12px; color: var(--ct-muted); }
.ct-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 4px; border-radius: 4px; background: var(--ct-grad); }
.ct-panel { background: #FFFFFF; border: 1px solid var(--ct-line); border-radius: var(--ct-radius-lg); padding: 44px 40px; box-shadow: var(--ct-shadow); }

/* ---------- Navy band (philosophy, scripture, CTA) ---------- */
.ct-navy { position: relative; overflow: hidden; background: radial-gradient(800px 420px at 85% 0%, rgba(31, 95, 174, 0.55), transparent 65%), var(--ct-navy-deep); color: #FFFFFF; }
.ct-navy .ct-h1, .ct-navy .ct-h2, .ct-navy .ct-h3 { color: #FFFFFF; }
.ct-navy .ct-lead, .ct-navy .ct-text { color: rgba(255, 255, 255, 0.78); }
.ct-navy .ct-eyebrow { color: var(--ct-sun); }
.ct-navy-rule { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ct-rainbow); }
.ct-quote { max-width: 900px; margin: 0 auto; font-family: var(--ct-font-head); font-weight: 700; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -0.01em; color: #FFFFFF; }
.ct-quote-cite { display: block; margin-top: 22px; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-sun); }
.ct-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.ct-pillar { padding: 30px 28px; border-radius: var(--ct-radius-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.ct-pillar p { margin: 0; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.ct-pillar b { display: block; font-family: var(--ct-font-head); font-size: 20px; color: #FFFFFF; margin-bottom: 10px; }

/* ---------- Class list (live trainings) ---------- */
.ct-classes { display: grid; gap: 16px; }
.ct-class { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; background: #FFFFFF; border: 1px solid var(--ct-line); border-radius: var(--ct-radius-lg); padding: 22px 26px; }
.ct-date { text-align: center; border-radius: 16px; background: var(--ct-sand); padding: 12px 6px; }
.ct-date small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ct-coral); }
.ct-date strong { display: block; font-family: var(--ct-font-head); font-size: 32px; line-height: 1; color: var(--ct-navy); }
.ct-class .ct-h3 { font-size: 20px; }
.ct-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #EEF7E2; color: #4C7F16; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; margin-right: 6px; }
.ct-tag-lang { background: #E8F0FB; color: var(--ct-blue); }

/* ---------- Review ---------- */
.ct-review { max-width: 820px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--ct-line); border-radius: var(--ct-radius-lg); padding: 44px 46px; box-shadow: var(--ct-shadow); text-align: center; }
.ct-stars { color: #F5A623; font-size: 22px; letter-spacing: 4px; }
.ct-review blockquote { margin: 16px 0 0; font-family: var(--ct-font-head); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; color: var(--ct-navy); }
.ct-review cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; color: var(--ct-ink); }
.ct-review cite span { display: block; font-weight: 500; font-size: 14px; color: var(--ct-muted); }

/* ---------- Call to action band ---------- */
.ct-cta { position: relative; overflow: hidden; border-radius: 32px; padding: 72px 56px; background: var(--ct-grad); color: #FFFFFF; text-align: center; }
.ct-cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.ct-cta .ct-h2 { color: #FFFFFF; position: relative; z-index: 1; }
.ct-cta .ct-lead { color: rgba(255, 255, 255, 0.92); max-width: 640px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.ct-cta .ct-btns { justify-content: center; position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.ct-form { display: grid; gap: 16px; }
.ct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ct-ink); }
.ct-label span { font-weight: 400; color: var(--ct-muted); }
.ct-form input[type="text"], .ct-form input[type="email"], .ct-form input[type="tel"], .ct-form select, .ct-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #DCD6CF; border-radius: var(--ct-radius); background: #FFFFFF; font-family: var(--ct-font-body); font-size: 16px; color: var(--ct-ink);
}
.ct-form textarea { min-height: 150px; resize: vertical; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline: none; border-color: var(--ct-orange); box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.18); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Contact details */
.ct-contact-item { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; }
.ct-contact-item .ct-icon { margin: 0; flex-shrink: 0; width: 48px; height: 48px; }
.ct-contact-item small { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-muted); }
.ct-contact-item a { font-size: 19px; font-weight: 700; text-decoration: none; color: var(--ct-navy); }
.ct-contact-item a:hover { color: var(--ct-coral); }

/* ---------- Prose (legal pages) ---------- */
.ct-prose h2 { font-family: var(--ct-font-head); font-size: 24px; margin: 38px 0 8px; color: var(--ct-navy); }
.ct-prose p, .ct-prose li { color: var(--ct-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .ct-steps, .ct-grid-4 { grid-template-columns: 1fr 1fr; }
  .ct-grid-3, .ct-pillars { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
  .ct-hero-grid, .ct-split, .ct-split-even { grid-template-columns: 1fr; gap: 48px; }
  .ct-photo { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body.ct-page { font-size: 16px; }
  .ct-section { padding: 72px 0; }
  .ct-hero { padding: 56px 0 72px; }
  .ct-titlebar { padding: 64px 0 48px; }
  .ct-steps, .ct-grid-4, .ct-grid-2 { grid-template-columns: 1fr; }
  .ct-steps-list .ct-step { grid-template-columns: 1fr; gap: 6px; padding: 28px 24px; }
  .ct-form-row { grid-template-columns: 1fr; }
  .ct-optin, .ct-panel, .ct-review { padding: 32px 22px; }
  .ct-optin-top { flex-direction: column; align-items: flex-start; }
  .ct-class { grid-template-columns: 72px 1fr; padding: 20px; }
  .ct-class .ct-btn { grid-column: 1 / -1; width: 100%; }
  .ct-cta { padding: 56px 24px; border-radius: 24px; }
  .ct-btns .ct-btn { width: 100%; }
  .ct-photo::before { inset: 14px -10px -14px 14px; }
  .ct-photo-tag { left: 10px; }
}
