/*
Theme Name: SERVTECH OnePage
Theme URI: https://example.com
Author: YOU
Description: Single Page Arabic/English theme for SERVTECH
Version: 1.0
Text Domain: servtech-onepage
*/

:root {
    --primary: #1F2A44;   /* أزرق داكن من الشعار */
    --secondary: #314a73; /* درجة أفتح */
    --accent: #0f80ff;    /* أزرق مشع كنقرة */
    --light: #f5f7fb;
    --text: #1F2A44;
    --radius: 18px;
    --shadow: 0 18px 35px rgba(0,0,0,0.10);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #e3ebff, #f8f9fc);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(245,247,251,0.96), rgba(245,247,251,0.85));
    border-bottom: 1px solid rgba(255,255,255,0.6);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-area img {
    height: 46px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span:first-child {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.logo-text span:last-child {
    font-size: 0.78rem;
    color: #5d6c8a;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.3rem;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

nav a {
    position: relative;
    padding-bottom: 0.2rem;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 0.4rem;
    background: #e7ecf8;
    padding: 0.18rem;
    border-radius: 999px;
}

.lang-btn {
    border: none;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: transparent;
    font-size: 0.8rem;
    cursor: pointer;
    color: #4b5876;
}

.lang-btn.active {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(31,42,68,0.18);
    color: var(--primary);
    font-weight: 600;
}

/* HERO */
.hero {
    padding: 3.2rem 0 2.8rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: center;
}

.hero-card {
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    padding: 2.1rem 2.2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.9);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #e7f0ff, #edf5ff);
    color: #37507a;
    margin-bottom: 0.85rem;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(15,128,255,0.18);
}

h1 {
    font-size: 2rem;
    margin: 0 0 0.6rem;
    color: var(--primary);
}

.hero-sub {
    font-size: 0.95rem;
    color: #556484;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.btn-primary {
    border-radius: 999px;
    border: none;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(120deg, var(--secondary), var(--accent));
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(15,128,255,0.35);
}

.btn-outline {
    border-radius: 999px;
    border: 1px solid rgba(31,42,68,0.22);
    padding: 0.65rem 1.3rem;
    background: #ffffff;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    font-size: 0.78rem;
    color: #707c97;
}

.hero-meta span strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
}

.hero-visual {
    position: relative;
    min-height: 260px;
}

.hero-panel {
    position: relative;
    background: radial-gradient(circle at top left, #334571, #11182b);
    border-radius: 30px;
    padding: 1.8rem 1.6rem;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 22px 45px rgba(4,10,30,0.7);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image:
      radial-gradient(circle at 10% 20%, rgba(255,255,255,0.16) 0, transparent 55%),
      radial-gradient(circle at 80% 10%, rgba(15,128,255,0.35) 0, transparent 55%),
      radial-gradient(circle at 80% 90%, rgba(255,255,255,0.10) 0, transparent 55%);
    opacity: 0.95;
}

.hero-panel-inner { position: relative; z-index: 1; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    background: rgba(0,0,0,0.4);
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    margin-bottom: 1rem;
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #4ee0ff;
}

.hero-panel-title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.hero-panel-text {
    font-size: 0.83rem;
    color: #d4e0ff;
    margin-bottom: 1.2rem;
}

.hero-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.6rem;
    font-size: 0.78rem;
}

.hero-panel-item {
    background: rgba(8,16,40,0.7);
    border-radius: 14px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(146,174,255,0.24);
}

.hero-panel-item span { display:block; }
.hero-panel-item span:first-child { color:#9db1ff; font-size:0.7rem; }
.hero-panel-item span:last-child { font-weight:600; }

/* Sections */
section {
    padding: 2.5rem 0;
}

.section-card {
    border-radius: 24px;
    padding: 2rem 2.1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.97);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary);
}

.section-subtitle {
    font-size: 0.85rem;
    color: #6a7690;
    margin: 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.card {
    border-radius: 18px;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(145deg, #ffffff, #f3f5fb);
    border: 1px solid rgba(203,214,237,0.8);
}

.card h3 {
    margin-top: 0;
    font-size: 0.98rem;
    color: var(--primary);
}

.card p {
    font-size: 0.82rem;
    color: #627090;
    margin-bottom: 0.4rem;
}

.card small {
    font-size: 0.76rem;
    color: #99a3c0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.contact-info p {
    font-size: 0.85rem;
    color: #5c6a86;
    margin: 0.2rem 0;
}

.contact-highlight {
    margin-top: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
    background: #eef3ff;
    font-size: 0.8rem;
}

.contact-form {
    background: #f5f7ff;
    border-radius: 18px;
    padding: 1.1rem 1.1rem;
    border: 1px dashed rgba(133,151,196,0.8);
}

label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: #3f4c6e;
}

input, textarea, select {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    border: 1px solid #c8d1ec;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(15,128,255,0.14);
}

.footer-mini {
    text-align: center;
    font-size: 0.78rem;
    color: #8a95b3;
    padding: 1.4rem 0 2rem;
}

.footer-mini span {
    color: var(--primary);
    font-weight: 600;
}

/* اللغة */
.lang-ar { display:none; }
.lang-en { display:none; }
html[data-lang="ar"] .lang-ar { display:block; }
html[data-lang="en"] .lang-en { display:block; }

html[data-lang="ar"] body,
html[data-lang="ar"] .rtl {
    direction: rtl;
    text-align: right;
}
html[data-lang="en"] body,
html[data-lang="en"] .rtl {
    direction: ltr;
    text-align: left;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0,1fr);
    }
    .hero-panel { margin-top: 0.5rem; }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .contact-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 640px) {
    nav ul { display:none; }
    .hero-card { padding: 1.6rem 1.4rem; }
    .grid-3, .grid-2 {
        grid-template-columns: minmax(0,1fr);
    }
}
