/* Page-specific styles for index.html */
/* Keep small — general styles live in wellness.css */

.hero-content h2 {
    letter-spacing: 0.6px;
}

/* Decorative/animated text styles for hero */
.hero-content h2 {
    font-size: 48px;
    line-height: 1.02;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-content h2 .accent-word {
    color: inherit;
    -webkit-text-fill-color: inherit;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    display: inline;
    font-weight: inherit;
    line-height: 1;
    padding: 0;
    margin: 0;
}

/* Heading underline reveal */
.hero-content h2 {
    position: relative;
}

.hero-content h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    border-radius: 6px;
    transition: width 600ms cubic-bezier(.2, .9, .2, 1);
}

.hero-content h2:hover::after {
    width: 160px;
}

/* Slight emphasis for hero paragraph */
.hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 820px;
    margin: 0 auto;
}

.hero-content p.fade-up {
    animation-duration: 900ms;
}

@media (max-width:768px) {
    .hero-content h2 {
        font-size: 28px;
    }
}

.intro-badges span {
    font-weight: 600;
}

@media (max-width:768px) {
    .hero-content h2 {
        font-size: 30px;
    }
}

/* CTA row under hero primary action */
.hero-ctas {
    margin-top: 12px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.hero-ctas .btn {
    padding: 8px 14px;
    border-radius: 999px;
}

@media (max-width:768px) {
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .hero-ctas .btn {
        width: 100%;
        text-align: center;
    }
}

/* Section CTA — centered button below each major section */
.section-cta {
    text-align: center;
    margin: 28px 0 8px;
}

.section-cta .btn {
    padding: 12px 22px;
    font-weight: 700;
}

.contact-wrapper.single-column {
    grid-template-columns: minmax(280px, 720px);
    justify-content: center;
    max-width: 720px;
}

.contact-info.centered-contact {
    text-align: center;
}

.contact-info.centered-contact .contact-cta {
    margin-top: 24px;
}

@media (max-width:768px) {
    .section-cta {
        margin: 18px 0;
    }

    .section-cta .btn {
        width: 100%;
    }

    .contact-wrapper.single-column {
        max-width: 100%;
    }
}

/* Hero background & text animations */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-image: linear-gradient(180deg, rgba(6, 10, 10, 0.22), rgba(6, 10, 10, 0.12));
    background-size: cover;
    background-position: center center;
}

/* Permanent dark overlay to ensure white hero text is legible on any image */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 10, 0.45), rgba(6, 10, 10, 0.25));
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 10, 0.28), rgba(6, 10, 10, 0.08));
    z-index: 0;
    pointer-events: none;
    animation: bgPulse 18s ease-in-out infinite;
    transform-origin: center;
    background: transparent;
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    text-align: center;
}

@keyframes bgPulse {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.06) translateY(-6px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* simple fade-up used across pages */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(18px);
    animation-name: fadeUp;
    animation-duration: 700ms;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(.2, .9, .2, 1);
}

.delay-0 {
    animation-delay: 0.12s;
}

.delay-1 {
    animation-delay: 0.36s;
}

.delay-2 {
    animation-delay: 0.64s;
}

@media (prefers-reduced-motion: reduce) {
    .hero::after {
        animation: none !important;
    }

    .fade-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Glowing underline for headings on index page */
h1,
h2,
h3,
h4,
h5,
h6 {
    position: relative;
    display: inline-block;
}

h1::after,
h2::after,
h3::after,
h4::after,
h5::after,
h6::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 0;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(106, 168, 79, 0.85), rgba(58, 125, 74, 0.85));
    box-shadow: 0 6px 18px rgba(58, 125, 74, 0.35), 0 0 28px rgba(106, 168, 79, 0.12) inset;
    transition: width 450ms cubic-bezier(.2, .9, .2, 1), opacity 300ms ease;
    opacity: 0.9;
}

h1:hover::after,
h2:hover::after,
h3:hover::after,
h4:hover::after,
h5:hover::after,
h6:hover::after {
    width: 160px;
}

@media (max-width:768px) {

    h1::after,
    h2::after,
    h3::after,
    h4::after,
    h5::after,
    h6::after {
        bottom: -8px;
        height: 5px;
    }
}

/* Ensure section headings on index are centered (override inline-block) */
main h1,
main h2,
main h3,
.content-block h2,
.about h3,
.features h3,
.services h3 {
    display: block;
    margin: 0 auto 18px;
    text-align: center;
}

/* Use an actual <img> element as the hero background to enable srcset/object-fit
   and make it easy to swap for higher-resolution images. */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* align image to right for better composition */
    object-position: center right;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
}

/* subtle slow zoom for hero background */
.hero-bg {
    transform: scale(1);
    transition: transform 12s ease-in-out;
    will-change: transform;
    animation: heroZoom 16s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

/* improve hero content alignment and spacing */
.hero-content {
    max-width: 920px;
    padding: 72px 48px;
    /* left-align content when image is positioned to the right */
    text-align: left;
    margin-left: 6%;
}

@media (max-width:900px) {
    .hero-content {
        text-align: center;
        margin-left: 0;
        padding: 40px 20px;
    }
}

.hero-content h2 {
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(6, 10, 10, 0.5);
}

/* stronger entrance for hero heading */
.hero-content h2.fade-up {
    animation-name: fadeUp, heroPop;
    animation-duration: 700ms, 700ms;
    animation-fill-mode: both;
}

@keyframes heroPop {
    from {
        transform: translateY(12px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* make CTA stand out */
.hero .btn.primary {
    box-shadow: 0 14px 40px rgba(34, 60, 34, 0.28);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero .btn.primary:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Center section headings across index.html sections */
/* Targets headings inside any top-level section on the index to ensure centered layout */
section h1,
section h2,
section h3,
.hero-content h1,
.hero-content h2,
.hero-content h3 {
    display: block;
    margin: 0 auto 18px;
    text-align: center;
    width: 100%;
}

/* Mobile: use a CSS background for the hero and hide the <img> to improve layout
   (keeps the existing overlay and animations). Adjust the image path as needed. */
@media (max-width:640px) {
    .hero {
        /* mobile-appropriate image (changed) */
        background-image: url("../images/VedhaWellness/2.jpg");
        background-size: cover;
        background-position: center center;
    }

    /* hide the absolute <img.hero-bg> on small screens to avoid duplicate visuals */
    .hero .hero-bg {
        display: none;
    }

    /* ensure hero overlay stacking remains correct */
    .hero::before,
    .hero::after {
        z-index: 2;
    }

    .hero-content {
        z-index: 4;
    }
}

/* Ensure the index page gallery is mobile-first responsive */
.masonry-gallery,
#masonryGallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
}

.masonry-gallery .gallery-item,
#masonryGallery .gallery-item {
    aspect-ratio: 3 / 2;
}

.masonry-gallery img,
#masonryGallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

@media (min-width: 641px) {

    .masonry-gallery,
    #masonryGallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {

    .masonry-gallery,
    #masonryGallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accent word: simple text (no gradient) */
.accent-word {
    color: #08300a;
    /* solid brand/dark color so words remain visible */
    -webkit-text-fill-color: #08300a;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    display: inline;
    font-weight: 800;
}
