/**
 * ============================================================
 *  Caribbean Therapist — BRAND TOKENS (single source of truth)
 * ============================================================
 *
 * Strict brand guidelines (locked):
 *
 *   COLORS
 *   ──────
 *   Background  — Light Aqua  #B7F8F4
 *   Sections    — Blush Pink  #FFD7D7
 *   Text/Head   — Deep Teal   #045969
 *   Accent      — Teal        #38B6A8
 *   Highlight   — Yellow      #EFEE6E
 *
 *   BUTTONS
 *   ───────
 *   Primary    — Teal background + Light Aqua text
 *   Secondary  — Blush background + Teal text
 *
 *   FONTS
 *   ─────
 *   Headings   — Bebas Neue (block, condensed, all-caps friendly)
 *   Accent     — Eyesome Script (paid; Sacramento as free fallback)
 *   Body       — Montserrat
 */

:root {
    /* Brand colors - DO NOT introduce new shades */
    --ct-bg-aqua:    #B7F8F4;
    --ct-bg-aqua-soft: #DCFBF9;   /* very light aqua for subtle wash */
    --ct-blush:      #FFD7D7;
    --ct-blush-soft: #FFEBEA;     /* lighter blush for nested cards */
    --ct-teal-deep:  #045969;
    --ct-teal:       #38B6A8;
    --ct-yellow:     #EFEE6E;

    /* Computed UI tokens */
    --ct-text:       #045969;
    --ct-text-muted: rgba(4, 89, 105, 0.65);
    --ct-rule:       rgba(4, 89, 105, 0.15);
    --ct-rule-soft:  rgba(4, 89, 105, 0.08);
    --ct-card:       #FFFFFF;
    --ct-card-blush: #FFD7D7;
    --ct-card-aqua:  #B7F8F4;

    /* Buttons - NEW BRAND RULES (locked):
       Primary    = Deep Teal bg + Light Aqua text   (was: Teal+Aqua)
       Secondary  = Blush bg + Deep Teal text
       Teal #38B6A8 = small accents only (icons, hovers, focus rings)
       Yellow      = tiny highlights only (badges, underlines) */
    --ct-btn-primary-bg:   #045969;
    --ct-btn-primary-text: #B7F8F4;
    --ct-btn-primary-hover-bg:   #023a45;
    --ct-btn-secondary-bg:   #FFD7D7;
    --ct-btn-secondary-text: #045969;
    --ct-btn-secondary-hover-bg: #FFEBEA;

    /* Fonts */
    --ct-font-head:   'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
    --ct-font-script: 'Eyesome Script', 'Sacramento', cursive;
    --ct-font-body:   'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Type scale - LARGER per request */
    --ct-fs-xxl:  44px;
    --ct-fs-xl:   32px;
    --ct-fs-lg:   24px;
    --ct-fs-md:   18px;   /* body large */
    --ct-fs-base: 16px;   /* body standard - was 14/15px */
    --ct-fs-sm:   14px;   /* small but still readable - was 12px */
    --ct-fs-xs:   12px;   /* labels only */

    /* Spacing */
    --ct-radius-sm: 8px;
    --ct-radius:    12px;
    --ct-radius-lg: 18px;
}

/* ============================================================
 *  GLOBAL TYPOGRAPHY (scoped to listing + directory + dashboard)
 * ============================================================ */
.ct-listing-page,
.ct-directory,
.ct-dashboard,
.ct-submit-form,
.ct-auth-modal {
    font-family: var(--ct-font-body);
    font-size: var(--ct-fs-base);
    line-height: 1.6;
    color: var(--ct-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* All headings use Bebas Neue */
.ct-listing-page h1,
.ct-listing-page h2,
.ct-listing-page h3,
.ct-listing-page h4,
.ct-listing-page h5,
.ct-listing-page h6,
.ct-directory h1,
.ct-directory h2,
.ct-directory h3,
.ct-directory h4,
.ct-dashboard h1,
.ct-dashboard h2,
.ct-dashboard h3,
.ct-submit-form h1,
.ct-submit-form h2,
.ct-submit-form h3 {
    font-family: var(--ct-font-head);
    font-weight: 400;
    color: var(--ct-text);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

/* ============================================================
 *  BUTTONS — strict primary/secondary system
 * ============================================================ */
.ct-btn,
.ct-btn-primary,
.ct-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--ct-font-head);
    font-size: var(--ct-fs-md);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

.ct-btn-primary {
    background: var(--ct-btn-primary-bg);
    color: var(--ct-btn-primary-text);
    border-color: var(--ct-btn-primary-bg);
}
.ct-btn-primary:hover {
    background: var(--ct-btn-primary-hover-bg);
    border-color: var(--ct-btn-primary-hover-bg);
    color: var(--ct-btn-primary-text);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px rgba(4,89,105,0.5);
}

.ct-btn-secondary {
    background: var(--ct-btn-secondary-bg);
    color: var(--ct-btn-secondary-text);
    border-color: var(--ct-btn-secondary-bg);
}
.ct-btn-secondary:hover {
    background: var(--ct-btn-secondary-hover-bg);
    border-color: var(--ct-teal-deep);
    color: var(--ct-teal-deep);
    transform: translateY(-1px);
}

/* Ghost / outline variant for tertiary actions */
.ct-btn-ghost {
    background: transparent;
    color: var(--ct-teal-deep);
    border-color: var(--ct-teal-deep);
}
.ct-btn-ghost:hover {
    background: var(--ct-teal-deep);
    color: var(--ct-bg-aqua);
}

/* ============================================================
 *  FORM CONTROLS — uniform across submit/dashboard/registration
 * ============================================================ */
.ct-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.ct-form-field > label {
    font-family: var(--ct-font-body);
    font-size: var(--ct-fs-sm);
    font-weight: 700;
    color: var(--ct-teal-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ct-form-field input[type="text"],
.ct-form-field input[type="email"],
.ct-form-field input[type="password"],
.ct-form-field input[type="tel"],
.ct-form-field input[type="url"],
.ct-form-field input[type="number"],
.ct-form-field select,
.ct-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--ct-rule);
    border-radius: var(--ct-radius-sm);
    background: #fff;
    font-family: var(--ct-font-body);
    font-size: var(--ct-fs-base);
    color: var(--ct-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 60px;
}

.ct-form-field textarea {
    min-height: 120px;
    height: auto;
    resize: vertical;
    line-height: 1.55;
}

.ct-form-field input:focus,
.ct-form-field select:focus,
.ct-form-field textarea:focus {
    border-color: var(--ct-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 182, 168, 0.18);
}

.ct-form-field .ct-help {
    font-size: var(--ct-fs-xs);
    color: var(--ct-text-muted);
    margin-top: 2px;
}

/* ============================================================
 *  CHECKBOX GRIDS (taxonomies on submit form)
 * ============================================================ */
.ct-tax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 14px;
    background: var(--ct-blush-soft);
    border: 1px solid var(--ct-rule);
    border-radius: var(--ct-radius);
    max-height: 280px;
    overflow-y: auto;
}

.ct-tax-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border-radius: var(--ct-radius-sm);
    font-size: var(--ct-fs-sm);
    color: var(--ct-text);
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.3;
}

.ct-tax-grid label:hover {
    background: var(--ct-bg-aqua-soft);
}

.ct-tax-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ct-teal);
    flex-shrink: 0;
}

/* ============================================================
 *  CARDS (generic)
 * ============================================================ */
.ct-card {
    background: var(--ct-card);
    border: 1px solid var(--ct-rule);
    border-radius: var(--ct-radius-lg);
    padding: 24px;
}

/* Status pills (used in dashboard) */
.ct-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: var(--ct-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ct-status-publish  { background: #D9F2F0; color: var(--ct-teal-deep); }
.ct-status-pending  { background: var(--ct-yellow); color: var(--ct-teal-deep); }
.ct-status-expired  { background: var(--ct-blush); color: var(--ct-teal-deep); }
.ct-status-draft    { background: #f0f0f0; color: #555; }

/* ============================================================
 *  Hide Ziston breadcrumb on our custom pages (was inline before)
 * ============================================================ */
.single-job_listing .custom-breadcrumb,
.page-template-default .ct-listing-page ~ .custom-breadcrumb,
body.ct-page-clean .custom-breadcrumb {
    display: none !important;
}

/* Helpers */
.ct-script   { font-family: var(--ct-font-script); }
.ct-mute     { color: var(--ct-text-muted); }
.ct-center   { text-align: center; }
.ct-mt-0     { margin-top: 0; }
.ct-mb-0     { margin-bottom: 0; }

/* ================================================================
 *  HIDE PARENT THEME SIDEBARS on our branded pages
 * ================================================================ */
body.single-job_listing #sidebar,
body.single-job_listing .sidebar,
body.single-job_listing aside.widget-area,
body.single-job_listing .listeo-user-dashboard-sidebar,
body.page-template-default:has(.ct-dashboard) #sidebar,
body.page-template-default:has(.ct-dashboard) .sidebar,
body.page-template-default:has(.ct-dashboard) aside.widget-area,
body.page-template-default:has(.ct-submit-form) #sidebar,
body.page-template-default:has(.ct-submit-form) .sidebar,
body.page-template-default:has(.ct-auth-page) #sidebar,
body.page-template-default:has(.ct-auth-page) .sidebar,
body.page-template-default:has(.ct-directory) #sidebar,
body.page-template-default:has(.ct-directory) .sidebar {
    display: none !important;
}

/* Force full-width content area for our pages */
body.single-job_listing .content-area,
body.single-job_listing .site-content,
body.single-job_listing main,
body.page-template-default:has(.ct-dashboard) .content-area,
body.page-template-default:has(.ct-submit-form) .content-area,
body.page-template-default:has(.ct-auth-page) .content-area,
body.page-template-default:has(.ct-directory) .content-area {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    float: none !important;
}
