/* ==========================================================================
   VARIABLES & THEME (Option A - Blue Theme)
   ========================================================================== */
:root {
  --blue: #1A6FB5;
  --blue-d: #13568f;
  --teal: #2BB3A3;
  --ink: #1f2933;
  --muted: #5b6b7b;
  --line: #e6edf3;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 111, 181, 0.10);
  
  /* Advanced typography limits */
  --text-base: clamp(1rem, 1vw + 0.8rem, 1.1rem);
  --text-h1: clamp(2rem, 5vw + 1rem, 3rem);
  --text-h2: clamp(1.6rem, 3vw + 0.8rem, 2.2rem);
  --text-h3: clamp(1.1rem, 2vw + 0.6rem, 1.4rem);
}

/* Scrollbar & Selection */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-d);
}
::selection {
  background: var(--blue);
  color: #fff;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: var(--text-base);
}

body[dir="ltr"] {
  font-family: 'Inter', 'Tajawal', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease-in-out;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: none;
}

.btn-primary, .btn-gold {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover, .btn-gold:hover {
  background: var(--blue-d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 111, 181, 0.25);
}

.btn-ghost, .btn-out {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--line);
}

.btn-ghost:hover, .btn-out:hover {
  border-color: var(--blue);
  background: var(--bg-soft);
}

/* ==========================================================================
   LAYOUT SECTIONS
   ========================================================================== */
/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.logo .mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Inter';
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin-inline-start: auto;
  font-weight: 500;
}

.nav ul a {
  color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav ul a:hover {
  color: var(--blue);
}

.nav ul a.active {
  color: var(--blue);
  border-color: var(--teal);
}

.lang {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--blue);
  transition: background 0.3s ease;
}

.lang:hover {
  background: var(--line);
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero .inner {
  max-width: 760px;
  margin: 0 auto;
}

.tag {
  display: inline-block;
  background: #fff;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: var(--text-h1);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--blue);
}

.hero p {
  color: var(--muted);
  margin: 0 auto 1.6rem;
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-strip {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.hero-strip .ph {
  aspect-ratio: 1;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.hero-strip .ph:hover {
  transform: translateY(-4px);
}

.hero-strip img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

/* Trust/Stats */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stats .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--blue);
  font-family: 'Inter';
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Standard Section */
section {
  padding: 3.5rem 0;
}

.head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

.head .kicker {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.head h2 {
  font-size: var(--text-h2);
  margin: 0.4rem 0 0.5rem;
}

.head p {
  color: var(--muted);
}

.center-link {
  text-align: center;
  margin-top: 2rem;
}

/* Division Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
}

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

.card .ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.card:hover .ico {
  background: var(--blue);
  color: #fff;
}

.card h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.5rem;
}

.card .more {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.product .thumb {
  aspect-ratio: 1;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  padding: 0.8rem;
}

.product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product:hover .thumb img {
  transform: scale(1.05);
}

.product .p-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product h3 {
  font-size: 0.96rem;
  line-height: 1.4;
}

.product .req {
  margin-top: auto;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Page Hero */
.page-hero {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.page-hero h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: var(--muted);
}

.cat-block {
  margin-bottom: 3rem;
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.cat-head .cat-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.cat-head h2 {
  font-size: var(--text-h2);
  color: var(--blue);
}

/* About Section */
.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.about-art {
  aspect-ratio: 16 / 12;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.about-art img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.about ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.about li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted);
}

.about li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 800;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.mv {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.mv h3 {
  color: var(--blue);
  margin-bottom: 0.5rem;
  font-size: var(--text-h3);
}

.mv p {
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.value {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
  transition: transform 0.3s ease;
}

.value:hover {
  transform: translateY(-4px);
}

.value .vico {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.value h4 {
  margin-bottom: 0.3rem;
}

.value p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 1rem;
}

.info {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.info:hover {
  transform: translateX(-4px);
}

body[dir="ltr"] .info:hover {
  transform: translateX(4px);
}

.info .i-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--blue);
}

.info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.info p {
  color: var(--muted);
  font-size: 0.92rem;
}

form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.field input, .field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.field input:focus, .field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.1);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.row2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Footer */
footer {
  background: #0f2233;
  color: #c7d3de;
  padding: 2.6rem 0 1.4rem;
  margin-top: 1rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

footer h4 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}

footer a:hover, footer a:focus-visible {
  color: #fff;
  outline: none;
}

footer a:focus-visible {
  text-decoration: underline;
}

footer .logo .mark {
  color: #fff;
}

.copy {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ==========================================================================
   MEDIA QUERIES (Reduced thanks to Auto-Fit Grid)
   ========================================================================== */
@media (max-width: 900px) {
  .nav ul {
    display: none;
  }
  
  .burger {
    display: block;
    margin-inline-start: auto;
  }
  
  .nav ul.open {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}

/* ==========================================================================
   ENHANCEMENTS (shared): semantics, scroll-reveal, back-to-top, mobile menu, scrollspy
   ========================================================================== */
main { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

#backToTop {
  position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: var(--gold, var(--brand, var(--blue, #1A6FB5))); color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 60;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
#backToTop.show { opacity: 1; visibility: visible; transform: none; }
#backToTop:hover { transform: translateY(-3px); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 45;
}
.nav-overlay.show { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.cat-nav {
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding: 0 0 1.2rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line);
}
.cat-nav a {
  padding: .4rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  border: 1px solid var(--line); color: inherit; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cat-nav a:hover { border-color: var(--gold, var(--brand, var(--blue, #1A6FB5))); }
.cat-nav a.active { background: var(--gold, var(--brand, var(--blue, #1A6FB5))); color: #fff; border-color: transparent; }
