/*
Theme Name: Shri Mohandas Ji Child
Theme URI: https://shrimohandasjimandir.com/
Description: Custom child theme for Shri Mohandas Ji Mandir, based on Astra.
Author: Shri Mohandas Ji Mandir
Template: astra
Version: 1.0.0
Text Domain: shrimohandas-child
*/

/* =========================================================
   GLOBAL
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #fffaf2;
    color: #243447;
    font-family: Georgia, "Noto Serif Devanagari", serif;
    line-height: 1.8;
}

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

a {
    text-decoration: none;
}

.shri-homepage {
    overflow: hidden;
}

/* =========================================================
   HERO SECTION - FINAL
========================================================= */

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 80px 25px;
}

/* HERO IMAGE */

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* LIGHT OVERLAY */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(255, 248, 230, 0.82) 0%,
        rgba(255, 248, 230, 0.58) 30%,
        rgba(255, 248, 230, 0.18) 55%,
        rgba(255, 248, 230, 0.02) 100%
    );
}

/* HERO CONTENT - LEFT SIDE */

.hero-content {
    position: relative;
    z-index: 2;

    width: 65%;
    max-width: 850px;

    margin-left: 4%;
    margin-right: auto;

    padding: 45px 0;

    text-align: left;
}

/* LABEL */

.hero-label {
    margin: 0 0 18px;

    color: #9a4f12;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;

    text-align: center;

    width: 380px;
}

/* MAIN HEADING */

.hero-content h1 {
    margin: 0 0 18px;

    color: #172b42;

      font-size: clamp(36px, 3.5vw, 48px);
    line-height: 1.12;
    font-weight: 700;

    max-width: 850px;

    text-shadow: 0 2px 1px rgba(255,255,255,.5);
}

.hero-content h1 span {
    display: block;
    color: #b95d13;
    text-align: left;
    width: 370px;
    margin-left: 0;
}

/* DESCRIPTION */

.hero-description {
    max-width: 380px;
    margin: 0 0 30px;

    color: #172b42;

    font-size: 19px;
    font-weight: 500;
    line-height: 1.8;

    text-shadow: 0 1px 2px rgba(255,255,255,0.75);

    background: rgba(255, 248, 230, 0.12);
    padding: 8px 12px;
    border-radius: 6px;
}

/* BUTTONS */

.hero-buttons {
    display: flex;

    justify-content: flex-start;
    align-items: center;

    gap: 15px;
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
    display: inline-block;

    padding: 14px 28px;

    border-radius: 5px;

    font-size: 17px;
    font-weight: 600;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.btn-primary {
    color: #fff;
    background: #c76616;

    box-shadow: 0 8px 20px rgba(120,55,10,.18);
}

.btn-primary:hover {
    color: #fff;
    background: #a94f0c;
    transform: translateY(-3px);
}

.btn-secondary {
    color: #9a4f12;

    background: rgba(255,255,255,.75);

    border: 1px solid rgba(154,79,18,.35);
}

.btn-secondary:hover {
    color: #fff;
    background: #9a4f12;
    transform: translateY(-3px);
}

/* =========================================================
   COMMON SECTION
========================================================= */

.intro-section,
.features-section {
    padding: 100px 25px;
}

.intro-section {
    background: #fffaf2;
}

.features-section {
    background: #f7efe2;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-heading > p {
    margin: 0 0 10px;

    color: #bd6417;

    font-size: 18px;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;

    color: #172b42;

    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.25;
}

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

.heading-line {
    width: 80px;
    height: 3px;

    margin: 22px auto 0;

    background: #c76616;
}

/* =========================================================
   INTRODUCTION
========================================================= */

.intro-content {
    width: min(100%, 1150px);

    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 65px;

    align-items: center;
}

.intro-image {
    height: 500px;
    min-height: 0;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #d99a4b,
            #f4d8a5
        );

    box-shadow:
        0 20px 50px rgba(67,43,20,.16);

    overflow: hidden;

    position: relative;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

/*
   बाद में यहाँ हमारी final childhood image लगाएँगे।
*/

.intro-text {
    font-size: 19px;
    color: #48525d;
}

.intro-text p {
    margin: 0 0 25px;
}

.read-more {
    display: inline-block;

    margin-top: 10px;

    color: #b85c12;

    font-weight: 700;

    border-bottom: 1px solid #b85c12;

    transition: .25s ease;
}

.read-more:hover {
    color: #7f3c08;
    border-color: #7f3c08;
}

/* =========================================================
   FEATURE CARDS
========================================================= */

.features-grid {
    width: min(100%, 1150px);

    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.feature-card {
    padding: 40px 30px;

    text-align: center;

    background: #fffdf9;

    border: 1px solid rgba(184,92,18,.12);

    border-radius: 8px;

    box-shadow: 0 12px 35px rgba(67,43,20,.08);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 45px rgba(67,43,20,.14);
}

.feature-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0d9;

    font-size: 32px;
}

.feature-card h3 {
    margin: 0 0 15px;

    color: #172b42;

    font-size: 27px;
}

.feature-card p {
    margin: 0 0 22px;

    color: #59616a;

    font-size: 17px;
}

.feature-card a {
    color: #bd6417;

    font-weight: 700;
}

/* =========================================================
   CTA
========================================================= */

.cta-section {
    position: relative;

    padding: 110px 25px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #8f4510,
            #c76616,
            #9b4d0d
        );

    color: #fff;
}

.cta-content {
    width: min(100%, 850px);
    margin: auto;
}

.cta-content > p {
    margin: 0 0 15px;

    font-size: 19px;
    font-weight: 600;
}

.cta-content h2 {
    margin: 0 0 35px;

    color: #fff;

    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.3;
}

.cta-content h2 span {
    display: block;
    color: #ffe1a8;
}

.cta-content .btn-primary {
    background: #fff;
    color: #9a4f12;
}

.cta-content .btn-primary:hover {
    background: #fff4dc;
    color: #7f3c08;
}

/* =========================================================
   ASTRA CLEANUP
========================================================= */

.ast-container {
    max-width: 100%;
}

.site-content {
    padding: 0;
}

.entry-content {
    margin: 0;
}

.page .entry-header {
    display: none;
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

    .hero-section {
        min-height: 600px;
        padding: 90px 25px;
    }

    .intro-content {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .intro-image {
        min-height: 420px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

}

/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }

    .hero-section {
        min-height: 570px;

        padding: 80px 20px;
    }

    .hero-label {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-description {
        font-size: 17px;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: min(100%, 300px);
        text-align: center;
    }

    .intro-section,
    .features-section {
        padding: 70px 20px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .intro-image {
        min-height: 300px;
    }

    .intro-text {
        font-size: 17px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 35px 25px;
    }

    .cta-section {
        padding: 80px 20px;
    }

    .cta-content h2 {
        font-size: 34px;
    }

}
/* =========================================================
   HOMEPAGE FULL WIDTH + FOOTER FIX
========================================================= */

#primary.content-area.primary {
    width: 100%;
    float: none;
    margin: 0;
}

.site-footer {
    clear: both;
    width: 100%;
    float: none;
    display: block;
}
/* FINAL ASTRA FULL-WIDTH HOMEPAGE FIX */

#content,
#content > .ast-container,
#content > .ast-container > .ast-row,
#primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer {
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
}
/* =========================================================
   SHRI MOHANDAS JI - PREMIUM HEADER
   ========================================================= */

.sm-header {
    width: 100%;
    height: 88px;

    background: #5b180d;

    border-bottom: 1px solid rgba(224, 171, 70, 0.45);

    position: relative;
    z-index: 1000;
}


/* =========================================================
   HEADER INNER — FINAL POSITIONING
   ========================================================= */

.sm-header-inner {
    width: 100%;
    max-width: 1500px;
    height: 88px;

    margin: 0 auto;
    padding: 7px 20px;

    display: flex;
    align-items: center;

    /* Logo, Navigation और Right Controls के बीच संतुलन */
    gap: 0;
}


/* =========================================================
   BRAND / LOGO
   ========================================================= */

.sm-brand {
    width: 285px;
    min-width: 285px;

    height: 74px;

    display: flex;
    align-items: center;

    gap: 10px;

    color: #f7dfaa;
    text-decoration: none;
}

.sm-brand-logo {
    width: 68px;
    height: 68px;

    flex: 0 0 68px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-brand-logo img {
    width: 68px;
    height: 68px;

    object-fit: contain;
    display: block;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.sm-brand-name {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    white-space: nowrap;
}

.sm-brand-name strong {
    color: #f4dda9;

    font-family:
        Georgia,
        "Noto Serif Devanagari",
        serif;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.sm-brand-name span {
    margin-top: 5px;

    color: #dba75b;

    font-family:
        Georgia,
        "Noto Serif Devanagari",
        serif;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;

    text-align: center;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.sm-nav {
    flex: 1 1 auto;
    min-width: 0;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    /* Logo से पर्याप्त दूरी */
    margin-left: 45px;
	transform: translateX(65px);

    /* Links के बीच spacing */
    gap: clamp(14px, 1.35vw, 21px);

    white-space: nowrap;
}

.sm-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;

    height: 100%;

    padding: 4px 0;

    color: #f5dfad;

    font-family:
        Georgia,
        "Noto Serif Devanagari",
        serif;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
    text-decoration: none;

    transition:
        color .25s ease,
        transform .25s ease;
}


/* =========================================================
   NAV UNDERLINE
   ========================================================= */

.sm-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 21px;

    width: 0;
    height: 2px;

    background: #e4ad42;

    transition: width .25s ease;
}

.sm-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.sm-nav a:hover::after {
    width: 100%;
}


/* =========================================================
   RIGHT ACTION AREA
   ========================================================= */

.sm-actions {
    width: 110px;
    min-width: 110px;

    height: 76px;

    margin-left: 25px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.sm-language {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    white-space: nowrap;

    font-family:
        Georgia,
        "Noto Serif Devanagari",
        serif;

    font-size: 11px;
    line-height: 1;
}

.sm-language a {
    color: #f5dfad;

    text-decoration: none;
    font-weight: 600;

    transition: color .2s ease;
}

.sm-language a:hover {
    color: #ffffff;
}

.sm-language span {
    color: rgba(255,255,255,.45);
}


/* =========================================================
   DONATE BUTTON
   ========================================================= */

.sm-donate {
    width: 82px;

    padding: 9px 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background:
        linear-gradient(
            135deg,
            #edbd55,
            #cf8b19
        );

    color: #51180d !important;

    font-family:
        Georgia,
        "Noto Serif Devanagari",
        serif;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    box-shadow:
        0 5px 12px rgba(0,0,0,.18);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.sm-donate:hover {
    color: #401008 !important;

    background:
        linear-gradient(
            135deg,
            #f2c764,
            #d99620
        );

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0,0,0,.28);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .sm-header-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .sm-brand {
        width: 245px;
        min-width: 245px;

        gap: 8px;
    }

    .sm-brand-logo {
        width: 60px;
        height: 60px;

        flex-basis: 60px;
    }

    .sm-brand-logo img {
        width: 60px;
        height: 60px;
    }

    .sm-brand-name strong {
        font-size: 16px;
    }

    .sm-brand-name span {
        font-size: 10px;
    }

    .sm-nav {
        margin-left: 25px;
        gap: 10px;
    }

    .sm-nav a {
        font-size: 13px;
    }

    .sm-actions {
        width: 90px;
        min-width: 90px;

        margin-left: 15px;
    }

    .sm-donate {
        width: 78px;
        padding: 9px 7px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .sm-header {
        height: 72px;
    }

    .sm-header-inner {
        height: 72px;

        padding: 7px 15px;
    }

    .sm-brand {
        width: auto;
        min-width: 0;

        height: 60px;
    }

    .sm-brand-logo {
        width: 52px;
        height: 52px;

        flex-basis: 52px;
    }

    .sm-brand-logo img {
        width: 52px;
        height: 52px;
    }

    .sm-brand-name strong {
        font-size: 15px;
    }

    .sm-brand-name span {
        font-size: 9px;
        margin-top: 3px;
    }

    .sm-nav {
        display: none;
    }

    .sm-actions {
        margin-left: auto;

        width: auto;
        min-width: 85px;

        height: 60px;
    }

    .sm-language {
        font-size: 10px;
    }

    .sm-donate {
        width: 75px;

        padding: 8px 6px;

        font-size: 13px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .sm-header-inner {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sm-brand-logo {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }

    .sm-brand-logo img {
        width: 46px;
        height: 46px;
    }

    .sm-brand-name strong {
        font-size: 13px;
    }

    .sm-brand-name span {
        font-size: 8px;
    }

    .sm-actions {
        min-width: 78px;
    }

    .sm-language {
        font-size: 9px;
    }

    .sm-donate {
        width: 70px;

        font-size: 12px;
        padding: 7px 5px;
    }
}