/* NiveshakFirst — shared components and design tokens */

.section-heading h2 {
    color: #142a40;
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.15;
    letter-spacing: -.7px;
}

.section-heading h2 span {
    color: #187a5b;
}

.section-heading.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 45px;
}

.section-description {
    max-width: 690px;
    margin: 16px auto 0;
    color: #71808b;
    font-size: 17px;
    line-height: 1.8;
}

.section-label {
    color: #187a5b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #187a5b;
    font-size: 14px;
    font-weight: 700;
    transition: gap .2s ease, color .2s ease;
}

.text-link:hover {
    gap: 11px;
    color: #126548;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.primary-button {
    border: 1px solid #187a5b;
    background: #187a5b;
    color: #fff;
    box-shadow: 0 8px 20px rgba(24, 122, 91, .12);
}

.primary-button:hover {
    background: #126548;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(24, 122, 91, .18);
}

.secondary-button {
    border: 1px solid #d7e3dd;
    background: #fff;
    color: #52606d;
}

.secondary-button:hover {
    border-color: #187a5b;
    color: #187a5b;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 42, 64, .07);
}

.text-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #187a5b;
    font-size: 14px;
    font-weight: 700;
    padding: 0 5px;
    transition: gap .2s ease;
}

.text-action-button:hover {
    gap: 12px;
}

.page-section {
    min-height: 55vh;
}

body {
    background: #f7fafc;
}

/* Shared page background system. Each standalone page keeps the same palette
   while changing gradient direction so pages remain visually distinct. */
body[data-page="about"] {
    background: linear-gradient(315deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="services"] {
    background: linear-gradient(225deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="philosophy"] {
    background: linear-gradient(45deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="how-we-work"] {
    background: linear-gradient(135deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="calculator"] {
    background: linear-gradient(315deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="blog"] {
    background: linear-gradient(225deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="reviews"] {
    background: linear-gradient(45deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="faq"] {
    background: linear-gradient(135deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="contact"] {
    background: linear-gradient(315deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

body[data-page="legal"] {
    background: linear-gradient(225deg, #c5d6e4 0%, #dce7ef 35%, #edf3f7 70%, #fafcfd 100%);
    background-attachment: fixed;
}

.back-home-container {
    margin: 0 auto;
    padding: 28px 20px 0;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid rgba(24, 122, 91, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    color: #187a5b;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(20, 42, 64, .06);
    backdrop-filter: blur(8px);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}

.back-home-btn:hover {
    background: #c9e6a3;
    color: #142a40;
    transform: translateX(-3px);
    box-shadow: 0 10px 24px rgba(20, 42, 64, .10);
}

.back-home-btn .back-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
}

.back-home-btn:hover .back-arrow {
    transform: translateX(-3px);
}

.card-hover {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

/* =========================================================
   NiveshakFirst - Premium Page Background
   Step 1: Testing the new background on the Home page.
   ========================================================= */

body.page-gradient-forward {
    min-height: 100vh;

    background:
        linear-gradient(135deg,
            #16384D 0%,
            #2F765F 18%,
            #DCEDE5 45%,
            #F7FBF9 72%,
            #FFFFFF 100%);

    background-attachment: fixed;
}