/* ==========================================================================
   Aura Real Estate — Corporate Stylesheet
   Purple Brand Identity
   ========================================================================== */

/* --- Variables (brand: 60% primary, 30% secondary, 10% neutral) --------- */
:root {
    --color-primary: #4F2857;
    --color-primary-deep: #3a1b41;
    --color-primary-rgb: 79, 40, 87;
    --color-accent: #4F2857;
    --color-accent-light: rgba(79, 40, 87, 0.15);
    --color-bg: #FEF9F8;
    --color-bg-alt: #E5E6E7;
    --color-white: #FFFFFF;
    --color-text: #2d1f33;
    --color-text-light: #6b5a73;

    --font-main: 'Alexandria', Arial, sans-serif;

    --header-h: 80px;
    --section-py: clamp(50px, 7vw, 100px);
    --container-w: 1200px;
    --container-px: clamp(20px, 4vw, 40px);
    --radius: 3px;
    --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.85;
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Layout ------------------------------------------------------------- */
.container {
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

section {
    position: relative;
    padding-block: var(--section-py);
}

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 0.3em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

p {
    font-weight: 300;
    color: var(--color-text);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 70px);
}

.accent-line {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin-inline: auto;
    margin-top: 14px;
    border-radius: 2px;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 42px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

.btn-gold {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-gold:hover {
    background: transparent;
    color: var(--color-accent);
}

/* Hero CTA: glowing + hover effect */
.btn-hero-cta {
    box-shadow:
        0 0 24px rgba(255, 255, 255, 0.35),
        0 0 48px rgba(var(--color-primary-rgb), 0.4),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-cta:hover {
    box-shadow:
        0 0 32px rgba(255, 255, 255, 0.5),
        0 0 64px rgba(var(--color-primary-rgb), 0.5),
        0 6px 28px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.btn-hero-cta:active {
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
    background: rgba(var(--color-primary-rgb), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.navbar {
    width: 100%;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-desktop {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition);
}

.logo-mobile {
    height: 42px;
    width: auto;
    display: none;
    filter: brightness(0) invert(1);
    transition: filter var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 42px);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--color-white);
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--color-primary);
    overflow: hidden;
    /* Full-bleed intro: override global `section { padding-block }` (was empty band under carousel) */
    padding-block: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

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

/* 1. The main tint: Punch a hole through it */
/* =========================================================
   1. The Main Gradient Tint (Modified with the Exclude Mask)
   ========================================================= */
   .hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1; /* Ensure it's above the image but below text */
    pointer-events: none;

    /* 1. Your existing Dark Tint */
    background: linear-gradient(
        160deg,
        rgba(79, 40, 87, 0.8) 100%
    );

    /* 2. The Hole-Punch (Masking) */
    /* This 'excludes' the SVG from the gradient, revealing the raw image */
    -webkit-mask-image: 
        linear-gradient(black, black), 
        url('../images/pattern_3.svg');
    mask-image: 
        linear-gradient(black, black), 
        url('../images/pattern_3.svg');

    -webkit-mask-composite: xor; 
    mask-composite: exclude;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center bottom 8%;
    -webkit-mask-size: 100% 100%, min(96vw, 880px) auto;
}




/* =========================================================
   2. The Pattern Div (Modified for EXTREME Bloom)
   ========================================================= */


/* Section patterns: clearly visible, horizontal or vertical, not behind blur */
.section-pattern-line {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    background-repeat: no-repeat;
}

/* About: pattern_2 — corner drop from top-right, no horizontal repeat */
.section-pattern-line--about {
    top: 0;
    right: 0;
    width: clamp(100px, 16vw, 200px);
    height: 75%;
    background-image: url('../images/pattern_2.svg');
    background-position: 60% top;
    background-size: 400% auto;
    background-repeat: no-repeat repeat;
    opacity: 0.15;
    mix-blend-mode: multiply;
    filter: none;
    transform: none;
    /* Fade top-to-bottom (drop effect) and right-to-left (corner inset) */
    -webkit-mask-image:
        linear-gradient(to bottom, black 10%, transparent 75%),
        linear-gradient(to left, black 30%, transparent 100%);
    mask-image:
        linear-gradient(to bottom, black 10%, transparent 75%),
        linear-gradient(to left, black 30%, transparent 100%);
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
}

/* Goals: pattern_3 — vertical strip on the right, tiled */
.section-pattern-line--goals {
    top: 0;
    right: 0;
    width: clamp(100px, 16vw, 200px);
    height: 100%;
    background-image: url('../images/pattern_3.svg');
    background-size: 400% auto;
    background-repeat: repeat-y;
    background-position: 20% top;
    opacity: 0.15;
    mix-blend-mode: multiply;
    filter: none;
    -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
    mask-image: linear-gradient(to left, black 30%, transparent 100%);
}

/* Featured: pattern_1 — vertical strip on the left, tiled */
.section-pattern-line--featured {
    top: 0;
    left: 0;
    width: clamp(100px, 16vw, 200px);
    height: 100%;
    background-image: url('../images/pattern_1.svg');
    background-size: 400% auto;
    background-repeat: repeat-y;
    background-position: 20% top;
    opacity: 0.15;
    mix-blend-mode: multiply;
    filter: none;
    -webkit-mask-image: linear-gradient(to right, black 30%, transparent 100%);
    mask-image: linear-gradient(to right, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.4em;
    line-height: 1.25;
}

.hero-title .word {
    display: inline-block;
    vertical-align: top;
    will-change: transform, opacity;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin-bottom: 2em;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.9;
}

.hero-content .btn {
    font-size: 1.05rem;
    padding: 16px 50px;
}

/* Hero carousel (viewport LTR for transform; slides RTL for text) */
.hero-carousel-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.hero-carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    flex: 1 1 auto;
    min-height: 100vh;
    touch-action: manipulation;
    container-type: inline-size;
    container-name: hero-vp;
}

.hero-carousel__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    min-height: 100%;
}

.hero-carousel__slide {
    position: relative;
    flex: 0 0 100cqw;
    width: 100cqw;
    max-width: 100cqw;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 100vh;
    padding-top: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
}

@supports not (width: 100cqw) {
    .hero-carousel__slide {
        flex: 0 0 100vw;
        width: 100vw;
        max-width: 100vw;
    }
}

.hero-carousel__arrow {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.35);
    color: var(--color-white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background var(--transition), transform 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-carousel__arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
}

.hero-carousel__arrow:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* RTL: السابق على اليمين، التالي على اليسار */
.hero-carousel__arrow--prev {
    right: clamp(10px, 2.5vw, 22px);
}

.hero-carousel__arrow--next {
    left: clamp(10px, 2.5vw, 22px);
}

.hero-carousel__dots-row {
    position: absolute;
    bottom: clamp(20px, 4vh, 40px);
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hero-carousel__dots-row .hero-carousel__dots {
    pointer-events: auto;
}

.hero-carousel__dots {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.hero-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.55);
}

.hero-carousel__dot.is-active {
    background: var(--color-accent);
    transform: scale(1.15);
    width: 22px;
    border-radius: 999px;
}

/* ==========================================================================
   Wavy separators (static)
   ========================================================================== */
.wave-separator {
    position: relative;
    width: 100%;
    height: 60px;
    line-height: 0;
    overflow: hidden;
    transform: rotate(180deg);
}

.wave-separator svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-separator--down {
    fill: var(--color-white);
}

.wave-separator--down .wave-path--alt {
    opacity: 0.7;
}

.wave-separator--up {
    fill: var(--color-bg);
}

.wave-separator--up .wave-path--alt {
    opacity: 0.7;
}

.wave-separator--dark {
    fill: var(--color-primary);
    background-color: var(--color-primary);
    margin-bottom: -2px;
}

.wave-separator--dark .wave-path,
.wave-separator--dark .wave-path--alt {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .pattern-accent {
        animation: none;
    }
}

/* ==========================================================================
   Section Pattern Accents (single instance, no repeat, responsive)
   ========================================================================== */
.pattern-accent {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background-image: url('../images/pattern.svg');
    background-repeat: no-repeat;
    filter: brightness(0) saturate(0);
    animation: pattern-pulse 6s ease-in-out infinite alternate;
}

/* Vertical left (About section) — single pattern, faded edge */
.pattern-vertical-left {
    top: 0;
    left: 0;
    width: clamp(72px, 22vw, 250px);
    max-width: 35%;
    height: 100%;
    background-position: left center;
    background-size: 100% auto;
    opacity: 0.045;
    -webkit-mask-image: linear-gradient(to right, black 20%, transparent 85%);
    mask-image: linear-gradient(to right, black 20%, transparent 85%);
}

/* Horizontal bottom (Goals section) — single pattern */
.pattern-horizontal-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: min(90vw, 600px);
    height: clamp(80px, 15vw, 160px);
    background-position: center bottom;
    background-size: 80% auto;
    opacity: 0.04;
    -webkit-mask-image: linear-gradient(to top, black 25%, transparent 90%);
    mask-image: linear-gradient(to top, black 25%, transparent 90%);
}

/* Strip top left (Featured Ad section) */
.pattern-strip-top-left {
    top: clamp(24px, 4vw, 40px);
    left: 0;
    width: min(clamp(120px, 35vw, 380px), 100%);
    height: clamp(24px, 4vw, 40px);
    background-position: left center;
    background-size: 100% 100%;
    opacity: 0.05;
    -webkit-mask-image: linear-gradient(to right, black 15%, transparent 95%);
    mask-image: linear-gradient(to right, black 15%, transparent 95%);
}

/* Strip bottom right (Featured Ad section) */
.pattern-strip-bottom-right {
    bottom: clamp(24px, 4vw, 40px);
    right: 0;
    width: min(clamp(120px, 35vw, 380px), 100%);
    height: clamp(24px, 4vw, 40px);
    background-position: right center;
    background-size: 100% 100%;
    opacity: 0.05;
    -webkit-mask-image: linear-gradient(to left, black 15%, transparent 95%);
    mask-image: linear-gradient(to left, black 15%, transparent 95%);
}

/* ==========================================================================
   About — blur shapes + equal cards
   ========================================================================== */
#about {
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

#about .container { position: relative; z-index: 2; }

/* Blurry animated shapes */
.about-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.about-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    will-change: transform;
}

.about-blur--1 {
    width: min(380px, 35vw);
    height: min(380px, 35vw);
    top: -8%;
    right: -5%;
    background: var(--color-primary);
}

.about-blur--2 {
    width: min(280px, 28vw);
    height: min(280px, 28vw);
    top: 25%;
    left: -6%;
    background: var(--color-accent);
    opacity: 0.2;
}

.about-blur--3 {
    width: min(320px, 30vw);
    height: min(320px, 30vw);
    bottom: -5%;
    right: 15%;
    background: var(--color-primary);
    opacity: 0.25;
}

.about-blur--4 {
    width: min(200px, 20vw);
    height: min(200px, 20vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-accent);
    opacity: 0.12;
}

.about-blur--5 {
    width: min(260px, 25vw);
    height: min(260px, 25vw);
    bottom: 15%;
    left: -4%;
    background: var(--color-primary);
    opacity: 0.18;
}

@media (prefers-reduced-motion: reduce) {
    .about-blur {
        animation: none;
    }
}

.about-intro {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    text-align: center;
    line-height: 2;
    margin-bottom: clamp(40px, 6vw, 56px);
    max-width: 820px;
    margin-inline: auto;
    color: var(--color-text);
}

/* Equal cards grid */
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 28px);
    align-items: stretch;
}

.about-card {
    background: var(--color-white);
    padding: clamp(28px, 4vw, 40px);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(var(--color-primary-rgb), 0.06);
    border: 1px solid rgba(var(--color-primary-rgb), 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 220px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(var(--color-primary-rgb), 0.12);
    border-color: rgba(var(--color-primary-rgb), 0.12);
}

.about-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card__icon svg {
    width: 100%;
    height: 100%;
}

.about-card__icon--wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-card__icon-inner {
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: var(--color-primary);
}


/* About card icons: original SVG files, no borders */
.about-card__icon--wrap .about-card__icon-img {
    width: 100%;
    height: 100%;
    min-width: 44px;
    object-fit: contain;
}

.about-card__title {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.45;
}

.about-card__number {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 700;
    color: var(--color-accent);
    direction: ltr;
    font-family: Arial, var(--font-main);
    margin-top: auto;
}

/* ==========================================================================
   Goals
   ========================================================================== */
#goals {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

#goals .container { position: relative; z-index: 2; }

.goals-card {
    max-width: 860px;
    margin-inline: auto;
    background: var(--color-white);
    padding: clamp(35px, 5vw, 60px);
    border-radius: var(--radius);
    box-shadow: 0 8px 50px rgba(var(--color-primary-rgb), 0.06);
    position: relative;
    overflow: hidden;
}

.goals-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
}

.goals-card p {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    text-align: center;
    line-height: 2.1;
    color: var(--color-text);
}

.goals-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.08);
    margin-inline: auto;
    margin-bottom: 28px;
    color: var(--color-primary);
}

.goals-icon svg {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   Featured Ad
   ========================================================================== */
#featured-ad {
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

#featured-ad .container { position: relative; z-index: 2; }

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
}

/* يطابق مقاس الصورة المقترَح في لوحة الإدارة (عرض × ارتفاع عبر :root في index.php) */
.featured-image {
    --fa-w: var(--featured-ad-aspect-w, 1200);
    --fa-h: var(--featured-ad-aspect-h, 630);
    width: 100%;
    aspect-ratio: var(--fa-w) / var(--fa-h);
    max-height: min(58vh, 560px);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(var(--color-primary-rgb), 0.15);
    background-image: var(--featured-bg, url('../images/post.jpg'));
    background-size: cover;
    background-position: center;
}

.featured-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    filter: blur(14px);
    transform: scale(1.06);
    transform-origin: center;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    position: relative;
    z-index: 1;
}

.featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    border-radius: var(--radius);
    pointer-events: none;
}

.featured-content {
    padding-block: 20px;
}

.featured-content h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin-bottom: 0.5em;
    color: var(--color-primary);
}

.featured-content h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin-top: 12px;
    border-radius: 2px;
}

.featured-content > p {
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 2;
    margin-bottom: 0.8em;
}

.featured-contact {
    margin-top: 28px;
    padding: 20px 24px;
    background: var(--color-bg);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.featured-contact span {
    font-weight: 400;
    font-size: 0.95rem;
}

/* Featured carousel (viewport LTR for transform math; slides RTL for text) */
.featured-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(var(--color-primary-rgb), 0.65);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    max-width: 520px;
    margin-inline: auto;
}

.featured-carousel-shell {
    margin-top: 12px;
}

.featured-carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius);
    touch-action: manipulation;
    container-type: inline-size;
    container-name: feat-vp;
}

.featured-carousel__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.featured-carousel__slide {
    flex: 0 0 100cqw;
    width: 100cqw;
    max-width: 100cqw;
    flex-shrink: 0;
}

@supports not (width: 100cqw) {
    .featured-carousel__slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
    }
}

.featured-carousel__arrow {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background var(--transition), border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.1);
}

.featured-carousel__arrow:hover {
    background: rgba(var(--color-primary-rgb), 0.1);
    border-color: rgba(var(--color-primary-rgb), 0.22);
}

.featured-carousel__arrow:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.featured-carousel__arrow--prev {
    right: clamp(8px, 2vw, 16px);
}

.featured-carousel__arrow--next {
    left: clamp(8px, 2vw, 16px);
}

.featured-carousel__dots-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.featured-carousel__dots {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.featured-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.2);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.featured-carousel__dot:hover {
    background: rgba(var(--color-primary-rgb), 0.35);
}

.featured-carousel__dot.is-active {
    background: var(--color-accent);
    transform: scale(1.15);
    width: 22px;
    border-radius: 999px;
}

.phone-link {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary);
    direction: ltr;
    font-family: Arial, var(--font-main);
    transition: color var(--transition);
}

.phone-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Footer / Contact
   ========================================================================== */
#contact {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
    padding-block: var(--section-py);
    margin-top: -2px;
}


/* Footer: pattern lighter than gradient, transparent, glow on each SVG element */
.footer-pattern-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5%;
    width: min(85vw, 600px);
    height: clamp(70px, 12vw, 100px);
    z-index: 0;
    pointer-events: none;
    background-image: url('../images/pattern_2.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.5;
    mix-blend-mode: lighten;
    filter:
        brightness(3.5) saturate(0)
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.7))
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.4))
        drop-shadow(0 0 24px rgba(255, 255, 255, 0.25));
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact .section-header h2 {
    color: var(--color-white);
}

#contact .accent-line {
    background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(40px, 6vw, 80px);
    margin-bottom: 50px;
}

.footer-col h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-item i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--color-white);
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-numbers a {
    direction: ltr;
    display: inline-block;
    font-family: Arial, var(--font-main);
    letter-spacing: 0.03em;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    color: var(--color-white);
    font-size: 1.15rem;
    transition: all var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.28);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* WhatsApp CTA */
.whatsapp-section {
    text-align: center;
    padding-top: 20px;
    margin-bottom: 50px;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    border-color: #25D366;
    padding: 16px 50px;
    font-size: 1.05rem;
    gap: 12px;
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 300;
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
    color: var(--color-white);
}

/* ==========================================================================
   Geometric Decorations
   ========================================================================== */
.geo-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.08);
    pointer-events: none;
    z-index: 0;
}

.geo-corner--tr {
    top: 30px;
    left: 30px;
    border-bottom: none;
    border-right: none;
}

.geo-corner--bl {
    bottom: 30px;
    right: 30px;
    border-top: none;
    border-left: none;
}

/* ==========================================================================
   GSAP Reveal Helpers
   ========================================================================== */
.gs-reveal {
    visibility: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

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

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

    .pattern-vertical-left {
        width: clamp(100px, 20vw, 200px);
    }

    .pattern-horizontal-bottom {
        max-width: 95vw;
        height: clamp(60px, 12vw, 120px);
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 68px;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(var(--color-primary-rgb), 0.6);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: 200px;
    }

    .featured-image {
        max-height: min(50vh, 420px);
    }

    .social-links {
        margin-top: 10px;
    }

    .pattern-vertical-left {
        width: 100px;
    }

    .pattern-horizontal-bottom {
        height: 70px;
        max-width: 100%;
    }

    .pattern-strip-top-left,
    .pattern-strip-bottom-right {
        width: 160px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .btn {
        padding: 13px 30px;
        font-size: 0.92rem;
    }

    .hero-content .btn {
        padding: 14px 36px;
    }

    .goals-card {
        padding: 28px 22px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }

    .pattern-vertical-left {
        width: 72px;
    }

    .pattern-horizontal-bottom {
        height: 56px;
    }

    .pattern-strip-top-left,
    .pattern-strip-bottom-right {
        width: 120px;
        height: 22px;
    }
}
