/* ------------------------------------------------------------
   Ollato Eduversity - Global Typography
   File: assets/css/global/typography.css

   Purpose:
   - Define heading styles
   - Define paragraph styles
   - Define link styles
   - Define list styles
   - Define common text utility classes
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Base Typography
------------------------------------------------------------ */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text);
}


/* ------------------------------------------------------------
   Headings
------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    margin: 0 0 var(--space-4);
}

h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: -1.2px;
}

h2 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.8px;
}

h3 {
    font-size: var(--font-size-3xl);
    letter-spacing: -0.4px;
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}


/* ------------------------------------------------------------
   Paragraphs
------------------------------------------------------------ */

p {
    margin: 0 0 var(--space-4);
    color: var(--color-text);
    line-height: var(--line-height-normal);
}

p:last-child {
    margin-bottom: 0;
}


/* ------------------------------------------------------------
   Links
------------------------------------------------------------ */

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}


/* ------------------------------------------------------------
   Lists
------------------------------------------------------------ */

ul,
ol {
    margin: 0 0 var(--space-4) var(--space-6);
    padding: 0;
}

li {
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

li:last-child {
    margin-bottom: 0;
}


/* ------------------------------------------------------------
   Strong, Bold, Small
------------------------------------------------------------ */

strong,
b {
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
}

small {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}


/* ------------------------------------------------------------
   Text Selection
------------------------------------------------------------ */

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}


/* ------------------------------------------------------------
   Section Typography
------------------------------------------------------------ */

.section-subtitle {
    display: inline-block;
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.section-title {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
}

.section-description {
    max-width: 720px;
    margin: 0 auto var(--space-8);
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
}

.section-title-left .section-description,
.text-left .section-description {
    margin-left: 0;
    margin-right: 0;
}


/* ------------------------------------------------------------
   Page Heading Typography
------------------------------------------------------------ */

.page-title {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
}

.page-subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.88);
    line-height: var(--line-height-relaxed);
}


/* ------------------------------------------------------------
   Card Typography
------------------------------------------------------------ */

.card-title {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
}

.card-text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: var(--line-height-normal);
}


/* ------------------------------------------------------------
   Button Typography
------------------------------------------------------------ */

.btn,
.button,
.header-cta-btn,
.navbar-cta-btn,
.cta-btn {
    font-family: var(--font-primary);
    font-size: var(--btn-font-size);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}


/* ------------------------------------------------------------
   Form Typography
------------------------------------------------------------ */

label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

input,
textarea,
select,
button {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-muted);
}


/* ------------------------------------------------------------
   Text Utility Classes
------------------------------------------------------------ */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

.text-heading {
    color: var(--color-heading);
}

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

.text-light {
    color: var(--color-text-light);
}

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

.text-small {
    font-size: var(--font-size-sm);
}

.text-large {
    font-size: var(--font-size-lg);
}

.text-bold {
    font-weight: var(--font-weight-bold);
}

.text-semibold {
    font-weight: var(--font-weight-semibold);
}

.text-uppercase {
    text-transform: uppercase;
}

.text-capitalize {
    text-transform: capitalize;
}


/* ------------------------------------------------------------
   Language-Specific Typography
   Hindi and Marathi may need slightly relaxed line-height.
------------------------------------------------------------ */

html[lang="hi"] body,
html[lang="mr"] body {
    line-height: 1.75;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] h5,
html[lang="hi"] h6,
html[lang="mr"] h1,
html[lang="mr"] h2,
html[lang="mr"] h3,
html[lang="mr"] h4,
html[lang="mr"] h5,
html[lang="mr"] h6 {
    line-height: 1.4;
    letter-spacing: 0;
}


/* ------------------------------------------------------------
   Responsive Typography
------------------------------------------------------------ */

@media (max-width: 991px) {
    h1,
    .page-title {
        font-size: var(--font-size-4xl);
    }

    h2,
    .section-title {
        font-size: var(--font-size-3xl);
    }

    h3 {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 575px) {
    body {
        font-size: var(--font-size-sm);
    }

    h1,
    .page-title {
        font-size: var(--font-size-3xl);
    }

    h2,
    .section-title {
        font-size: var(--font-size-2xl);
    }

    h3 {
        font-size: var(--font-size-xl);
    }

    .section-description,
    .page-subtitle {
        font-size: var(--font-size-base);
    }
}