/* ============================================================
   NOZOLY — Brand Stylesheet (v2)
   Palette from brand identity:
   teal #0b92a2 · navy #164076 · mint #8bc9ba · light #e0f7fa · lemon #DADE80
   ============================================================ */

:root {
    --teal: #0b92a2;
    --teal-dark: #077280;
    --navy: #164076;
    --navy-dark: #0e2c53;
    --mint: #8bc9ba;
    --light: #e0f7fa;
    --lemon: #DADE80;
    --ink: #1c2733;
    --muted: #5d6b7a;
    --bg: #ffffff;
    --bg-soft: #f3f9fa;
    --line: #e3edf0;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(22, 64, 118, .08);
    --shadow-lg: 0 16px 48px rgba(22, 64, 118, .16);
    --font-ar: 'Tajawal', 'RB', 'Segoe UI', sans-serif;
    --font-en: 'Poppins', 'Segoe UI', sans-serif;
}

@font-face {
    font-family: 'RB';
    src: url('../font/RB Regular.ttf') format('truetype');
    font-display: swap;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-ar);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.75;
    overflow-x: hidden;
}

html[lang="en"] body { font-family: var(--font-en); }

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }

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

.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
    display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em;
    color: var(--teal); background: var(--light); border-radius: 999px; padding: 6px 18px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.section-head h2 .accent { color: var(--teal); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.divider {
    width: 64px; height: 4px; border: 0; border-radius: 4px; margin: 18px auto 0;
    background: linear-gradient(90deg, var(--teal), var(--mint));
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: 1rem;
    border: 2px solid transparent; transition: all .25s ease; font-family: inherit;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; inset-inline: 0; top: 0; z-index: 1000;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
    padding: 18px 0; background: linear-gradient(rgba(14, 44, 83, .55), transparent);
}
.navbar.scrolled { background: #fff; box-shadow: 0 2px 18px rgba(22, 64, 118, .12); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo img { height: 46px; transition: height .3s; }
.navbar:not(.scrolled) .logo-color { display: none; }
.navbar.scrolled .logo-white { display: none; }
.navbar.scrolled .nav-logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #fff; font-weight: 500; position: relative; padding-bottom: 4px; }
.navbar.scrolled .nav-links a { color: var(--navy); }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; inset-inline-start: 0; height: 2px; width: 0;
    background: var(--teal); transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-cta {
    background: var(--teal); color: #fff !important; padding: 9px 22px; border-radius: 999px; font-weight: 700;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--teal-dark); }
.lang-switch {
    border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 16px; font-weight: 700; font-size: .9rem;
}
.nav-toggle {
    display: none; background: none; border: 0; font-size: 1.7rem; color: #fff; cursor: pointer;
}
.navbar.scrolled .nav-toggle { color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    background: url('../img/haram.webp') center/cover no-repeat;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(14, 44, 83, .82) 0%, rgba(11, 146, 162, .55) 100%);
}
.hero-content { position: relative; text-align: center; color: #fff; width: min(860px, 92%); margin-inline: auto; }
.hero-content .kicker {
    display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px); border-radius: 999px; padding: 8px 22px; font-weight: 600; margin-bottom: 22px;
}
.hero-content h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: 16px; }
.hero-content h1 .accent { color: var(--lemon); }
.hero-content p { font-size: clamp(1.05rem, 2vw, 1.35rem); opacity: .92; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 26px; inset-inline: 0; text-align: center; color: #fff; font-size: 1.5rem;
    animation: bob 2s infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Page hero (subpages) */
.page-hero {
    padding: 170px 0 90px; position: relative; color: #fff; text-align: center;
    background: linear-gradient(150deg, var(--navy) 0%, var(--teal) 100%);
    overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
    background: rgba(255, 255, 255, .06); top: -180px; inset-inline-end: -120px;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); position: relative; z-index: 1; }
.page-hero p { opacity: .9; max-width: 640px; margin: 10px auto 0; position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.feature-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-card img { height: 210px; width: 100%; object-fit: cover; }
.feature-card .body { padding: 24px; }
.feature-card h3 { color: var(--teal); font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .98rem; }

.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px;
    text-align: center; transition: all .3s; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--mint)); transform: scaleX(0); transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 70px; height: 70px; margin: 0 auto 18px; display: grid; place-items: center;
    border-radius: 20px; background: var(--light); color: var(--teal); font-size: 1.9rem;
    transition: all .3s;
}
.service-card:hover .service-icon { background: var(--teal); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Stats ---------- */
.stats {
    background: linear-gradient(140deg, var(--navy) 0%, var(--teal-dark) 100%);
    border-radius: 24px; padding: 54px 34px; color: #fff;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center;
    position: relative; overflow: hidden;
}
.stats::before {
    content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255, 255, 255, .05); bottom: -140px; inset-inline-start: -80px;
}
.stat-item i { font-size: 2rem; color: var(--lemon); }
.stat-item .num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; }
.stat-item p { opacity: .85; }

/* ---------- Quote band ---------- */
.quote-band {
    background: linear-gradient(90deg, var(--light), #fdfef0);
    border-inline-start: 6px solid var(--teal);
    border-radius: var(--radius); padding: 34px 40px; text-align: center;
}
.quote-band p { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 700; color: var(--navy); }
.quote-band i { color: var(--teal); font-size: 1.6rem; }

/* ---------- Gifts / gallery ---------- */
.gift-card {
    border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow);
    aspect-ratio: 4 / 3; cursor: pointer;
}
.gift-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gift-card:hover img { transform: scale(1.07); }
.gift-card .cap {
    position: absolute; inset-inline: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-weight: 600;
    background: linear-gradient(transparent, rgba(14, 44, 83, .85));
}
.hidden-item { display: none; }
.hidden-item.open { display: block; }

/* ---------- Gallery filters ---------- */
.filter-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
    background: #fff; border: 2px solid var(--line); border-radius: 999px; cursor: pointer;
    padding: 9px 24px; font-weight: 700; color: var(--muted); font-family: inherit; font-size: .95rem;
    transition: all .25s;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid .gift-card.filtered-out { display: none; }
@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partners-track { overflow: hidden; position: relative; }
.partners-row {
    display: flex; align-items: center; gap: 48px; width: max-content;
    animation: marquee 36s linear infinite;
}
.partners-track:hover .partners-row { animation-play-state: paused; }
.partners-row img {
    height: 74px; width: auto; object-fit: contain;
    filter: grayscale(1); opacity: .65; transition: all .3s;
}
.partners-row img:hover { filter: none; opacity: 1; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
html[dir="rtl"] .partners-row { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-inline-start: 40px; }
.timeline::before {
    content: ''; position: absolute; inset-block: 8px; inset-inline-start: 14px; width: 3px;
    background: linear-gradient(var(--teal), var(--mint)); border-radius: 3px;
}
.timeline-item { position: relative; padding-bottom: 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-icon {
    position: absolute; inset-inline-start: -40px; top: 2px; width: 32px; height: 32px;
    background: var(--teal); color: #fff; border-radius: 50%; display: grid; place-items: center;
    font-size: .95rem; box-shadow: 0 0 0 5px var(--light);
}
.timeline-item h3 { font-size: 1.12rem; color: var(--teal); margin-bottom: 6px; }
.timeline-item p { color: var(--muted); }

/* ---------- Carousel (about) ---------- */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.carousel .slide { display: none; position: relative; }
.carousel .slide.active { display: block; animation: fadeIn .6s; }
.carousel .slide img { width: 100%; height: clamp(280px, 46vw, 520px); object-fit: cover; }
.carousel .slide .cap {
    position: absolute; inset-inline: 0; bottom: 0; color: #fff; padding: 40px 26px 20px;
    background: linear-gradient(transparent, rgba(14, 44, 83, .88));
}
.carousel .slide .cap h3 { color: #fff; margin-bottom: 4px; }
.carousel .ctrl {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    background: rgba(255, 255, 255, .85); border: 0; width: 42px; height: 42px; border-radius: 50%;
    font-size: 1.1rem; color: var(--navy); cursor: pointer; transition: background .2s;
}
.carousel .ctrl:hover { background: #fff; }
.carousel .prev { inset-inline-start: 14px; }
.carousel .next { inset-inline-end: 14px; }
.carousel .dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.carousel .dots button {
    width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .5);
}
.carousel .dots button.active { background: var(--lemon); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Team ---------- */
.team-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    text-align: center; transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card .photo { background: linear-gradient(160deg, var(--light), #fff); }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.team-card .body { padding: 20px 16px 24px; }
.team-card h3 { font-size: 1.08rem; color: var(--teal); }
.team-card p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Brands ---------- */
.brand-tabs { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.brand-tab {
    background: #fff; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer;
    padding: 16px 22px 12px; text-align: center; transition: all .25s; font-family: inherit;
}
.brand-tab img { height: 62px; width: auto; margin: 0 auto 8px; object-fit: contain; }
.brand-tab span { display: block; font-weight: 700; color: var(--muted); font-size: .92rem; }
.brand-tab.active, .brand-tab:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.brand-tab.active span { color: var(--teal); }
.brand-panel { display: none; }
.brand-panel.active { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; animation: fadeIn .5s; }
.brand-panel img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.brand-panel h3 { color: var(--teal); font-size: 1.5rem; margin-bottom: 12px; }
.brand-panel .desc { color: var(--muted); margin-bottom: 18px; }
.brand-meta { display: grid; gap: 10px; }
.brand-meta li {
    background: var(--bg-soft); border-radius: 10px; padding: 10px 16px; font-size: .95rem;
}
.brand-meta strong { color: var(--navy); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.contact-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px;
    display: flex; flex-direction: column; gap: 22px; justify-content: center;
}
.contact-line { display: flex; gap: 16px; align-items: flex-start; }
.contact-line i {
    flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
    background: var(--light); color: var(--teal); font-size: 1.2rem;
}
.contact-line a, .contact-line span { color: var(--ink); font-weight: 600; }
.contact-line small { display: block; color: var(--muted); font-weight: 400; }
.contact-map iframe {
    width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(140deg, var(--navy), var(--teal)); border-radius: 24px;
    padding: 52px 40px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #cfdcec; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer .about img { height: 74px; margin-bottom: 16px; }
.footer .about p { font-size: .95rem; opacity: .85; max-width: 300px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #cfdcec; font-size: .95rem; transition: color .2s; }
.footer ul a:hover { color: var(--lemon); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s;
}
.footer-social a:hover { background: var(--teal); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; text-align: center; font-size: .9rem; opacity: .8;
}
.footer-bottom a { color: var(--lemon); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; background: rgba(10, 20, 35, .9);
    display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lightbox .close {
    position: absolute; top: 22px; inset-inline-end: 26px; background: none; border: 0;
    color: #fff; font-size: 2rem; cursor: pointer;
}

/* ---------- Back to top ---------- */
#backTop {
    position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--teal); color: #fff; font-size: 1.1rem; box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px);
}
#backTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#backTop:hover { background: var(--navy); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .brand-panel.active { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; inset-inline-end: -290px; width: 280px; height: 100vh;
        background: #fff; flex-direction: column; align-items: flex-start; gap: 8px;
        padding: 90px 28px 30px; box-shadow: var(--shadow-lg); transition: inset-inline-end .35s;
    }
    .nav-links.open { inset-inline-end: 0; }
    .nav-links a { color: var(--navy) !important; width: 100%; padding: 10px 0; }
    .nav-cta { text-align: center; color: #fff !important; }
    body.menu-open::after {
        content: ''; position: fixed; inset: 0; background: rgba(10, 20, 35, .45); z-index: 950;
    }
    .nav-links { z-index: 1001; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .partners-row img { height: 54px; }
}
