/* 
 * Makken Agency - Redesigned Corporate Style System
 * Premium Light Mode with Dark Navy & Gold Accents
 */

/* ==========================================================================
   1. Theme Variables & Fonts
   ========================================================================== */
:root {
    --primary: #162C46;
    /* Dark Navy from logo */
    --accent: #C3A062;
    /* Gold from logo */
    --accent-hover: #b08d4f;
    /* Darker Gold for hover states */

    --bg-white: #FFFFFF;
    /* Pure White Background */
    --bg-surface: #F4F6F9;
    /* Light Slate-Gray surface */

    --text-primary: #162C46;
    /* Navy for primary headings */
    --text-body: #475569;
    /* Slate grey for paragraph body text */
    --text-muted: #64748B;
    /* Slate light for captions */

    --border-light: #E2E8F0;
    /* Soft border line */
    --border-accent: rgba(195, 160, 98, 0.3);
    /* Transparent gold border */

    --success: #10B981;
    --warning: #F59E0B;

    --shadow-soft: 0 10px 30px rgba(22, 44, 70, 0.04);
    --shadow-medium: 0 15px 40px rgba(22, 44, 70, 0.08);

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

.font-outfit {
    font-family: 'Outfit', sans-serif !important;
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

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

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

/* Utility Badges & Elements */
.text-gradient {
    color: var(--accent);
}

.bg-light-surface {
    background-color: var(--bg-surface) !important;
}

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

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(195, 160, 98, 0.2);
}

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

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

/* Section Common Layouts */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(195, 160, 98, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Scroll reveal animations styling */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   3. Header Navbar (Transparent to Solid White)
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
    transition: var(--transition-smooth);
}

/* Scrolled solid state */
.glass-nav.scrolled {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(22, 44, 70, 0.05);
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dynamic Navbar Text Colors */
.logo-link img {
    height: 48px;
    filter: brightness(0) invert(1);
    /* Force white logo on dark slider overlay */
    transition: var(--transition-smooth);
}

.glass-nav.scrolled .logo-link img {
    filter: none;
    /* Original colored logo on white navbar scrolled state */
    height: 44px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 8px 0;
}

.glass-nav.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-white);
}

.glass-nav.scrolled .nav-link:hover,
.glass-nav.scrolled .nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    color: var(--bg-white);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.glass-nav.scrolled .phone-link {
    color: var(--text-primary);
}

.phone-link iconify-icon {
    color: var(--accent);
}

.phone-link:hover {
    color: var(--accent);
}

/* Scrolled Nav button overrides */
.glass-nav .header-actions .btn {
    background-color: var(--accent);
    color: var(--primary);
}

.glass-nav.scrolled .header-actions .btn {
    background-color: var(--primary);
    color: var(--bg-white);
}

.glass-nav.scrolled .header-actions .btn:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* Mobile Toggle Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--bg-white);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.glass-nav.scrolled .menu-toggle span {
    background-color: var(--text-primary);
}

/* Mobile Drawer Nav styles */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 1005;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(22, 44, 70, 0.15);
    border-left: 1px solid var(--border-light);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.drawer-logo {
    height: 40px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-close:hover {
    color: var(--primary);
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link:hover {
    color: var(--accent);
    padding-right: 5px;
}

.drawer-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.drawer-action-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.drawer-action-link iconify-icon {
    color: var(--accent);
}

.mobile-cta {
    margin-top: 10px;
    background-color: var(--primary);
    color: var(--bg-white);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(22, 44, 70, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1004;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   4. Full-Screen Hero Slider Section
   ========================================================================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 90vh;
    padding: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 750px;
    text-align: right;
    color: var(--bg-white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(195, 160, 98, 0.15);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.slide-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.slide-title-gradient {
    color: var(--accent);
}

.slide-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: justify;
}

.slide-actions {
    display: flex;
    gap: 20px;
}

/* Slider Controls Navigation Buttons */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.hero-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.prev-slide-btn {
    right: 40px;
}

.next-slide-btn {
    left: 40px;
}

/* Slider Dots Pagination */
.hero-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 10px;
}

/* ==========================================================================
   5. Clean Stats Panel
   ========================================================================== */
.stats-section {
    padding: 0;
    transform: translateY(-50px);
    z-index: 10;
}

.clean-stats-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 45px rgba(22, 44, 70, 0.06);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 30px 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    border-left: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-left: none;
    /* Since RTL, far-left item is last child */
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(195, 160, 98, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* ==========================================================================
   6. Clean Cards & Services Section
   ========================================================================== */
.services-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0 30px 0;
}

.services-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.service-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 320px;
    box-sizing: border-box;
}

.clean-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.clean-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-medium);
}

.service-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(22, 44, 70, 0.04);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.clean-card:hover .service-icon-box {
    background-color: var(--accent);
    color: var(--primary);
}

.service-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--border-light);
    line-height: 1;
}

.service-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 24px;
    line-height: 1.7;
    flex-grow: 1;
    text-align: justify;
}

.service-bullet-points {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-bullet-points li {
    font-size: 0.85rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bullet-check {
    color: var(--accent);
}

.service-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    transition: var(--transition-fast);
}

.service-action-btn:hover {
    color: var(--accent);
}

.service-action-btn .arrow-icon {
    transition: transform 0.3s;
}

.service-action-btn:hover .arrow-icon {
    transform: translateX(-5px);
}

/* Slider Controls Buttons */
.slider-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(22, 44, 70, 0.03);
    transition: var(--transition-fast);
}

.slider-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(195, 160, 98, 0.25);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

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

.slider-dot.active {
    background: var(--accent);
    width: 20px;
}

/* ==========================================================================
   7. Automation Section (Clean Layout)
   ========================================================================== */
.automation-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.clean-image-wrapper {
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    padding: 15px;
    box-shadow: var(--shadow-soft);
}

.automation-illustration {
    border-radius: 8px;
    width: 100%;
    background-color: var(--bg-white);
}

.interactive-flow-container {
    position: relative;
    margin-top: 30px;
    padding-right: 25px;
}

.flow-line-vertical {
    position: absolute;
    top: 20px;
    right: 43px;
    width: 1px;
    height: calc(100% - 50px);
    background: var(--border-light);
    z-index: 1;
}

.flow-step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.flow-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.flow-step-info {
    flex-grow: 1;
}

.flow-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    transition: var(--transition-smooth);
}

.flow-step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: none;
    transition: var(--transition-smooth);
}

/* Simulated dynamic steps */
.flow-step-item.active .flow-step-icon {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(195, 160, 98, 0.3);
}

.flow-step-item.active .flow-step-title {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.flow-step-item.active .flow-step-desc {
    display: block;
    color: var(--text-body);
}

/* ==========================================================================
   8. Why Choose Us Section
   ========================================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-card {
    padding: 36px;
}

.why-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(195, 160, 98, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.why-card-desc {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    text-align: justify;
}

/* ==========================================================================
   9. About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-description {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 20px;
    text-align: justify;
}

.about-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.about-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-badge-icon {
    color: var(--accent);
}

.clean-stats-board {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.board-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.board-stats-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.board-stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 40px;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    font-weight: 700;
}

.progress-bar-container {
    height: 6px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent);
    border-radius: 10px;
}

.progress-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: left;
}

.board-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--text-body);
    font-weight: 700;
}

/* ==========================================================================
   10. Contact & Form Layouts
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-description {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 30px;
}

.contact-details-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail-card {
    padding: 20px 24px;
}

.detail-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(22, 44, 70, 0.04);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

.detail-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

a.detail-value:hover {
    color: var(--accent);
}

.clean-form-container {
    padding: 40px;
}

.form-header {
    margin-bottom: 24px;
}

.form-header-icon {
    color: var(--accent);
    margin-bottom: 8px;
}

.form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(195, 160, 98, 0.15);
    background-color: var(--bg-white);
}

.form-group select option {
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-success-msg {
    text-align: center;
    padding: 20px 0;
    animation: fadeInUp 0.4s ease forwards;
}

.form-success-msg h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 12px;
}

.form-success-msg p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ==========================================================================
   11. Footer Section (Solid Navy)
   ========================================================================== */
.site-footer {
    background-color: var(--primary);
    /* Navy background */
    color: rgba(255, 255, 255, 0.7);
    border-top: 2px solid var(--accent);
}

.footer-top {
    padding: 80px 0 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.branding-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 90px;
    filter: brightness(0) invert(1);
    /* Force white footer logo on dark background */
    margin: 0 auto 24px auto;
    display: block;
}

.footer-about-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links-list a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.contact-icon {
    color: var(--accent);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 10px;
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

/* ==========================================================================
   12. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 2.6rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .clean-stats-panel {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .stat-item {
        border-left: none;
        justify-content: flex-start;
        padding-right: 20px;
    }

    .services-slider-container {
        overflow-x: auto;
    }

    .service-slide {
        flex: 0 0 calc(50% - 12px);
    }

    .automation-demo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .automation-demo-graphic {
        max-width: 500px;
        margin: 0 auto;
        order: 2;
    }

    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-graphic {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .slide-title {
        font-size: 2rem;
    }

    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions .phone-link,
    .header-actions .btn {
        display: none;
    }

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

    .service-slide {
        flex: 0 0 100%;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .clean-form-container {
        padding: 30px 20px;
    }

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

    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .clean-stats-panel {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-section {
        margin-top: -30px;
    }

    .slide-title {
        font-size: 1.85rem !important;
    }

    .slide-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .slide-actions .btn {
        width: 100%;
        text-align: center;
    }

    .article-main-title {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   13. Redesigned Blog Grid & Creative Staggered Cards
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(22, 44, 70, 0.02);
    transition: var(--transition-smooth);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 45px rgba(22, 44, 70, 0.08);
}

.blog-card-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-thumbnail {
    transform: scale(1.06);
}

.blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-thumb-placeholder {
    background-color: var(--accent);
    color: var(--primary);
}

/* Category Badge overlapping the image */
.blog-cat-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(22, 44, 70, 0.1);
}

/* Date Badge overlapping the image on bottom left */
.blog-card-date-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(22, 44, 70, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card-date-badge .badge-day {
    font-size: 1.05rem;
    font-weight: 800;
}

.blog-card-date-badge .badge-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
}

.blog-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
    transition: var(--transition-fast);
}

.blog-card-title a {
    color: var(--text-primary);
    position: relative;
    display: inline;
}

.blog-card-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.blog-card:hover .blog-card-title a::after {
    width: 100%;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
    text-align: justify;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: auto;
    transition: var(--transition-fast);
}

.blog-readmore iconify-icon {
    transition: transform 0.3s;
}

.blog-readmore:hover {
    color: var(--accent);
}

.blog-readmore:hover iconify-icon {
    transform: translateX(-5px);
}

/* ==========================================================================
   14. Redesigned Single Post & Editorial Reading Typography
   ========================================================================== */
.article-header-banner {
    position: relative;
    overflow: hidden;
}

.article-header-banner .banner-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(195, 160, 98, 0.08) 0%, rgba(195, 160, 98, 0) 50%);
    pointer-events: none;
}

.article-meta-cat {
    display: inline-block;
    margin-bottom: 15px;
}

.category-badge-link {
    background-color: var(--accent);
    color: var(--primary) !important;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(195, 160, 98, 0.2);
    transition: var(--transition-fast);
}

.category-badge-link:hover {
    background-color: var(--bg-white);
    color: var(--primary) !important;
}

.article-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    max-width: 900px;
    margin: 15px auto 20px auto;
    color: var(--bg-white);
}

.article-meta-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.article-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-row .meta-item iconify-icon {
    color: var(--accent);
}

.editorial-thumbnail-wrapper {
    margin-top: -60px;
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 10;
}

.editorial-featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.editorial-content-body {
    font-size: 1.15rem;
    line-height: 1.95;
    color: var(--text-body);
    font-family: 'Cairo', sans-serif;
    text-align: justify;
}

.editorial-content-body p {
    margin-bottom: 28px;
}

/* Section Subheadings styled beautifully */
.editorial-content-body h2,
.editorial-content-body h3 {
    color: var(--text-primary);
    margin: 50px 0 20px 0;
    font-weight: 800;
    line-height: 1.35;
    border-right: 4px solid var(--accent);
    padding-right: 15px;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: var(--transition-fast);
}

.editorial-content-body h2:hover,
.editorial-content-body h3:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.editorial-content-body h2 {
    font-size: 1.8rem;
}

.editorial-content-body h3 {
    font-size: 1.45rem;
}

/* Centered & Full width Images inside the Article - Simple, Modern Border */
.editorial-content-body figure,
.editorial-content-body .wp-block-image,
.editorial-content-body .wp-caption {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 30px auto !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.editorial-content-body img,
.editorial-content-body .aligncenter,
.editorial-content-body .alignnone,
.editorial-content-body .size-large,
.editorial-content-body .size-full,
.editorial-content-body .wp-block-image img {
    display: block;
    margin: 0px auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    border-radius: 8px !important;
    border: 0px solid var(--border-light) !important;
    padding: 2px !important;
    box-shadow: 0 4px 12px rgba(22, 44, 70, 0.04) !important;
    transition: var(--transition-fast);
    object-fit: cover;
}

u {
    text-decoration: none;
}

.editorial-content-body img:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 8px 24px rgba(22, 44, 70, 0.08) !important;
}

/* Hide image captions/descriptions */
.editorial-content-body figcaption,
.editorial-content-body .wp-caption-text,
.editorial-content-body .wp-caption-dd {
    display: none !important;
}

/* Blockquotes styled with custom quotation marks */
.editorial-content-body blockquote {
    position: relative;
    border-right: 4px solid var(--accent);
    background-color: var(--bg-surface);
    padding: 30px 40px 30px 30px;
    margin: 40px 0;
    font-style: italic;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.8;
    border-radius: 8px;
}

.editorial-content-body blockquote::before {
    content: '“';
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 5rem;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    color: rgba(195, 160, 98, 0.15);
}

.editorial-content-body ul,
.editorial-content-body ol {
    margin-bottom: 28px;
    padding-right: 24px;
}

.editorial-content-body li {
    margin-bottom: 10px;
}

/* Tags & Share Bar Section */
.editorial-share-bar {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-tags-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags-list .tag-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
}

.post-tags-list .tag-link {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-body);
}

.post-tags-list .tag-link:hover {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.editorial-share-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editorial-share-actions .share-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
}

.editorial-share-actions .share-buttons {
    display: flex;
    gap: 8px;
}

.editorial-share-actions .share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.editorial-share-actions .whatsapp-color {
    color: var(--success);
}

.editorial-share-actions .twitter-color {
    color: var(--text-primary);
}

.editorial-share-actions .facebook-color {
    color: #1877f2;
}

.editorial-share-actions .share-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Post Navigation links */
.editorial-nav-links {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.editorial-nav-links>div {
    max-width: 48%;
}

.editorial-nav-links .nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.editorial-nav-links .nav-post-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.editorial-nav-links .nav-post-title:hover {
    color: var(--accent);
}

/* ==========================================================================
   15. Editorial Comments Section Layout
   ========================================================================== */
.editorial-comments-section {
    margin-top: 60px;
}

.comments-area {
    padding: 45px;
}

.comments-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-title iconify-icon {
    color: var(--accent);
}

.comments-count {
    color: var(--accent);
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment-body {
    padding: 24px;
    margin-bottom: 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.comment-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.comment-author-avatar img {
    border-radius: 50%;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.comment-author-info {
    flex-grow: 1;
}

.comment-author-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-reply-btn a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 12px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.comment-reply-btn a:hover {
    background-color: var(--accent);
    color: var(--primary) !important;
}

.comment-text-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
}

.comment-list .children {
    list-style: none;
    padding-right: 40px;
    /* Indent sub comments in RTL */
    border-right: 2px solid var(--border-light);
}

@media (max-width: 768px) {
    .comments-area {
        padding: 30px 20px;
    }

    .comment-list .children {
        padding-right: 15px;
    }
}

/* ==========================================================================
   16. Custom Scrollbar, Scroll Progress Bar & Hearts
   ========================================================================== */
/* Scroll Progress Bar at the top */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(to left, var(--accent), var(--accent-hover));
    width: 0%;
    z-index: 10005;
    transition: width 0.1s ease-out;
}

/* Beating heart animation keyframes */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

.heart-beat-icon {
    animation: heartBeat 1.5s infinite ease-in-out;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    border: 2px solid var(--bg-surface);
}

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