/* ============================================================
   SUFI SAINTS — style.css (Home Page)
   Aesthetic: Mystical Islamic Art · Deep Jewel Tones · Gold Accents
   ============================================================ */

/* ================= FONTS ================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ================= CSS VARIABLES ================= */

:root {
    --deep-navy:    #0a1628;
    --royal-blue:   #0d2246;
    --midnight:     #050e1f;
    --gold:         #c9a84c;
    --gold-light:   #e8c97a;
    --gold-pale:    #f5e6b8;
    --cream:        #fdf6e3;
    --text-dark:    #1a1a2e;
    --text-mid:     #4a4a6a;
    --text-light:   #8a8aaa;
    --white:        #ffffff;
    --shadow-gold:  0 4px 24px rgba(201,168,76,0.18);
    --shadow-deep:  0 8px 40px rgba(5,14,31,0.35);
    --border-gold:  1px solid rgba(201,168,76,0.35);
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    28px;
    --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET & BASE ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ================= ORNAMENTAL DIVIDER ================= */

.ornament {
    text-align: center;
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 8px;
    margin: 10px 0;
    opacity: 0.7;
}

/* ================= HEADER ================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--midnight);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 30px rgba(201,168,76,0.15);
}

/* HEADER PATTERN OVERLAY */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(201,168,76,0.03) 20px,
            rgba(201,168,76,0.03) 40px
        );
    pointer-events: none;
}

/* HEADER CONTAINER */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    position: relative;
}

/* LOGO */
.logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2), var(--shadow-gold);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    box-shadow: 0 0 0 4px rgba(201,168,76,0.5), var(--shadow-gold);
    transform: rotate(5deg);
}

/* TITLE */
.heading-title {
    flex: 1;
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(201,168,76,0.5);
    letter-spacing: 2px;
}

/* NAVBAR DESKTOP */
nav {
    display: flex;
    align-items: center;
}

.navbar {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.navbar li {
    list-style: none;
}

.navbar a {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    display: block;
}

.navbar a:hover,
.navbar a.active {
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.08);
    text-shadow: 0 0 12px rgba(201,168,76,0.4);
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(201,168,76,0.3);
    transition: var(--transition);
}

.hamburger:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================= HERO SECTION ================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 80px 60px;
    background: linear-gradient(135deg, var(--midnight) 0%, var(--royal-blue) 60%, #1a3a6b 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Hero geometric pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(201,168,76,0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, transparent 30deg, rgba(201,168,76,0.02) 30deg, rgba(201,168,76,0.02) 31deg);
    pointer-events: none;
}

/* Decorative border lines */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
    animation: fadeSlideIn 0.9s ease both;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-content h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(201,168,76,0.4);
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.88);
    margin-bottom: 16px;
}

.hero-content ul {
    padding-left: 0;
    list-style: none;
}

.hero-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    color: rgba(255,255,255,0.85);
    position: relative;
}

.hero-content ul li::before {
    content: '✦';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    top: 4px;
}

/* HERO IMAGE */
.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeSlideIn 0.9s 0.2s ease both;
}

.hero-image img {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(201,168,76,0.4);
    box-shadow:
        0 0 0 6px rgba(201,168,76,0.1),
        var(--shadow-deep);
}

/* ================= SECTIONS ================= */

section {
    padding: 60px 20px;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--royal-blue);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

h3 {
    font-family: 'Cinzel', serif;
    color: var(--royal-blue);
    margin-top: 20px;
    font-size: 1.2rem;
}

/* ================= BOOK CAROUSEL ================= */

.book-carousel-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 40px 30px;
    padding: 50px 30px;
    box-shadow: var(--shadow-gold), 0 2px 0 var(--gold);
    border: var(--border-gold);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.book-carousel-section::before {
    content: '✦  ✦  ✦';
    display: block;
    color: var(--gold);
    letter-spacing: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.book-carousel-section h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    color: var(--royal-blue);
    margin-bottom: 30px;
}

.carousel-inner img {
    max-height: 380px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: var(--border-gold);
    box-shadow: var(--shadow-deep);
}

/* ================= AUTHOR SECTION ================= */

.author-section {
    background: linear-gradient(135deg, #f0ebe0, #fdf6e3);
    border-radius: var(--radius-lg);
    margin: 40px 30px;
    padding: 50px 40px;
    border: var(--border-gold);
    position: relative;
}

.author-section h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--royal-blue);
}

.author-photo {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    margin: 20px 0;
    border: 3px solid var(--gold);
    object-fit: cover;
    box-shadow: var(--shadow-gold), var(--shadow-deep);
    transition: var(--transition);
}

.author-photo:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 5px rgba(201,168,76,0.3), var(--shadow-deep);
}

/* ================= TESTIMONIALS ================= */

.testimonials {
    background: var(--white);
    margin: 40px 30px;
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    border: var(--border-gold);
    box-shadow: var(--shadow-gold);
    text-align: center;
}

.testimonials h2 {
    font-family: 'Cinzel Decorative', serif;
    margin-bottom: 12px;
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 36px;
}

.testimonial {
    background: linear-gradient(160deg, #fdfaf3, #fff);
    padding: 24px 20px;
    border-radius: var(--radius-md);
    border: var(--border-gold);
    box-shadow: 0 3px 16px rgba(201,168,76,0.1);
    transition: var(--transition);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-family: 'Cinzel Decorative', serif;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 14px;
    line-height: 1;
}

.testimonial:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold), 0 12px 30px rgba(201,168,76,0.15);
    border-color: var(--gold);
}

.testimonial p {
    font-style: italic;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

.testimonial h4 {
    margin-top: 14px;
    font-family: 'Cinzel', serif;
    color: var(--royal-blue);
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

/* ================= MENTORS & PATRONS ================= */

.mentors-section {
    --deep-green: #0f3d2e;
    --deep-green-light: #1a5c44;
    background: linear-gradient(160deg, #f6f2e4 0%, var(--cream) 100%);
    margin: 40px 30px;
    padding: 60px 30px 70px;
    border-radius: var(--radius-lg);
    border: var(--border-gold);
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.mentors-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(15,61,46,0.05) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(201,168,76,0.08) 0%, transparent 45%);
    pointer-events: none;
}

.mentors-heading {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto 50px;
}

.mentors-heading h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--deep-green);
    font-size: 2rem;
    margin: 6px 0 14px;
}

.mentors-subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.8;
}

/* GRID */
.mentors-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* CARD */
.mentor-card {
    background: linear-gradient(170deg, #ffffff, #fdfaf2);
    border: var(--border-gold);
    border-radius: var(--radius-md);
    padding: 30px 24px 28px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(15,61,46,0.08);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(28px);
}

.mentor-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mentor-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 16px 36px rgba(15,61,46,0.16), var(--shadow-gold);
}

/* PHOTO */
.mentor-photo-wrap {
    width: 130px;
    height: 130px;
    margin: 0 auto 18px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold), var(--deep-green));
    box-shadow: var(--shadow-gold);
}

.mentor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--cream);
    display: block;
    transition: var(--transition);
}

.mentor-card:hover .mentor-photo {
    transform: scale(1.05);
}

/* TEXT */
.mentor-name {
    font-family: 'Cinzel', serif;
    color: var(--deep-green);
    font-size: 1.15rem;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.mentor-designation {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.4px;
    margin: 8px 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.5;
}

.mentor-designation i {
    color: var(--deep-green-light);
}

.mentor-desc {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 20px;
    min-height: 80px;
}

/* VIDEO */
.mentor-video-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.3);
    margin-bottom: 22px;
    background: var(--midnight);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.mentor-video-wrap video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    background: var(--midnight);
}

/* BUTTON */
.know-more-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--midnight);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border: none;
    padding: 10px 26px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

.know-more-btn:hover {
    background: linear-gradient(135deg, var(--deep-green-light), var(--deep-green));
    color: var(--gold-pale);
    box-shadow: 0 8px 22px rgba(15,61,46,0.35);
    transform: translateY(-2px);
}

.know-more-btn i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.know-more-btn:hover i {
    transform: translateX(3px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mentors-section {
        margin: 20px 12px;
        padding: 40px 18px 50px;
    }

    .mentors-heading h2 {
        font-size: 1.5rem;
    }

    .mentor-desc {
        min-height: unset;
    }
}

@media (max-width: 480px) {
    .mentors-grid {
        grid-template-columns: 1fr;
    }

    .mentor-photo-wrap {
        width: 110px;
        height: 110px;
    }
}

/* ================= FOOTER ================= */

footer {
    background: linear-gradient(180deg, var(--midnight) 0%, #020914 100%);
    color: var(--gold-pale);
    border-top: 2px solid var(--gold);
    position: relative;
    width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 50px;
    padding: 50px;
    align-items: flex-start;
}

/* FOOTER SECTION */
.footer-section {
    min-width: 0;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.footer-section p,
.footer-section ul {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
}

/* NAVIGATION */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(201,168,76,0.85);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

/* STORE LIST */
.store-list {
    display: grid;
    grid-template-columns: 180px 1fr 1fr 1fr;
    gap: 25px;
    align-items: flex-start;
}

.store-list h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold-light);
    line-height: 1.2;
    margin: 0;
}

.store-list p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(201,168,76,0.15);
    padding: 18px 10px;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    margin: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

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

    .store-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .store-list h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {

    .footer-content {
        padding: 40px 25px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section ul,
    .store-list p {
        font-size: 0.9rem;
    }

    .store-list h1 {
        font-size: 1.8rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .heading-title {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .navbar {
        width: 100%;
        background: var(--midnight);
        border-top: 1px solid rgba(201,168,76,0.3);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .navbar.active {
        max-height: 500px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .navbar li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(201,168,76,0.1);
    }

    .navbar a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        border: none;
        font-size: 0.85rem;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-image img {
        max-width: 260px;
    }

    .book-carousel-section,
    .author-section,
    .testimonials {
        margin: 20px 12px;
        padding: 30px 18px;
    }

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

    .author-photo {
        width: 120px;
        height: 120px;
    }

    .footer-content {
        padding: 30px 20px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        width: 100%;
    }

    .store-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 46px;
        height: 46px;
    }

    .heading-title {
        font-size: 0.95rem;
    }

    .navbar a {
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-content h2 {
        font-size: 1.25rem;
    }

    .testimonial {
        padding: 18px 14px;
    }

    .store img {
        width: 55px;
        height: 55px;
    }

    .footer-bottom {
        font-size: 0.72rem;
        padding: 10px 0;
    }
}
