/* ═══════════════════════════════════════════════
   Gexa Cloud — Modern layer (inner pages)
   Loaded after style.css; restyles shared components.
   ═══════════════════════════════════════════════ */
:root {
  --m-ink: #0B1F3A;
  --m-navy: #071427;
  --m-blue: #1E90FF;
  --m-cyan: #00B4D8;
  --m-surface: #F5F8FC;
  --m-line: #E3EAF3;
  --m-grad: linear-gradient(135deg, #1E90FF 0%, #00B4D8 100%);
  --m-font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
body:not([dir="rtl"]) { font-family: var(--m-font); }
body:not([dir="rtl"]) h1, body:not([dir="rtl"]) h2, body:not([dir="rtl"]) h3, body:not([dir="rtl"]) h4 { font-family: var(--m-font); letter-spacing: -0.02em; }
h1, h2 { font-weight: 800; }

/* ─── Header ─── */
.header { background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(227,234,243,.7); }
.header.scrolled { box-shadow: 0 10px 30px -18px rgba(11,31,58,.35); }
.nav-links a { font-weight: 600; border-radius: 10px; }
.nav-links a.active { background: rgba(30,144,255,.1); }

/* ─── Section heading ─── */
.section-label { letter-spacing: .14em; font-weight: 800; font-size: .75rem; border: 0; background: rgba(30,144,255,.09); padding: 6px 12px; }
[dir="rtl"] .section-label { letter-spacing: 0; font-size: .8rem; }

/* ─── Page hero ─── */
.page-header {
  background: radial-gradient(1000px 520px at 85% -20%, #123a73 0%, transparent 60%), linear-gradient(160deg, #050d1c 0%, var(--m-navy) 45%, #0B1F3A 100%);
  padding: calc(var(--header-h) + 84px) 0 92px;
}
.page-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 25%, transparent 75%);
}
.page-header::after {
  background: radial-gradient(420px 320px at 12% 110%, rgba(108,92,231,.35), transparent 70%), radial-gradient(500px 300px at 50% 120%, rgba(30,144,255,.28), transparent 70%);
}
.page-header h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.15; margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 35%, #a9d4ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fadeInUp .6s ease both;
}
[dir="rtl"] .page-header h1 { line-height: 1.4; }
.page-header p { color: rgba(226,236,250,.78); max-width: 640px; margin: 0 auto; line-height: 1.75; animation: fadeInUp .6s .1s ease both; }

/* ─── Services ─── */
.service-block { gap: 72px; padding: 72px 0; border-bottom: 1px dashed var(--m-line); }
.service-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 6px 0 14px; color: var(--m-ink); }
.service-content > p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; }
.service-visual {
  position: relative; overflow: hidden; min-height: 320px; display: grid; place-items: center;
  border-radius: 28px; border: 0;
  background: radial-gradient(360px 260px at 85% 0%, rgba(30,144,255,.5), transparent 60%), radial-gradient(300px 220px at 0% 100%, rgba(108,92,231,.35), transparent 60%), linear-gradient(160deg, #0d264a 0%, var(--m-navy) 100%);
  box-shadow: 0 40px 80px -40px rgba(11,31,58,.6);
}
.service-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 20px 20px;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
}
.service-visual::after {
  content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.02);
}
.service-visual svg {
  position: relative; z-index: 1; width: 120px; height: 120px; padding: 28px; border-radius: 30px;
  color: #fff; background: var(--m-grad); box-shadow: 0 24px 50px -12px rgba(30,144,255,.75);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.service-visual img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.service-block:hover .service-visual img { transform: scale(1.04); }
.service-block:hover .service-visual svg { transform: translateY(-6px) rotate(-4deg); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.feature-list li {
  align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--m-line); border-radius: 12px;
  background: #fff; color: #3b4d66; font-weight: 600; font-size: .92rem; transition: border-color .25s ease, box-shadow .25s ease;
}
.feature-list li:last-child { border-bottom: 1px solid var(--m-line); }
.feature-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.service-block:first-child { padding-top: 0; }
.feature-list li:hover { border-color: rgba(30,144,255,.35); box-shadow: 0 10px 24px -16px rgba(11,31,58,.35); }
.feature-list li::before {
  content: ''; width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  background: rgba(18,185,129,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9f6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ─── About ─── */
.about-grid { gap: 72px; }
.about-grid h2 { margin: 6px 0 14px; color: var(--m-ink); }
.about-grid > div > p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }
.about-grid .mt-4 {
  margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: var(--m-surface); border: 1px solid var(--m-line);
  border-inline-start: 4px solid var(--m-blue);
}
.about-grid .mt-4 h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--m-ink); }
.about-grid .mt-4 p { color: var(--text-muted); margin: 0; line-height: 1.7; }
.about-image {
  position: relative; overflow: hidden; padding: 72px 48px; border: 0; border-radius: 28px;
  background: radial-gradient(360px 260px at 85% 0%, rgba(30,144,255,.45), transparent 60%), linear-gradient(160deg, #0d264a 0%, var(--m-navy) 100%);
  box-shadow: 0 40px 80px -40px rgba(11,31,58,.6);
}
.about-image::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px;
  mask-image: radial-gradient(circle, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 75%);
}
.about-image img { position: relative; z-index: 1; display: block; width: 100%; max-width: none; margin: 0; border-radius: 18px; filter: none; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); }
.values-grid { counter-reset: val; gap: 20px; margin-top: 72px; }
.value-card {
  counter-increment: val; text-align: start; padding: 28px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--m-line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card::before {
  content: counter(val, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 13px; background: var(--m-grad); color: #fff; font-weight: 800; font-family: 'Outfit', var(--m-font);
  box-shadow: 0 12px 24px -10px rgba(30,144,255,.7);
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(30,144,255,.3); box-shadow: 0 24px 50px -24px rgba(11,31,58,.3); }
.value-card h4 { font-size: 1.1rem; color: var(--m-ink); }
.value-card p { line-height: 1.7; }

/* ─── Contact ─── */
.contact-grid { gap: 40px; align-items: start; }
.contact-info-item {
  align-items: center; padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--m-line); border-radius: 16px; background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.contact-info-item:last-of-type { border-bottom: 1px solid var(--m-line); }
.contact-info-item:hover { transform: translateY(-2px); border-color: rgba(30,144,255,.35); box-shadow: 0 16px 36px -22px rgba(11,31,58,.4); }
.contact-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--m-grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(30,144,255,.7); }
.contact-info-item strong { display: block; color: var(--m-ink); font-size: .95rem; margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { color: var(--text-muted); }
.contact-info-item a:hover { color: var(--m-blue); }
.contact-grid > div > .btn-whatsapp { width: 100%; justify-content: center; margin-top: 8px; }
.contact-form { background: #fff; border: 1px solid var(--m-line); border-radius: 24px; padding: 40px; box-shadow: 0 40px 80px -48px rgba(11,31,58,.45); }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 26px; color: var(--m-ink); }
.form-group input, .form-group select, .form-group textarea { background: var(--m-surface); border: 1.5px solid transparent; border-radius: 12px; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { background: #fff; border-color: var(--m-blue); }
.contact-form .btn-primary { width: 100%; justify-content: center; }
.map-container { border-radius: 24px; border: 1px solid var(--m-line); box-shadow: 0 30px 60px -40px rgba(11,31,58,.45); }

/* ─── Legal ─── */
.legal-page { background: linear-gradient(180deg, var(--m-surface), #fff 320px); }
.legal-wrap { background: #fff; border: 1px solid var(--m-line); border-radius: 24px; padding: 48px 52px; box-shadow: 0 40px 80px -56px rgba(11,31,58,.45); }
.legal-section h2 { display: flex; align-items: center; gap: 10px; color: var(--m-ink); }
.legal-section h2::before { content: ''; width: 6px; height: 22px; border-radius: 3px; background: var(--m-grad); flex-shrink: 0; }
.legal-highlight { border-radius: 14px; border-inline-start: 4px solid var(--m-blue); }
.legal-contact-box { border: 1px solid var(--m-line); }

/* ─── CTA ─── */
.cta-section {
  background: radial-gradient(700px 360px at 50% -10%, rgba(30,144,255,.4), transparent 65%), radial-gradient(400px 300px at 90% 110%, rgba(108,92,231,.35), transparent 70%), linear-gradient(160deg, #050d1c 0%, var(--m-navy) 50%, #0B1F3A 100%);
  padding: 110px 0;
}
.cta-section::before {
  background: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
}
.cta-section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-actions .btn { padding: 15px 30px; border-radius: 12px; }

/* ─── Footer ─── */
.footer { background: #050d1c; }
.footer-social a { border-radius: 12px; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .service-block, .service-block.reverse { gap: 36px; padding: 56px 0; }
  .service-block.reverse .service-content { order: 1; }
  .service-block.reverse .service-visual { order: 2; }
  .service-visual { min-height: 240px; }
  .about-grid { gap: 40px; }
  .legal-wrap { padding: 32px 26px; }
}
@media (max-width: 640px) {
  .page-header { padding: calc(var(--header-h) + 52px) 0 64px; }
  .feature-list { grid-template-columns: 1fr; }
  .service-visual { min-height: 200px; border-radius: 22px; }
  .service-visual svg { width: 96px; height: 96px; padding: 22px; border-radius: 24px; }
  .contact-form { padding: 26px 20px; }
  .legal-wrap { padding: 24px 18px; border-radius: 18px; }
  .cta-section { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .page-header h1, .page-header p, .service-visual svg { animation: none !important; transition: none !important; }
}
