/* ============================================
   Velora Pharmaceuticals — Premium Styles
   ============================================ */

:root {
  /* Brand — Green & Orange */
  --green-700: #1B5E20;
  --green-600: #2E7D32;
  --green-500: #388E3C;
  --green-100: rgba(46, 125, 50, 0.1);

  --orange-600: #D68910;
  --orange-500: #F4A62A;
  --orange-100: rgba(244, 166, 42, 0.12);

  --navy-900: #0F2E4E;
  --navy-800: #153a5f;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e8edf2;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --font-heading: 'Source Sans 3', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --shadow-sm: 0 1px 3px rgba(15, 46, 78, 0.05);
  --shadow-md: 0 2px 12px rgba(15, 46, 78, 0.07);
  --shadow-lg: 0 8px 24px rgba(15, 46, 78, 0.09);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --border: var(--gray-200);
  --card-bg: var(--white);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(232, 237, 242, 0.8);

  --icon-color: var(--green-600);
  --icon-hover: var(--orange-500);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

[lang="ar"] body {
  font-family: 'Cairo', var(--font-body);
}

[lang="ar"] .section__title,
[lang="ar"] .hero__title,
[lang="ar"] .nav__logo,
[lang="ar"] .btn,
[lang="ar"] .section__tag,
[lang="ar"] h3,
[lang="ar"] h4 {
  font-family: 'Cairo', var(--font-heading);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
.text-accent {
  color: var(--green-600);
}

.section {
  padding: 72px 0;
}

.section__tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-700);
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--green-600);
  margin-bottom: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.section__tag--light {
  color: rgba(255, 255, 255, 0.9);
  border-color: var(--orange-500);
}

.section__header--left {
  text-align: start;
  max-width: 640px;
  margin-bottom: 48px;
}

.section__header--left .section__subtitle {
  margin: 0;
}

.section__title--light {
  color: var(--white);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

.section__header {
  text-align: center;
  margin-bottom: 52px;
}

.section__header .section__title {
  margin-bottom: 12px;
}

.section__header .section__subtitle {
  margin: 0 auto;
  max-width: 640px;
}

.section__header--light {
  margin-bottom: 36px;
}

.section__header--light .section__title {
  margin-bottom: 0;
}

.section__header--light .section__tag,
.section__header--light .section__title,
.section__header--light .section__subtitle {
  color: var(--white);
}

.section__header--light .section__subtitle {
  opacity: 0.85;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-600);
  color: var(--white);
  border-color: transparent;
}

.btn--primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.btn--secondary {
  background: var(--orange-500);
  color: var(--white);
  border-color: transparent;
}

.btn--secondary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 166, 42, 0.35);
}

.btn--outline {
  background: var(--orange-500);
  color: var(--white);
  border-color: transparent;
}

.btn--outline:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 166, 42, 0.35);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ---- Glass ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* ---- Header / Nav ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 10;
  margin-inline-end: auto;
  flex-shrink: 0;
}

.nav__logo:hover {
  opacity: 0.92;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__logo-img--footer {
  height: 58px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--green-600);
  background: var(--green-100);
}

.nav__chevron {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown:hover .nav__chevron,
.nav__dropdown.open .nav__chevron {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 680px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
}

.nav__dropdown:hover .mega-menu,
.nav__dropdown.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 24px;
}

.mega-menu__col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mega-menu__col a {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
}

.mega-menu__col a:hover {
  color: var(--green-600);
  padding-left: 8px;
}

.mega-menu__featured img {
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  object-fit: cover;
  height: 120px;
  width: 100%;
}

.mega-menu__featured p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Sections Mega Menu */
.mega-menu--sections {
  width: 320px;
  padding: 12px;
}

.mega-menu__sections {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu__section-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.mega-menu__section-link:hover {
  background: var(--green-100);
  color: var(--green-600);
  padding-left: 20px;
}

.mega-menu__section-link--support {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 16px;
}

.mega-menu__section-link--support:hover {
  background: var(--orange-100);
  color: var(--orange-600);
}

.mega-menu__section-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-600);
  width: 24px;
  flex-shrink: 0;
}

.mega-menu__section-link--support .mega-menu__section-num {
  color: var(--orange-600);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--green-600);
}

.lang-btn.active {
  background: var(--green-600);
  color: var(--white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  padding-top: var(--header-height);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: 48px 24px 64px;
}

.hero__content {
  max-width: 560px;
}

.hero__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 18px;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-700);
}

.hero__stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ---- About ---- */
.about {
  background: var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.about__image {
  position: relative;
}

.about__image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about__image-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 20px 28px;
  text-align: center;
}

.about__image-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-600);
}

.about__image-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about__card {
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.about__card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.about__card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.about__card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about__values h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.values__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.values__list li {
  font-size: 0.92rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.values__list li:last-child {
  border-bottom: none;
}

/* Timeline */
.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.timeline__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.timeline__item {
  text-align: start;
}

.timeline__dot {
  display: none;
}

.timeline__year {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-700);
  margin-bottom: 8px;
}

.timeline__item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Icon Cards Grid ---- */
.manufacturing {
  background: var(--bg-alt);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.icon-card,
.section-card,
.cert-card,
.about__card,
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.icon-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
}

.icon-card:hover,
.section-card:hover,
.cert-card:hover,
.about__card:hover,
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.icon-card:hover {
  border-color: var(--gray-300);
}

.icon-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--icon-color);
  transition: color var(--transition), background var(--transition);
}

.icon-card:hover .icon-card__icon {
  color: var(--icon-hover);
  background: var(--orange-100);
}

.icon-card__icon svg {
  width: 26px;
  height: 26px;
}

.icon-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.icon-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Sections (Products area) ---- */
.products {
  background: var(--gray-50);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.section-card {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  scroll-margin-top: 100px;
}

.section-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}

.section-card__img--veterinary { background: #e8f3e9; }
.section-card__img--supplies   { background: #eef2f6; }
.section-card__img--feed       { background: #f5f0e6; }
.section-card__img--farm       { background: #fdf3e7; }
.section-card__img--support    { background: #e8f0f8; }

.section-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-card__num {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  background: rgba(15, 46, 78, 0.75);
  padding: 4px 10px;
  border-radius: 4px;
}

.section-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.section-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.section-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.section-card__btn {
  width: fit-content;
}

/* ---- Product cards (category page) ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-empty {
  display: flex;
  justify-content: center;
  padding: 48px 0 64px;
}

.category-empty__box {
  width: min(100%, 520px);
  padding: 48px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px dashed var(--border);
  box-shadow: var(--shadow-sm);
}

.category-empty__label {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent-light, #e8f3e9);
  color: var(--accent, #2d6a4f);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.category-empty__box p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.subcategory-card__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.1);
  color: var(--accent, #2d6a4f);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card__img--veterinary { background: #e8f3e9; }
.product-card__img--supplies   { background: #eef2f6; }
.product-card__img--feed       { background: #f5f0e6; }
.product-card__img--farm       { background: #fdf3e7; }
.product-card__img--support    { background: #e8f0f8; }

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.product-card__btn {
  width: 100%;
  margin-top: auto;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.product-card__link:hover h3 {
  color: var(--green-700);
}

.product-card__footer {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}

.product-card__footer .btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 8px 12px;
}

/* ---- Product detail page ---- */
.product-detail {
  padding-top: 110px;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 8px;
}

.product-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--gray-100);
}

.product-detail__media--veterinary { background: #e8f3e9; }
.product-detail__media--supplies   { background: #eef2f6; }
.product-detail__media--feed       { background: #f5f0e6; }
.product-detail__media--farm       { background: #fdf3e7; }
.product-detail__media--support    { background: #e8f0f8; }

.product-detail__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-detail__cat {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.product-detail__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.product-detail__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-detail__specs {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.product-detail__spec dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-detail__spec dd {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.page-hero--category {
  padding-bottom: 40px;
}

.page-hero__back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 16px;
  transition: color var(--transition);
}

.page-hero__back:hover {
  color: var(--green-700);
  text-decoration: underline;
}

.category-products {
  padding-top: 0;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 992px) {
  .subcategories-grid--wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

.subcategory-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  min-height: 160px;
}

.subcategory-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.subcategory-card__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-600);
  letter-spacing: 0.05em;
}

.subcategory-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.subcategory-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.subcategory-card__arrow {
  align-self: flex-start;
  font-size: 1.1rem;
  color: var(--green-600);
  margin-top: 4px;
}

[dir="ltr"] .subcategory-card__arrow {
  transform: scaleX(-1);
}

/* ---- Stats Section ---- */
.stats-section {
  padding: 0;
  background: var(--green-700);
}

.stats-section__inner {
  padding: 56px 0;
}

.stats-section__intro {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  text-align: start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Certificates ---- */
.certificates {
  background: var(--bg-alt);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
}

.cert-card:hover {
  border-color: var(--gray-300);
}

.cert-grid--simple .cert-card {
  text-align: start;
  padding: 24px;
  border-inline-start: 3px solid var(--green-600);
}

.cert-grid--simple .cert-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.cert-card__badge {
  display: none;
}

.cert-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Research ---- */
.research {
  background: var(--bg);
}

.research__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.research__images {
  position: relative;
}

.research__img-main {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.research__img-sub {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 55%;
  border-radius: var(--radius-lg);
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-md);
}

.research__content .section__title {
  text-align: left;
}

.research__content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.research__list {
  margin-bottom: 32px;
}

.research__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.research__list svg {
  width: 20px;
  height: 20px;
  color: var(--icon-color);
  flex-shrink: 0;
  transition: color var(--transition);
}

.research__list li:hover svg {
  color: var(--icon-hover);
}

.research__grid--single {
  grid-template-columns: 1fr 1fr;
}

/* ---- Coverage / Export ---- */
.export {
  background: var(--bg);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.coverage-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.coverage-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 8px;
}

.coverage-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* legacy export map - hidden if unused */
.export__wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.world-map {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow: hidden;
}

.world-map__svg {
  width: 100%;
  height: auto;
}

.map-region ellipse {
  fill: var(--gray-200);
  stroke: none;
  transition: all var(--transition);
  cursor: pointer;
}

.map-region:hover ellipse,
.map-region.active ellipse {
  fill: rgba(0, 168, 150, 0.35);
}

.map-dot {
  fill: var(--green-500);
  stroke: var(--white);
  stroke-width: 2;
  cursor: pointer;
  transition: all var(--transition);
}

.map-dot:hover {
  fill: var(--orange-500);
  r: 7;
}

.map-tooltip {
  position: absolute;
  padding: 6px 14px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  pointer-events: none;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  z-index: 10;
}

.export__regions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export__region {
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.export__region:hover,
.export__region.active {
  border-color: var(--green-500);
  background: rgba(0, 168, 150, 0.06);
  transform: translateX(6px);
}

.export__region h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.export__region p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- News ---- */
.news {
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-card:hover {
  border-color: var(--gray-300);
}

.news-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__img img {
  transform: none;
}

.news-card__body {
  padding: 24px;
}

.news-card__date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.news-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.news-card__link:hover {
  gap: 10px;
  color: var(--orange-500);
}

/* ---- Contact ---- */
.contact {
  background: var(--bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.contact__form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(0, 168, 150, 0.1);
  color: var(--green-600);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact__map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  background: linear-gradient(135deg, var(--gray-50) 0%, #e8f3e9 100%);
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: background var(--transition), color var(--transition);
}

.contact__map-link::before {
  content: '';
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.5'%3E%3Cpath d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact__map-link:hover {
  background: var(--green-100);
  color: var(--green-700);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__item svg {
  width: 22px;
  height: 22px;
  color: var(--icon-color);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color var(--transition);
}

.contact__item:hover svg {
  color: var(--icon-hover);
}

.contact__item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact__item a:hover {
  color: var(--orange-500);
}

/* ---- Footer ---- */
.footer {
  background: #0F2E4E;
  color: var(--white);
  padding: 80px 0 0;
}

.footer .nav__logo {
  margin-bottom: 16px;
}

.footer .nav__logo:hover {
  opacity: 0.9;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.85);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-500);
  background: rgba(244, 166, 42, 0.15);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--orange-500);
  color: var(--white);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer__col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--orange-500);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.75);
}

.footer__legal a:hover {
  color: var(--orange-500);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 24px 56px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__visual img {
    max-height: 320px;
    min-height: 240px;
  }

  .timeline__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .sections-grid,
  .subcategories-grid,
  .products-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-card,
  .section-card:nth-child(4),
  .section-card:nth-child(5) {
    grid-column: span 1;
  }

  .cert-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid,
  .research__grid,
  .export__wrapper,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .research__img-sub {
    position: static;
    width: 60%;
    margin: -40px auto 0;
  }

  .mega-menu {
    width: 90vw;
    max-width: 500px;
  }

  .mega-menu__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mega-menu__featured {
    grid-column: 1 / -1;
  }

  .timeline__track {
    flex-direction: column;
    gap: 0;
    padding-left: 30px;
  }

  .timeline__track::before {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline__item {
    text-align: left;
    padding: 0 0 28px 24px;
  }

  .timeline__dot {
    left: -22px;
    top: 4px;
    transform: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-height) + 20px) 24px 24px;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    overflow-y: auto;
    gap: 4px;
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav__dropdown .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav__dropdown.open .mega-menu {
    display: block;
  }

  .mega-menu__grid {
    grid-template-columns: 1fr;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .hero__stats {
    gap: 24px;
  }

  .cards-grid,
  .sections-grid,
  .subcategories-grid,
  .products-grid,
  .news-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .about__image-card {
    right: 10px;
    bottom: -10px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline__track {
    grid-template-columns: 1fr;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- RTL (Arabic) ---- */
[dir="rtl"] .mega-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(10px);
}

[dir="rtl"] .nav__dropdown:hover .mega-menu,
[dir="rtl"] .nav__dropdown.open .mega-menu {
  transform: translateX(50%) translateY(0);
}

[dir="rtl"] .mega-menu__col a:hover {
  padding-left: 0;
  padding-right: 8px;
}

[dir="rtl"] .mega-menu__section-link:hover {
  padding-left: 16px;
  padding-right: 20px;
}

[dir="rtl"] .about__image-card {
  right: auto;
  left: -20px;
}

[dir="rtl"] .research__img-sub {
  right: auto;
  left: -20px;
}

[dir="rtl"] .export__region:hover,
[dir="rtl"] .export__region.active {
  transform: translateX(-6px);
}

[dir="rtl"] .research__content .section__title {
  text-align: right;
}

[dir="rtl"] .nav__menu {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--border);
}

[dir="rtl"] .nav__menu.open {
  left: 0;
  right: auto;
}

[dir="rtl"] .timeline__track {
  padding-left: 0;
  padding-right: 30px;
}

[dir="rtl"] .timeline__track::before {
  left: auto;
  right: 8px;
}

[dir="rtl"] .timeline__item {
  text-align: right;
  padding: 0 24px 28px 0;
}

[dir="rtl"] .timeline__dot {
  left: auto;
  right: -22px;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 110px 0 48px;
  background: var(--gray-50);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-hero__subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ---- Home quick links ---- */
.home-links {
  background: var(--white);
}

.home-links__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-link-card {
  display: block;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  color: inherit;
}

.home-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-600);
}

.home-link-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-inline-end: 28px;
}

.home-link-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-link-card__arrow {
  position: absolute;
  top: 26px;
  inset-inline-end: 20px;
  color: var(--green-600);
  font-size: 1.2rem;
}

[dir="ltr"] .home-link-card__arrow {
  transform: none;
}

[dir="rtl"] .home-link-card__arrow {
  transform: scaleX(-1);
}

/* ---- Support block (services page) ---- */
.support-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.support-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.support-block .section__title {
  text-align: start;
  margin-bottom: 16px;
}

.support-block p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.support-block .btn {
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .home-links__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .home-links__grid {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .about__image-card {
    left: 10px;
    right: auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    inset-inline-end: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
