:root {
    --primary-bg: #ffffff;
    --primary-text: #111827;
    --secondary-bg: #f3f4f6;
    --secondary-text: #4b5563;
    --accent-bg: #2563eb;
    --accent-text: #ffffff;
    --dark-bg: #111827;
    --dark-text: #f9fafb;
    --muted-light: #6b7280;
    --muted-dark: #9ca3af;
    --font-main: 'Inter', sans-serif;
    --radius: 0.5rem;
    --transition: 0.3s ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: inherit;
}

a {
    color: var(--accent-bg);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover,
a:focus {
    text-decoration: none;
    opacity: 0.85;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:active {
    transform: translateY(1px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 7vw, 1.875rem);
    }

    h3 {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }

    h4,
    h5 {
        font-size: 1.15rem;
    }

    p,
    a,
    li,
    span,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* ===== site_header ===== */
#header {
    background-color: var(--primary-bg);
}

.js-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.js-mobile-menu.is-open {
    max-height: 500px;
}

/* ===== hero_section ===== */
#hero {
    width: 100%;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(90deg, #111827 0%, rgba(17, 24, 39, 0.8) 40%, rgba(17, 24, 39, 0.4) 100%);
}

/* ===== featured_post ===== */
#main-article {
    width: 100%;
}

#main-article .prose h2 {
    color: var(--primary-text);
}

#main-article .prose p {
    color: var(--secondary-text);
}

.js-progress-bar {
    transition: width 0.1s ease-out;
}

/* ===== article_grid ===== */
#secondary-articles {
    width: 100%
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--muted-dark);
    border-radius: 10px
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--muted-light)
}

/* ===== faq_accordion ===== */
.js-faq-trigger {
    cursor: pointer;
}

.js-faq-content {
    transition: all 0.3s ease-in-out;
}

/* ===== user_reviews ===== */
#reviews {
    width: 100%
}

.js-review-card {
    transition: transform 0.3s ease, opacity 0.7s ease, translate 0.7s ease
}

.js-review-card:hover {
    transform: translateY(-8px)
}

/* ===== team_section ===== */
#team .bi {
    transition: color 0.3s ease;
}

#team .bi:hover {
    color: var(--accent-bg);
}

/* ===== contact_form ===== */
.js-email-field.invalid-input {
    border-color: #ef4444 !important;
}

/* ===== site_footer ===== */
#footer {
    width: 100%;
}

#footer a {
    text-decoration: none;
}

#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}