
/* =========================================
   GLOBAL STYLES
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 15px);
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 750;
    line-height: 1.25;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container-custom {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--container-space);
    padding-right: var(--container-space);
}

/* Section Layout */

.section-padding {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    margin-bottom: 15px;
}

.section-description {
    font-size: var(--fs-base);
    line-height: 1.8;
}

/* Buttons */

.btn-primary-custom,
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: var(--transition-normal);
}

.btn-primary-custom {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary-custom:hover {
    background: var(--secondary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}

.btn-secondary-custom:hover {
    background: var(--secondary-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Cards */

.custom-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Form Elements */

.form-control-custom,
.form-select-custom {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(22,166,161,0.12);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

/* Utilities */

.text-brand {
    color: var(--primary);
}

.text-accent {
    color: var(--secondary);
}

.bg-surface {
    background: var(--bg-surface);
}

.bg-soft {
    background: var(--bg-soft);
}

.border-custom {
    border: 1px solid var(--border-color);
}

.rounded-custom {
    border-radius: var(--radius-lg);
}

/* Accessibility */

:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* part 2 for dark-light */

body {
    background: var(--bg-body);
    color: var(--text-primary);
}

a {
    color: inherit;
}

.section-bg {
    background: var(--bg-surface);
}

.card,
.custom-card {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}