/**
 * ZAKI WEB — Modern Homepage Stylesheet
 * High-End Software Engineering Studio & Tech Consultancy
 */
@import url('fonts.css');

:root {
    --z-primary: #1d4ed8;
    --z-primary-hover: #1e40af;
    --z-primary-light: #eff6ff;
    
    --z-dark: #090d16;
    --z-surface: #ffffff;
    --z-surface-alt: #f8fafc;
    --z-surface-elevated: #ffffff;
    
    --z-text: #0f172a;
    --z-text-muted: #334155;
    --z-text-light: #475569;
    
    --z-border: #e2e8f0;
    --z-border-subtle: #f1f5f9;
    --z-border-focus: #93c5fd;
    
    --z-success: #10b981;
    --z-success-light: #ecfdf5;
    
    --z-radius-sm: 8px;
    --z-radius-md: 12px;
    --z-radius-lg: 16px;
    --z-radius-xl: 20px;
    --z-radius-pill: 9999px;
    
    --z-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --z-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
    --z-shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.08);
    --z-shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.10);
    
    --z-font: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.home {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: var(--z-text);
    font-family: var(--z-font);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea {
    touch-action: manipulation;
}

::selection {
    background-color: var(--z-primary-light);
    color: var(--z-primary);
}

.home a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ═══════════ Header & Floating Navbar ═══════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 20px;
    transition: all 0.3s ease;
}

.navbar {
    max-width: 1240px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-pill);
    box-shadow: var(--z-shadow-sm);
    padding: 6px 14px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--z-text);
    line-height: 1.2;
}

.brand-title {
    font-size: 0.75rem;
    color: var(--z-primary);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--z-text-muted);
    padding: 8px 12px;
    border-radius: var(--z-radius-pill);
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: var(--z-primary);
    background-color: var(--z-primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--z-primary);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--z-radius-pill);
    box-shadow: var(--z-shadow-sm);
    transition: all 0.2s ease;
}

.btn-nav-cta:hover {
    background: var(--z-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--z-shadow-md);
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--z-radius-sm);
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--z-text);
}

/* Mobile Drawer */
.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-drawer.open {
    opacity: 1;
    visibility: visible;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 84%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--z-shadow-xl);
}

.nav-drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--z-border);
}

.drawer-close {
    background: #f1f5f9;
    border: none;
    font-size: 1.2rem;
    color: var(--z-text);
    cursor: pointer;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.drawer-close:active {
    background: #e2e8f0;
}

.drawer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-links a {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--z-text);
    padding: 12px 14px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: var(--z-radius-md);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.drawer-links a:active {
    background-color: var(--z-primary-light);
    color: var(--z-primary);
}

.drawer-divider {
    height: 1px;
    background: var(--z-border);
    margin: 8px 0;
}

/* ═══════════ Hero Section (Engineering Studio) ═══════════ */
.hero-wrapper {
    position: relative;
    padding: 70px 0 90px;
    background: #f8fafc;
    border-bottom: 1px solid var(--z-border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    padding: 6px 14px;
    border-radius: var(--z-radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--z-text-muted);
    box-shadow: var(--z-shadow-sm);
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--z-success);
}

.hero-title {
    font-size: clamp(1.85rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--z-text);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.hero-title .highlight-blue {
    color: var(--z-primary);
}

.hero-sub {
    font-size: clamp(0.98rem, 2vw, 1.12rem);
    color: var(--z-text-muted);
    line-height: 1.75;
    margin: 0 0 32px;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--z-primary);
    color: #ffffff !important;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--z-radius-md);
    box-shadow: var(--z-shadow-md);
    transition: all 0.2s ease;
}

.btn-hero-primary:hover {
    background: var(--z-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--z-shadow-lg);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--z-surface);
    color: var(--z-text) !important;
    border: 1px solid var(--z-border);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--z-radius-md);
    box-shadow: var(--z-shadow-sm);
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.hero-trust-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--z-border);
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--z-text);
    line-height: 1.2;
}

.trust-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--z-text-light);
}

/* ═══════════ Hero Architecture Mockup / Console ═══════════ */
.console-card {
    background: #0f172a;
    color: #f8fafc;
    border-radius: var(--z-radius-xl);
    border: 1px solid #1e293b;
    box-shadow: var(--z-shadow-xl);
    overflow: hidden;
}

.console-header {
    background: #1e293b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.console-title {
    font-family: Consolas, monospace;
    font-size: 0.78rem;
    color: #94a3b8;
    direction: ltr;
}

.console-body {
    padding: 24px;
}

.console-diag-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.diag-node {
    border-bottom: 1px solid #1e293b;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.diag-node:last-child {
    border-bottom: none;
}

.diag-node-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.diag-icon {
    width: 32px;
    height: 32px;
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diag-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #f8fafc;
}

.diag-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

.diag-badge {
    font-family: Consolas, monospace;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: #064e3b;
    color: #34d399;
    direction: ltr;
}

.console-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #1e293b;
    direction: ltr;
    text-align: center;
}

.stat-metric {
    font-size: 1.15rem;
    font-weight: 800;
    color: #38bdf8;
    font-family: Consolas, monospace;
}

.stat-label-sub {
    font-size: 0.70rem;
    color: #94a3b8;
}

/* ═══════════ Tech Stack Strip ═══════════ */
.tech-strip {
    background: var(--z-surface);
    border-bottom: 1px solid var(--z-border);
    padding: 24px 20px;
}

.tech-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 8px;
}

.tech-lead {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--z-text-light);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--z-surface-alt);
    border: 1px solid var(--z-border);
    padding: 6px 14px;
    border-radius: var(--z-radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--z-text-muted);
}

/* ═══════════ Section Structure ═══════════ */
.section-pad {
    padding: 96px 20px;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 900;
    color: var(--z-text);
    line-height: 1.3;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.08rem;
    color: var(--z-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ═══════════ Bento Solutions Grid (Side-by-side icons) ═══════════ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-xl);
    padding: 32px;
    box-shadow: var(--z-shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--z-shadow-md);
    border-color: #cbd5e1;
}

.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-12 { grid-column: span 12; }

.bento-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.bento-card-icon {
    color: var(--z-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.bento-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--z-text);
    margin: 0;
    line-height: 1.35;
}

.bento-card-desc {
    font-size: 0.96rem;
    color: var(--z-text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.bento-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-features li {
    font-size: 0.90rem;
    font-weight: 600;
    color: var(--z-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-features li svg {
    color: var(--z-primary);
    flex-shrink: 0;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--z-primary);
    margin-top: auto;
}

.bento-link:hover {
    color: var(--z-primary-hover);
    gap: 10px;
}

/* ═══════════ Portfolio Showcase ═══════════ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-xl);
    overflow: hidden;
    box-shadow: var(--z-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--z-shadow-md);
    border-color: #cbd5e1;
}

.project-img-holder {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.project-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-category-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--z-radius-pill);
}

.project-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--z-text);
    margin: 0 0 10px;
    line-height: 1.4;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--z-text-muted);
    line-height: 1.65;
    margin: 0 0 18px;
    flex-grow: 1;
}

.project-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--z-border-subtle);
}

.project-tech {
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--z-primary);
}

/* ═══════════ Engineering Standards (Why Us) ═══════════ */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.standard-card {
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    padding: 28px;
    box-shadow: var(--z-shadow-sm);
    transition: all 0.2s ease;
}

.standard-card:hover {
    border-color: var(--z-primary);
    box-shadow: var(--z-shadow-md);
}

.standard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.standard-icon {
    color: var(--z-primary);
    flex-shrink: 0;
}

.standard-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--z-text);
    margin: 0;
}

.standard-desc {
    font-size: 0.90rem;
    color: var(--z-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ═══════════ Roadmap Steps ═══════════ */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.roadmap-card {
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    padding: 28px 24px;
}

.step-number {
    font-family: Consolas, monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--z-primary);
    margin-bottom: 14px;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--z-text);
    margin: 0 0 10px;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--z-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════ Testimonials ═══════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-xl);
    padding: 32px;
    box-shadow: var(--z-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 0.98rem;
    color: var(--z-text);
    line-height: 1.7;
    margin: 0 0 24px;
    font-style: normal;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--z-primary-light);
    color: var(--z-primary);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--z-text);
    line-height: 1.2;
}

.author-company {
    font-size: 0.78rem;
    color: var(--z-text-light);
}

/* ═══════════ FAQ Accordion ═══════════ */
.faq-container {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-md);
    overflow: hidden;
    box-shadow: var(--z-shadow-sm);
    transition: all 0.2s ease;
}

.faq-item[open] {
    border-color: var(--z-primary);
    box-shadow: var(--z-shadow-md);
}

.faq-summary {
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--z-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--z-text-light);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--z-primary);
}

.faq-answer {
    padding: 0 24px 22px;
    font-size: 0.95rem;
    color: var(--z-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ═══════════ High-Converting Contact Section ═══════════ */
.contact-section-dark {
    background: #0f172a;
    color: #f8fafc;
    border-top: 1px solid #1e293b;
}

.contact-shell {
    padding: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 16px;
    color: #ffffff;
}

.contact-info-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 32px;
}

.contact-badges-col {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.contact-badge-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #1e293b;
}

.contact-badge-icon {
    width: 32px;
    height: 32px;
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-badge-label {
    font-size: 0.78rem;
    color: #94a3b8;
}

.contact-badge-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    direction: ltr;
    text-align: right;
}

.btn-whatsapp-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff !important;
    font-size: 1.02rem;
    font-weight: 800;
    padding: 16px 28px;
    border-radius: var(--z-radius-md);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-whatsapp-direct:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: var(--z-shadow-sm);
}

/* Contact Form Box */
.contact-form-box {
    background: #ffffff;
    color: var(--z-text);
    border-radius: var(--z-radius-lg);
    padding: 36px;
    box-shadow: var(--z-shadow-lg);
}

.form-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--z-text);
    margin: 0 0 6px;
}

.form-subtitle {
    font-size: 0.88rem;
    color: var(--z-text-muted);
    margin: 0 0 24px;
}

.form-group-item {
    margin-bottom: 16px;
}

.form-label-txt {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--z-text);
    margin-bottom: 6px;
}

.form-input-ctrl, .form-select-ctrl, .form-textarea-ctrl {
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
    min-height: 48px;
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-md);
    background: var(--z-surface-alt);
    color: var(--z-text);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input-ctrl:focus, .form-select-ctrl:focus, .form-textarea-ctrl:focus {
    outline: none;
    border-color: var(--z-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.btn-form-submit {
    width: 100%;
    min-height: 50px;
    padding: 15px 20px;
    background: var(--z-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--z-radius-md);
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--z-shadow-sm);
    transition: all 0.2s ease;
}

.btn-form-submit:active {
    transform: scale(0.98);
}

.btn-form-submit:hover {
    background: var(--z-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--z-shadow-md);
}

/* ═══════════ Consultation Modal Overlay ═══════════ */
.consultation-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.consultation-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border-radius: var(--z-radius-lg);
    padding: 36px 32px 32px;
    box-shadow: var(--z-shadow-xl);
    border: 1px solid var(--z-border);
    direction: rtl;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--z-text-muted);
    cursor: pointer;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--z-text);
    margin: 0 0 6px;
}

.modal-subtitle {
    font-size: 0.90rem;
    color: var(--z-text-muted);
    margin: 0 0 20px;
}

.modal-alert-msg {
    padding: 10px 14px;
    border-radius: var(--z-radius-sm);
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

.modal-alert-msg.success {
    background: var(--z-success-light);
    color: var(--z-success);
    border: 1px solid #a7f3d0;
}

.modal-alert-msg.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

/* ═══════════ Dynamic Studio Footer Styles ═══════════ */
.site-footer {
    background: #070b12;
    color: #cbd5e1;
    padding: 80px 20px 36px;
    border-top: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}

.footer-pitch-strip {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--z-radius-xl);
    padding: 36px 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pitch-content {
    max-width: 580px;
}

.pitch-title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.35;
}

.pitch-desc {
    font-size: 0.94rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

.pitch-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-pitch-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--z-primary);
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: var(--z-radius-pill);
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--z-shadow-sm);
}

.btn-pitch-primary:hover {
    background: var(--z-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--z-shadow-md);
}

.btn-copy-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: var(--z-radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-copy-email:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-copy-email.copied {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

/* Footer Status Bar */
.footer-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #1e293b;
    border-radius: var(--z-radius-lg);
    margin-bottom: 50px;
    font-size: 0.86rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.morocco-clock-wrap {
    font-family: Consolas, monospace;
    direction: ltr;
    color: #38bdf8;
    font-weight: 700;
}

/* Footer Grid & Columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-title {
    font-weight: 800;
    font-size: 1.02rem;
    color: #ffffff;
    margin-bottom: 18px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 0.88rem;
}

.footer-links-list li a {
    color: #cbd5e1;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.footer-links-list li a:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

/* Footer Newsletter */
.footer-nl-form {
    margin-top: 20px;
}

.footer-nl-lead {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.footer-nl-input-group {
    display: flex;
    gap: 8px;
}

.footer-nl-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--z-radius-sm);
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer-nl-input:focus {
    border-color: var(--z-primary);
}

.footer-nl-btn {
    padding: 10px 18px;
    background: var(--z-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--z-radius-sm);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.footer-nl-btn:hover {
    background: var(--z-primary-hover);
}

/* Footer Bottom Bar */
.footer-bottom-row {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.84rem;
    color: #94a3b8;
}

.btn-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 14px;
    border-radius: var(--z-radius-pill);
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-back-to-top:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #38bdf8;
}

/* ═══════════ Sticky Mobile Action Dock ═══════════ */
.mobile-action-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 10px));
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
}

.dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: var(--z-radius-pill);
    font-size: 0.90rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    border: none;
    font-family: inherit;
}

.dock-btn:active {
    transform: scale(0.96);
}

.dock-btn-whatsapp {
    background: #16a34a;
    color: #ffffff !important;
    flex: 1.1;
}

.dock-btn-whatsapp:hover, .dock-btn-whatsapp:active {
    background: #15803d;
}

.dock-btn-primary {
    background: var(--z-primary);
    color: #ffffff !important;
    flex: 1.5;
    box-shadow: var(--z-shadow-sm);
}

.dock-btn-primary:hover, .dock-btn-primary:active {
    background: var(--z-primary-hover);
}

.dock-btn-phone {
    background: #1e293b;
    color: #f8fafc !important;
    border: 1px solid #334155;
    flex: 0.9;
}

.dock-btn-phone:hover, .dock-btn-phone:active {
    background: #334155;
}

/* ═══════════ Responsive Media Queries ═══════════ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .bento-card.span-8, .bento-card.span-4, .bento-card.span-6 {
        grid-column: span 12;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .standards-grid, .roadmap-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    body.home {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 12px));
    }

    .mobile-action-dock {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-menu {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .btn-nav-cta {
        display: none;
    }

    .hero-wrapper {
        padding: 36px 0 54px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 14px 20px;
        box-sizing: border-box;
    }

    .hero-trust-metrics {
        gap: 20px;
        padding-top: 20px;
    }

    .trust-number {
        font-size: 1.35rem;
    }

    .bento-card {
        padding: 24px 18px;
    }

    .bento-card.span-8, .bento-card.span-4, .bento-card.span-6, .bento-card.span-12 {
        grid-column: span 12;
    }

    .project-body {
        padding: 20px 18px;
    }

    .standards-grid, .roadmap-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .standard-card, .roadmap-card, .testimonial-card {
        padding: 22px 18px;
    }

    .section-pad {
        padding: 60px 16px;
    }

    .contact-form-box {
        padding: 24px 18px;
    }

    .footer-pitch-strip {
        padding: 26px 20px;
    }

    .footer-status-bar {
        padding: 14px 16px;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    /* Bottom Sheet Modal Transformation */
    .consultation-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-card {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        border-inline: none;
        padding: 14px 20px calc(24px + env(safe-area-inset-bottom, 16px));
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 88vh;
    }

    .consultation-modal-overlay.active .modal-card {
        transform: translateY(0);
    }

    .sheet-drag-handle {
        width: 44px;
        height: 5px;
        background: #cbd5e1;
        border-radius: 9999px;
        margin: 0 auto 16px;
        display: block;
        cursor: pointer;
    }

    .modal-close-btn {
        top: 14px;
        left: 14px;
        width: 38px;
        height: 38px;
        min-height: 38px;
        min-width: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        border-radius: 50%;
    }

    .modal-title {
        font-size: 1.22rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .btn-back-to-top {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .section-pad {
        padding: 48px 14px;
    }

    .console-body {
        padding: 16px 12px;
    }

    .console-stats-row {
        gap: 6px;
    }

    .stat-metric {
        font-size: 0.95rem;
    }

    .stat-label-sub {
        font-size: 0.65rem;
    }

    .trust-item {
        flex: 1 1 40%;
    }

    .dock-btn {
        padding: 10px 8px;
        font-size: 0.84rem;
        gap: 6px;
    }
}
