/*
Theme Name: Child Theme for Divi
Theme URI: https://wp-ninja.net
Description: Child Theme For Divi
Author: Eduard Ungureanu
Author URI: https://wp-ninja.net
Template: Divi
Version: 1.0.0
*/

/* Start your custom CSS below this comment
============================================ */

/* =========================
   ROOT VARIABLES
========================= */
:root {
    /* Font weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-heavy: 800;

    /* Font sizes */
    --text-eyebrow: clamp(0.75rem, 0.7rem + 0.3vw, 0.9rem);
    --text-h1-hero: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
    --text-h1: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
    --text-h2: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem);
    --text-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
    --text-card-title: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
    --text-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    --text-small: clamp(0.875rem, 0.84rem + 0.15vw, 1rem);

    /* Line heights */
    --lh-tight: 1.08;
    --lh-heading: 1.15;
    --lh-subheading: 1.2;
    --lh-body: 1.65;
    --lh-small: 1.5;

    /* Text colors */
    --text-black: #111111;
    --text-white: #ffffff;
    --text-muted: #6b7280;

    /* Background colors */
    --bg-white: #ffffff;
    --bg-light: #f7f7f7;
    --bg-dark: #111111;

    /* Surface colors */
    --surface-white: #ffffff;
    --surface-light: #f7f7f7;

    /* Borders */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

    /* Spacing scale */
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: clamp(1.75rem, 1.5rem + 0.5vw, 2.25rem);
    --space-xl: clamp(2.5rem, 2rem + 1vw, 3.5rem);
    --space-2xl: clamp(3.5rem, 3rem + 2vw, 5rem);
    --space-3xl: clamp(5rem, 4rem + 3vw, 7rem);

    /* Width scale */
    --container-narrow: 48rem;
    --container: 72rem;
    --container-wide: 80rem;
    --text-measure: 65ch;
    
}

/* =========================
   TYPOGRAPHY UTILITIES
========================= */
.w-light { font-weight: var(--weight-light) !important; }
.w-regular { font-weight: var(--weight-regular) !important; }
.w-medium { font-weight: var(--weight-medium) !important; }
.w-semibold { font-weight: var(--weight-semibold) !important; }
.w-bold { font-weight: var(--weight-bold) !important; }
.w-heavy { font-weight: var(--weight-heavy) !important; }

.text-black {
    color: var(--text-black) !important;
}

.text-white {
    color: var(--text-white) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Force inner text to inherit wrapper color */
.text-black .et_pb_text_inner,
.text-black .et_pb_text_inner *,
.text-black .et_pb_blurb_description,
.text-black .et_pb_blurb_description * {
    color: inherit !important;
}

.text-white .et_pb_text_inner,
.text-white .et_pb_text_inner *,
.text-white .et_pb_blurb_description,
.text-white .et_pb_blurb_description * {
    color: inherit !important;
}

.text-muted .et_pb_text_inner,
.text-muted .et_pb_text_inner *,
.text-muted .et_pb_blurb_description,
.text-muted .et_pb_blurb_description * {
    color: inherit !important;
}

/* =========================
   BACKGROUND UTILITIES
========================= */
.bg-white { background-color: var(--bg-white) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }

/* =========================
   SURFACE UTILITIES
========================= */
.surface-white { background-color: var(--surface-white) !important; }
.surface-light { background-color: var(--surface-light) !important; }

/* =========================
   BORDER UTILITIES
========================= */
.border-light { border: 1px solid var(--border-light) !important; }
.border-medium { border: 1px solid var(--border-medium) !important; }

/* =========================
   RADIUS UTILITIES
========================= */
.radius-sm { border-radius: var(--radius-sm) !important; }
.radius-md { border-radius: var(--radius-md) !important; }
.radius-lg { border-radius: var(--radius-lg) !important; }
.radius-xl { border-radius: var(--radius-xl) !important; }

/* =========================
   SHADOW UTILITIES
========================= */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* =========================
   TYPOGRAPHY CLASSES
========================= */
.eyebrow {
    font-size: var(--text-eyebrow) !important;
    font-weight: var(--weight-semibold) !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.eyebrow .et_pb_text_inner,
.eyebrow .et_pb_text_inner *,
.eyebrow .et_pb_blurb_description,
.eyebrow .et_pb_blurb_description * {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    color: inherit !important;
}

.h1-hero,
.h1-hero .et_pb_module_header,
.h1-hero h1,
.h1-hero h2,
.h1-hero h3 {
    font-size: var(--text-h1-hero) !important;
    font-weight: var(--weight-bold) !important;
    line-height: var(--lh-tight) !important;
}

.h1,
.h1 .et_pb_module_header,
.h1 h1,
.h1 h2,
.h1 h3 {
    font-size: var(--text-h1) !important;
    font-weight: var(--weight-bold) !important;
    line-height: 1.1 !important;
}

.h2,
.h2 .et_pb_module_header,
.h2 h1,
.h2 h2,
.h2 h3 {
    font-size: var(--text-h2) !important;
    font-weight: var(--weight-semibold) !important;
    line-height: var(--lh-heading) !important;
}

.h3,
.h3 .et_pb_module_header,
.h3 h2,
.h3 h3,
.h3 h4 {
    font-size: var(--text-h3) !important;
    font-weight: var(--weight-semibold) !important;
    line-height: var(--lh-subheading) !important;
}

.card-title,
.card-title .et_pb_module_header,
.card-title h2,
.card-title h3,
.card-title h4 {
    font-size: var(--text-card-title) !important;
    font-weight: var(--weight-semibold) !important;
    line-height: 1.25 !important;
}

/* Body text set on wrapper */
.body-text {
    font-size: var(--text-body) !important;
    font-weight: var(--weight-regular) !important;
    line-height: var(--lh-body) !important;
}

/* Force all inner text to inherit wrapper typography */
.body-text .et_pb_text_inner,
.body-text .et_pb_text_inner *,
.body-text .et_pb_blurb_description,
.body-text .et_pb_blurb_description * {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.small-text {
    font-size: var(--text-small) !important;
    font-weight: var(--weight-regular) !important;
    line-height: var(--lh-small) !important;
}

.small-text .et_pb_text_inner,
.small-text .et_pb_text_inner *,
.small-text .et_pb_blurb_description,
.small-text .et_pb_blurb_description * {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

/* =========================
   SECTION SPACING
========================= */
.section {
    padding-top: var(--space-2xl) !important;
    padding-bottom: var(--space-2xl) !important;
}

.section-lg {
    padding-top: var(--space-3xl) !important;
    padding-bottom: var(--space-3xl) !important;
}

.section-hero {
    padding-top: var(--space-3xl) !important;
    padding-bottom: var(--space-3xl) !important;
}

/* =========================
   STACK SPACING
========================= */
.stack-2xs > * + * { margin-top: var(--space-2xs) !important; }
.stack-xs > * + * { margin-top: var(--space-xs) !important; }
.stack-sm > * + * { margin-top: var(--space-sm) !important; }
.stack-md > * + * { margin-top: var(--space-md) !important; }
.stack-lg > * + * { margin-top: var(--space-lg) !important; }
.stack-xl > * + * { margin-top: var(--space-xl) !important; }

/* =========================
   WIDTH / CONTAINERS
========================= */
.container,
.container-wide,
.container-narrow {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.container {
    max-width: var(--container) !important;
}

.container-wide {
    max-width: var(--container-wide) !important;
}

.container-narrow {
    max-width: var(--container-narrow) !important;
}

.text-measure {
    max-width: var(--text-measure) !important;
}

/* =========================
   PADDING UTILITIES
========================= */
.pad-sm { padding: var(--space-sm) !important; }
.pad-md { padding: var(--space-md) !important; }
.pad-lg { padding: var(--space-lg) !important; }
.pad-xl { padding: var(--space-xl) !important; }

.pad-y-sm {
    padding-top: var(--space-sm) !important;
    padding-bottom: var(--space-sm) !important;
}

.pad-y-md {
    padding-top: var(--space-md) !important;
    padding-bottom: var(--space-md) !important;
}

.pad-y-lg {
    padding-top: var(--space-lg) !important;
    padding-bottom: var(--space-lg) !important;
}

.pad-x-sm {
    padding-left: var(--space-sm) !important;
    padding-right: var(--space-sm) !important;
}

.pad-x-md {
    padding-left: var(--space-md) !important;
    padding-right: var(--space-md) !important;
}

.pad-x-lg {
    padding-left: var(--space-lg) !important;
    padding-right: var(--space-lg) !important;
}

/* =========================
   HELPER UTILITIES
========================= */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }


/* =========================
   DIVI CLEANUP LAYER
========================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.et_pb_row,
.et_pb_section {
    width: 100%;
}

.et_pb_text > *:last-child,
.et_pb_blurb_description > *:last-child,
.et_pb_text_inner > *:last-child {
    margin-bottom: 0 !important;
}

.et_pb_image img {
    display: block;
}

.et_pb_button {
    text-decoration: none;
}

iframe,
video {
    max-width: 100%;
    display: block;
}