/* Base */
html {
    scroll-behavior: smooth;
}

/* Hero Section Styles */

.home-hero-section {
    padding: 0px 100px;
    min-height: 580px;
    padding-top: 220px;

    /* HERO WRAPPER MUST BE POSITIONED */
    /* Background image is now handled by ::after so it can be animated */
    position: relative;
    overflow: hidden; /* clips the scaled ::after so edges don't bleed */
}

/* ANIMATED BACKGROUND IMAGE (Ken Burns slow zoom) */

.home-hero-section::after {
    content: "";
    position: absolute;
    inset: -8%; /* slightly oversized so scaling never shows a gap */
    background-image: url(../images/Backgrounds/Akin\ Wellness\ Home-hero\ bg.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: heroBreath 20s ease-in-out infinite alternate;
}

@keyframes heroBreath {
    0%   { transform: scale(1);    background-position: center center; }
    100% { transform: scale(1.08); background-position: center 42%; }
}

/* OVERLAY SHOULD NOT BLOCK CLICKS */

.home-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.55)
    );
    z-index: 1; /* sits above the animated bg, below the content */
}

/* Keep hero content above overlay */

.home-hero-section > .home-hero-content {
    position: relative;
    z-index: 2; /* always on top */
}

/* Hero Section Texts Styles */

/* Shared reveal animation for all hero content children */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero-section > .home-hero-content > .home-hero-title > h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    /* margin-top: 80px; */
    margin-bottom: 8px;
    line-height: 1.2;

    /* Appears first */
    opacity: 0;
    animation: heroReveal 0.9s ease forwards;
    animation-delay: 0.2s;
}

.home-hero-section > .home-hero-content > .home-hero-text > p {
    color: #dadada;
    margin-bottom: 32px;
    line-height: 1.6;

    /* Appears second */
    opacity: 0;
    animation: heroReveal 0.9s ease forwards;
    animation-delay: 0.5s;
}

.home-hero-section > .home-hero-content > .cta {
    /* Appears third */
    opacity: 0;
    animation: heroReveal 0.9s ease forwards;
    animation-delay: 0.8s;
}

.accent {
  color: #e58b2a;
  font-weight: 700;
}


/* Sound Toggle Button Styles */

.sound-toggle-btn {
    position: absolute;
    bottom: 28px;
    right: 32px;
    z-index: 3; /* above overlay and bg */
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, transform 0.2s ease;
}

@media (hover: hover) {
    .sound-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: scale(1.08);
    }
}

/* Hero Section CTA Styles */

@media (hover: hover) {
    .home-hero-section > .home-hero-content > .cta > .btn:hover {
        transform: translateY(-2px);
        background-color: #2fb7a5;
    }
}

/* Services Section Styles */

.experiences-section {
    padding: 80px 100px;
    text-align: center;
}

.experiences-section h2 {
    font-size: 26px;
    margin-bottom: 40px;
}

.experiences-section > .experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.experiences-section > .experiences-grid > .experiences-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.5s ease;
    overflow: hidden;
    border: 1px solid transparent;

    /* Stagger: cards start invisible and slide up */
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease, border 0.3s ease;
}

/* When JS observer adds .show, card animates in */
.experiences-section > .experiences-grid > .experiences-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Delay each card slightly more than the previous */
.experiences-section > .experiences-grid > .experiences-card:nth-child(1) { transition-delay: 0s; }
.experiences-section > .experiences-grid > .experiences-card:nth-child(2) { transition-delay: 0.15s; }
.experiences-section > .experiences-grid > .experiences-card:nth-child(3) { transition-delay: 0.30s; }

@media (hover: hover) {
    .experiences-section > .experiences-grid > .experiences-card:hover {
        transform: translateY(-2px);
        border: 1px solid #2fb7a5;
    }
}

.experiences-section > .experiences-grid > .experiences-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 8px;
    color:#e58b2a;
}

.experiences-section > .experiences-grid > .experiences-card p {
    margin-bottom: 16px;
    color: #5f6675;
}

.experiences-section > .experiences-grid > .experiences-card a {
    color: #0077ff;
    text-decoration: none;
    font-weight: 500;
}

@media (hover: hover) {
    .experiences-section > .experiences-grid > .experiences-card a:hover {
        color: #e58b2a;
        transform: translateX(2px);
    }
}

/* Experiences Images Styles */

.experiences-section > .experiences-grid > .experiences-card > .experiences-img-wrp {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.experiences-section > .experiences-grid > .experiences-card > .experiences-img-wrp::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(17, 18, 43, 0.15); /* subtle tint */
}

.experiences-section > .experiences-grid > .experiences-card img{
  width: 100%;
  aspect-ratio: 4 / 3;   /* keeps every image consistent */
  object-fit: cover;     /* crops neatly */
  object-position: center;
  border-radius: 8px;
  display: block;
}

/* About Section Styles */

.home-about-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 80px 100px;
    background-color: #eef7f5;
    border: 0.1px solid #9fad6f;
}

.home-about-us > .home-about-us-img-wrp img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 20px 40px rgba(17, 18, 43, 0.08);
    will-change: transform; /* hints to browser to GPU-accelerate this element */
    transition: transform 0.1s linear; /* smooths out any jitter between scroll events */
}

.home-about-us > .home-about-content-wrapper {
    max-width: 540px;
}

.home-about-us > .home-about-content-wrapper > .section-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e58b2a;
    margin-bottom: 16px;
}

.home-about-us > .home-about-content-wrapper h2 {
    font-size: 26px;
    line-height: 1;
    color: #5a3a22;
    margin-bottom: 24px;
}

.home-about-us > .home-about-content-wrapper > .home-about-text {
    font-size: 16px;
    line-height: 2;
    color: #5f6675;
    margin-bottom: 16px;
}

@media (hover: hover) {
    .home-about-us > .home-about-content-wrapper > .cta > .btn:hover {
        transform: translateY(-2px);
        background-color: #2fb7a5;
    }
}

/* Testimonials Section Styles */

.testimonials-section {
    padding: 80px 100px;
    text-align: center;
    background-color: #11122b;
}

.testimonials-section h2 {
    font-size: 26px;
    margin-bottom: 16px;
    color: #c3c3c3;
}

.testimonials-intro {
    max-width: 640px;
    margin: 0 auto 50px auto;
    color: #aaaaaa;
    line-height: 1.7;
}

/* Grid Layout */

.testimonials-section > .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Testimonial Cards */

/* Testimonial Cards */

.testimonials-card {
    background: #eef7f5;
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    border: 1px solid transparent;

    /* Stagger: cards start invisible and slide up */
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease, border 0.3s ease;
}

.testimonials-card.show {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-card:nth-child(1) { transition-delay: 0s; }
.testimonials-card:nth-child(2) { transition-delay: 0.15s; }
.testimonials-card:nth-child(3) { transition-delay: 0.30s; }

@media (hover: hover) {
    .testimonials-card:hover {
        transform: translateY(-2px);
        border: 1px solid #2fb7a5;
    }
}

/* Quote */

.testimonials-section > .testimonials-grid > .testimonials-card > .testimonials-quote {
    font-size: 16px;
    line-height: 1.8;
    color: #5f6675;
    margin-bottom: 20px;
}

/* Author */

.testimonials-section > .testimonials-grid > .testimonials-card > .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonials-section > .testimonials-grid > .testimonials-card > .testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #2fb7a5;
}

.testimonials-section > .testimonials-grid > .testimonials-card > .testimonial-author h4 {
    font-size: 18px;
    color: #11122b;
    margin-bottom: 4px;
}

.testimonials-section > .testimonials-grid > .testimonials-card > .testimonial-author p {
    font-size: 14px;
    color: #e58b2a;
}

/* =================================
   HOMEPAGE RESPONSIVE STYLES
================================= */

@media (max-width: 1024px) {
    .home-hero-section {
        padding: 100px 80px 120px;
        height: auto;
        min-height: 500px;
    }

    .home-hero-section > .home-hero-title > h1 {
        font-size: 2.6rem;
    }

    .experiences-section {
        padding: 80px 80px;
    }

    .home-about-us {
        grid-template-columns: (2, 1fr);
        gap: 36px;
        padding: 80px 80px;
    }

    .home-about-us > .home-about-us-img-wrp img {
        height: 420px;
    }

    .home-about-us > .home-about-content-wrapper > .home-about-text {
        width: fit-content;
        max-width: 100%;
        text-align: justify;
    }

    .testimonials-section {
        padding: 80px 80px ;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .CTA-section {
        padding: 80px 80px;
    }

    .footer-section {
        padding: 0 80px 24px;
    }

}

@media (max-width: 768px) {
    .home-hero-section {
        margin-top: 80px;
        padding: 60px 24px;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .home-hero-section > .home-hero-title > h1 {
        font-size: 2.2rem;
    }

    .home-hero-section > .home-hero-text > p {
        max-width: 100%;
    }

    .experiences-section {
        padding: 80px 24px;
    }

    .experiences-section > .experiences-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .experiences-section > .experiences-grid > .experiences-card {
        padding: 22px;
    }

    .home-about-us {
        grid-template-columns: 1fr;
        padding: 80px 24px;
        gap: 28px;
    }

    .home-about-us > .home-about-us-img-wrp img {
        height: 320px;
        width: 100%;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .home-about-us > .home-about-content-wrapper {
    max-width: 100%;
    width: 100%;
    }

    .home-about-us > .home-about-content-wrapper h2 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .home-about-us > .home-about-content-wrapper > .home-about-text {
        width: 100%;
        max-width: 100%;
    }

    .testimonials-section {
        padding: 80px 24px;
    }

    .testimonials-section > .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-card {
        padding: 24px;
    }

    .CTA-section {
        padding: 80px 24px;
        background-attachment: scroll;
    }

    .CTA-section > .CTA-intro > h2 {
        font-size: 2rem;
    }

    .footer-section {
        padding: 0 24px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-hero-section {
        padding: 100px 24px 60px; /* Offset for the fixed nav */
        height: auto;
        min-height: 450px;
        text-align: center; /* Center everything for a cleaner mobile look */
    }

    .home-hero-section > .home-hero-title > h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .home-hero-section > .home-hero-text > p {
        font-size: 15px;
        line-height: 1.5;
    }

    .experiences-section {
        padding: 60px 20px;
    }

    .experiences-section h2 {
        font-size: 22px;
    }

    /* Stack the About Us section perfectly */
    .home-about-us {
        padding: 60px 20px;
        display: flex;
        flex-direction: column;
    }

    .home-about-us > .home-about-us-img-wrp img {
        height: 280px; /* Shorter image so user can get to text faster */
        margin-bottom: 24px;
    }

    .home-about-us > .home-about-content-wrapper h2 {
        font-size: 20px;
        text-align: left;
    }

    .home-about-text {
        text-align: center;
        font-size: 14px;
    }

    /* .home-about-us > .home-about-content-wrapper > .home-about-text,
    .testimonials-quote,
    .footer-description {
        font-size: 15px;
    } */

    .testimonial-author {
        align-items: flex-start;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-socials {
        flex-wrap: wrap;
    }
}
