/* 
   Global Styles for FinalTech (Premium Light Edition)
   Theme colors: Royal Blue, Vibrant Gold, Pristine White
*/

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

:root {
  /* Ultra-Premium Light Theme Variables */
  --primary-color: #2a5288; /* Modern Light Blue - Trust & Engineering */
  --secondary-color: #c99a36; /* Vibrant Gold - Action & Luxury */
  --accent-color: #f1f5fa; /* Very Light Blue for backgrounds */
  
  --background-light: #f8fafc; /* Slate 50 - Premium Off White */
  --background-pure: #ffffff; /* Pure white for cards */
  
  --text-dark: #0f172a; /* Slate 900 - High contrast reading */
  --text-muted: #475569; /* Slate 600 - Secondary text */
  --text-light: #ffffff; /* Text on primary color */
  
  --card-bg: #ffffff;
  --border-color: #e2e8f0; /* Slate 200 */
  
  /* Modern Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(0, 82, 204, 0.08); /* Slight blue tint */
  --shadow-hover: 0 25px 50px rgba(0, 82, 204, 0.12);
  
  --radius-md: 6px;
  --radius-lg: 10px;
}

html[data-theme="dark"] {
  --primary-color: #8fb0de;
  --secondary-color: #e2b552;
  --accent-color: #0f172a;
  --background-light: #020617;
  --background-pure: #0f172a;
  --text-dark: #e5edf8;
  --text-muted: #cbd5e1;
  --text-light: #ffffff;
  --card-bg: #0f172a;
  --border-color: rgba(148, 163, 184, 0.24);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.42);
  --shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.48);
}

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

body {
  font-family: 'Cairo', 'Inter', sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  font-size: 15.5px;
  line-height: 1.65;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 0%, rgba(27, 58, 100, 0.18), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(201, 154, 54, 0.12), transparent 25%),
    var(--background-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Header & Navigation */
header {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 5%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-container img {
  height: 45px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.logo-container .finaltech-mark-logo {
  height: 76px;
  width: 214px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.25;
    text-align: right;
    color: #fff;
}

.brand-text strong {
    color: #fff;
    font-size: 1.22rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-text small {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

header .nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .nav-controls .lang-toggle-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-family: "Inter", "Tajawal", sans-serif;
    min-width: 48px;
}

header .nav-controls .theme-toggle-btn {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    min-width: 132px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    cursor: pointer;
    font-family: "Cairo", "Inter", sans-serif;
    font-weight: 900;
    transition: border-color 0.25s ease, background 0.25s ease;
}

header .nav-controls .theme-toggle-btn::before {
    content: '';
    position: absolute;
    inset: 4px auto 4px 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: #e2b552;
    transition: transform 0.25s ease;
}

html[dir="rtl"] header .nav-controls .theme-toggle-btn::before {
    inset: 4px 4px 4px auto;
}

header .nav-controls .theme-toggle-btn.is-dark::before {
    transform: translateX(100%);
}

html[dir="rtl"] header .nav-controls .theme-toggle-btn.is-dark::before {
    transform: translateX(-100%);
}

header .nav-controls .theme-option {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1;
    transition: color 0.25s ease;
}

header .nav-controls .theme-toggle-btn:not(.is-dark) .theme-light,
header .nav-controls .theme-toggle-btn.is-dark .theme-dark {
    color: #0f172a;
}

header .nav-controls .nav-portal-btn {
    color: white;
    border: 1px solid white;
    font-size: 1rem;
}

header .nav-controls .nav-admin-btn {
    color: #e2b552;
    border: 1px solid rgba(226, 181, 82, 0.7);
    font-size: 0.95rem;
}

header .nav-controls .nav-consult-btn {
    font-size: 1rem;
}

header .menu-toggle {
    color: white;
    background: none;
    border: none;
}

.nav-links a.active {
    color: var(--secondary-color);
    font-weight: 700;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand img {
    height: 40px;
    border-radius: 8px;
}

.footer-brand .finaltech-mark-logo {
    height: 76px;
    width: 214px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.footer-brand .brand-text strong {
    color: #fff;
    font-size: 1.25rem;
}

.footer-brand .brand-text small {
    color: #cbd5e1;
}

.footer-brand h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.footer-contact-list i {
    margin-left: 10px;
    color: var(--secondary-color);
}

.footer-contact-list a {
    direction: ltr;
    display: inline-block;
}

.logo-container h2 {
  font-size: 1.5rem;
  color: white;
  margin: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 1.8vw, 2rem);
  align-items: center;
}

.nav-links .mobile-portal-link,
.nav-links .mobile-admin-link {
  display: none;
}

.nav-links li a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  position: relative;
  padding-bottom: 5px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0; /* RTL support */
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
  background-color: #003d99;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
  color: var(--text-light);
}

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

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

/* Footer */
footer {
  background-color: var(--background-pure);
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--primary-color);
  font-weight: bold;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Floating Cards (Glass/Premium feel) */
.premium-card, .service-card, .stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.premium-card:hover, .service-card:hover, .stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(42, 82, 136, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  visibility: hidden;
}

.animate-fade-in {
  visibility: visible;
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 110px;
    right: 47px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 22px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.05);
}

/* --- Mobile Menu & Responsive Header --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    margin-right: 15px;
}

@media (max-width: 992px) {
    header {
        min-height: 72px;
        padding: 0.55rem 0.9rem;
        gap: 8px;
    }

    .logo-link {
        gap: 8px;
        min-width: 0;
    }

    .logo-container .finaltech-mark-logo {
        width: 156px;
        height: 56px;
    }

    .brand-text {
        min-width: 0;
        display: none;
    }

    .brand-text strong {
        font-size: 0.98rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-text small {
        display: none;
    }

    .menu-toggle {
        display: block;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(255,255,255,0.08);
    }
    .nav-links {
        position: fixed;
        top: 72px;
        right: -100%;
        background-color: var(--background-pure);
        width: min(86vw, 330px);
        height: calc(100dvh - 72px);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1200;
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links .mobile-portal-link,
    .nav-links .mobile-admin-link {
        display: block;
    }
    .nav-links li {
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }
    header .nav-controls {
        gap: 5px;
        margin-inline-start: auto;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 72px 0 0;
        z-index: 1190;
        border: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* --- Premium Footer --- */
.premium-footer {
    background:
        radial-gradient(circle at 10% 0%, rgba(42, 82, 136, 0.18), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #e2e8f0;
    padding: 60px 5% 20px;
    margin-top: 40px;
    border-top: 4px solid var(--secondary-color);
}

.footer-contact-strip {
    max-width: 1180px;
    margin: -20px auto 44px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(42, 82, 136, 0.22), rgba(201, 154, 54, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: start;
}

.footer-contact-strip span {
    display: block;
    color: #e2b552;
    font-weight: 900;
    margin-bottom: 5px;
}

.footer-contact-strip strong {
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; width: 40px; height: 3px;
    background-color: var(--secondary-color);
}
.footer-col p { color: #94a3b8; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; transition: color 0.3s ease, padding 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--secondary-color); padding-right: 8px; }
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: all 0.3s; color: white; }
.footer-socials a:hover { background: var(--secondary-color); color: #0f172a; transform: translateY(-3px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #64748b; font-size: 0.9rem; }

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: white; border-radius: var(--radius-lg);
    width: 90%; max-width: 450px; padding: 30px;
    position: relative; transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border-top: 5px solid var(--secondary-color);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0,0,0,0.05); border: none; font-size: 1.2rem;
    width: 35px; height: 35px; border-radius: 50%;
    color: var(--text-muted); cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: white; background: #ef4444; }
.modal-content h3 { margin-bottom: 20px; color: var(--primary-color); font-size: 1.8rem; }
.modal-form .form-group { margin-bottom: 15px; }
.modal-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); }
.modal-form input, .modal-form select {
    width: 100%; padding: 12px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); font-family: inherit; font-size: 1rem;
    transition: border-color 0.3s; background: var(--background-light);
}
.modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--background-light);
    color: var(--text-dark);
    resize: vertical;
}
.modal-form input:focus, .modal-form select:focus {
    outline: none; border-color: var(--primary-color);
}
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.modal-form .btn { width: 100%; margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px; font-size: 1.1rem; }

.consult-modal-overlay {
    padding: 18px;
}

.consult-modal-content {
    width: min(980px, 96vw);
    max-width: 980px;
    max-height: min(92dvh, 820px);
    overflow-y: auto;
    padding: 0;
    border-radius: 28px;
    border-top: 0;
}

.consult-modal-head {
    position: relative;
    overflow: hidden;
    padding: 30px 34px 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(20, 45, 79, 0.86)),
        radial-gradient(circle at 16% 10%, rgba(201, 154, 54, 0.24), transparent 28%);
}

.consult-modal-head h3 {
    color: #fff;
    margin: 12px 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.consult-modal-head p {
    max-width: 720px;
    color: #e3eaf4;
    line-height: 1.8;
}

.consult-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(201, 154, 54, 0.14);
    color: #e2b552;
    border: 1px solid rgba(201, 154, 54, 0.28);
    font-weight: 900;
}

.consult-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 22px;
    padding: 28px;
}

.consult-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.consult-form .form-group {
    margin-bottom: 14px;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
    border-radius: 15px;
    background: #f8fafc;
}

.consult-side-card {
    align-self: stretch;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, #0f172a, #142d4f);
    color: #fff;
}

.consult-side-card > span {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #e2b552;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.45rem;
}

.consult-side-card h4 {
    color: #fff;
    margin: 16px 0 14px;
    font-size: 1.25rem;
}

.consult-side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.consult-side-card li {
    display: flex;
    gap: 10px;
    color: #e0f2fe;
    line-height: 1.7;
    font-weight: 800;
}

.consult-side-card li i {
    color: #e2b552;
    margin-top: 5px;
}

html[data-theme="dark"] .consult-form input,
html[data-theme="dark"] .consult-form select,
html[data-theme="dark"] .consult-form textarea {
    background: #111c31;
    border-color: rgba(148, 163, 184, 0.24);
    color: var(--text-dark);
}

@media (max-width: 820px) {
    .consult-modal-grid,
    .consult-form-grid {
        grid-template-columns: 1fr;
    }

    .consult-modal-head,
    .consult-modal-grid {
        padding: 24px 18px;
    }
}

html[data-theme="dark"] .premium-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .pro-card,
html[data-theme="dark"] .domain-card,
html[data-theme="dark"] .solution-card,
html[data-theme="dark"] .trust-card,
html[data-theme="dark"] .journey-grid article,
html[data-theme="dark"] .timeline-slide,
html[data-theme="dark"] .about-identity-card,
html[data-theme="dark"] .portfolio-item,
html[data-theme="dark"] .domain-pill,
html[data-theme="dark"] .visit-step,
html[data-theme="dark"] .visit-form,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .chatbot-window {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .stats-section,
html[data-theme="dark"] .portfolio-section,
html[data-theme="dark"] .journey-section,
html[data-theme="dark"] .page-shell,
html[data-theme="dark"] .pro-section {
    background: linear-gradient(180deg, #020617, #0f172a 52%, #020617);
}

html[data-theme="dark"] .services-process div,
html[data-theme="dark"] .about-highlights div,
html[data-theme="dark"] .portfolio-meta span,
html[data-theme="dark"] .visit-field input,
html[data-theme="dark"] .visit-field select,
html[data-theme="dark"] .visit-field textarea,
html[data-theme="dark"] .modal-form input,
html[data-theme="dark"] .modal-form select,
html[data-theme="dark"] .modal-form textarea {
    background: #111c31;
    border-color: rgba(148, 163, 184, 0.24);
    color: var(--text-dark);
}

html[data-theme="dark"] .domain-pill i,
html[data-theme="dark"] .pro-card-icon {
    background: rgba(143, 176, 222, 0.16);
    color: #b4c8e6;
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .portfolio-intro h2,
html[data-theme="dark"] .visit-intro h2,
html[data-theme="dark"] .visit-form-head h2,
html[data-theme="dark"] .portfolio-info h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .portfolio-tag,
html[data-theme="dark"] .service-category,
html[data-theme="dark"] .domain-tag {
    background: rgba(226, 181, 82, 0.14);
    color: #ecc979;
}

/* Professional dark mode pass: keep all text readable against deep surfaces. */
html[data-theme="dark"] {
    --background-light: #020617;
    --background-pure: #0b1220;
    --card-bg: #0f172a;
    --border-color: rgba(148, 163, 184, 0.24);
    --text-dark: #f8fafc;
    --text-muted: #cbd5e1;
    --accent-color: #e2b552;
}

html[data-theme="dark"] header,
html[data-theme="dark"] .site-header {
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96)) !important;
    border-bottom-color: rgba(226, 181, 82, 0.22) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] small,
html[data-theme="dark"] .section-lead,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .footer-links,
html[data-theme="dark"] .footer-links a {
    color: #cbd5e1;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .home-section .section-title,
html[data-theme="dark"] .stats-intro h2,
html[data-theme="dark"] .scope-process span,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .solution-card h3,
html[data-theme="dark"] .journey-grid h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .premium-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .solution-card,
html[data-theme="dark"] .systems-panel,
html[data-theme="dark"] .trust-card,
html[data-theme="dark"] .journey-grid article,
html[data-theme="dark"] .scope-process div,
html[data-theme="dark"] .footer-company-panel,
html[data-theme="dark"] .footer-contact-card,
html[data-theme="dark"] .modal-content {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(17, 28, 49, 0.94)) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color: #f8fafc !important;
    background: #111c31 !important;
    border-color: rgba(148, 163, 184, 0.32) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .btn:not(.btn-primary),
html[data-theme="dark"] .portal-home-link,
html[data-theme="dark"] .portal-light-btn {
    color: #e5edf8;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.28);
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    .container {
        padding: 0 1rem;
    }
    header {
        padding: 0.5rem 1rem;
    }
    .timeline-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .timeline-container::before {
        display: none;
    }
    .timeline-step {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    /* Global Typography Fixes for Mobile */
    h1 { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; line-height: 1.3; }
    h2, .section-title { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
    h3 { font-size: clamp(1.2rem, 4vw, 1.5rem) !important; }
    p { font-size: 1rem !important; }
    
    .stat-card h3, .counter { font-size: 2.2rem !important; }
    
    /* Reduce huge inline icons */
    [style*="font-size: 3"], [style*="font-size: 4"], [style*="font-size: 5"], .service-card i, .stat-card i {
        font-size: 2.5rem !important;
    }
}

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

    .btn {
        width: 100%;
        max-width: 100%;
        padding-inline: 1rem;
        white-space: normal;
    }

    .nav-controls .lang-toggle-btn {
        display: none;
    }

    header .nav-controls .theme-toggle-btn {
        min-width: 78px;
    }

    header .nav-controls .theme-option span {
        display: none;
    }
}

/* --- Timeline Styles --- */
.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
    padding: 0 20px;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--accent-color);
    z-index: 1;
    border-radius: 2px;
}
.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}
.timeline-icon {
    width: 44px;
    height: 44px;
    background: var(--background-pure);
    border: 4px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-step.completed .timeline-icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
}
.timeline-step.active .timeline-icon {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 0 20px rgba(201, 154, 54, 0.4);
    transform: scale(1.1);
}
.timeline-step p {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* --- Print Styles --- */
@media print {
    body {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sidebar, .nav-menu, header, footer, .btn, .btn-primary, .btn-new-ticket, .logout-btn {
        display: none !important;
    }
    .main-content, .dash-tab {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
    .stat-card, table, .table-container, .dashboard-grid {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        color: black !important;
    }
    * {
        color: black !important;
        text-shadow: none !important;
    }
    table th, table td {
        border-color: #000 !important;
    }
}

/* --- FinalTech unified professional polish --- */
header {
    gap: 18px;
}

header nav {
    flex: 1;
    min-width: 0;
}

.nav-links {
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 1.4vw, 1.6rem);
    flex-wrap: wrap;
}

.nav-links li a {
    white-space: nowrap;
    font-size: clamp(0.88rem, 0.95vw, 1rem);
}

.btn {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.section-title {
    position: relative;
    margin-bottom: 32px;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.premium-card,
.service-card,
.stat-card,
.service-row,
.amc-form,
.amc-result,
.visit-form {
    border-radius: 18px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.94)) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
}

.service-card {
    padding: 28px;
}

.service-card i,
.m-feature i {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 82, 136, 0.1);
    color: var(--primary-color);
    margin-bottom: 14px;
}

.service-card p,
.m-feature p,
.service-details p {
    color: var(--text-muted);
}

.services-grid {
    gap: clamp(18px, 2.2vw, 30px);
}

table th,
table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

table tbody tr:nth-child(even) {
    background: rgba(42, 82, 136, 0.035);
}

table tbody tr:hover {
    background: rgba(201, 154, 54, 0.08);
}

details[open] {
    border-color: rgba(42, 82, 136, 0.35) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.footer-grid {
    text-align: start;
}

/* Header/Footer identity redesign */
.site-header {
    padding: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(226, 181, 82, 0.2), transparent 30%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.97) 52%, rgba(16, 38, 74, 0.92));
    border-bottom: 1px solid rgba(226, 181, 82, 0.18);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.2);
}

.site-header-inner {
    width: min(100%, 1460px);
    margin: 0 auto;
    padding: 12px clamp(14px, 3vw, 42px);
    display: grid;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}

.site-header-brand {
    min-width: 0;
}

.site-header .logo-link,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-frame {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 172px;
    min-height: 76px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.brand-logo-frame::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    border: 1px solid rgba(226, 181, 82, 0.24);
    pointer-events: none;
}

.site-header .logo-container .finaltech-mark-logo,
.footer-brand .finaltech-mark-logo {
    width: 150px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.site-header .brand-text,
.footer-brand .brand-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.brand-eyebrow {
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    color: #e2b552;
    background: rgba(226, 181, 82, 0.11);
    border: 1px solid rgba(226, 181, 82, 0.24);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.site-header .brand-text strong,
.footer-brand .brand-text strong {
    color: #fff;
    font-size: clamp(1.08rem, 1.35vw, 1.38rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.site-header .brand-text small,
.footer-brand .brand-text small {
    color: #e3eaf4;
    font-size: clamp(0.74rem, 0.82vw, 0.86rem);
    font-weight: 800;
}

.site-header-nav {
    justify-self: center;
    min-width: 0;
}

.site-header .nav-links {
    gap: 5px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.site-header .nav-links li {
    margin: 0;
}

.site-header .nav-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 16px;
    font-size: clamp(0.78rem, 0.82vw, 0.88rem);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    white-space: nowrap;
}

.site-header .nav-links li a::after {
    display: none;
}

.site-header .nav-links li a:hover,
.site-header .nav-links li a.active {
    color: #0f172a;
    background: linear-gradient(135deg, #e2b552, #f2dca6);
    box-shadow: 0 10px 22px rgba(226, 181, 82, 0.22);
}

.site-header-actions {
    justify-self: end;
    gap: 8px;
    flex-wrap: nowrap;
}

.site-header-actions .btn,
.site-header-actions .theme-toggle-btn {
    min-height: 42px;
}

.site-header-actions .nav-consult-btn,
.site-header-actions .nav-portal-btn,
.site-header-actions .nav-admin-btn {
    padding: 0.54rem 0.82rem;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.site-header-actions .nav-consult-btn {
    box-shadow: 0 12px 24px rgba(27, 58, 100, 0.24);
}

.site-header-actions .nav-portal-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-header-actions .nav-admin-btn {
    color: #e2b552;
    background: rgba(226, 181, 82, 0.08);
    border-color: rgba(226, 181, 82, 0.34);
}

.footer-shell {
    width: min(100%, 1220px);
    margin: 0 auto;
}

.premium-footer {
    padding-inline: clamp(16px, 4vw, 48px);
    background:
        radial-gradient(circle at 12% 6%, rgba(226, 181, 82, 0.16), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(42, 82, 136, 0.18), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.footer-contact-strip {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
}

.footer-strip-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #0f172a;
    background: linear-gradient(135deg, #e2b552, #f2dca6);
    box-shadow: 0 14px 26px rgba(226, 181, 82, 0.22);
}

.footer-grid {
    grid-template-columns: minmax(340px, 1.45fr) minmax(160px, 0.72fr) minmax(190px, 0.8fr) minmax(280px, 1fr);
    gap: clamp(22px, 3vw, 42px);
    align-items: stretch;
}

.footer-company {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-company::before {
    content: '';
    position: absolute;
    inset-inline-start: -40px;
    top: -60px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(226, 181, 82, 0.1);
    pointer-events: none;
}

.footer-brand {
    position: relative;
    margin-bottom: 18px;
}

.footer-brand .brand-logo-frame {
    width: 178px;
    min-height: 80px;
}

.footer-brand .finaltech-mark-logo {
    width: 154px;
    height: 60px;
}

.footer-brand-points {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.footer-brand-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-weight: 800;
}

.footer-brand-points i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #e2b552;
    background: rgba(226, 181, 82, 0.1);
}

.footer-col:not(.footer-company) {
    padding: 18px 0;
}

.footer-col h3 {
    font-size: 1.12rem;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a,
.footer-contact-list span {
    color: #cbd5e1;
    font-weight: 700;
}

.footer-contact-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact-list li:last-child {
    border-bottom: 0;
}

.footer-contact-list i {
    width: 36px;
    height: 36px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(201, 154, 54, 0.12);
}

.footer-bottom {
    display: flex;
    justify-content: center;
}

@media (max-width: 1280px) {
    .site-header-inner {
        grid-template-columns: minmax(320px, 390px) 1fr;
    }

    .site-header-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .site-header .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .site-header-actions {
        justify-self: end;
    }
}

@media (max-width: 992px) {
    .site-header-inner {
        display: flex;
        min-height: 78px;
        padding: 9px 12px;
    }

    .site-header-nav {
        order: initial;
        flex: 0;
    }

    .site-header .nav-links {
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        flex-wrap: nowrap;
        padding: 2rem;
        border-radius: 0;
        background-color: var(--background-pure);
        border: 0;
        box-shadow: none;
    }

    .site-header .nav-links li a {
        color: var(--text-dark);
        white-space: normal;
        justify-content: flex-start;
        border-radius: 12px;
        min-height: 42px;
    }

    .site-header .nav-links li a:hover,
    .site-header .nav-links li a.active {
        color: var(--primary-color);
        background: rgba(42, 82, 136, 0.1);
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .brand-logo-frame {
        width: 136px;
        min-height: 62px;
        border-radius: 18px;
    }

    .site-header .logo-container .finaltech-mark-logo,
    .footer-brand .finaltech-mark-logo {
        width: 118px;
        height: 46px;
    }

    .site-header .brand-text strong {
        font-size: 1.02rem;
    }

    .site-header .brand-text small,
    .site-header .brand-eyebrow {
        display: none;
    }

    .site-header-actions .theme-toggle-btn {
        min-width: 86px;
    }

    .site-header-actions .lang-toggle-btn {
        min-width: 42px;
        padding-inline: 10px;
    }

    .service-card {
        padding: 22px;
    }

    table {
        min-width: 640px;
    }

    header .nav-controls .nav-consult-btn,
    header .nav-controls .nav-admin-btn,
    header .nav-controls .nav-portal-btn {
        display: none;
    }

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

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

    .footer-company,
    .footer-col {
        text-align: center;
    }

    .footer-brand,
    .footer-socials,
    .footer-brand-points span {
        justify-content: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-contact-list li {
        text-align: start;
    }
}

/* Stronger brand-focused header pass */
.site-header-inner {
    display: block;
    padding: 14px clamp(16px, 4vw, 48px) 12px;
}

.site-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 44px);
}

.site-header-brand .logo-link {
    gap: 22px;
}

.site-header-utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(226, 232, 240, 0.78);
}

.site-header-utility .staff-access-link,
.site-header-utility .lang-toggle-btn,
.site-header-utility .theme-toggle-btn {
    min-height: 32px;
    border-radius: 999px;
    font-size: 0.76rem;
}

.site-header-utility .staff-access-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    color: rgba(226, 232, 240, 0.82);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800;
}

.site-header-utility .staff-access-link:hover {
    color: #e2b552;
    border-color: rgba(226, 181, 82, 0.26);
    background: rgba(226, 181, 82, 0.08);
}

.site-header-utility .lang-toggle-btn {
    padding: 0 11px;
    color: rgba(226, 232, 240, 0.86);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.1);
}

.site-header-utility .theme-toggle-btn {
    min-width: 104px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.1);
}

.site-header .brand-logo-frame {
    width: 168px;
    min-height: 72px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
        radial-gradient(circle at 20% 20%, rgba(226, 181, 82, 0.18), transparent 44%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 24px rgba(0, 0, 0, 0.24);
}

.site-header .brand-logo-frame::after {
    inset: 7px;
    border-radius: 15px;
    border-color: rgba(226, 181, 82, 0.36);
}

.site-header .logo-container .finaltech-mark-logo {
    width: 146px;
    height: 58px;
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.32));
}

.site-header .brand-text {
    gap: 4px;
    max-width: 300px;
}

.site-header .brand-eyebrow {
    padding: 3px 9px;
    font-size: 0.68rem;
    color: #f2dca6;
}

.site-header .brand-text strong {
    font-size: clamp(1.18rem, 1.85vw, 1.65rem);
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
}

.site-header .brand-text small {
    font-size: clamp(0.78rem, 0.95vw, 0.92rem);
    color: #e0f2fe;
    letter-spacing: 0;
}

.site-header-actions {
    padding: 6px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header-actions .nav-consult-btn,
.site-header-actions .nav-portal-btn {
    min-height: 38px;
    padding-inline: 0.9rem;
    font-size: 0.82rem;
}

.site-header-nav-row {
    display: grid;
    grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.site-header-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 181, 82, 0.42), transparent);
}

.site-header-nav {
    justify-self: center;
}

.site-header .nav-links {
    border-radius: 999px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.09);
}

.site-header .nav-links li a {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.84rem;
}

.footer-company {
    padding: 32px;
}

.footer-brand {
    gap: 20px;
}

.footer-brand .brand-logo-frame {
    width: 160px;
    min-height: 72px;
}

.footer-brand .finaltech-mark-logo {
    width: 138px;
    height: 56px;
}

.footer-brand .brand-text strong {
    font-size: clamp(1.18rem, 1.8vw, 1.55rem);
}

.footer-brand .brand-text small {
    font-size: 0.86rem;
}

.footer-company p {
    color: #d1d5db;
    font-size: 0.94rem;
    line-height: 1.75;
    margin-top: 12px;
}

.footer-col h3 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.footer-links a,
.footer-contact-list span {
    font-size: 0.98rem;
    line-height: 1.8;
}

.footer-contact-strip strong {
    display: block;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.footer-contact-strip span:not(.footer-strip-icon) {
    letter-spacing: 0.01em;
}

.footer-brand-points {
    padding-top: 2px;
}

.footer-brand-points > span {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.footer-contact-col {
    min-width: 0;
}

.footer-contact-list a {
    color: #e2e8f0;
    font-weight: 800;
}

/* Cleaner deployment footer layout */
.footer-main {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(22px, 4vw, 46px);
    align-items: stretch;
    margin-bottom: 32px;
}

.footer-company-panel,
.footer-directory,
.footer-contact-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-company-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: clamp(24px, 3vw, 34px);
}

.footer-company-panel::before {
    content: '';
    position: absolute;
    inset-inline-start: -70px;
    top: -90px;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: rgba(226, 181, 82, 0.12);
    pointer-events: none;
}

.footer-directory {
    display: grid;
    gap: 18px;
    border-radius: 32px;
    padding: clamp(20px, 3vw, 30px);
}

.footer-directory-group,
.footer-contact-card {
    min-width: 0;
}

.footer-directory h3,
.footer-contact-card h3 {
    color: #fff;
    font-size: 1.08rem;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.footer-directory h3::after,
.footer-contact-card h3::after {
    display: none;
}

.footer-pill-links,
.footer-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-pill-links a,
.footer-service-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-weight: 800;
    font-size: 0.92rem;
    transition: 0.25s ease;
}

.footer-pill-links a:hover,
.footer-service-tags a:hover {
    color: #0f172a;
    background: #e2b552;
    border-color: #e2b552;
    transform: translateY(-2px);
}

.footer-contact-card {
    border-radius: 24px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.34);
}

.footer-contact-card .footer-contact-list {
    gap: 0;
}

.footer-contact-card .footer-contact-list li {
    padding: 9px 0;
}

.footer-grid {
    display: none;
}

@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-directory {
        border-radius: 26px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        gap: 18px;
    }

    .footer-company-panel,
    .footer-directory {
        text-align: center;
    }

    .footer-pill-links,
    .footer-service-tags {
        justify-content: center;
    }
}

@media (max-width: 1100px) {
    .site-header-main {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header-utility {
        justify-content: center;
    }

    .site-header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .site-header-inner {
        display: flex;
        padding: 10px 12px;
    }

    .site-header-main {
        flex: 1;
        min-width: 0;
        flex-direction: row;
        align-items: center;
    }

    .site-header-nav-row {
        display: block;
        margin-top: 0;
    }

    .site-header-line {
        display: none;
    }

    .site-header .brand-logo-frame {
        width: 132px;
        min-height: 58px;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 114px;
        height: 46px;
    }

    .site-header .brand-text strong {
        font-size: 1rem;
    }

    .site-header .brand-text small,
    .site-header .brand-eyebrow {
        display: none;
    }

    .site-header-actions {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .site-header-utility {
        order: 3;
        width: 100%;
        margin: 8px 0 0;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        flex-wrap: wrap;
    }

    .site-header-brand .logo-link {
        gap: 10px;
    }

    .site-header .brand-logo-frame {
        width: 112px;
        min-height: 50px;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 96px;
        height: 40px;
    }

    .site-header .brand-text strong {
        font-size: 1rem;
        max-width: 128px;
    }

    .site-header-utility .staff-access-link span {
        display: none;
    }

    .site-header-utility .theme-toggle-btn {
        min-width: 88px;
    }

    .footer-brand .brand-logo-frame {
        width: 176px;
        min-height: 82px;
    }

    .footer-brand .finaltech-mark-logo {
        width: 150px;
        height: 62px;
    }
}

.pwa-install-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
    padding: 14px 16px;
    color: white;
    background: linear-gradient(135deg, #0f172a, #10264a);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.pwa-install-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pwa-install-copy span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-install-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #0f172a;
    background: var(--accent-color);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.pwa-close-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.pwa-install-guide {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pwa-install-guide-card {
    position: relative;
    width: min(440px, 100%);
    padding: 26px;
    color: #e5edf8;
    background:
        radial-gradient(circle at top right, rgba(226, 181, 82, 0.16), transparent 34%),
        linear-gradient(145deg, #0f172a, #111c31);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
    text-align: center;
}

.pwa-install-guide-card > i {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    color: #0f172a;
    background: linear-gradient(135deg, #e2b552, #f2dca6);
    border-radius: 18px;
    font-size: 1.5rem;
}

.pwa-install-guide-card h3 {
    margin: 0 0 10px;
    color: #fff;
}

.pwa-install-guide-card p,
.pwa-install-guide-card li {
    color: #cbd5e1;
    line-height: 1.8;
}

.pwa-install-guide-card ol {
    margin: 14px 0;
    padding-inline-start: 22px;
    text-align: start;
}

.pwa-install-guide-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #0f172a;
    background: #e2b552;
    border-radius: 14px;
    font-weight: 900;
}

.pwa-guide-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #e5edf8;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
    cursor: pointer;
}

.portal-theme-toggle {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    left: 14px;
    z-index: 9000;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 900;
    cursor: pointer;
}

html[data-theme="dark"] .portal-theme-toggle {
    color: #0f172a;
    background: linear-gradient(135deg, #e2b552, #f2dca6);
    border-color: rgba(226, 181, 82, 0.42);
}

@media (max-width: 760px) {
    .portal-theme-toggle {
        display: inline-flex;
    }

    .portal-theme-toggle span {
        display: none;
    }
}

html[dir="ltr"] .pwa-install-banner {
    direction: ltr;
}

@media (max-width: 560px) {
    .pwa-install-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .pwa-install-actions {
        justify-content: center;
    }
}

.mobile-bottom-nav {
    display: none;
}

/* Sitewide scale correction: keep headings prominent without overpowering content. */
.section-title,
.home-section-title,
.pro-hero h1,
.services-hero h1,
.about-hero h1,
.blog-hero h1,
.store-hero h1,
.help-hero h1,
.service-detail-hero h1,
.hero-swiper h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.65rem) !important;
    line-height: 1.22 !important;
}

.pro-hero p,
.services-hero p,
.about-hero p,
.blog-hero p,
.store-hero p,
.help-hero p,
.service-detail-hero p,
.hero-swiper p {
    font-size: clamp(0.92rem, 1.35vw, 1.08rem) !important;
    line-height: 1.75 !important;
}

.hero-swiper {
    min-height: clamp(430px, 58vh, 560px) !important;
}

.pro-hero,
.services-hero,
.about-hero,
.blog-hero,
.store-hero,
.help-hero {
    padding-block: clamp(58px, 8vw, 92px) !important;
}

.floating-ai-advisor {
    position: fixed;
    inset-inline-start: 18px;
    bottom: 24px;
    z-index: 9997;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 36px);
    padding: 10px 14px;
    color: #0f172a;
    background: linear-gradient(135deg, #e2b552, #f2dca6);
    border: 1px solid rgba(226, 181, 82, 0.65);
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.2;
}

.floating-ai-advisor:hover,
.floating-ai-advisor:focus-visible {
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
    outline: none;
}

.floating-ai-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0f172a;
    border-radius: 50%;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .footer-contact-strip {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .footer-contact-strip .btn {
        width: 100%;
        text-align: center;
    }

    body {
        padding-bottom: 90px;
    }

    .floating-ai-advisor {
        inset-inline-start: 14px;
        bottom: 96px;
        padding: 9px;
        border-radius: 50%;
    }

    .floating-ai-text {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        z-index: 9998;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 22px;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(14px);
    }

    [data-theme="dark"] .mobile-bottom-nav {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(148, 163, 184, 0.2);
    }

    .mobile-bottom-link {
        min-width: 0;
        border: 0;
        border-radius: 16px;
        padding: 8px 4px;
        color: var(--text-muted);
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        font: inherit;
        font-size: 0.73rem;
        line-height: 1.1;
        cursor: pointer;
    }

    .mobile-bottom-link i {
        font-size: 1.05rem;
    }

    .mobile-bottom-link.active,
    .mobile-bottom-link:focus-visible {
        color: var(--primary-color);
        background: rgba(42, 82, 136, 0.1);
        outline: none;
    }

    .scroll-to-top {
        bottom: 170px;
        right: 18px;
    }

    html[dir="ltr"] .scroll-to-top {
        right: auto;
        left: 18px;
    }

    .pwa-install-banner {
        bottom: 96px;
    }
}

/* Final visual scale reset: compact, corporate, and consistent across public pages. */
:root {
    --ft-page-max: 1160px;
    --ft-section-y: clamp(42px, 6vw, 72px);
    --ft-section-y-sm: clamp(28px, 4vw, 48px);
    --ft-card-pad: clamp(18px, 2.2vw, 26px);
    --ft-card-radius: 18px;
    --ft-title: clamp(1.55rem, 2.8vw, 2.35rem);
    --ft-title-sm: clamp(1.2rem, 2vw, 1.65rem);
    --ft-hero-title: clamp(1.8rem, 3.8vw, 2.9rem);
    --ft-body: 0.96rem;
}

body {
    font-size: 15px;
    line-height: 1.62;
}

.container,
.pro-container,
.footer-shell {
    width: min(var(--ft-page-max), calc(100% - 32px));
}

.btn {
    min-height: 38px;
    padding: 0.62rem 1rem;
    font-size: 0.9rem;
}

.site-header {
    padding: 8px 16px;
}

.site-header-inner {
    width: min(1180px, 100%);
    padding: 8px 12px;
    gap: 8px;
}

.site-header-utility {
    min-height: 30px;
    margin-bottom: 4px;
    font-size: 0.72rem;
}

.site-header-main {
    min-height: auto;
    align-items: center;
}

.site-header .logo-link {
    gap: 10px;
}

.site-header .brand-logo-frame {
    width: 150px;
    min-height: 64px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.site-header .brand-logo-frame::after {
    inset: 6px;
    border-radius: 12px;
}

.site-header .logo-container .finaltech-mark-logo {
    width: 128px;
    height: 50px;
}

.site-header .brand-text {
    gap: 3px;
    max-width: 260px;
}

.site-header .brand-eyebrow {
    padding: 2px 8px;
    font-size: 0.64rem;
}

.site-header .brand-text strong {
    font-size: clamp(1.05rem, 1.45vw, 1.38rem);
    line-height: 1.14;
}

.site-header .brand-text small {
    font-size: 0.76rem;
}

.site-header-actions {
    padding: 4px;
    gap: 6px;
    border-radius: 16px;
}

.site-header-actions .nav-consult-btn,
.site-header-actions .nav-portal-btn {
    min-height: 36px;
    padding: 0.48rem 0.78rem;
    font-size: 0.78rem;
}

.site-header-nav-row {
    margin-top: 6px;
    gap: 12px;
}

.site-header .nav-links {
    padding: 4px;
    gap: 3px;
}

.site-header .nav-links li a {
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.section-title,
.home-section .section-title,
.pro-card h2,
.pro-card h3,
.footer-directory h3 {
    line-height: 1.25;
}

.section-title,
.home-section .section-title {
    font-size: var(--ft-title);
    margin-bottom: 14px;
}

.section-lead,
.pro-hero p,
.services-hero p,
.about-hero p,
.blog-hero p,
.store-hero p,
.help-hero p {
    font-size: var(--ft-body);
    line-height: 1.72;
}

.premium-footer {
    padding: 36px 16px 18px;
}

.footer-contact-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.footer-strip-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.footer-contact-strip strong {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.footer-main {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 20px;
}

.footer-company-panel,
.footer-directory,
.footer-contact-card {
    padding: 22px;
    border-radius: 20px;
}

.footer-brand {
    gap: 12px;
    margin-bottom: 12px;
}

.footer-brand .brand-logo-frame {
    width: 132px;
    min-height: 60px;
}

.footer-brand .finaltech-mark-logo {
    width: 112px;
    height: 46px;
}

.footer-brand .brand-text strong {
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
}

.footer-brand .brand-text small {
    font-size: 0.78rem;
}

.footer-company-panel p,
.footer-contact-list,
.footer-pill-links a,
.footer-service-tags a {
    font-size: 0.9rem;
}

.footer-brand-points {
    gap: 8px;
}

.footer-brand-points span,
.footer-pill-links a,
.footer-service-tags a {
    padding: 8px 10px;
    border-radius: 12px;
}

.floating-ai-advisor {
    bottom: 20px;
    padding: 9px 12px;
    font-size: 0.82rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.floating-ai-icon {
    width: 30px;
    height: 30px;
}

.portfolio-header,
.contact-hero,
.consult-page-hero,
.careers-hero {
    padding: clamp(56px, 8vw, 86px) 18px clamp(42px, 6vw, 62px) !important;
}

.portfolio-header h1,
.contact-hero h1,
.consult-page-hero h1,
.careers-hero h1,
.blog-hero h1[style],
.store-hero h1[style],
.help-hero h1[style] {
    font-size: clamp(1.75rem, 3.6vw, 2.65rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 12px !important;
}

.portfolio-header p,
.contact-hero p,
.consult-page-hero p,
.careers-hero p[style] {
    font-size: clamp(0.94rem, 1.4vw, 1.08rem) !important;
    line-height: 1.72 !important;
}

.contact-section,
.consult-page-section,
.visit-form-wrap,
.careers-container {
    padding-top: clamp(36px, 6vw, 60px) !important;
    padding-bottom: clamp(36px, 6vw, 60px) !important;
}

.contact-card,
.contact-quick-card,
.consult-hero-card,
.consult-page-form,
.consult-page-side,
.visit-form,
.visit-side-card,
.visit-step,
.job-card {
    padding: clamp(18px, 2.4vw, 24px) !important;
    border-radius: 18px !important;
}

@media (max-width: 992px) {
    .site-header-inner {
        padding: 8px 10px;
    }

    .site-header .brand-logo-frame {
        width: 116px;
        min-height: 52px;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 98px;
        height: 40px;
    }

    .site-header .brand-text strong {
        font-size: 0.98rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14.5px;
    }

    .site-header {
        padding: 6px 10px;
    }

    .site-header-inner {
        padding: 6px 8px;
    }

    .site-header .brand-logo-frame {
        width: 98px;
        min-height: 44px;
        border-radius: 14px;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 82px;
        height: 34px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

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

    .footer-contact-strip {
        padding: 14px;
    }
}

/* Header/footer hard reset: remove stacked empty space and keep navigation compact. */
.site-header {
    padding: 0 !important;
    background: linear-gradient(135deg, #071225, #0f172a 62%, #12336f) !important;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.18) !important;
}

.site-header-inner {
    position: relative !important;
    width: min(1180px, calc(100% - 24px)) !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-areas: "brand nav actions" !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 7px 0 !important;
}

.site-header-utility {
    position: absolute !important;
    inset-block-start: 3px !important;
    inset-inline-end: 0 !important;
    z-index: 3 !important;
    margin: 0 !important;
    min-height: 0 !important;
    gap: 4px !important;
    opacity: 0.72 !important;
    transform: scale(0.82) !important;
    transform-origin: top right !important;
}

html[dir="ltr"] .site-header-utility {
    transform-origin: top left !important;
}

.site-header-utility .staff-access-link,
.site-header-utility .lang-toggle-btn,
.site-header-utility .theme-toggle-btn {
    min-height: 26px !important;
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
}

.site-header-utility .theme-toggle-btn {
    min-width: 86px !important;
}

.site-header-main {
    display: contents !important;
}

.site-header-brand {
    grid-area: brand !important;
}

.site-header-nav-row {
    grid-area: nav !important;
    display: block !important;
    margin: 0 !important;
    min-width: 0 !important;
}

.site-header-line {
    display: none !important;
}

.site-header-actions {
    grid-area: actions !important;
    justify-self: end !important;
    padding: 0 !important;
    gap: 6px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.site-header .logo-link {
    gap: 8px !important;
}

.site-header .brand-logo-frame {
    width: 104px !important;
    min-height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

.site-header .brand-logo-frame::after {
    display: none !important;
}

.site-header .logo-container .finaltech-mark-logo {
    width: 88px !important;
    height: 34px !important;
    filter: none !important;
}

.site-header .brand-text {
    gap: 1px !important;
    max-width: 190px !important;
}

.site-header .brand-eyebrow {
    display: none !important;
}

.site-header .brand-text strong {
    font-size: 0.98rem !important;
    line-height: 1.12 !important;
    text-shadow: none !important;
}

.site-header .brand-text small {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.site-header .nav-links {
    justify-content: center !important;
    gap: 2px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.site-header .nav-links li a {
    min-height: 30px !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
}

.site-header-actions .nav-consult-btn,
.site-header-actions .nav-portal-btn {
    min-height: 32px !important;
    padding: 0.42rem 0.68rem !important;
    border-radius: 10px !important;
    font-size: 0.74rem !important;
}

.menu-toggle {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
}

.premium-footer {
    padding: 18px 14px 10px !important;
}

.footer-shell {
    width: min(1120px, calc(100% - 16px)) !important;
}

.footer-contact-strip {
    display: none !important;
}

.footer-main {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr) !important;
    gap: 12px !important;
}

.footer-company-panel,
.footer-directory,
.footer-contact-card {
    padding: 14px !important;
    border-radius: 14px !important;
}

.footer-brand {
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.footer-brand .brand-logo-frame {
    width: 98px !important;
    min-height: 42px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.footer-brand .brand-logo-frame::after {
    display: none !important;
}

.footer-brand .finaltech-mark-logo {
    width: 82px !important;
    height: 34px !important;
    filter: none !important;
}

.footer-brand .brand-eyebrow {
    display: none !important;
}

.footer-brand .brand-text strong {
    font-size: 0.98rem !important;
}

.footer-brand .brand-text small {
    font-size: 0.7rem !important;
}

.footer-company-panel p {
    margin: 8px 0 0 !important;
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
}

.footer-brand-points {
    display: none !important;
}

.footer-directory {
    display: grid !important;
    grid-template-columns: 1fr 1fr minmax(220px, 1fr) !important;
    gap: 12px !important;
}

.footer-directory h3,
.footer-contact-card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
}

.footer-pill-links,
.footer-service-tags {
    gap: 6px !important;
}

.footer-pill-links a,
.footer-service-tags a {
    padding: 6px 8px !important;
    border-radius: 9px !important;
    font-size: 0.78rem !important;
}

.footer-contact-list {
    gap: 6px !important;
}

.footer-contact-list li,
.footer-contact-list a,
.footer-contact-list span {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}

.footer-socials {
    margin-top: 10px !important;
}

.footer-socials a {
    width: 32px !important;
    height: 32px !important;
}

.footer-bottom {
    margin-top: 10px !important;
    padding-top: 8px !important;
    font-size: 0.78rem !important;
}

@media (max-width: 992px) {
    .site-header-inner {
        grid-template-columns: auto 1fr auto !important;
        grid-template-areas: "brand nav actions" !important;
    }

    .site-header-utility {
        display: none !important;
    }

    .site-header .brand-text small {
        display: none !important;
    }

    .site-header .brand-logo-frame {
        width: 88px !important;
        min-height: 38px !important;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 74px !important;
        height: 30px !important;
    }

    .site-header .nav-links {
        top: 54px !important;
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        width: min(100%, calc(100% - 18px)) !important;
        grid-template-columns: auto 1fr auto !important;
        gap: 8px !important;
        padding: 6px 0 !important;
    }

    .site-header .brand-text {
        display: none !important;
    }

    .site-header .brand-logo-frame {
        width: 82px !important;
        min-height: 36px !important;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 68px !important;
        height: 28px !important;
    }

    .site-header-nav-row {
        justify-self: end !important;
    }

    .site-header .nav-links {
        top: 48px !important;
    }

    .site-header-actions .nav-consult-btn,
    .site-header-actions .nav-portal-btn {
        display: none !important;
    }

    .footer-main,
    .footer-directory {
        grid-template-columns: 1fr !important;
    }

    .footer-company-panel,
    .footer-directory,
    .footer-contact-card {
        padding: 12px !important;
    }
}

/* Precision pass requested: brand to far right, visible utilities, tighter footer and typography. */
.site-header-inner {
    grid-template-columns: auto auto minmax(0, 1fr) auto !important;
    grid-template-areas: "actions utility nav brand" !important;
    gap: 10px !important;
    min-height: 48px !important;
}

.site-header-brand {
    justify-self: end !important;
}

.site-header .logo-link {
    justify-content: flex-end !important;
}

.site-header-utility {
    position: static !important;
    grid-area: utility !important;
    justify-self: start !important;
    display: inline-flex !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.site-header-utility .staff-access-link,
.site-header-utility .lang-toggle-btn,
.site-header-utility .theme-toggle-btn {
    min-height: 30px !important;
    padding: 4px 8px !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    opacity: 1 !important;
}

.site-header-utility .theme-toggle-btn {
    min-width: 94px !important;
}

.site-header .brand-logo-frame {
    width: 118px !important;
    min-height: 44px !important;
}

.site-header .logo-container .finaltech-mark-logo {
    width: 100px !important;
    height: 36px !important;
}

.site-header .brand-text strong {
    font-size: 0.92rem !important;
}

.site-header .brand-text small {
    font-size: 0.64rem !important;
}

.site-header .nav-links li a {
    font-size: 0.72rem !important;
    padding-inline: 7px !important;
}

body {
    font-size: 14px !important;
}

h1,
.section-title,
.home-section .section-title,
.pro-hero h1,
.services-hero h1,
.about-hero h1,
.blog-hero h1,
.store-hero h1,
.help-hero h1,
.portfolio-header h1,
.contact-hero h1,
.consult-page-hero h1,
.careers-hero h1 {
    font-size: clamp(1.45rem, 2.7vw, 2.15rem) !important;
    line-height: 1.24 !important;
}

h2,
.about-text h2,
.timeline-title,
.visit-intro h2 {
    font-size: clamp(1.18rem, 2.2vw, 1.65rem) !important;
}

h3,
.blog-title,
.product-title,
.footer-directory h3,
.footer-contact-card h3 {
    font-size: clamp(0.98rem, 1.55vw, 1.2rem) !important;
}

p,
li,
.section-lead,
.blog-excerpt,
.product-category,
.contact-hero p,
.consult-page-hero p,
.careers-hero p[style] {
    font-size: 0.9rem !important;
    line-height: 1.62 !important;
}

.premium-footer {
    padding: 14px 12px 8px !important;
}

.footer-main {
    grid-template-columns: 0.85fr 1.15fr !important;
    gap: 10px !important;
}

.footer-company-panel,
.footer-directory,
.footer-contact-card {
    padding: 10px !important;
    border-radius: 12px !important;
}

.footer-company-panel p {
    max-width: 46ch !important;
}

.footer-directory {
    align-items: start !important;
    gap: 8px !important;
}

.footer-pill-links,
.footer-service-tags {
    display: flex !important;
    flex-wrap: wrap !important;
}

.footer-pill-links a,
.footer-service-tags a {
    padding: 5px 7px !important;
    font-size: 0.72rem !important;
}

.footer-contact-list li,
.footer-contact-list a,
.footer-contact-list span {
    font-size: 0.76rem !important;
}

@media (max-width: 1100px) {
    .site-header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        grid-template-areas: "actions nav brand" !important;
    }

    .site-header-utility {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        grid-template-areas: "actions nav brand" !important;
    }

    .site-header .brand-logo-frame {
        width: 86px !important;
        min-height: 34px !important;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 72px !important;
        height: 26px !important;
    }

    .footer-main,
    .footer-directory {
        grid-template-columns: 1fr !important;
    }
}

/* Direction-aware header ordering: RTL brand on the right, LTR brand on the left. */
.site-header-inner {
    grid-template-areas: "brand nav utility actions" !important;
}

@media (max-width: 1100px) {
    .site-header-inner {
        grid-template-areas: "brand nav actions" !important;
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        grid-template-areas: "brand nav actions" !important;
    }
}

/* Explicit physical header placement. */
html[dir="rtl"] .site-header-inner {
    direction: ltr !important;
    grid-template-columns: auto auto minmax(0, 1fr) auto !important;
    grid-template-areas: "actions utility nav brand" !important;
}

html[dir="rtl"] .site-header-brand,
html[dir="rtl"] .site-header-nav-row,
html[dir="rtl"] .site-header-actions,
html[dir="rtl"] .site-header-utility {
    direction: rtl !important;
}

html[dir="rtl"] .site-header-brand {
    justify-self: end !important;
}

html[dir="rtl"] .site-header-actions {
    justify-self: start !important;
}

html[dir="ltr"] .site-header-inner {
    direction: ltr !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    grid-template-areas: "brand nav utility actions" !important;
}

html[dir="ltr"] .site-header-brand {
    justify-self: start !important;
}

html[dir="ltr"] .site-header-actions {
    justify-self: end !important;
}

@media (max-width: 1100px) {
    html[dir="rtl"] .site-header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        grid-template-areas: "actions nav brand" !important;
    }

    html[dir="ltr"] .site-header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        grid-template-areas: "brand nav actions" !important;
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .site-header-inner {
        grid-template-areas: "actions nav brand" !important;
    }

    html[dir="ltr"] .site-header-inner {
        grid-template-areas: "brand nav actions" !important;
    }
}

/* Mobile navigation clarity: make customer portal easy to find on phones. */
@media (max-width: 992px) {
    .site-header .nav-links {
        top: 52px !important;
        width: min(88vw, 340px) !important;
        height: calc(100dvh - 52px) !important;
        padding: 14px !important;
        gap: 8px !important;
        background: var(--background-pure) !important;
        border-inline-start: 1px solid var(--border-color) !important;
        box-shadow: -16px 0 38px rgba(15, 23, 42, 0.18) !important;
    }

    html[dir="rtl"] .site-header .nav-links {
        right: -100% !important;
        left: auto !important;
    }

    html[dir="rtl"] .site-header .nav-links.active {
        right: 0 !important;
    }

    html[dir="ltr"] .site-header .nav-links {
        left: -100% !important;
        right: auto !important;
        border-inline-start: 0 !important;
        border-inline-end: 1px solid var(--border-color) !important;
        box-shadow: 16px 0 38px rgba(15, 23, 42, 0.18) !important;
    }

    html[dir="ltr"] .site-header .nav-links.active {
        left: 0 !important;
    }

    .site-header .nav-links li {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .site-header .nav-links li a {
        width: 100% !important;
        min-height: 42px !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        padding: 10px 12px !important;
        color: var(--text-dark) !important;
        background: rgba(15, 23, 42, 0.035) !important;
        border: 1px solid rgba(226, 232, 240, 0.75) !important;
        border-radius: 14px !important;
        font-size: 0.9rem !important;
    }

    html[data-theme="dark"] .site-header .nav-links li a {
        background: rgba(255, 255, 255, 0.055) !important;
        border-color: rgba(148, 163, 184, 0.22) !important;
    }

    .site-header .nav-links .mobile-portal-link {
        display: block !important;
        order: -1 !important;
    }

    .site-header .nav-links .mobile-portal-link a {
        color: #0f172a !important;
        background: linear-gradient(135deg, #e2b552, #f2dca6) !important;
        border-color: rgba(226, 181, 82, 0.7) !important;
        box-shadow: 0 12px 24px rgba(226, 181, 82, 0.22) !important;
        font-weight: 900 !important;
    }

    .mobile-menu-overlay {
        inset: 52px 0 0 !important;
    }

    body.mobile-menu-open {
        overflow: hidden !important;
    }
}

@media (max-width: 768px) {
    .site-header .nav-links {
        top: 48px !important;
        height: calc(100dvh - 48px) !important;
    }

    .mobile-menu-overlay {
        inset: 48px 0 0 !important;
    }

    .mobile-bottom-link.mobile-portal-shortcut {
        color: #0f172a !important;
        background: linear-gradient(135deg, #e2b552, #f2dca6) !important;
        box-shadow: 0 8px 18px rgba(226, 181, 82, 0.24) !important;
        font-weight: 900 !important;
    }

    .mobile-bottom-link.mobile-portal-shortcut i {
        color: #0f172a !important;
    }

    .mobile-bottom-link.mobile-portal-shortcut.active,
    .mobile-bottom-link.mobile-portal-shortcut:focus-visible {
        color: #0f172a !important;
        background: linear-gradient(135deg, #c99a36, #f2dca6) !important;
        outline: 2px solid rgba(15, 23, 42, 0.18) !important;
    }
}

/* Mobile UX reset: clearer header actions, stronger menu contrast, compact bottom bar. */
@media (max-width: 768px) {
    body {
        font-size: 14px !important;
        padding-bottom: 82px !important;
    }

    .site-header {
        background: linear-gradient(135deg, #020617, #0f2347 58%, #142d4f) !important;
        border-bottom: 1px solid rgba(226, 181, 82, 0.28) !important;
    }

    html[dir="rtl"] .site-header-inner,
    html[dir="ltr"] .site-header-inner {
        min-height: 50px !important;
        width: calc(100% - 16px) !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding: 7px 0 !important;
    }

    .site-header .brand-logo-frame {
        width: 90px !important;
        min-height: 38px !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 76px !important;
        height: 30px !important;
    }

    .site-header-actions {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .site-header-actions .nav-consult-btn {
        display: none !important;
    }

    .site-header-actions .nav-portal-btn {
        display: inline-flex !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        gap: 6px !important;
        color: #0f172a !important;
        background: linear-gradient(135deg, #e2b552, #f2dca6) !important;
        border: 1px solid rgba(226, 181, 82, 0.85) !important;
        border-radius: 13px !important;
        box-shadow: 0 8px 18px rgba(226, 181, 82, 0.25) !important;
        font-size: 0.78rem !important;
        font-weight: 950 !important;
        white-space: nowrap !important;
    }

    .site-header-actions .nav-portal-btn i {
        font-size: 0.86rem !important;
    }

    .menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        color: #fff !important;
        background: rgba(255, 255, 255, 0.13) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 13px !important;
    }

    .site-header .nav-links {
        top: 50px !important;
        width: min(90vw, 350px) !important;
        height: calc(100dvh - 50px) !important;
        padding: 14px !important;
        gap: 9px !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.95) !important;
    }

    html[data-theme="dark"] .site-header .nav-links {
        background: #0f172a !important;
        border-color: rgba(148, 163, 184, 0.28) !important;
    }

    .site-header .nav-links li a {
        min-height: 44px !important;
        padding: 10px 12px !important;
        color: #0f172a !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.045) !important;
        font-size: 0.92rem !important;
        font-weight: 850 !important;
    }

    html[data-theme="dark"] .site-header .nav-links li a {
        color: #e5edf8 !important;
        background: rgba(255, 255, 255, 0.065) !important;
        border-color: rgba(148, 163, 184, 0.24) !important;
    }

    .site-header .nav-links .mobile-portal-link a {
        min-height: 50px !important;
        color: #0f172a !important;
        background: linear-gradient(135deg, #c99a36, #f2dca6) !important;
        border-color: rgba(201, 154, 54, 0.9) !important;
        box-shadow: 0 12px 24px rgba(201, 154, 54, 0.24) !important;
        font-size: 0.98rem !important;
    }

    .mobile-menu-overlay {
        inset: 50px 0 0 !important;
        background: rgba(2, 6, 23, 0.58) !important;
    }

    .mobile-bottom-nav {
        left: 10px !important;
        right: 10px !important;
        bottom: 8px !important;
        gap: 5px !important;
        padding: 7px !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(203, 213, 225, 0.95) !important;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2) !important;
    }

    html[data-theme="dark"] .mobile-bottom-nav {
        background: rgba(15, 23, 42, 0.98) !important;
        border-color: rgba(148, 163, 184, 0.26) !important;
    }

    .mobile-bottom-link {
        min-height: 48px !important;
        padding: 7px 2px !important;
        color: #334155 !important;
        border-radius: 15px !important;
        font-size: 0.7rem !important;
        font-weight: 850 !important;
    }

    html[data-theme="dark"] .mobile-bottom-link {
        color: #cbd5e1 !important;
    }

    .mobile-bottom-link i {
        font-size: 1rem !important;
    }

    .mobile-bottom-link.mobile-portal-shortcut {
        transform: translateY(-3px) !important;
        min-height: 52px !important;
        color: #0f172a !important;
        border: 1px solid rgba(201, 154, 54, 0.65) !important;
        border-radius: 17px !important;
        background: linear-gradient(135deg, #c99a36, #f2dca6) !important;
        box-shadow: 0 10px 20px rgba(201, 154, 54, 0.24) !important;
        font-size: 0.74rem !important;
    }

    .floating-ai-advisor {
        bottom: 86px !important;
    }

    .scroll-to-top {
        bottom: 144px !important;
    }
}

@media (max-width: 380px) {
    .site-header-actions .nav-portal-btn {
        padding-inline: 8px !important;
        font-size: 0.72rem !important;
    }

    .site-header .brand-logo-frame {
        width: 82px !important;
    }

    .site-header .logo-container .finaltech-mark-logo {
        width: 70px !important;
    }

    .mobile-bottom-link {
        font-size: 0.66rem !important;
    }
}

/* Final mobile completeness pass: visible language, no clipped sections, readable cards. */
.mobile-lang-toggle {
    display: none !important;
}

.mobile-theme-toggle,
.portal-theme-toggle {
    display: none;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .site-header-actions .mobile-lang-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        color: #fff !important;
        background: rgba(255, 255, 255, 0.13) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 13px !important;
        box-shadow: none !important;
        font-size: 0.72rem !important;
        font-weight: 950 !important;
    }

    .site-header-actions .mobile-theme-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        color: #fff !important;
        background: rgba(255, 255, 255, 0.13) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 13px !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] .site-header-actions .mobile-theme-toggle {
        color: #0f172a !important;
        background: linear-gradient(135deg, #e2b552, #f2dca6) !important;
        border-color: rgba(226, 181, 82, 0.5) !important;
    }

    .portal-theme-toggle {
        display: inline-flex !important;
    }

    .site-header-actions .nav-portal-btn span {
        max-width: 74px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .site-header-actions {
        justify-self: start !important;
        flex-wrap: nowrap !important;
    }

    .container,
    .pro-container,
    .home-container,
    .page-shell,
    .footer-shell {
        width: min(100% - 24px, var(--ft-page-max, 1160px)) !important;
        padding-inline: 0 !important;
    }

    section,
    .home-section,
    .pro-section,
    .contact-section,
    .consult-page-section,
    .portfolio-section,
    .services-section {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    img,
    svg,
    video,
    canvas {
        max-width: 100% !important;
        height: auto;
    }

    .hero-swiper,
    .swiper,
    .swiper-slide,
    .pro-hero,
    .services-hero,
    .about-hero,
    .blog-hero,
    .store-hero,
    .help-hero,
    .contact-hero,
    .consult-page-hero,
    .portfolio-header,
    .careers-hero {
        min-height: 0 !important;
        max-width: 100% !important;
        padding-inline: 14px !important;
    }

    .services-grid,
    .services-grid-wide,
    .dashboard-grid,
    .portfolio-grid,
    .blog-grid,
    .store-grid,
    .contact-grid,
    .consult-page-grid,
    .visit-grid,
    .footer-main,
    .footer-directory {
        grid-template-columns: 1fr !important;
    }

    .premium-card,
    .service-card,
    .domain-card,
    .pro-card,
    .contact-card,
    .consult-page-form,
    .consult-page-side,
    .visit-form,
    .visit-side-card,
    .footer-company-panel,
    .footer-directory,
    .footer-contact-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    h1,
    .section-title,
    .home-section .section-title,
    .pro-hero h1,
    .services-hero h1,
    .about-hero h1,
    .blog-hero h1,
    .store-hero h1,
    .help-hero h1,
    .portfolio-header h1,
    .contact-hero h1,
    .consult-page-hero h1,
    .careers-hero h1 {
        font-size: clamp(1.35rem, 7vw, 1.85rem) !important;
        line-height: 1.28 !important;
    }

    h2,
    .about-text h2,
    .timeline-title,
    .visit-intro h2 {
        font-size: clamp(1.12rem, 5.6vw, 1.45rem) !important;
        line-height: 1.32 !important;
    }

    p,
    li,
    .section-lead,
    .blog-excerpt,
    .product-category,
    .contact-hero p,
    .consult-page-hero p {
        font-size: 0.88rem !important;
        line-height: 1.65 !important;
    }

    .btn,
    button,
    input,
    select,
    textarea {
        max-width: 100% !important;
        font-size: 0.88rem;
    }

    table {
        width: 100% !important;
    }

    .table-container,
    .admin-table,
    .tickets-section {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .premium-footer {
        margin-top: 22px !important;
    }

    .footer-pill-links,
    .footer-service-tags {
        justify-content: center !important;
    }
}

@media (max-width: 390px) {
    .site-header-actions .nav-portal-btn {
        width: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
    }

    .site-header-actions .nav-portal-btn span {
        display: none !important;
    }

    .site-header-actions .mobile-lang-toggle,
    .menu-toggle {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
    }
}

/* Mobile overflow guard: keeps wide headings/sliders inside the viewport. */
@media (max-width: 760px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    *,
    *::before,
    *::after {
        min-width: 0;
    }

    img,
    svg,
    video,
    canvas,
    iframe {
        max-width: 100%;
    }

    body,
    main,
    section,
    .container,
    .pro-container,
    .home-section,
    .hero-swiper,
    .swiper,
    .swiper-wrapper,
    .swiper-slide {
        max-width: 100vw !important;
    }

    .hero-swiper .swiper-slide,
    .service-hero-slide {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-inline: 8px !important;
    }

    .slide-content,
    .service-slide-content {
        width: 100% !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        margin-inline: auto !important;
        text-align: center !important;
    }

    .service-slide-copy,
    .slide-content {
        justify-items: center !important;
    }

    .slide-content h1,
    .service-slide-copy h1,
    .services-hero h1,
    .pro-hero h1,
    .section-title {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .slide-content p,
    .service-slide-copy p,
    .services-hero p,
    .pro-hero p {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    .stats-section,
    .stats-shell,
    .scope-grid,
    .services-showcase,
    .solution-grid,
    .trust-grid,
    .journey-grid {
        width: 100% !important;
        max-width: 100vw !important;
        margin-inline: 0 !important;
    }

    .stats-section h2,
    .scope-copy,
    .scope-copy h2,
    .home-section .section-title,
    .section-lead {
        max-width: 100% !important;
        text-align: center !important;
        overflow-wrap: anywhere !important;
    }
}
