/* ==========================================================================
   VARIABLES & THEME (Option C - Green Theme)
   ========================================================================== */
:root {
  --brand: #0FB389;
  --brand-d: #0a8e6c;
  --accent: #FF7A45;
  --ink: #16231f;
  --muted: #5f7268;
  --line: #e7efeb;
  --bg: #ffffff;
  --soft: #f3faf7;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 179, 137, 0.12);

  /* 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(--soft);
}
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-d);
}
::selection {
  background: var(--brand);
  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(--brand);
  outline-offset: 3px;
}

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

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

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

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

.btn-brand:hover, .btn-gold:hover {
  background: var(--brand-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 179, 137, 0.2);
}

.btn-accent, .btn-out {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover, .btn-out:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 122, 69, 0.2);
}

/* ==========================================================================
   LAYOUT SECTIONS
   ========================================================================== */
/* Topbar */
.topbar {
  background: var(--ink);
  color: #cfe3db;
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar a:hover {
  color: #fff;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

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

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

.logo .mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), #16d3a3);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Inter';
  font-weight: 800;
}

.search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  transition: border-color 0.3s ease;
}

.search:focus-within {
  border-color: var(--brand);
}

.search input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-start: auto;
}

.icon-btn {
  position: relative;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.icon-btn .count {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.lang {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0.85rem;
  height: 42px;
  font-weight: 700;
  cursor: pointer;
  color: var(--brand);
  transition: all 0.3s ease;
}

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

.burger {
  display: none;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

/* Sub-nav */
.subnav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.subnav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  padding: 0.7rem 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  overflow: auto;
}

/* Hide scrollbar for subnav but keep it scrollable */
.subnav ul::-webkit-scrollbar {
  display: none;
}

.subnav a:hover {
  color: var(--brand);
}

.subnav a.active {
  color: var(--brand);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #e9fbf4, #f3faf7);
}

.hero .inner {
  padding: 2.8rem 0;
  max-width: 760px;
}

.hero .pill {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

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

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

.hero p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  max-width: 54ch;
}

.hero-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

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

.hero-strip .ph {
  aspect-ratio: 1;
  border-radius: 16px;
  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;
}

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

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.4rem;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.head .kicker {
  display: none;
}

.head a {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}

.head p {
  color: var(--muted);
  font-size: 0.92rem;
  width: 100%;
}

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

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

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

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

.card .ico {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin: 0 auto 0.7rem;
  transition: background 0.3s ease;
}

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

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

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

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

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

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

.product .thumb {
  aspect-ratio: 1;
  background: var(--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.8rem 1rem 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;
  display: inline-block;
  text-align: center;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product .req:hover {
  background: var(--brand-d);
}

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

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

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

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

.cat-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--soft);
}

.cat-head .cat-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

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

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

.about-art {
  aspect-ratio: 16 / 12;
  border-radius: 18px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  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(--brand);
  font-weight: 800;
}

.about .kicker {
  display: block;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

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

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

.mv h3 {
  color: var(--brand);
  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: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--brand);
}

.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(--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(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 179, 137, 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;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--brand), #16d3a3);
  border-radius: 20px;
  padding: 2.4rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner h2 {
  font-size: var(--text-h2);
  margin-bottom: 0.4rem;
}

.banner p {
  opacity: 0.92;
}

.banner .btn-accent {
  background: #fff;
  color: var(--brand);
}

.banner .btn-accent:hover {
  background: var(--soft);
  color: var(--brand-d);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--ink);
  color: #bcd2c9;
  padding: 2.8rem 0 1.4rem;
  margin-top: 1rem;
}

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

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

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

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.75;
}

/* ==========================================================================
   MEDIA QUERIES (Reduced)
   ========================================================================== */
@media (max-width: 860px) {
  .search {
    display: none;
  }
  
  .subnav ul {
    display: none;
  }
  
  .subnav ul.open {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .burger {
    display: grid;
    place-items: center;
  }
}

/* ==========================================================================
   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; }
