/**
 * O6 Toolkit Base - Utility classes and typography.
 *
 * These classes work standalone (no OxyMade needed) and are prefixed
 * with o6tk- to avoid collisions. All values reference --o6tk-* CSS
 * variables output by class-design-tokens.php.
 */


/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY - Heading Classes
   ═══════════════════════════════════════════════════════════ */

.o6tk-hero {
    font-size: var(--o6tk-hero);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--o6tk-heading-color);
}

.o6tk-h1 {
    font-size: var(--o6tk-h1);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--o6tk-heading-color);
}

/* Intentional: h2 class uses h3 size, h3 uses h4 size (per project spec). */
.o6tk-h2 {
    font-size: var(--o6tk-h3);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--o6tk-heading-color);
}

.o6tk-h3 {
    font-size: var(--o6tk-h4);
    font-weight: 600;
    line-height: 1.2;
    color: var(--o6tk-heading-color);
}

.o6tk-h4 {
    font-size: var(--o6tk-text-2xl);
    font-weight: 600;
    line-height: 1.25;
    color: var(--o6tk-heading-color);
}

.o6tk-h5 {
    font-size: var(--o6tk-text-xl);
    font-weight: 600;
    line-height: 1.3;
    color: var(--o6tk-heading-color);
}

.o6tk-h6 {
    font-size: var(--o6tk-text-lg);
    font-weight: 600;
    line-height: 1.35;
    color: var(--o6tk-heading-color);
}


/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY - Body Text
   ═══════════════════════════════════════════════════════════ */

.o6tk-body {
    font-size: var(--o6tk-text-lg);
    line-height: 1.65;
    color: var(--o6tk-body-color);
}

.o6tk-body-sm {
    font-size: var(--o6tk-text-base);
    line-height: 1.6;
    color: var(--o6tk-body-color);
}

.o6tk-small {
    font-size: var(--o6tk-text-sm);
    line-height: 1.5;
    color: var(--o6tk-body-color);
}

.o6tk-muted {
    color: var(--o6tk-muted-color);
}

.o6tk-overline {
    font-size: var(--o6tk-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--o6tk-primary);
}


/* ═══════════════════════════════════════════════════════════
   TEXT SIZES (direct size assignment)
   ═══════════════════════════════════════════════════════════ */

.o6tk-text-xs   { font-size: var(--o6tk-text-xs); }
.o6tk-text-sm   { font-size: var(--o6tk-text-sm); }
.o6tk-text-base { font-size: var(--o6tk-text-base); }
.o6tk-text-lg   { font-size: var(--o6tk-text-lg); }
.o6tk-text-xl   { font-size: var(--o6tk-text-xl); }
.o6tk-text-2xl  { font-size: var(--o6tk-text-2xl); }
.o6tk-text-3xl  { font-size: var(--o6tk-text-3xl); }
.o6tk-text-4xl  { font-size: var(--o6tk-text-4xl); }
.o6tk-text-5xl  { font-size: var(--o6tk-text-5xl); }
.o6tk-text-6xl  { font-size: var(--o6tk-text-6xl); }


/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.o6tk-section {
    padding-top: var(--o6tk-ss-lg);
    padding-bottom: var(--o6tk-ss-lg);
}

.o6tk-section-sm {
    padding-top: var(--o6tk-ss-sm);
    padding-bottom: var(--o6tk-ss-sm);
}

.o6tk-section-md {
    padding-top: var(--o6tk-ss-md);
    padding-bottom: var(--o6tk-ss-md);
}

.o6tk-section-xl {
    padding-top: var(--o6tk-ss-xl);
    padding-bottom: var(--o6tk-ss-xl);
}

.o6tk-inner {
    margin-left: var(--o6tk-space-8);
    margin-right: var(--o6tk-space-8);
}

.o6tk-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.o6tk-max-prose {
    max-width: 65ch;
}

.o6tk-max-sm  { max-width: 640px; }
.o6tk-max-md  { max-width: 768px; }
.o6tk-max-lg  { max-width: 1024px; }
.o6tk-max-xl  { max-width: 1280px; }
.o6tk-max-2xl { max-width: 1440px; }


/* ═══════════════════════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════════════════════ */

.o6tk-grid { display: grid; }
.o6tk-flex { display: flex; }

.o6tk-grid-1 { grid-template-columns: 1fr; }
.o6tk-grid-2 { grid-template-columns: repeat(2, 1fr); }
.o6tk-grid-3 { grid-template-columns: repeat(3, 1fr); }
.o6tk-grid-4 { grid-template-columns: repeat(4, 1fr); }
.o6tk-grid-5 { grid-template-columns: repeat(5, 1fr); }
.o6tk-grid-6 { grid-template-columns: repeat(6, 1fr); }

.o6tk-gap-2  { gap: var(--o6tk-space-2); }
.o6tk-gap-3  { gap: var(--o6tk-space-3); }
.o6tk-gap-4  { gap: var(--o6tk-space-4); }
.o6tk-gap-6  { gap: var(--o6tk-space-6); }
.o6tk-gap-8  { gap: var(--o6tk-space-8); }
.o6tk-gap-10 { gap: var(--o6tk-space-10); }
.o6tk-gap-12 { gap: var(--o6tk-space-12); }

.o6tk-items-center   { align-items: center; }
.o6tk-items-start    { align-items: flex-start; }
.o6tk-items-end      { align-items: flex-end; }
.o6tk-items-stretch  { align-items: stretch; }

.o6tk-justify-center  { justify-content: center; }
.o6tk-justify-between { justify-content: space-between; }
.o6tk-justify-start   { justify-content: flex-start; }
.o6tk-justify-end     { justify-content: flex-end; }

.o6tk-flex-col { flex-direction: column; }
.o6tk-flex-row { flex-direction: row; }
.o6tk-flex-wrap { flex-wrap: wrap; }


/* ═══════════════════════════════════════════════════════════
   SPACING (margin-bottom for vertical rhythm)
   ═══════════════════════════════════════════════════════════ */

.o6tk-mb-0  { margin-bottom: 0; }
.o6tk-mb-1  { margin-bottom: var(--o6tk-space-1); }
.o6tk-mb-2  { margin-bottom: var(--o6tk-space-2); }
.o6tk-mb-3  { margin-bottom: var(--o6tk-space-3); }
.o6tk-mb-4  { margin-bottom: var(--o6tk-space-4); }
.o6tk-mb-6  { margin-bottom: var(--o6tk-space-6); }
.o6tk-mb-8  { margin-bottom: var(--o6tk-space-8); }
.o6tk-mb-10 { margin-bottom: var(--o6tk-space-10); }
.o6tk-mb-12 { margin-bottom: var(--o6tk-space-12); }

.o6tk-mt-0  { margin-top: 0; }
.o6tk-mt-4  { margin-top: var(--o6tk-space-4); }
.o6tk-mt-8  { margin-top: var(--o6tk-space-8); }
.o6tk-mt-12 { margin-top: var(--o6tk-space-12); }

.o6tk-pt-0  { padding-top: 0; }
.o6tk-pt-4  { padding-top: var(--o6tk-space-4); }
.o6tk-pt-8  { padding-top: var(--o6tk-space-8); }

.o6tk-pb-0  { padding-bottom: 0; }
.o6tk-pb-4  { padding-bottom: var(--o6tk-space-4); }
.o6tk-pb-8  { padding-bottom: var(--o6tk-space-8); }

.o6tk-p-4   { padding: var(--o6tk-space-4); }
.o6tk-p-6   { padding: var(--o6tk-space-6); }
.o6tk-p-8   { padding: var(--o6tk-space-8); }


/* ═══════════════════════════════════════════════════════════
   COLOR UTILITIES
   ═══════════════════════════════════════════════════════════ */

/* Text colors */
.o6tk-text-primary    { color: var(--o6tk-primary); }
.o6tk-text-secondary  { color: var(--o6tk-secondary); }
.o6tk-text-accent     { color: var(--o6tk-accent); }
.o6tk-text-neutral    { color: var(--o6tk-neutral); }
.o6tk-text-dark       { color: var(--o6tk-dark); }
.o6tk-text-light      { color: var(--o6tk-light); }
.o6tk-text-white      { color: #fff; }

/* Background colors */
.o6tk-bg-primary      { background-color: var(--o6tk-primary); }
.o6tk-bg-secondary    { background-color: var(--o6tk-secondary); }
.o6tk-bg-accent       { background-color: var(--o6tk-accent); }
.o6tk-bg-dark         { background-color: var(--o6tk-dark); }
.o6tk-bg-light        { background-color: var(--o6tk-light); }
.o6tk-bg-surface      { background-color: var(--o6tk-surface); }

/* Soft backgrounds (using light shades) */
.o6tk-bg-primary-soft   { background-color: var(--o6tk-primary-bg); }
.o6tk-bg-secondary-soft { background-color: var(--o6tk-secondary-bg); }
.o6tk-bg-accent-soft    { background-color: var(--o6tk-accent-bg); }
.o6tk-bg-neutral-soft   { background-color: var(--o6tk-neutral-bg); }


/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.o6tk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.65em 1.5em;
    font-size: var(--o6tk-text-sm);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--o6tk-radius-sm, 4px);
    cursor: pointer;
    transition: all var(--o6tk-dur-base, 0.25s) var(--o6tk-ease-default, ease);
}

.o6tk-btn-primary {
    background: var(--o6tk-primary);
    color: #fff;
    border-color: var(--o6tk-primary);
}

.o6tk-btn-primary:hover {
    background: var(--o6tk-primary-hover);
    border-color: var(--o6tk-primary-hover);
}

.o6tk-btn-secondary {
    background: var(--o6tk-secondary);
    color: #fff;
    border-color: var(--o6tk-secondary);
}

.o6tk-btn-secondary:hover {
    background: var(--o6tk-secondary-hover);
    border-color: var(--o6tk-secondary-hover);
}

.o6tk-btn-outline {
    background: transparent;
    color: var(--o6tk-primary);
    border-color: var(--o6tk-primary);
}

.o6tk-btn-outline:hover {
    background: var(--o6tk-primary);
    color: #fff;
}

.o6tk-btn-light {
    background: var(--o6tk-light);
    color: var(--o6tk-dark);
    border-color: var(--o6tk-light);
}

.o6tk-btn-light:hover {
    background: var(--o6tk-neutral-surface);
    border-color: var(--o6tk-neutral-surface);
}

.o6tk-btn-lg {
    padding: 0.85em 2em;
    font-size: var(--o6tk-text-base);
}

.o6tk-btn-sm {
    padding: 0.45em 1em;
    font-size: var(--o6tk-text-xs);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
    .o6tk-lg-grid-1 { grid-template-columns: 1fr; }
    .o6tk-lg-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .o6tk-lg-hidden  { display: none !important; }
}

@media (max-width: 767px) {
    .o6tk-md-grid-1 { grid-template-columns: 1fr; }
    .o6tk-md-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .o6tk-md-hidden  { display: none !important; }
    .o6tk-md-stack   { flex-direction: column; }

    .o6tk-inner {
        margin-left: var(--o6tk-space-4);
        margin-right: var(--o6tk-space-4);
    }
}

@media (max-width: 479px) {
    .o6tk-sm-hidden { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */

.o6tk-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.o6tk-w-full  { width: 100%; }
.o6tk-h-full  { height: 100%; }
.o6tk-relative { position: relative; }
.o6tk-overflow-hidden { overflow: hidden; }


/* ═══════════════════════════════════════════════════════════
   DATA-ATTRIBUTE SECTION STYLES
   Styles applied via data attributes that survive O6 import.
   No class assignment needed.
   ═══════════════════════════════════════════════════════════ */

/* ── Section foundations ───────────────────────────────── */
[data-section] {
    padding-top: var(--o6tk-ss-lg, clamp(64px, 8vw, 128px));
    padding-bottom: var(--o6tk-ss-lg, clamp(64px, 8vw, 128px));
}

[data-inner] {
    margin-left: var(--o6tk-space-8, clamp(14px, 2vw, 24px));
    margin-right: var(--o6tk-space-8, clamp(14px, 2vw, 24px));
}

/* ── Section heading ───────────────────────────────────── */
[data-heading="section"] {
    font-size: var(--o6tk-h3, clamp(1.5rem, 2.5vw, 2.25rem));
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--o6tk-heading-color, #101010);
    margin-bottom: var(--o6tk-space-8, clamp(14px, 2vw, 24px));
}

/* ── FAQ section specifics ─────────────────────────────── */
[data-section="faq"] {
    background: var(--o6tk-neutral-bg, #f8f8f8);
}

[data-section="faq"] [data-heading="section"] {
    text-align: center;
    margin-bottom: var(--o6tk-space-12, clamp(24px, 3vw, 48px));
}

[data-section="faq"] [data-accordion] {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

[data-section="faq"] [data-accordion-item] {
    border-bottom: 1px solid var(--o6tk-neutral-border, #e5e5e5);
}

[data-section="faq"] [data-accordion-item]:last-child {
    border-bottom: none;
}

[data-section="faq"] [data-accordion-header] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--o6tk-space-6, 18px) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--o6tk-text-lg, 1.125rem);
    font-weight: 600;
    color: var(--o6tk-heading-color, #101010);
    transition: color 0.2s ease;
}

[data-section="faq"] [data-accordion-header]:hover {
    color: var(--o6tk-primary, #6366f1);
}

[data-section="faq"] [data-accordion-icon] {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--o6tk-primary, #6366f1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--o6tk-space-4, 12px);
}

[data-section="faq"] [data-accordion-content] p {
    padding-bottom: var(--o6tk-space-6, 18px);
    font-size: var(--o6tk-text-base, 1rem);
    line-height: 1.65;
    color: var(--o6tk-body-color, #555);
    max-width: 65ch;
}
