/* ============================================================
   CoreConsept Static Pages — Refined Editorial Design System
   Loaded by themes/coreconsept/layouts/head.php
   Brand: orange #f15b29 / peach #fdf5f3 / ink #1a1a1a
   ============================================================ */

:root {
    --cc-orange: #f15b29;
    --cc-orange-deep: #d94d1f;
    --cc-orange-soft: #ffd9cc;
    --cc-peach: #fdf5f3;
    --cc-peach-deep: #fbe5dd;
    --cc-ink: #1a1a1a;
    /* --cc-ink-soft is owned by cc-tokens.css (#6b6b6b). Restating it here as
       #555 quietly overrode it site-wide, because this sheet loads later.
       --cc-ink-muted was doing exactly that two lines below the warning: this
       sheet redefined it as #8a8a8a and, loading after cc-tokens.css, won. It
       is why darkening the token in cc-tokens.css changed nothing on the
       rendered page. Owned by cc-tokens.css (#616161); not restated here. */
    --cc-line: #ecdfdb;
    --cc-warm: #fbf6f3;
}

/* ---------- Editorial Hero ---------- */
/* .cc-hero, .cc-hero__eyebrow, .cc-hero__title, .cc-hero__lead now in cc-components.css */
/* Breadcrumb-inside-hero rules kept (page-specific override) */
.cc-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 28px 0 0;
    font-size: 13px;
}
.cc-hero .breadcrumb-item, .cc-hero .breadcrumb-item a { color: var(--cc-ink-soft) !important; }
.cc-hero .breadcrumb-item.active, .cc-hero .breadcrumb a.active { color: var(--cc-orange) !important; }

/* ---------- Section helpers ---------- */
.cc-section { padding: 80px 0; position: relative; }
.cc-section--tight { padding: 56px 0; }
.cc-section--warm { background: var(--cc-warm); }
.cc-section--ink { background: var(--cc-ink); color: #fff; }
.cc-section--peach { background: var(--cc-peach); }

.cc-section-head { margin-bottom: 48px; max-width: 760px; }
.cc-section-head .cc-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--cc-orange);
    margin-bottom: 14px;
}
.cc-section-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    color: var(--cc-ink);
    margin: 6px 0 14px;
    line-height: 1.15;
    letter-spacing: -0.3px;
}
.cc-section--ink .cc-section-head h2 { color: #fff; }
.cc-section-head p { color: var(--cc-ink-soft); font-size: 17px; line-height: 1.7; }
.cc-section--ink .cc-section-head p { color: rgba(255,255,255,.78); }

/* .cc-rule, .cc-card, .cc-card__icon, .cc-card__title, .cc-card__body now in cc-components.css */

/* ---------- Stat bar ---------- */
.cc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    border: 1px solid var(--cc-line);
    background: #fbf8f1;
}
.cc-stat {
    text-align: center;
    padding: 36px 20px;
    border-right: 1px solid var(--cc-line);
}
.cc-stat:last-child { border-right: 0; }
.cc-stat .num {
    display: block;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    color: var(--cc-orange);
    letter-spacing: -1.5px;
    line-height: 1;
}
.cc-stat .label {
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--cc-ink-soft);
    margin-top: 10px;
    display: block;
    font-weight: 600;
}
[dir="rtl"] .cc-stat, .direction-rtl .cc-stat { border-right: 0; border-left: 1px solid var(--cc-line); }
[dir="rtl"] .cc-stat:last-child, .direction-rtl .cc-stat:last-child { border-left: 0; }
@media (max-width: 600px) {
    .cc-stat { border-right: 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--cc-line); }
    .cc-stat:last-child { border-bottom: 0; }
}

/* .cc-form input/select/textarea/.field-label now in cc-components.css */
/* Field-label legacy alias kept for any markup still using it */
.cc-form .field-label {
    display: block;
    font-family: var(--cc-mono);
    font-size: var(--cc-fs-mono-sm);
    letter-spacing: var(--cc-tracking-eyebrow);
    text-transform: uppercase;
    color: var(--cc-ink);
    margin-bottom: 8px;
    font-weight: 600;
}

/* .cc-submit aliased to .cc-btn in cc-components.css */

/* ---------- Info list (contact-style) ---------- */
.cc-info-list { list-style: none; padding: 0; margin: 0; }
.cc-info-list li {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--cc-line);
    align-items: flex-start;
}
.cc-info-list li:last-child { border-bottom: 0; }
.cc-info-list .icon-wrap {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--cc-peach);
    color: var(--cc-orange);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.cc-info-list .label-sm {
    display: block;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--cc-ink-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.cc-info-list .value {
    font-size: 16px;
    color: var(--cc-ink);
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}
.cc-info-list .value a { color: var(--cc-ink) !important; text-decoration: none; border-bottom: 1px solid var(--cc-line); }
.cc-info-list .value a:hover { color: var(--cc-orange) !important; border-color: var(--cc-orange); }

/* .cc-pullquote now in cc-components.css (BEM-structured layout) */

/* ---------- Editorial body type ---------- */
.cc-prose h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    color: var(--cc-ink);
    margin: 56px 0 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.cc-prose h2:first-child { margin-top: 0; }
.cc-prose h3 {
    font-size: 21px;
    color: var(--cc-ink);
    margin: 36px 0 10px;
    font-weight: 700;
}
.cc-prose h4 {
    font-size: 17px;
    color: var(--cc-orange);
    margin: 28px 0 8px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.cc-prose h5 {
    font-size: 15px;
    color: var(--cc-ink);
    margin: 22px 0 6px;
    font-weight: 700;
}
.cc-prose p,
.cc-prose li { font-size: 16px; line-height: 1.78; color: var(--cc-ink-soft); }
.cc-prose p { margin-bottom: 14px; }
.cc-prose ul,
.cc-prose ol { padding-left: 22px; margin-bottom: 18px; }
[dir="rtl"] .cc-prose ul, [dir="rtl"] .cc-prose ol,
.direction-rtl .cc-prose ul, .direction-rtl .cc-prose ol {
    padding-left: 0; padding-right: 22px;
}
.cc-prose ul li { margin-bottom: 8px; }
.cc-prose ul.list-unstyled { padding-left: 0; }
.cc-prose strong { color: var(--cc-ink); font-weight: 700; }
.cc-prose a { color: var(--cc-orange) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(241,91,41,.4); }
.cc-prose a:hover { color: var(--cc-orange-deep) !important; text-decoration-color: var(--cc-orange-deep); }

/* ---------- Legal layout: TOC sidebar ---------- */
.cc-legal-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
}
.cc-legal-toc {
    position: sticky; top: 32px;
    align-self: start;
    border-left: 2px solid var(--cc-line);
    padding-left: 22px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}
.cc-legal-toc__head {
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--cc-orange-text);
    font-weight: 700;
    margin-bottom: 18px;
}
.cc-legal-toc ol, .cc-legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
.cc-legal-toc li {
    counter-increment: toc;
    margin-bottom: 2px;
}
.cc-legal-toc a {
    display: block;
    padding: 8px 0;
    color: var(--cc-ink-soft) !important;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    transition: color .2s ease;
}
.cc-legal-toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--cc-orange);
    margin-right: 10px;
    font-weight: 700;
    font-size: 12px;
}
.cc-legal-toc a:hover, .cc-legal-toc a.active { color: var(--cc-orange) !important; }
[dir="rtl"] .cc-legal-toc, .direction-rtl .cc-legal-toc {
    border-left: 0;
    border-right: 2px solid var(--cc-line);
    padding-left: 0; padding-right: 22px;
}
[dir="rtl"] .cc-legal-toc a::before, .direction-rtl .cc-legal-toc a::before {
    margin-right: 0; margin-left: 10px;
}

@media (max-width: 960px) {
    .cc-legal-grid { grid-template-columns: 1fr; gap: 24px; }
    .cc-legal-toc {
        position: static; border: 0; padding: 0;
        max-height: none;
        display: flex; flex-wrap: wrap; gap: 6px;
        background: var(--cc-warm); padding: 18px; border-radius: 4px;
    }
    .cc-legal-toc ol, .cc-legal-toc ul { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
    .cc-legal-toc a {
        border: 1px solid var(--cc-line); padding: 6px 12px; border-radius: 999px;
        background: #fbf8f1;
    }
}

/* ---------- CTA band ---------- */
.cc-cta {
    background: linear-gradient(120deg, var(--cc-orange) 0%, var(--cc-orange-deep) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cc-cta::before {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 360px; height: 360px;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 50%;
}
.cc-cta::after {
    content: "";
    position: absolute;
    right: 8%; bottom: -80px;
    width: 200px; height: 200px;
    border: 2px solid rgba(255,255,255,.10);
    border-radius: 50%;
}
[dir="rtl"] .cc-cta::before, .direction-rtl .cc-cta::before { right: auto; left: -120px; }
[dir="rtl"] .cc-cta::after, .direction-rtl .cc-cta::after { right: auto; left: 8%; }
.cc-cta .container { position: relative; z-index: 2; }
.cc-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.3px; }
.cc-cta p { color: rgba(255,255,255,.92); font-size: 18px; line-height: 1.6; max-width: 580px; margin: 0; }
.cc-cta .cc-btn-white {
    background: #fbf8f1; color: var(--cc-orange);
    padding: 18px 36px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .25s ease;
}
.cc-cta .cc-btn-white:hover {
    background: var(--cc-ink);
    color: #fff;
    transform: translateX(4px);
}
[dir="rtl"] .cc-cta .cc-btn-white:hover, .direction-rtl .cc-cta .cc-btn-white:hover { transform: translateX(-4px); }

/* ---------- Person card (trainers/testimonials) ---------- */
.cc-person {
    background: #fbf8f1;
    border: 1px solid var(--cc-line);
    padding: 28px;
    position: relative;
    transition: all .25s ease;
    height: 100%;
}
.cc-person::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 64px;
    background: var(--cc-orange);
}
[dir="rtl"] .cc-person::before, .direction-rtl .cc-person::before { left: auto; right: 0; }
.cc-person:hover {
    border-color: var(--cc-orange);
    box-shadow: 0 16px 40px -22px rgba(241,91,41,.35);
    transform: translateY(-3px);
}
.cc-person__avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--cc-peach);
    color: var(--cc-orange);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700;
    margin-bottom: 18px;
    overflow: hidden;
}
.cc-person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cc-person__name { font-size: 18px; font-weight: 700; color: var(--cc-ink); margin: 0 0 4px; }
.cc-person__role { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cc-orange); margin-bottom: 12px; font-weight: 600; }
.cc-person__quote { color: var(--cc-ink-soft); font-size: 15px; line-height: 1.7; font-style: italic; }

/* ---------- Brochure card ---------- */
.cc-brochure {
    background: #fbf8f1;
    border: 1px solid var(--cc-line);
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all .25s ease;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}
.cc-brochure:hover {
    border-color: var(--cc-orange);
    box-shadow: 0 16px 40px -22px rgba(241,91,41,.4);
    transform: translateY(-3px);
}
.cc-brochure__pdf {
    flex-shrink: 0;
    width: 56px; height: 70px;
    background: var(--cc-peach);
    border-left: 4px solid var(--cc-orange);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    color: var(--cc-orange);
    font-size: 11px;
    letter-spacing: 1px;
}
[dir="rtl"] .cc-brochure__pdf, .direction-rtl .cc-brochure__pdf { border-left: 0; border-right: 4px solid var(--cc-orange); }
.cc-brochure__title { font-size: 16px; font-weight: 700; color: var(--cc-ink); margin: 0 0 6px; line-height: 1.3; }
.cc-brochure__meta { font-size: 12px; color: var(--cc-ink-muted); letter-spacing: .8px; }

/* ---------- Accreditation row ---------- */
.cc-accred {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 56px;
    align-items: center;
    padding: 48px 0;
    border-top: 1px solid var(--cc-line);
}
.cc-accred:first-of-type { border-top: 0; }
.cc-accred__num {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--cc-orange-text);
    margin-bottom: 10px;
}
.cc-accred__title { font-size: 24px; font-weight: 700; color: var(--cc-ink); margin: 0 0 14px; line-height: 1.2; letter-spacing: -0.2px; }
.cc-accred__body { color: var(--cc-ink-soft); font-size: 16px; line-height: 1.7; margin-bottom: 18px; }
.cc-accred__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cc-orange);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    text-decoration: none;
    border-bottom: 2px solid var(--cc-orange);
    padding-bottom: 4px;
    transition: all .2s ease;
}
.cc-accred__link:hover { color: var(--cc-orange-deep); border-color: var(--cc-orange-deep); }
.cc-accred__media img { width: 100%; max-width: 280px; border: 1px solid var(--cc-line); padding: 16px; background: #fbf8f1; }
@media (max-width: 768px) {
    .cc-accred { grid-template-columns: 1fr; gap: 24px; }
    .cc-accred__media img { max-width: 220px; }
}

/* ---------- Hero variants ---------- */
.cc-hero--compact { padding: 64px 0 48px; }

/* ---------- Quote (testimonial) ---------- */
.cc-quote {
    background: #fbf8f1;
    border: 1px solid var(--cc-line);
    padding: 32px 30px 28px;
    position: relative;
    height: 100%;
}
.cc-quote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 22px;
    font-family: Georgia, serif;
    font-size: 80px;
    color: var(--cc-orange);
    line-height: 1;
}
[dir="rtl"] .cc-quote::before, .direction-rtl .cc-quote::before {
    left: auto; right: 22px;
    content: "\201D";
}
.cc-quote__text { color: var(--cc-ink); font-size: 16px; line-height: 1.65; margin: 26px 0 18px; font-style: italic; }
.cc-quote__author { font-size: 15px; font-weight: 700; color: var(--cc-ink); }
.cc-quote__role { font-size: 12px; color: var(--cc-orange); letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; }

/* ---------- Asymmetric two-column ---------- */
.cc-split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}
.cc-split--reverse { grid-template-columns: 7fr 5fr; }
@media (max-width: 880px) {
    .cc-split, .cc-split--reverse { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Misc helpers ---------- */
/* .cc-eyebrow now in cc-components.css */
.cc-bread {
    background: transparent;
    padding: 14px 0;
    margin: 0;
}
.cc-bread .container { padding: 0 15px; }
.cc-bread .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

/* ============================================================
   Editorial Forms — applied via .cc-form parent class
   ============================================================ */
.cc-form .form-group { margin-bottom: 28px; }

.cc-form label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.cc-form .form-control,
.cc-form input[type="text"],
.cc-form input[type="email"],
.cc-form input[type="tel"],
.cc-form input[type="number"],
.cc-form input[type="date"],
.cc-form select,
.cc-form textarea {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1.5px solid #ecdfdb !important;
    padding: 10px 0 !important;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.25s, padding-bottom 0.2s;
    height: auto !important;
}
.cc-form .form-control::placeholder,
.cc-form input::placeholder,
.cc-form textarea::placeholder { color: #aaa; font-style: italic; }
.cc-form .form-control:focus,
.cc-form input:focus,
.cc-form select:focus,
.cc-form textarea:focus {
    border-bottom-color: #f15b29 !important;
    border-bottom-width: 2px !important;
}

.cc-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23f15b29' d='M0 0l6 8 6-8z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    padding-right: 24px !important;
}

.cc-form textarea { min-height: 120px; resize: vertical; }

.cc-form .form-check { padding-left: 28px; margin: 18px 0; }
.cc-form .form-check input[type="checkbox"],
.cc-form input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #f15b29;
    margin-right: 10px;
    vertical-align: middle;
}
.cc-form .form-check label,
.cc-form label.form-check-label {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: #555;
    font-weight: 400;
}

/* Submit — large, full-width on mobile */
.cc-form button[type="submit"],
.cc-form .btn-main,
.cc-form .btn-primary {
    background: #1a1a1a !important;
    color: #fff !important;
    border: 0 !important;
    padding: 18px 36px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    margin-top: 16px;
}
.cc-form button[type="submit"]:hover,
.cc-form .btn-main:hover,
.cc-form .btn-primary:hover {
    background: #f15b29 !important;
    transform: translateY(-2px);
}

/* Select2 inside cc-form */
.cc-form .select2-container--bootstrap4 .select2-selection {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1.5px solid #ecdfdb !important;
    border-radius: 0 !important;
    padding: 6px 0 !important;
    height: auto !important;
}
.cc-form .select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-bottom-color: #f15b29 !important;
    border-bottom-width: 2px !important;
}
