:root {
    --primary-bg: #FDFBF7;
    --text-main: #2D2D2D;
    --accent-sky-blue: #AED9E0;
    --accent-peach: #FFDAB9;
    --accent-mint: #B8E0D2;
    --accent-grey-beige: #D1CCC0;
    --accent-blue-grey: #5E7279;
    --secondary-text: #5A5A5A;
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    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-bottom: 1.5rem;
    line-height: 1.2;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

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

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

button {
    cursor: pointer;
    border: none;
    border-radius: 0px;
    transition: all 0.3s ease;
}

input,
select,
textarea {
    border-radius: 0px !important;
}

.container-fluid {
    padding-left: 5%;
    padding-right: 5%;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    body {
        font-size: 15px;
    }

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

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

/* ===== header ===== */
#site-header {
    position: relative;
    z-index: 1000;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-blue-grey) !important;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-bg);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.open {
    display: flex !important;
}

/* ===== hero_section ===== */
.hero-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.hero-headline {
    letter-spacing: -0.02em;
}

.hero-text {
    text-align: justify;
    text-justify: inter-word;
}

.ls-widest {
    letter-spacing: 0.3em;
}

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

    .hero-text {
        font-size: 1.1rem;
        text-align: left;
    }
}

/* ===== intro_strategy ===== */
.introduction-section {
    background-color: var(--accent-grey-beige);
    width: 100%;
    position: relative;
}

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

.text-secondary-color {
    color: var(--secondary-text);
    line-height: 1.8;
    text-align: justify;
}

.icon-accent {
    color: var(--accent-blue-grey);
}

@media (min-width: 768px) {
    .text-secondary-color {
        text-align: center;
    }
}

/* ===== early_stage_habits ===== */
#early-stage {
    position: relative;
    overflow: hidden;
}

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

.js-early-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.early-habits-img-wrapper {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.early-habits-img-wrapper:hover {
    transform: scale(1.02);
}

.early-habits-icon-box i {
    color: var(--text-main);
}

/* ===== budgeting_block ===== */
.js-reveal.visible {
    opacity: 1 !important;
    transform: none !important;
}

#budgeting .bi {
    line-height: 1;
}

/* ===== spending_tracking ===== */
#spending-analysis {
    overflow: hidden;
}

#spending-analysis img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#spending-analysis .rounded-4 {
    border-radius: 1.5rem !important;
}

/* ===== tech_control ===== */
#digital-tools {
    overflow: hidden;
}

#digital-tools .img-fluid {
    transition: transform 0.5s ease;
}

#digital-tools .img-fluid:hover {
    transform: translateY(-10px);
}

/* ===== overspending_prevention ===== */
#overspending {
    position: relative;
    overflow: hidden;
}

#overspending .js-icon-hover {
    transition: transform 0.3s ease;
    display: inline-block;
}

#overspending img {
    object-fit: cover;
    border: 8px solid var(--primary-bg);
}

/* ===== saving_money_strategy ===== */
#savings {
    background-color: var(--primary-bg);
    width: 100%
}

.savings-icon-box {
    background-color: var(--accent-blue-grey);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.savings-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 12px solid var(--accent-peach)
}

.js-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0)
}

/* ===== retirement_planning_mid ===== */
.middle-stage-section {
    overflow: hidden;
    position: relative;
}

.ls-widest {
    font-size: 0.85rem;
}

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

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

@media (max-width: 991.98px) {
    .middle-stage-section {
        text-align: center;
    }

    .middle-stage-section .d-flex {
        justify-content: center;
    }

    .image-container {
        margin-bottom: 2rem;
    }
}

/* ===== save_for_retirement_late ===== */
#late-stage {
    position: relative;
    overflow: hidden;
}

#late-stage .img-fluid {
    transition: transform 0.3s ease;
}

#late-stage .img-fluid:hover {
    transform: scale(1.02);
}

/* ===== final_model ===== */
.js-reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.js-reveal.active {
    opacity: 1;
    transform: translateX(0);
}

.final-system-image-container {
    position: relative;
    padding: 10px;
    background-color: var(--primary-bg);
    border-radius: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

#newsletter .form-control:focus {
    border-color: var(--accent-blue-grey);
    box-shadow: 0 0 0 0.25rem rgba(94, 114, 121, 0.25);
}

#newsletter .btn:hover {
    background-color: var(--accent-grey-beige) !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease;
}

#newsletter .form-check-input:checked {
    background-color: var(--accent-blue-grey);
    border-color: var(--accent-blue-grey);
}

#site-footer .row.g-4.mb-5 > [class*="col"]:has(> h5) {
    display: none;
}

#site-footer .row.g-4.mb-5 > [class*="col"]:has(> h5:first-child:nth-last-child(2)) {
    display: block;
    width: 100%;
}

#site-footer .row.g-4.mb-5 {
    display: none;
}

/* ===== footer ===== */
.js-insta-carousel::-webkit-scrollbar {
    display: none;
}

.js-insta-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.js-insta-carousel img {
    flex: 0 0 100px;
    transition: transform 0.3s ease;
}

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