/* Explain: Layout and positioning styles, including dynamic hero background effects. */
.section-pad {
    padding-top: clamp(4.5rem, 8vw, 7rem);
    padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.hero-glow {
    position: absolute;
    inset: -12% -18% auto;
    z-index: -1;
    height: 34rem;
    background:
        radial-gradient(42% 52% at 22% 22%, rgba(184, 134, 11, 0.18), transparent 70%),
        radial-gradient(38% 46% at 80% 12%, rgba(184, 134, 11, 0.12), transparent 70%),
        radial-gradient(40% 60% at 55% 84%, rgba(184, 134, 11, 0.08), transparent 72%);
    filter: blur(14px);
    pointer-events: none;
}

.hero-elantra-media {
    position: absolute;
    inset: 0;
    z-index: -5;
    background-image: url('https://files.cdn-files-a.com/admin/system_photos_stock/normal_695ba28e180c7.jpg?ratio=16:9&format=avif');
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    animation: elantraPan 34s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-elantra-scrim {
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(270deg, rgba(251, 250, 247, 0.99) 0%, rgba(251, 250, 247, 0.96) 36%, rgba(251, 250, 247, 0.78) 60%, rgba(251, 250, 247, 0.48) 100%),
        linear-gradient(180deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0.56) 46%, rgba(251, 250, 247, 0.98) 100%);
    pointer-events: none;
}

.hero-elantra-sweep {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: linear-gradient(104deg, transparent 40%, rgba(255, 255, 255, 0.5) 47%, rgba(184, 134, 11, 0.16) 51%, transparent 60%);
    background-repeat: no-repeat;
    background-size: 220% 100%;
    background-position: 120% 0;
    opacity: 0;
    animation: elantraSweep 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes elantraPan {
    0% {
        transform: scale(1.06) translate3d(-1.5%, 1%, 0);
    }
    100% {
        transform: scale(1.16) translate3d(1.5%, -1%, 0);
    }
}

@keyframes elantraSweep {
    0%,
    10% {
        background-position: 120% 0;
        opacity: 0;
    }
    26% {
        opacity: 1;
    }
    68% {
        background-position: -40% 0;
        opacity: 1;
    }
    86%,
    100% {
        background-position: -40% 0;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-elantra-media,
    .hero-elantra-sweep {
        animation: none;
        opacity: 1;
    }
}

.hero-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: var(--surface-color);
    box-shadow: 0 30px 70px rgba(23, 26, 25, 0.14);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-split {
    background: linear-gradient(115deg, #FBFAF7 0%, #F4F1E9 55%, rgba(184, 134, 11, 0.10) 100%);
}

.orb {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.6;
    pointer-events: none;
}

.orb-sage {
    width: 22rem;
    height: 22rem;
    top: 8%;
    inset-inline-end: 6%;
    background: rgba(184, 134, 11, 0.12);
}

.orb-accent {
    width: 16rem;
    height: 16rem;
    bottom: 8%;
    inset-inline-start: 4%;
    background: rgba(184, 134, 11, 0.16);
}

.contact-section {
    background:
        radial-gradient(circle at 8% 16%, rgba(184, 134, 11, 0.12), transparent 26rem),
        linear-gradient(180deg, var(--background-color), var(--surface-color));
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -4;
    background-image: url('https://files.cdn-files-a.com/admin/system_photos_stock/normal_695d16e681efb.jpg?ratio=16:9&format=avif');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroPan 28s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(85% 85% at 50% 32%, rgba(251, 250, 247, 0.88), rgba(251, 250, 247, 0.97) 72%),
        linear-gradient(180deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0.86) 42%, rgba(251, 250, 247, 0.99));
    pointer-events: none;
}

.hero-aurora {
    position: absolute;
    inset: -25% -15%;
    z-index: -2;
    background:
        radial-gradient(38% 46% at 18% 28%, rgba(184, 134, 11, 0.16), transparent 70%),
        radial-gradient(34% 42% at 82% 18%, rgba(184, 134, 11, 0.12), transparent 70%),
        radial-gradient(42% 52% at 62% 88%, rgba(184, 134, 11, 0.10), transparent 70%);
    filter: blur(22px);
    animation: heroDrift 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroPan {
    0% {
        transform: scale(1.05) translate3d(-1.5%, -1%, 0);
    }
    100% {
        transform: scale(1.16) translate3d(1.5%, 1%, 0);
    }
}

@keyframes heroDrift {
    0% {
        transform: translate3d(-3%, -2%, 0) scale(1.04);
    }
    50% {
        transform: translate3d(4%, 2%, 0) scale(1.16);
    }
    100% {
        transform: translate3d(-2%, 4%, 0) scale(1.1);
    }
}

.logo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.logo-stage::before {
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, #F1EDE3, #E8C766, #B8860B, #F4E3A1, #B8860B, #F1EDE3);
    animation: logoSpin 12s linear infinite;
    content: "";
}

.logo-stage-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(2rem, 6vw, 3.25rem);
    border-radius: calc(2.5rem - 6px);
    background: linear-gradient(145deg, #FFFFFF, #F4F1E9);
}

.logo-stage-inner img {
    width: 100%;
    max-width: 19rem;
    height: auto;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(15rem, 46vw, 24rem);
    animation: logoFloat 7s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(23, 26, 25, 0.16));
}

.services-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(251, 250, 247, 0.97) 0%, rgba(251, 250, 247, 0.92) 48%, rgba(251, 250, 247, 0.86) 100%),
        radial-gradient(circle at 84% 16%, rgba(184, 134, 11, 0.14), transparent 30rem),
        url('https://files.cdn-files-a.com/admin/system_photos_stock/normal_6af0ef309fbfc.jpg?ratio=16:9&format=avif') center/cover no-repeat;
}

@media (prefers-reduced-motion: reduce) {
    .hero-media,
    .hero-aurora,
    .hero-logo,
    .logo-stage::before,
    .logo-stage-inner img {
        animation: none;
    }
}