/* ============================================================
   PowerSolutions.sa – Global Stylesheet
   Vision 2030 Industrial Theme | Inter Font | Mobile-First
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary: #003087;
    --primary-dark: #001f5c;
    --primary-light: #0044b8;
    --accent: #00AEEF;
    --accent-dark: #0088c7;
    --accent-light: #33c4f5;
    --green: #00A651;
    --green-dark: #007a3d;
    --green-light: #33bb77;
    --white: #ffffff;
    --off-white: #f4f7fc;
    --light-gray: #e8edf5;
    --mid-gray: #8a9ab5;
    --dark-gray: #3a4a65;
    --near-black: #0d1b2e;
    --success: #00A651;
    --warning: #f5a623;
    --error: #e03e3e;

    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --font-arabic: 'Inter', 'Tahoma', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 48, 135, 0.08);
    --shadow-md: 0 6px 24px rgba(0, 48, 135, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 48, 135, 0.18);
    --shadow-xl: 0 24px 72px rgba(0, 48, 135, 0.24);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --header-h: 80px;

    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 60%, var(--green) 100%);
    --gradient-brand: linear-gradient(135deg, var(--accent) 0%, var(--green) 100%);
    --gradient-hero: linear-gradient(160deg, #001030 0%, #003087 45%, #005ebd 100%);
    --gradient-card: linear-gradient(145deg, rgba(0, 48, 135, 0.05), rgba(0, 174, 239, 0.06), rgba(0, 166, 81, 0.04));
}

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

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

body {
    font-family: var(--font-main);
    color: var(--near-black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    font-family: var(--font-arabic);
}

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

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

ul {
    list-style: none;
}

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

/* ── Typography ───────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--near-black);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
    color: var(--dark-gray);
    line-height: 1.75;
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-white {
    color: var(--white) !important;
}

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

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

/* ── Layout ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

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

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.25);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 166, 81, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

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

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

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

/* ── Header / Nav ─────────────────────────────────────────── */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    transition: all var(--transition);
}

#header.scrolled {
    background: rgba(0, 16, 48, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

#header:not(.scrolled) {
    background: transparent;
}

.nav-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--white);
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 16px rgba(0, 166, 81, 0.35);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: '⚡';
    font-size: 1.3rem;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text .name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo-text .tagline {
    font-size: 0.65rem;
    color: var(--accent-light);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    font-family: inherit;
}

#lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

#menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

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

#menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* ── Mobile Nav ───────────────────────────────────────────── */
@media (max-width: 768px) {
    #menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        background: var(--primary-dark);
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        gap: 0.5rem;
        z-index: 999;
    }

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

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.75rem 2rem;
    }

    .nav-actions .btn {
        display: none;
    }
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 174, 239, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, transparent 60%, rgba(0, 10, 30, 0.6) 100%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 174, 239, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 174, 239, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 174, 239, 0.15);
    border: 1px solid rgba(0, 174, 239, 0.35);
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    max-width: 560px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.rtl .hero-stat {
    border-left: none;
    border-right: 3px solid var(--accent);
    padding-left: 0;
    padding-right: 1rem;
}

.hero-stat .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    display: block;
}

.hero-stat .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.25rem;
    display: block;
}

/* Right-side floating cards */
.hero-visual {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 1rem;
    z-index: 2;
}

.rtl .hero-visual {
    right: auto;
    left: 4%;
}

.hero-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem;
    min-width: 200px;
    transition: all var(--transition);
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateX(-4px);
}

.rtl .hero-card:hover {
    transform: translateX(4px);
}

.hero-card .card-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.hero-card .card-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

.hero-card h4 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
    background: var(--primary-dark);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 174, 239, 0.2);
}

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

.stat-item .stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(0, 174, 239, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--gradient-card);
    border: 1px solid rgba(0, 174, 239, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.card:hover .card-icon-wrap {
    background: var(--gradient-accent);
    border-color: var(--accent);
}

.card-icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    transition: stroke var(--transition);
}

.card:hover .card-icon-wrap svg {
    stroke: var(--white);
}

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

.card p {
    font-size: 0.9rem;
    line-height: 1.65;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 1.25rem;
    transition: gap var(--transition);
}

.card-link:hover {
    gap: 0.7rem;
}

/* ── Solutions Grid ───────────────────────────────────────── */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ── Case Study Card ──────────────────────────────────────── */
.case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.case-card-img {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    overflow: hidden;
}

.case-card-img .industry-badge {
    background: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.case-card-body {
    padding: 1.5rem;
}

.case-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.case-card-body p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.case-metrics {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric .val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.metric .desc {
    font-size: 0.72rem;
    color: var(--mid-gray);
    font-weight: 500;
}

/* ── Product Table ────────────────────────────────────────── */
.product-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.product-table th {
    background: var(--primary);
    color: var(--white);
    padding: 1.1rem 1.5rem;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.rtl .product-table th {
    text-align: right;
}

.product-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.product-table tr:last-child td {
    border-bottom: none;
}

.product-table tr:nth-child(even) td {
    background: var(--off-white);
}

.product-table tr:hover td {
    background: rgba(0, 174, 239, 0.06);
}

.product-badge {
    background: var(--gradient-accent);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--near-black);
    background: var(--off-white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

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

.form-error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--error);
}

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 174, 239, 0.15), transparent 60%);
}

.newsletter-section h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    background: var(--near-black);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text .name {
    color: var(--white);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
}

.social-link:hover svg {
    fill: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-light);
}

.footer-cert {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.cert-badge {
    background: rgba(0, 174, 239, 0.12);
    border: 1px solid rgba(0, 174, 239, 0.3);
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.page-hero {
    background: var(--gradient-hero);
    padding: calc(var(--header-h) + 4rem) 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 174, 239, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 174, 239, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 40%, transparent 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
    color: var(--accent-light);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.35);
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-gray);
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    transition: all var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.rtl .timeline {
    padding-left: 0;
    padding-right: 2.5rem;
}

.rtl .timeline::before {
    left: auto;
    right: 0.85rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.3);
}

.rtl .timeline-item::before {
    left: auto;
    right: -1.85rem;
}

.timeline-item h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.timeline-item .year {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-item p {
    font-size: 0.9rem;
}

/* ── Comparison Tool ──────────────────────────────────────── */
.comparison-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
}

.comp-header {
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.comp-header.featured {
    background: var(--accent);
    position: relative;
}

.comp-header.featured::before {
    content: '★ Best Seller';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: var(--near-black);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.6rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    white-space: nowrap;
}

.comp-row {
    display: contents;
}

.comp-cell {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.88rem;
    color: var(--dark-gray);
    border-right: 1px solid var(--light-gray);
}

.comp-cell:last-child {
    border-right: none;
}

.comp-cell.label {
    font-weight: 600;
    color: var(--near-black);
    background: var(--off-white);
}

.comp-cell.featured {
    background: rgba(0, 174, 239, 0.05);
}

.comp-check {
    color: var(--success);
    font-weight: 800;
    font-size: 1rem;
}

.comp-x {
    color: var(--mid-gray);
}

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

    .comp-row .comp-cell:nth-child(3),
    .comp-row .comp-cell:nth-child(4) {
        display: none;
    }

    .comp-header:nth-child(3),
    .comp-header:nth-child(4) {
        display: none;
    }
}

/* ── Accordion ────────────────────────────────────────────── */
.accordion-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--near-black);
    background: var(--white);
    transition: background var(--transition);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.rtl .accordion-btn {
    text-align: right;
}

.accordion-btn:hover {
    background: var(--off-white);
}

.accordion-btn.active {
    background: var(--off-white);
    color: var(--primary);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
    flex-shrink: 0;
}

.accordion-btn.active .accordion-icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-content.open {
    max-height: 600px;
}

.accordion-content .inner {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.75;
}

/* ── Highlight Box ────────────────────────────────────────── */
.highlight-box {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 174, 239, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--light-gray);
    transition: all var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(0, 174, 239, 0.2);
}

.info-card .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.info-card p {
    font-size: 0.82rem;
    color: var(--mid-gray);
}

/* ── Map Placeholder ──────────────────────────────────────── */
.map-container {
    height: 380px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Filter Buttons ───────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--light-gray);
    color: var(--dark-gray);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.1s !important;
}

.animate-delay-2 {
    transition-delay: 0.2s !important;
}

.animate-delay-3 {
    transition-delay: 0.3s !important;
}

.animate-delay-4 {
    transition-delay: 0.4s !important;
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.floating-delay {
    animation: float 4s ease-in-out 1s infinite;
}

/* ── Carousel / Slider ────────────────────────────────────── */
.slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
}

.slider-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    z-index: 5;
}

.slider-btn:hover {
    background: var(--accent);
}

.slider-btn:hover svg {
    stroke: var(--white);
}

.slider-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    stroke-width: 2.5;
    fill: none;
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

/* ── Badge / Tag ──────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-accent {
    background: rgba(0, 174, 239, 0.12);
    color: var(--accent-dark);
}

.badge-primary {
    background: rgba(0, 48, 135, 0.08);
    color: var(--primary);
}

.badge-success {
    background: rgba(0, 179, 122, 0.12);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 166, 35, 0.12);
    color: #c4820a;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--light-gray);
    margin: 2.5rem 0;
}

/* ── Back to Top ──────────────────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 500;
    border: none;
}

.rtl #back-to-top {
    right: auto;
    left: 2rem;
}

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

#back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

#back-to-top svg {
    width: 18px;
    height: 18px;
    stroke: var(--white);
    stroke-width: 2.5;
    fill: none;
}

/* ── RTL Adjustments ──────────────────────────────────────── */
.rtl .card::before {
    transform-origin: right;
}

.rtl .hero-stat {
    text-align: right;
}

.rtl .nav-links a {
    text-align: right;
}

.rtl .section-header {
    direction: rtl;
}

.rtl .timeline {
    direction: rtl;
}

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.pt-header {
    padding-top: var(--header-h);
}

.bg-off-white {
    background: var(--off-white);
}

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

.bg-dark {
    background: var(--near-black);
    color: var(--white);
}

/* ── Responsive: Tablet ───────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

/* ── Responsive: Mobile ───────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --header-h: 68px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        gap: 0.75rem;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.5rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 3.5rem 0;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--mid-gray);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
    background: rgba(0, 174, 239, 0.2);
    color: var(--near-black);
}

/* ── Focus visible ────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}