/* ============================================================
   Huda Interior — Shared Theme (homepage, about, etc.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('footer.css');

:root {
    --huda-dark: #1a1a1a;
    --huda-charcoal: #2d2d2d;
    --huda-gold: #b8956a;
    --huda-gold-light: #d4b896;
    --huda-cream: #f7f5f2;
    --huda-warm-white: #faf9f7;
    --huda-text: #5c5c5c;
    --huda-text-light: #8a8a8a;
    --huda-border: #e8e4df;
    --huda-white: #ffffff;
    --huda-shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
    --huda-shadow-lg: 0 12px 48px rgba(26, 26, 26, 0.12);
    --huda-radius: 16px;
    --huda-radius-sm: 10px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.huda-theme {
    font-family: var(--font-body);
    color: var(--huda-dark);
    background: var(--huda-warm-white);
}

.huda-theme h1,
.huda-theme h2,
.huda-theme h3,
.huda-theme h4 {
    font-family: var(--font-display);
    font-weight: 500;
}

/* ---- Sections ---- */
.hi-section {
    padding: 5rem 0;
}

.hi-section--cream {
    background: var(--huda-cream);
}

.hi-section--dark {
    background: var(--huda-dark);
    color: var(--huda-white);
}

.hi-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.hi-section-header--left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.hi-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--huda-gold);
    margin-bottom: 0.75rem;
}

.hi-section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: inherit;
}

.hi-section-header p {
    font-size: 1.05rem;
    color: var(--huda-text);
    line-height: 1.7;
    margin: 0;
}

.hi-section--dark .hi-section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Buttons ---- */
.hi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.hi-btn--primary {
    background: var(--huda-gold);
    color: var(--huda-white);
    border-color: var(--huda-gold);
}

.hi-btn--primary:hover {
    background: var(--huda-dark);
    border-color: var(--huda-dark);
    color: var(--huda-white);
    transform: translateY(-2px);
    box-shadow: var(--huda-shadow);
}

.hi-btn--outline {
    background: transparent;
    color: var(--huda-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.hi-btn--outline:hover {
    background: var(--huda-white);
    color: var(--huda-dark);
    border-color: var(--huda-white);
}

.hi-btn--dark {
    background: var(--huda-dark);
    color: var(--huda-white);
    border-color: var(--huda-dark);
}

.hi-btn--dark:hover {
    background: var(--huda-gold);
    border-color: var(--huda-gold);
    color: var(--huda-white);
    transform: translateY(-2px);
}

.hi-btn--light {
    background: var(--huda-white);
    color: var(--huda-dark);
    border-color: var(--huda-white);
}

.hi-btn--light:hover {
    background: var(--huda-gold);
    border-color: var(--huda-gold);
    color: var(--huda-white);
}

/* ---- Navbar (inner pages + shared) ---- */
.huda-theme .navbar {
    background: rgba(26, 26, 26, 0.55) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 0.75rem 0;
    position: relative;
    z-index: 1030;
}

.huda-theme .hi-navbar-scrolled {
    background: rgba(26, 26, 26, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}

.huda-theme .navbar .nav-link,
.huda-theme .navbar .navbar-brand,
.huda-theme .navbar .dropdown-toggle,
.huda-theme .hi-navbar-scrolled .nav-link,
.huda-theme .hi-navbar-scrolled .navbar-brand,
.huda-theme .hi-navbar-scrolled .dropdown-toggle {
    color: #ffffff !important;
}

.huda-theme .navbar .dropdown-toggle {
    text-decoration: none !important;
    box-shadow: none !important;
}

.huda-theme .navbar .dropdown-toggle::after {
    border-top-color: #ffffff;
}

.huda-theme .navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.75);
}

.huda-theme .navbar .navbar-toggler .fas {
    color: #ffffff !important;
}

.huda-theme .navbar .btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    background: transparent;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.25rem;
}

.huda-theme .navbar .btn-outline-light:hover {
    background: #ffffff !important;
    color: var(--huda-dark) !important;
}

.huda-theme .navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.huda-theme .navbar-nav .nav-link:hover,
.huda-theme .navbar-nav .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px;
    text-shadow: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .huda-theme .navbar .navbar-collapse.show,
    .huda-theme .navbar .navbar-collapse.collapsing {
        background: rgba(26, 26, 26, 0.96);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
    }
}

/* ---- Stats ---- */
.hi-stats {
    background: var(--huda-white);
    border-radius: var(--huda-radius);
    box-shadow: var(--huda-shadow-lg);
    position: relative;
    z-index: 2;
    padding: 0;
    overflow: hidden;
}

.hi-stats--overlap {
    margin-top: -3rem;
}

.hi-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hi-stats__item {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid var(--huda-border);
    transition: var(--transition);
}

.hi-stats__item:last-child {
    border-right: none;
}

.hi-stats__item:hover {
    background: var(--huda-cream);
}

.hi-stats__number {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--huda-gold);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hi-stats__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--huda-text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ---- Why cards ---- */
.hi-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hi-why-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--huda-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.hi-why-card--light {
    background: var(--huda-white);
    border-color: var(--huda-border);
    box-shadow: var(--huda-shadow);
}

.hi-why-card:hover {
    transform: translateY(-4px);
}

.hi-why-card--light:hover {
    box-shadow: var(--huda-shadow-lg);
    border-color: var(--huda-gold-light);
}

.hi-why-card__icon {
    font-size: 1.75rem;
    color: var(--huda-gold);
    margin-bottom: 1rem;
}

.hi-why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.hi-why-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.hi-why-card:not(.hi-why-card--light) h3 {
    color: var(--huda-white);
}

.hi-why-card:not(.hi-why-card--light) p {
    color: rgba(255, 255, 255, 0.65);
}

.hi-why-card--light h3 {
    color: var(--huda-dark);
}

.hi-why-card--light p {
    color: var(--huda-text);
}

/* ---- Testimonials ---- */
.hi-testimonial-card {
    background: var(--huda-white);
    border-radius: var(--huda-radius);
    overflow: hidden;
    box-shadow: var(--huda-shadow);
    height: 100%;
}

.hi-testimonial-card__video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.hi-testimonial-card__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hi-testimonial-card__body {
    padding: 1.75rem;
}

.hi-testimonial-card__stars {
    color: var(--huda-gold);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.hi-testimonial-card__body p {
    font-size: 0.95rem;
    color: var(--huda-text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}

.hi-testimonial-card__author {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--huda-dark);
}

.hi-testimonial-card__location {
    font-size: 0.8rem;
    color: var(--huda-text-light);
}

/* ---- CTA ---- */
.hi-cta {
    position: relative;
    border-radius: var(--huda-radius);
    overflow: hidden;
    max-width: 100%;
}

.hi-cta__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.88), rgba(26, 26, 26, 0.7)),
        url(https://images.unsplash.com/photo-1578991624414-276ef23a534f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1927&q=80) center / cover;
}

.hi-cta__content {
    position: relative;
    z-index: 1;
    padding: 4rem 3rem;
    text-align: center;
    color: var(--huda-white);
}

.hi-cta__content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hi-cta__content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hi-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Theme responsive ---- */
@media (max-width: 991px) {
    .hi-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hi-stats__item:nth-child(2) {
        border-right: none;
    }

    .hi-stats__item:nth-child(1),
    .hi-stats__item:nth-child(2) {
        border-bottom: 1px solid var(--huda-border);
    }

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

@media (max-width: 767px) {
    .hi-section {
        padding: 3.5rem 0;
    }

    .hi-stats--overlap {
        margin-top: -2rem;
    }

    .hi-why__grid {
        grid-template-columns: 1fr;
    }

    .hi-cta__content {
        padding: 3rem 1.5rem;
    }
}
