:root {
    --primary-background: #FDFBF7;
    --primary-text: #2C3E50;
    --secondary-background: #E3F2FD;
    --secondary-text: #34495E;
    --accent-background: #E8F5E9;
    --accent-text: #1B5E20;
    --warm-sand-background: #F5F5DC;
    --warm-sand-text: #4A4A4A;
    --muted-gray-blue-background: #F0F4F8;
    --muted-gray-blue-text: #2D3748;
    --button-color: #2C3E50;
    --button-text: #FFFFFF;
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    display: block;
    height: auto;
}

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

button,
.btn {
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: var(--font-body);
    font-weight: 600;
}

.btn:active {
    transform: none;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: calc(1.5rem + 1.5vw);
    }

    h2 {
        font-size: calc(1.3rem + 1.2vw);
    }

    h3 {
        font-size: calc(1.1rem + 1vw);
    }

    body {
        font-size: 15px;
    }

    .mobile-break-word {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 16px;
    }
}

/* ===== header ===== */
#header {
    width: 100%;
}

.desktop-menu a:hover {
    opacity: 0.7;
}

@media (max-width: 1023.98px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: flex !important;
    }

    .mobile-toggle {
        display: none !important;
    }
}

/* ===== hero_section ===== */
#hero .object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#hero .overlay-magazine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-background) 0%, transparent 15%);
    pointer-events: none;
}

#hero .btn:hover {
    background-color: var(--secondary-text) !important;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    #hero .display-2 {
        font-size: 3rem;
    }

    #hero .editorial-content {
        padding: 1rem 0;
    }

    #hero {
        min-height: auto;
    }
}

/* ===== strategy_basics ===== */
#strategy {
    position: relative;
    overflow: hidden;
}

#strategy .badge {
    border-radius: 4px;
}

#strategy img {
    transition: transform 0.4s ease;
}

#strategy img:hover {
    transform: translateY(-5px);
}

@media (max-width: 991.98px) {
    #strategy .ps-lg-5 {
        padding-left: 0 !important;
    }
}

/* ===== fiscal_habits ===== */
#habits {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.habit-card {
    background-color: var(--muted-gray-blue-background);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.habit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.habit-icon-wrapper {
    background-color: var(--accent-background);
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.habit-icon-wrapper i {
    color: var(--accent-text);
    font-size: 1.4rem;
}

.js-habit-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-habit-card.js-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #habits {
        padding: 50px 0;
    }
}

/* ===== budget_principles ===== */
#budget {
    overflow: hidden;
}

#budget .shadow-sm {
    transition: transform 0.3s ease;
}

#budget .shadow-sm:hover {
    transform: translateY(-5px);
}

/* ===== expense_tracking ===== */
.analysis-section {
    position: relative;
    overflow: hidden;
}

.analysis-card {
    transition: transform 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
}

/* ===== digital_trackers ===== */
#tools {
    position: relative;
}

.tools-icon-box {
    transition: transform 0.3s ease;
}

#tools:hover .tools-icon-box {
    transform: scale(1.05);
}

.tools-image-wrapper img {
    transition: transform 0.5s ease;
}

.tools-image-wrapper:hover img {
    transform: scale(1.02);
}

@media (max-width: 991.98px) {
    #tools {
        padding: 60px 0;
    }

    .tools-icon-box {
        width: 50px;
        height: 50px;
    }

    .tools-icon-box i {
        font-size: 1.5rem;
    }
}

/* ===== awareness_guide ===== */
#control {
    width: 100%;
    scroll-margin-top: 2rem;
}

.js-awareness-card {
    transition: transform 0.3s ease;
}

/* ===== saving_models ===== */
.js-model-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.js-model-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ===== optimization_methods ===== */
#rationalization .js-rational-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#rationalization .js-rational-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ===== tech_2026 ===== */
#tech {
    overflow: hidden;
}

.js-tech-img:hover {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    #tech .ps-lg-5 {
        padding-left: 0 !important;
    }
}

/* ===== action_plan ===== */
.final-system-section {
    background-color: var(--primary-background);
}

.roadmap-content-wrapper {
    background-color: var(--warm-sand-background);
    border-radius: 15px;
}

.form-container .form-control,
.form-container .form-select {
    border: 1px solid var(--accent-text);
    background-color: var(--primary-background);
    color: var(--primary-text);
}

.form-container .form-control:focus,
.form-container .form-select:focus {
    border-color: var(--button-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.1);
}

.roadmap-steps .step-icon {
    width: 50px;
    text-align: center;
}

.btn-lg {
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ===== footer ===== */
#footer .footer-link:hover {
    color: var(--button-color) !important;
    opacity: 0.8;
}

#footer .badge {
    transition: transform 0.2s ease-in-out;
    cursor: default;
}

#footer .badge:hover {
    transform: translateY(-2px);
}

#footer .comment-item small {
    font-size: 0.75rem;
}