/* =====================================================================
   ALKHAYALI WATCHES — الخيالي للساعات
   Luxury Watch Store — Showcase Website
   Author: Senior Full Stack Developer (CBL Academic Project)
   Stack: HTML5 + CSS3 + Vanilla JavaScript (no frameworks)
   ---------------------------------------------------------------------
   TABLE OF CONTENTS
   1.  CSS Variables (Design Tokens)
   2.  Reset & Base
   3.  Typography
   4.  Layout Helpers & Utilities
   5.  Buttons
   6.  Loading Screen
   7.  Scroll Progress Bar
   8.  Header / Navigation
   9.  Hero Section
   10. Section Titles
   11. About Section
   12. Mission / Vision / Values
   13. Featured Collections (Cards)
   14. Brands Section
   15. Why Choose Us
   16. Statistics / Counters
   17. Testimonials
   18. Page Banner (inner pages)
   19. Contact Page
   20. Legal Pages (Privacy / Terms)
   21. Footer
   22. Back To Top Button
   23. Scroll Reveal Animations
   24. Keyframe Animations
   25. Responsive Design (Media Queries)
   ===================================================================== */

/* =====================================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   ===================================================================== */
:root {
    /* Brand colors */
    --color-primary: #111111;
    --color-bg: #ffffff;
    --color-gold: #c9a14a;
    --color-gold-dark: #a8863a;
    --color-gray-light: #f7f7f7;
    --color-border: #e5e5e5;
    --color-text: #111111;
    --color-text-soft: #555555;
    --color-text-muted: #888888;
    --color-white: #ffffff;

    /* Typography */
    --font-en: 'Playfair Display', serif;
    --font-ar: 'Cairo', sans-serif;
    /* Official brand wordmark font (thin spaced caps, per identity sheet) */
    --font-brand: 'Julius Sans One', 'Cairo', sans-serif;
    --font-body: 'Cairo', 'Playfair Display', serif;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 88px;
    --radius: 14px;
    --radius-lg: 22px;

    /* Effects */
    --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
    --shadow-card: 0 18px 45px rgba(17, 17, 17, 0.10);
    --shadow-hover: 0 28px 60px rgba(17, 17, 17, 0.16);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: 0.25s ease;
}

/* =====================================================================
   2. RESET & BASE
   ===================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden; /* prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Accessible focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Screen-reader-only helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard/accessibility */
.skip-link {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 10px 10px;
    z-index: 2000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* =====================================================================
   3. TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-en);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.text-gold {
    color: var(--color-gold);
}

.eng {
    font-family: var(--font-en);
}

/* =====================================================================
   4. LAYOUT HELPERS & UTILITIES
   ===================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--space-xl) 0;
}

.section--gray {
    background-color: var(--color-gray-light);
}

.text-center {
    text-align: center;
}

/* Decorative gold divider line */
.divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark));
    margin: 1.25rem auto 0;
    border-radius: 3px;
}

/* =====================================================================
   5. BUTTONS
   ===================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.95rem 2.4rem;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    background: none;
}

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

.btn--primary:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(201, 161, 74, 0.35);
}

.btn--gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-primary);
    border-color: transparent;
}

.btn--gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(201, 161, 74, 0.45);
}

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

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* =====================================================================
   6. LOADING SCREEN
   ===================================================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Official KK monogram in the loader */
.loader__mark {
    color: var(--color-gold);
    margin-bottom: 1.1rem;
    animation: pulse 1.6s ease-in-out infinite;
}

.loader__logo {
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    letter-spacing: 0.34em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    animation: pulse 1.6s ease-in-out infinite;
}

.loader__ring {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* =====================================================================
   7. SCROLL PROGRESS BAR
   ===================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark));
    z-index: 1600;
    transition: width 0.1s linear;
}

/* =====================================================================
   8. HEADER / NAVIGATION
   ===================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1500;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

/* Sticky state after scrolling */
.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-soft);
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-height);
}

/* Left nav links */
.nav__group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__group--right {
    justify-content: flex-end;
}

.nav__link {
    position: relative;
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 0.4rem 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-gold);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* Centered logo */
.nav__logo {
    text-align: center;
    line-height: 1;
}

/* Official KK monogram above the wordmark */
.nav__logo-mark {
    display: block;
    margin: 0 auto 3px;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.nav__logo:hover .nav__logo-mark {
    color: var(--color-gold);
}

.nav__logo-en {
    display: block;
    font-family: var(--font-brand);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    color: var(--color-primary);
    /* balance the left letter-spacing so text stays centered */
    padding-inline-start: 0.32em;
}

.nav__logo-ar {
    display: block;
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    margin-top: 3px;
}

/* Mobile hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   9. HERO SECTION
   ===================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 161, 74, 0.08), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(201, 161, 74, 0.10), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #faf8f3 100%);
    padding: var(--header-height) 1.5rem var(--space-lg);
}

/* Animated luxury background rings */
.hero__rings {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.hero__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(201, 161, 74, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: floatRing 14s ease-in-out infinite;
}

.hero__ring--1 { width: 420px; height: 420px; }
.hero__ring--2 { width: 620px; height: 620px; animation-delay: -3s; opacity: 0.7; }
.hero__ring--3 { width: 860px; height: 860px; animation-delay: -6s; opacity: 0.45; }

/* Decorative vertical hairlines inspired by luxury branding */
.hero__lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10%;
    pointer-events: none;
}

.hero__lines span {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(201, 161, 74, 0.25), transparent);
}

/* Large outlined KK monograms flanking the hero (from the brand identity) */
.hero__flank {
    position: absolute;
    bottom: -4%;
    width: min(30vw, 430px);
    height: auto;
    aspect-ratio: 104 / 120;
    color: var(--color-primary);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.hero__flank--start { left: -6%; }
.hero__flank--end { right: -6%; }

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

/* KK monogram above the hero wordmark */
.hero__mark {
    display: block;
    margin: 0 auto 1.4rem;
    width: clamp(60px, 9vw, 92px);
    height: auto;
    aspect-ratio: 104 / 120;
    color: var(--color-primary);
    animation: fadeUp 1s ease both;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-ar);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    border-radius: 50px;
    padding: 0.4rem 1.4rem;
    margin-bottom: 2rem;
    animation: fadeUp 1s ease both;
}

.hero__logo {
    font-family: var(--font-brand);
    font-size: clamp(2.4rem, 8.5vw, 5.6rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    padding-inline-start: 0.3em;
    animation: fadeUp 1s ease 0.15s both;
}

.hero__title-ar {
    font-family: var(--font-ar);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1.2rem;
    animation: fadeUp 1s ease 0.3s both;
}

/* Thin line + four-pointed star divider (official lockup) */
.hero__divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 400px;
    margin: 0.2rem auto 1.5rem;
    color: var(--color-gold);
    animation: fadeUp 1s ease 0.4s both;
}

.hero__divider span {
    flex: 1;
    height: 1px;
    background: rgba(180, 150, 90, 0.8);
}

.hero__subtitle {
    /* Plain light sans, exactly like the identity sheet */
    font-family: var(--font-ar);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    letter-spacing: 0.04em;
    color: var(--color-text-soft);
    margin-bottom: 2.5rem;
    animation: fadeUp 1s ease 0.45s both;
}

.hero__cta {
    animation: fadeUp 1s ease 0.6s both;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 34px;
    background: var(--color-gold);
    margin: 0.6rem auto 0;
}

/* =====================================================================
   10. SECTION TITLES
   ===================================================================== */
.section-head {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-head__eyebrow {
    font-family: var(--font-ar);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 0.8rem;
}

.section-head__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-primary);
}

.section-head__text {
    margin-top: 1rem;
    color: var(--color-text-soft);
    font-family: var(--font-ar);
}

/* =====================================================================
   11. ABOUT SECTION
   ===================================================================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 5;
}

.about__text p {
    font-family: var(--font-ar);
    color: var(--color-text-soft);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about__text h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.about__signature {
    font-family: var(--font-brand);
    font-style: normal;
    font-size: 1.05rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-top: 1rem;
}

/* =====================================================================
   12. MISSION / VISION / VALUES
   ===================================================================== */
.mvv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Two-column variant (brand stories) */
.mvv--two {
    grid-template-columns: repeat(2, 1fr);
}

.mvv__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
}

.mvv__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-gold);
}

.mvv__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 161, 74, 0.12);
    color: var(--color-gold);
}

.mvv__icon svg {
    width: 30px;
    height: 30px;
}

.mvv__card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
}

.mvv__card p {
    font-family: var(--font-ar);
    color: var(--color-text-soft);
    font-size: 0.98rem;
}

/* =====================================================================
   13. FEATURED COLLECTIONS (CARDS)
   ===================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.watch-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.watch-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.watch-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-gray-light);
}

.watch-card__media img,
.watch-card__media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.watch-card:hover .watch-card__media img,
.watch-card:hover .watch-card__media svg {
    transform: scale(1.08);
}

.watch-card__tag {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    background: rgba(17, 17, 17, 0.85);
    color: var(--color-gold);
    font-family: var(--font-ar);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

.watch-card__body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.watch-card__body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.watch-card__body p {
    font-family: var(--font-ar);
    color: var(--color-text-soft);
    font-size: 0.95rem;
    flex: 1;
}

.watch-card__foot {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.watch-card__brand {
    font-family: var(--font-ar);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.watch-card__link {
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-gold);
    transition: gap var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.watch-card__link:hover {
    color: var(--color-gold-dark);
}

/* =====================================================================
   14. BRANDS SECTION
   ===================================================================== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
    min-height: 120px;
}

.brand-item svg {
    width: 100%;
    max-width: 130px;
    height: auto;
    /* grayscale by default, colorful on hover */
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}

.brand-item:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--color-gold);
    transform: translateY(-6px);
}

.brand-item:hover svg {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Note under the brands grid (Italy boutiques / reservation) */
.brands-note {
    margin-top: 2.5rem;
    text-align: center;
    font-family: var(--font-ar);
    font-size: 1.05rem;
    color: var(--color-text-soft);
}

.brands-note strong {
    color: var(--color-gold-dark);
}

/* =====================================================================
   15. WHY CHOOSE US
   ===================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.6rem 1.8rem;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.feature-card__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(201, 161, 74, 0.15), rgba(201, 161, 74, 0.05));
    color: var(--color-gold);
    transition: all var(--transition);
}

.feature-card:hover .feature-card__icon {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-white);
    transform: rotate(-6deg) scale(1.05);
}

.feature-card__icon svg {
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-family: var(--font-ar);
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

/* =====================================================================
   16. STATISTICS / COUNTERS
   ===================================================================== */
.stats {
    background:
        linear-gradient(rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.92)),
        radial-gradient(circle at 30% 30%, rgba(201, 161, 74, 0.3), transparent 40%);
    background-color: var(--color-primary);
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat__num {
    font-family: var(--font-en);
    font-size: clamp(2.6rem, 6vw, 3.8rem);
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.stat__label {
    font-family: var(--font-ar);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.6rem;
    letter-spacing: 0.03em;
}

.stat__divider {
    width: 40px;
    height: 2px;
    background: rgba(201, 161, 74, 0.5);
    margin: 1rem auto 0;
}

/* =====================================================================
   17. TESTIMONIALS
   ===================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all var(--transition);
}

.testimonial:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.testimonial__quote {
    font-family: var(--font-en);
    font-size: 4rem;
    line-height: 1;
    color: rgba(201, 161, 74, 0.25);
    position: absolute;
    top: 1rem;
    inset-inline-end: 1.5rem;
}

.testimonial__stars {
    color: var(--color-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
    font-size: 1.1rem;
}

.testimonial__text {
    font-family: var(--font-ar);
    color: var(--color-text-soft);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial__person {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial__name {
    font-family: var(--font-ar);
    font-weight: 700;
    color: var(--color-primary);
}

.testimonial__role {
    font-family: var(--font-ar);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* =====================================================================
   18. PAGE BANNER (INNER PAGES)
   ===================================================================== */
.page-banner {
    position: relative;
    padding: calc(var(--header-height) + 4rem) 1.5rem 4rem;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 161, 74, 0.10), transparent 55%),
        linear-gradient(180deg, #faf8f3 0%, #ffffff 100%);
    overflow: hidden;
}

.page-banner__eyebrow {
    font-family: var(--font-ar);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 0.7rem;
}

.page-banner h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    color: var(--color-primary);
}

.page-banner__crumb {
    margin-top: 1rem;
    font-family: var(--font-ar);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.page-banner__crumb a:hover {
    color: var(--color-gold);
}

/* =====================================================================
   19. CONTACT PAGE
   ===================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info__item {
    display: flex;
    gap: 1.2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-info__item:last-child {
    border-bottom: none;
}

.contact-info__icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(201, 161, 74, 0.12);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info__icon svg {
    width: 24px;
    height: 24px;
}

.contact-info__label {
    font-family: var(--font-ar);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-info__value {
    font-family: var(--font-ar);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.05rem;
    word-break: break-word;
}

.contact-info__value a:hover {
    color: var(--color-gold);
}

/* Contact form */
.contact-form {
    background: var(--color-gray-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-family: var(--font-ar);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-ar);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.15);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Form validation feedback */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #d9534f;
}

.form-status {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(70, 160, 90, 0.12);
    color: #2e7d46;
    border: 1px solid rgba(70, 160, 90, 0.3);
}

/* Map placeholder */
.map-placeholder {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    aspect-ratio: 16 / 6;
    background:
        repeating-linear-gradient(45deg, #f0efe9, #f0efe9 20px, #f7f6f0 20px, #f7f6f0 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-placeholder__pin {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-family: var(--font-ar);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.2rem 2rem;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.map-placeholder__pin svg {
    width: 34px;
    height: 34px;
    color: var(--color-gold);
}

/* =====================================================================
   20. LEGAL PAGES (PRIVACY / TERMS)
   ===================================================================== */
.legal {
    max-width: 860px;
    margin: 0 auto;
}

.legal__intro {
    font-family: var(--font-ar);
    color: var(--color-text-soft);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.legal__updated {
    font-family: var(--font-ar);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.legal h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 2.5rem 0 1rem;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid var(--color-gold);
}

.legal h3 {
    font-family: var(--font-ar);
    font-size: 1.15rem;
    margin: 1.5rem 0 0.6rem;
    color: var(--color-primary);
}

.legal p,
.legal li {
    font-family: var(--font-ar);
    color: var(--color-text-soft);
    margin-bottom: 0.9rem;
    font-size: 1rem;
}

.legal ul {
    list-style: none;
    padding-inline-start: 0;
}

.legal ul li {
    position: relative;
    padding-inline-start: 1.6rem;
}

.legal ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.7rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-gold);
}

/* =====================================================================
   21. FOOTER
   ===================================================================== */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.75);
    padding: var(--space-xl) 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* Official KK monogram in the footer */
.footer__logo-mark {
    display: block;
    color: var(--color-gold);
    margin-bottom: 0.7rem;
}

.footer__logo-en {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    color: var(--color-white);
    padding-inline-start: 0.26em;
}

.footer__logo-ar {
    font-family: var(--font-ar);
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.08em;
}

.footer__about {
    font-family: var(--font-ar);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 340px;
}

.footer__col h4 {
    font-family: var(--font-ar);
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.3rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer__col h4::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--color-gold);
}

.footer__links li {
    margin-bottom: 0.8rem;
}

.footer__links a {
    font-family: var(--font-ar);
    font-size: 0.95rem;
    transition: color var(--transition-fast), padding-inline-start var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-gold);
    padding-inline-start: 6px;
}

.footer__contact li {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    align-items: flex-start;
}

.footer__contact svg {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__contact a:hover {
    color: var(--color-gold);
}

.footer__social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.footer__social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-4px);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.6rem 0;
    text-align: center;
    font-family: var(--font-ar);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer__bottom a:hover {
    color: var(--color-gold);
}

/* =====================================================================
   22. BACK TO TOP BUTTON
   ===================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    inset-inline-end: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 1400;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    inset-inline-start: 2rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1400;
    transition: transform var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* =====================================================================
   23. SCROLL REVEAL ANIMATIONS
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger helpers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================================
   24. KEYFRAME ANIMATIONS
   ===================================================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes floatRing {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* =====================================================================
   25. RESPONSIVE DESIGN (MEDIA QUERIES)
   ===================================================================== */

/* Laptop */
@media (max-width: 1100px) {
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (max-width: 900px) {
    :root { --header-height: 76px; }

    /* Top row: toggle | centered logo | spacer.
       Nav groups become full-width collapsible rows stacked beneath. */
    .nav {
        grid-template-columns: 44px 1fr 44px;
        grid-auto-rows: auto;
        height: auto;
        min-height: var(--header-height);
        row-gap: 0;
    }

    .nav__toggle {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .nav__logo {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        padding: 0.9rem 0;
    }

    /* Collapsible menu rows (no overlap: each group is its own grid row) */
    .nav__group {
        grid-column: 1 / -1;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        background: var(--color-white);
        transition: max-height var(--transition), opacity var(--transition);
    }

    .nav__group--left { grid-row: 2; }
    .nav__group--right { grid-row: 3; padding-bottom: 1rem; }

    .nav__group.open {
        max-height: 60vh;
        opacity: 1;
        pointer-events: auto;
    }

    .nav__link {
        display: block;
        padding: 0.85rem 1.5rem;
        width: 100%;
        text-align: center;
    }

    /* keep the underline centered under mobile links */
    .nav__link::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about__grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    :root {
        --space-xl: 4rem;
        --space-lg: 3rem;
    }

    .container { padding: 0 1.2rem; }

    .cards-grid,
    .testimonials-grid,
    .mvv,
    .features-grid,
    .brands-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer__logo-mark { margin-inline: auto; }

    .hero__flank { width: 44vw; opacity: 0.06; }

    .footer__col h4::after {
        inset-inline-start: 50%;
        transform: translateX(-50%);
    }

    .footer__about { margin: 0 auto; }

    .footer__contact li,
    .footer__social {
        justify-content: center;
    }

    .contact-form { padding: 1.8rem 1.4rem; }

    .btn { width: 100%; }

    .hero__cta .btn { width: auto; }

    .back-to-top { bottom: 1.2rem; inset-inline-end: 1.2rem; }
    .whatsapp-float { bottom: 1.2rem; inset-inline-start: 1.2rem; }
}

/* Short viewports: hide the scroll hint so it never overlaps the CTA */
@media (max-height: 780px) {
    .hero__scroll { display: none; }
}

/* Small mobile */
@media (max-width: 380px) {
    .hero__logo { letter-spacing: 0.08em; }
    .nav__logo-en { font-size: 1.2rem; letter-spacing: 0.18em; }
}
