/*
Theme Name: الأمن والسلامة
Author: Safety Level
Description: قالب عربي متطور لشركات الأمن والسلامة وحماية المنشآت ومكافحة الحرائق.
Version: 2.5.2
Text Domain: al-amn-wal-salama
*/

/* ===== Variables ===== */
:root {
  --ink: #0f172a;
  --navy: #0a192f;
  --navy-dark: #07111e;
  --navy-light: #172a45;
  --navy-surface: #112240;
  --blue-accent: #2563eb;
  --red: #e63946;
  --red-hover: #dc2626;
  --red-glow: rgba(230, 57, 70, 0.35);
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --green: #10b981;
  --mist: #f1f5f9;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(10, 25, 47, 0.05), 0 2px 4px -2px rgba(10, 25, 47, 0.05);
  --shadow: 0 12px 30px -10px rgba(10, 25, 47, 0.10), 0 4px 10px -2px rgba(10, 25, 47, 0.04);
  --shadow-hover: 0 20px 45px -12px rgba(10, 25, 47, 0.18), 0 8px 16px -4px rgba(10, 25, 47, 0.08);
  --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Reset ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.8;
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Container ===== */
.container {
  width: min(1160px, 92%);
  margin: auto;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -50px;
  right: 15px;
  background: var(--green);
  color: #fff;
  padding: 8px 15px;
  z-index: 99;
}

.skip-link:focus {
  top: 10px;
}

/* ===== Screen Reader Text (ووردبريس يستخدمه في ترقيم الصفحات وغيره) ===== */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

/* ===== Topbar ===== */
.topbar {
  background: var(--navy);
  color: #d8e7e5;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
}

/* ===== Site Header ===== */
.site-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 231, 228, .75);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
}

/* ===== Brand ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.brand small {
  font-size: 11.5px;
  color: var(--blue-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand small::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-accent);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: transparent;
}

.brand-mark svg {
  width: 42px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(10, 25, 47, 0.2));
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark svg {
  transform: scale(1.06);
}

.brand-mark .brand-shield-img {
  width: 42px;
  height: 46px;
  object-fit: contain;
}

/* ===== Menu ===== */
.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

/* Support wp_nav_menu <ul> output */
.menu ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul li {
  list-style: none;
}

.menu a {
  transition: color .25s ease;
}

.menu a:hover,
.menu a:focus {
  color: var(--green);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--navy);
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 25px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.32);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s cubic-bezier(0.16, 1, 0.3, 1), background .25s ease;
}

.btn:hover,
.btn:focus {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.45);
  color: #fff;
}

.btn-small {
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 10px;
}

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
  background: #f8fafc;
  color: var(--red);
}

/* ===== Hero ===== */
.hero {
  overflow: hidden;
}

.hero-home {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, var(--navy-surface) 100%);
  color: #fff;
  padding: 90px 0 40px;
  position: relative;
}

.hero-home:before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, rgba(10, 25, 47, 0) 70%);
  border-radius: 50%;
  left: -150px;
  top: -150px;
  pointer-events: none;
}

.hero-home:after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(10, 25, 47, 0) 70%);
  border-radius: 50%;
  right: -100px;
  bottom: -200px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 45px;
  align-items: center;
  min-height: 520px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.25;
  margin: 18px 0;
  font-weight: 900;
}

.hero h1 em,
.hero h2 em {
  color: var(--gold);
  font-style: normal;
}

.hero-copy > p {
  font-size: 19px;
  color: #cbd5e1;
  max-width: 630px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.text-link {
  font-weight: 800;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--gold);
}

.text-link span {
  color: var(--gold);
  font-size: 18px;
}

/* ===== Modern Hero Visual ===== */
.hero-visual {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  width: 100%;
  max-width: 380px;
  background: rgba(17, 34, 64, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px rgba(230, 57, 70, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6), 0 0 50px rgba(245, 158, 11, 0.2);
}

.hero-badge-certified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-badge-certified .cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-shield-emblem {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-shield-emblem svg {
  width: 110px;
  height: 120px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
  animation: shield-float 6s ease-in-out infinite;
}

@keyframes shield-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-metrics-pill {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 19px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
}

.metric-lbl {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.metric-sep {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}

.signal {
  position: absolute;
  background: rgba(17, 34, 64, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 9px 15px;
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  animation: float 5s ease-in-out infinite;
  z-index: 3;
}

.signal-a {
  top: 15px;
  right: -10px;
}

.signal-b {
  bottom: 55px;
  left: 8px;
  animation-delay: 1s;
}

.signal-c {
  bottom: 4px;
  right: 60px;
  animation-delay: 2s;
}

.scroll-note {
  color: #99b3b0;
  font-size: 12px;
}

.scroll-note span {
  color: var(--orange);
  font-size: 20px;
  margin-right: 12px;
}

/* ===== Sections ===== */
.section {
  padding: 88px 0;
}

.intro {
  background: var(--mist);
}

.two-col {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 80px;
}

.section-label {
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

.section-label.light {
  color: var(--orange);
}

.two-col h2,
.process-layout h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 17px;
}

.two-col h2 span,
.split-head h2 span {
  color: var(--green);
}

.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 680px;
}

.arrow-link {
  color: var(--green);
  font-weight: 800;
  display: inline-flex;
  gap: 12px;
  margin-top: 18px;
}

.arrow-link span {
  font-size: 21px;
}

/* ===== Dark Section ===== */
.dark-section {
  background: var(--navy);
  color: #fff;
}

.split-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

.split-head h2 {
  color: #fff;
}

.split-head p {
  max-width: 360px;
  color: #a9c1be;
}

/* ===== Solution Grid ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 45px;
}

.solution-card {
  background: #153a47;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 25px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s, background .3s;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--green);
  background: #194654;
}

.card-no {
  color: var(--orange);
  font-size: 13px;
}

.solution-card strong {
  font-size: 29px;
  margin-top: auto;
}

.solution-card small {
  color: #b6cfcb;
}

.solution-card b {
  align-self: flex-end;
  color: var(--green);
  font-size: 24px;
}

/* ===== Service Preview ===== */
.service-preview {
  background: #fff;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

.mini-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--green);
  font-size: 21px;
}

.mini-card span:nth-child(2) {
  flex: 1;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card small {
  color: var(--muted);
  font-size: 11px;
}

.mini-card > b {
  color: var(--orange);
}

/* ===== Process Strip ===== */
.process-strip {
  background: var(--orange);
  color: var(--navy);
}

.process-strip h2 {
  color: var(--navy);
}

.process-strip .eyebrow {
  color: var(--navy);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.process-steps div {
  border: 1px solid rgba(11, 38, 51, .22);
  padding: 20px;
  border-radius: 15px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.process-steps span {
  font-weight: 900;
  font-size: 24px;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

/* ===== CTA Section ===== */
.cta-section {
  padding-top: 0;
  background: #fff;
}

.cta-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 42px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.cta-box h2 {
  font-size: 32px;
  line-height: 1.3;
  margin: 8px 0 0;
}

/* ===== Page Hero ===== */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 75px 0;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 57px);
  line-height: 1.25;
  margin: 15px 0 8px;
}

.page-hero p {
  color: #c2d8d5;
  max-width: 650px;
  font-size: 18px;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 35px rgba(11, 38, 51, .04);
  transition: transform .3s, box-shadow .3s;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.feature-symbol {
  color: var(--green);
  font-size: 25px;
}

.feature-card h2,
.system-row h2,
.knowledge-card h2 {
  color: var(--navy);
  font-size: 23px;
  margin: 12px 0 5px;
}

.feature-card p,
.system-row p,
.knowledge-card p {
  color: var(--muted);
  margin: 0;
}

.feature-card small {
  color: var(--orange);
  font-weight: 800;
  margin-top: auto;
}

/* ===== Service List ===== */
.service-list {
  max-width: 920px;
}

.system-row {
  display: grid;
  grid-template-columns: 70px 1fr 50px;
  gap: 20px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.row-number {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.system-row small {
  color: var(--muted);
}

.round-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  transition: .25s;
}

.round-arrow:hover {
  background: var(--green);
  color: #fff;
}

/* ===== Timeline ===== */
.timeline {
  max-width: 840px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 25px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item > span {
  font-size: 42px;
  color: var(--orange);
  font-weight: 900;
}

.timeline-item h2 {
  color: var(--navy);
  margin: 0;
  font-size: 29px;
}

.timeline-item p {
  color: var(--muted);
}

/* ===== Knowledge Grid ===== */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.knowledge-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  min-height: 230px;
}

.knowledge-card > span {
  color: var(--green);
  font-weight: 800;
}

/* ===== Projects ===== */
.project-placeholder {
  background: var(--mist);
  border: 1px dashed #9cc8bb;
  border-radius: var(--radius);
  text-align: center;
  padding: 70px;
}

.placeholder-mark {
  font-size: 46px;
  color: var(--green);
}

/* ===== Forms ===== */
.form-wrap,
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: start;
}

.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 16px;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-top: 6px;
  font: inherit;
  background: #fff;
}

.lead-form textarea {
  min-height: 130px;
}

.form-aside {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
}

.form-aside h2 {
  font-size: 30px;
}

.form-aside p {
  color: #c2d8d5;
}

/* ===== Contact Info ===== */
.contact-info {
  display: grid;
  gap: 15px;
}

.contact-info div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}

.contact-info span,
.contact-info strong {
  display: block;
}

.contact-info span {
  color: var(--green);
  font-size: 13px;
}

.contact-info strong {
  font-size: 22px;
  color: var(--navy);
}

/* ===== Value Row ===== */
.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.value-row b {
  padding: 10px 18px;
  background: var(--mist);
  border-radius: 10px;
  color: var(--green);
}

/* ===== Footer Base ===== */
.footer-trust-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 0;
}

.site-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 60px 0 0;
  position: relative;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-brand {
  color: #fff;
}

/* ===== Floating WhatsApp ===== */
.floating-wa {
  position: fixed;
  bottom: 22px;
  left: 22px;
  background: var(--green);
  color: #fff;
  border-radius: 50px;
  padding: 11px 15px;
  z-index: 30;
  box-shadow: 0 10px 25px rgba(18, 168, 120, .3);
  font-weight: 800;
}

.floating-wa span {
  font-size: 12px;
  margin-right: 5px;
}

/* ===== Animations ===== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ===== Reveal Animation (IntersectionObserver based) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Desktop Nav Safety Net =====
   يضمن عرض القائمة أفقياً على الشاشات الكبيرة دائماً،
   حتى لو أفسدت أدوات ضغط/دمج CSS قواعد @media الخاصة بالموبايل. */
@media (min-width: 1181px) {
  .menu,
  .nav-shell .menu {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .menu ul,
  .nav-shell .menu > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .menu-toggle,
  .nav-shell .menu-toggle {
    display: none !important;
  }

  .nav > .btn,
  .nav-shell > .btn {
    display: inline-flex !important;
  }
}

/* ===== Responsive 850px ===== */
@media (max-width: 850px) {
  .menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 4%;
    left: 4%;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 15px;
    flex-direction: column;
    align-items: stretch;
  }

  .menu.open {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav > .btn {
    display: none;
  }

  .hero-grid,
  .process-layout,
  .form-wrap,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-home {
    padding-top: 65px;
  }

  .hero-visual {
    height: 300px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solution-grid,
  .mini-grid,
  .card-grid,
  .knowledge-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box {
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Responsive 520px ===== */
@media (max-width: 520px) {
  .topbar-inner {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .solution-grid,
  .mini-grid,
  .card-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .system-row {
    grid-template-columns: 45px 1fr 40px;
    gap: 10px;
  }

  .system-row h2 {
    font-size: 19px;
  }

  .timeline-item {
    grid-template-columns: 55px 1fr;
  }

  .timeline-item > span {
    font-size: 30px;
  }

  .floating-wa {
    bottom: 15px;
    left: 15px;
  }
}
