/*
Theme Name:  VetoGuard
Theme URI:   https://veto-guard.com
Author:      VetoGuard Dev
Author URI:  https://veto-guard.com
Description: Premium bilingual (AR/EN) WordPress theme for Veto Guard – veterinary disinfectants and medicines. Elementor-optimized, WooCommerce-ready.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GPL v2 or later
Text Domain: vetoguard
Tags: rtl-language, e-commerce, elementor, custom-header, custom-footer, full-width-template
*/

/* ================================================================
   0. CSS VARIABLES – Extracted brand colors from VetoGuard logo
   ================================================================ */
:root {
  --gold:          #ff4500;
  --gold-dark:     #cc3700;
  --gold-light:    #ffc107;
  --silver:        #ffc107;
  --silver-dark:   #888888;
  --dark:          #0a0a0a;
  --dark-2:        #111827;
  --dark-3:        #333333;
  --white:         #FFFFFF;
  --off-white:     #F7F7F7;
  --light-gray:    #EEEEEE;
  --mid-gray:      #999999;
  --text-main:     #222222;
  --text-muted:    #666666;
  --border:        #E0E0E0;

  --primary-color:   var(--gold);
  --secondary-color: var(--dark);
  --accent-color:    var(--silver);

  --font-en: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-ar: 'Cairo', 'Tajawal', Arial, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,.13);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.18);
  --transition:  .3s ease;
  --header-h:    80px;
}

/* ================================================================
   1. RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ================================================================
   2. GLOBAL CONTAINER & HELPERS
   ================================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-silver { color: var(--silver); }
.text-white  { color: var(--white); }
.bg-dark     { background: var(--dark); }
.bg-dark2    { background: var(--dark-2); }
.bg-off      { background: var(--off-white); }
.bg-gold     { background: var(--gold); }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.section-subtitle.light { color: var(--silver); }

.divider-gold {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 32px;
}

.divider-gold.left { margin-left: 0; }

/* ================================================================
   3. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,.4);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark-3);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

/* ================================================================
   4. TOPBAR
   ================================================================ */
.topbar {
  background: var(--dark);
  padding: 8px 0;
  font-size: .82rem;
  color: var(--silver);
  border-bottom: 2px solid var(--gold);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--silver);
  transition: color var(--transition);
}
.topbar-link:hover { color: var(--gold); }
.topbar-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.topbar-lang-btn {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.topbar-lang-btn:hover { background: var(--gold-dark); }

/* ================================================================
   5. MAIN HEADER
   ================================================================ */
.site-header {
  background: var(--dark-2);
  padding: 16px 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-logo img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--dark-3);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.header-search form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}

.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 11px 16px;
  color: var(--white);
  font-size: .95rem;
  font-family: inherit;
}

.header-search input::placeholder { color: var(--mid-gray); }

.header-search button {
  background: var(--gold);
  border: none;
  padding: 11px 18px;
  color: var(--dark);
  cursor: pointer;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--gold-dark); }
.header-search button svg { width: 18px; height: 18px; }

/* Header meta (phone, cart) */
.header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
}
.header-phone svg { color: var(--gold); width: 18px; height: 18px; }

.header-cart {
  position: relative;
  color: var(--white);
  font-size: 1.4rem;
  padding: 6px;
}
.header-cart .cart-count {
  position: absolute;
  top: 0; right: 0;
  background: var(--gold);
  color: var(--dark);
  font-size: .65rem;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ================================================================
   6. NAVIGATION
   ================================================================ */
.site-nav {
  background: var(--dark-3);
  border-top: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.primary-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 20px;
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  position: relative;
}

.primary-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  transition: left var(--transition), right var(--transition);
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
  color: var(--gold);
}

.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after {
  left: 16px; right: 16px;
}

/* Dropdown */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-2);
  min-width: 220px;
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 200;
}

.primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--silver);
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all var(--transition);
}

.primary-menu .sub-menu li a:hover {
  color: var(--gold);
  padding-left: 28px;
  background: rgba(245,166,35,.05);
}

.primary-menu li { position: relative; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* ================================================================
   7. STICKY HEADER
   ================================================================ */
.sticky-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(26,26,26,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  padding: 10px 0;
  border-bottom: 2px solid var(--gold);
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.sticky-header.is-visible {
  transform: translateY(0);
}

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sticky-logo img { height: 44px; width: auto; }

.sticky-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sticky-menu a {
  color: var(--silver);
  font-size: .88rem;
  font-weight: 600;
  transition: color var(--transition);
}
.sticky-menu a:hover { color: var(--gold); }

/* sticky-nav-wrap holds the primary UL menu inside the sticky header */
.sticky-nav-wrap { display: flex; align-items: center; }
.sticky-nav-wrap .sticky-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sticky-nav-wrap .sticky-menu > li > a {
  color: var(--silver);
  font-size: .88rem;
  font-weight: 600;
  transition: color var(--transition);
}
.sticky-nav-wrap .sticky-menu > li > a:hover { color: var(--gold); }

.sticky-cta {
  background: var(--gold);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .85rem;
  transition: background var(--transition);
}
.sticky-cta:hover { background: var(--gold-dark); color: var(--dark); }

/* ================================================================
   8. HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/headquarters.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 6s ease;
}

.hero.active .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(26,26,26,.92) 0%,
    rgba(26,26,26,.75) 50%,
    rgba(26,26,26,.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.4);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

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

.hero p {
  font-size: 1.1rem;
  color: var(--silver);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat .stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: .8rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}

/* ================================================================
   9. CATEGORY CARDS
   ================================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.cat-card:hover .cat-img img {
  transform: scale(1.06);
}

.cat-img {
  height: 200px;
  overflow: hidden;
  background: var(--dark-2);
}

.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.cat-body {
  padding: 24px;
}

.cat-icon {
  width: 48px;
  height: 48px;
  background: rgba(245,166,35,.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 1.4rem;
}

.cat-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.cat-body p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 700;
  font-size: .9rem;
  transition: gap var(--transition);
}
.cat-link:hover { gap: 12px; color: var(--gold-dark); }

/* ================================================================
   10. WHY CHOOSE US
   ================================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,166,35,.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.why-card:hover {
  background: rgba(245,166,35,.08);
  border-color: rgba(245,166,35,.4);
  transform: translateY(-4px);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245,166,35,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--gold);
  border: 2px solid rgba(245,166,35,.3);
}

.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: .88rem;
  color: var(--silver);
  line-height: 1.6;
}

/* ================================================================
   11. ABOUT SPLIT LAYOUT
   ================================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gold);
  color: var(--dark);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.about-img-badge span {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  opacity: .8;
}

.about-content .section-title { margin-bottom: 20px; }

.about-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-main);
}

.about-feature .check {
  width: 24px;
  height: 24px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: .75rem;
  flex-shrink: 0;
  font-weight: 800;
}

/* ================================================================
   12. BRANDS / PARTNERS
   ================================================================ */
.brands-strip {
  background: var(--dark-2);
  padding: 32px 0;
  border-top: 1px solid rgba(245,166,35,.15);
  border-bottom: 1px solid rgba(245,166,35,.15);
  overflow: hidden;
}

.brands-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: scroll-brands 18s linear infinite;
  width: max-content;
}

.brands-track:hover { animation-play-state: paused; }

@keyframes scroll-brands {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-item {
  padding: 10px 28px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  color: var(--silver);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .05em;
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  transition: all var(--transition);
}
.brand-item:hover { background: rgba(245,166,35,.1); color: var(--gold); }

/* ================================================================
   13. COUNTER SECTION
   ================================================================ */
.counter-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.counter-item { padding: 16px; }

.counter-number {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.counter-plus {
  font-size: 1.8rem;
  color: var(--gold-light);
  font-weight: 900;
}

.counter-label {
  font-size: .9rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 10px;
}

/* ================================================================
   14. CONTACT PAGE
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background: var(--off-white);
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(245,166,35,.12);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card-text h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-card-text p, .contact-card-text a {
  color: var(--text-main);
  font-size: .95rem;
}

.contact-map {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
}

.contact-map iframe {
  width: 100%; height: 100%; border: none;
}

/* ================================================================
   15. JOIN FORM (B2B Registration)
   ================================================================ */
.join-page {
  background: #0b1a2a;
  min-height: 100vh;
  padding: 60px 0;
}

.join-card {
  background: #0d2137;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid rgba(245,166,35,.25);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.join-header {
  text-align: center;
  margin-bottom: 40px;
}

.join-header img { height: 64px; margin: 0 auto 20px; }

.join-header h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.join-header p { color: var(--silver); font-size: .95rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,166,35,.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 36px;
  cursor: pointer;
}

.checkboxes-section {
  margin-bottom: 28px;
}

.checkboxes-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,166,35,.2);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  transition: all var(--transition);
}

.checkbox-item:hover {
  border-color: rgba(245,166,35,.4);
  background: rgba(245,166,35,.06);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item span {
  color: var(--silver);
  font-size: .88rem;
  line-height: 1.4;
}

.checkbox-item input:checked ~ span {
  color: var(--gold);
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--dark);
  padding: 16px 48px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 280px;
  justify-content: center;
}

.btn-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,.4);
}

/* ================================================================
   16. FOOTER
   ================================================================ */
.site-footer {
  background: var(--dark);
  border-top: 3px solid var(--gold);
}

.footer-top {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .footer-logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  position: relative;
}
.footer-brand .footer-logo img {
  max-width: 180px !important;
  height: auto !important;
  display: block;
  width: 100%;
}

.footer-brand p {
  color: var(--silver);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245,166,35,.2);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu a {
  color: var(--silver);
  font-size: .88rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-menu a:hover {
  color: var(--gold);
  gap: 12px;
}

.footer-menu a::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
  transition: none;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .88rem;
  color: var(--silver);
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p { color: var(--silver); font-size: .83rem; }
.footer-bottom p a { color: var(--gold); }
.footer-bottom p a:hover { text-decoration: underline; }

/* ================================================================
   17. BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245,166,35,.5);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
  border: none;
  font-size: 1.2rem;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

/* ================================================================
   18. BILINGUAL CONTENT SWITCHING
   ================================================================ */
.content-ar { display: none; }
.content-en { display: block; }

body.lang-ar .content-en { display: none; }
body.lang-ar .content-ar { display: block; }

body.lang-ar .footer-menu a,
body.lang-ar .cat-link { flex-direction: row-reverse; }

body.lang-ar .footer-menu a::before { content: '‹'; }

body.lang-ar .about-split { direction: rtl; }

/* ================================================================
   19. NOTICE BANNER
   ================================================================ */
.notice-banner {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  padding: 12px 0;
  text-align: center;
  font-weight: 700;
  font-size: .88rem;
  position: relative;
}

.notice-banner .notice-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: .7;
}
.notice-banner .notice-close:hover { opacity: 1; }

/* ================================================================
   20. PAGE TEMPLATES
   ================================================================ */
.page-hero {
  background: var(--dark);
  padding: 64px 0;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero .breadcrumb {
  color: var(--silver);
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-hero .breadcrumb a { color: var(--gold); }

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1rem;
}

.entry-content h2, .entry-content h3 {
  color: var(--dark);
  margin: 32px 0 16px;
  font-weight: 700;
}

/* ================================================================
   21. WOOCOMMERCE OVERRIDES
   ================================================================ */
.woocommerce .button {
  background: var(--gold) !important;
  color: var(--dark) !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  transition: background var(--transition) !important;
}

.woocommerce .button:hover {
  background: var(--gold-dark) !important;
}

.woocommerce #respond input#submit {
  background: var(--gold) !important;
  color: var(--dark) !important;
}

/* ================================================================
   22. ELEMENTOR OVERRIDES
   ================================================================ */
.elementor-section .container { max-width: 1200px; }

/* ================================================================
   23. ANIMATIONS
   ================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity .6s ease;
}
.fade-in.is-visible { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ================================================================
   24. RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .cat-grid,
  .why-grid,
  .footer-top { grid-template-columns: 1fr 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar .topbar-left { display: none; }
  .site-header .header-search { display: none; }

  .header-inner { flex-wrap: nowrap; }

  .primary-menu { display: none; }
  .hamburger { display: flex; }

  .primary-menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,26,26,.98);
    padding: 80px 24px 24px;
    overflow-y: auto;
    z-index: 998;
    align-items: flex-start;
    gap: 0;
  }

  .primary-menu.is-open > li > a {
    padding: 16px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    width: 100%;
  }

  .about-split,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .cat-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }

  .join-card { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 20px; }

  .sticky-menu { display: none; }

  .hero-content { padding: 60px 0; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 56px 0; }
}

/* ================================================================
   25. RTL OVERRIDES
   ================================================================ */
body.lang-ar {
  text-align: right;
}

body.lang-ar .divider-gold { margin-left: auto; margin-right: 0; }
body.lang-ar .divider-gold.left { margin-right: 0; margin-left: auto; }
body.lang-ar .hero-content { margin-left: 0; }

body.lang-ar .footer-socials { flex-direction: row-reverse; }

body.lang-ar .header-search button {
  border-radius: var(--radius) 0 0 var(--radius);
}

body.lang-ar .primary-menu > li > a::after {
  left: auto;
  right: 50%;
  left: 50%;
  transition: right var(--transition), left var(--transition);
}

body.lang-ar .primary-menu > li > a:hover::after {
  right: 16px;
  left: 16px;
}

body.lang-ar .footer-menu a { flex-direction: row-reverse; }
body.lang-ar .footer-menu a::before { content: '‹'; }

body.lang-ar .sticky-menu { flex-direction: row-reverse; }

/* ================================================================
   26. CRITICAL LAYOUT & CENTERING FIXES
   These rules ensure content is never flush-left and sections
   always display correctly regardless of WordPress wrappers.
   ================================================================ */

/* Force horizontal overflow hidden globally */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure site main never clips sections */
.site-main {
  width: 100%;
  overflow: visible;
}

/* The container MUST always be centred — override any theme/plugin */
.container,
.wp-block-group__inner-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

/* Sections should always span full width before the container constrains them */
.section,
.hero,
.brands-strip,
.counter-section,
.page-hero,
.join-page {
  width: 100%;
  box-sizing: border-box;
}

/* Remove WordPress's automatic paragraph wrapping artifacts in full sections */
.site-main > p:empty,
.site-main .wp-block-group > p:empty { display: none; }

/* ================================================================
   27. NUCLEAR FOOTER LOGO FIX
   ================================================================ */

/* The footer brand column must not overflow */
.footer-brand {
  overflow: hidden;
}

/* The logo container anchor/wrapper */
.footer-brand .footer-logo,
.footer-brand > a,
.footer-brand .logo-fallback {
  display: block !important;
  max-width: 180px !important;
  width: 180px !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
}

/* The actual image inside */
.footer-brand .footer-logo img,
.footer-brand > a img,
.footer-brand .logo-fallback img,
.footer-brand img {
  display: block !important;
  max-width: 180px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* WP custom logo wrapper inside footer */
.footer-brand .custom-logo-link {
  display: block !important;
  max-width: 180px !important;
  width: 180px !important;
  overflow: hidden !important;
}
.footer-brand .custom-logo-link .custom-logo {
  max-width: 180px !important;
  width: 100% !important;
  height: auto !important;
}

/* ================================================================
   28. JOIN FORM — ENHANCED INPUT STYLES
   ================================================================ */

/* Ensure the form wraps correctly */
.veto-join-form {
  width: 100%;
}

/* Inputs: explicit, beautiful, readable */
.join-page .form-group input,
.join-page .form-group select,
.join-page .form-group textarea,
.veto-join-form input[type="text"],
.veto-join-form input[type="email"],
.veto-join-form input[type="tel"],
.veto-join-form select {
  display: block !important;
  width: 100% !important;
  padding: 14px 16px !important;
  border-radius: 6px !important;
  border: 2px solid rgba(245,166,35,.25) !important;
  background: #132133 !important;
  color: #ffffff !important;
  font-size: .97rem !important;
  font-family: inherit !important;
  margin-bottom: 4px !important;
  outline: none !important;
  transition: border-color .25s ease, box-shadow .25s ease !important;
}

.veto-join-form input::placeholder,
.veto-join-form textarea::placeholder { color: #6a8aaa !important; }

.join-page .form-group input:focus,
.join-page .form-group select:focus,
.veto-join-form input:focus,
.veto-join-form select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(245,166,35,.18) !important;
}

/* Select dark option text */
.veto-join-form select option { background: #0d2137; color: #fff; }

/* Labels readable on dark bg */
.join-page .form-group label {
  display: block !important;
  color: #ff4500 !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  margin-bottom: 8px !important;
}

/* ================================================================
   29. CAT GRID IMAGE FIX (force object-fit)
   ================================================================ */
.cat-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ================================================================
   30. ABOUT SECTION IMAGE FIX
   ================================================================ */
.about-img-wrap img {
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ================================================================
   31. HERO BG IMAGE FIX (ensure it covers)
   ================================================================ */
.hero-bg {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* ================================================================
   32. NAV — Active link gold indicator
   ================================================================ */
.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a {
  color: var(--gold) !important;
}
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current_page_item > a::after {
  left: 16px !important;
  right: 16px !important;
}

/* ================================================================
   33. FRONT PAGE — Prevent WP from wrapping sections in <p>
   ================================================================ */
.front-page > p,
.site-main.front-page > br {
  display: none !important;
}

/* The Hero section: full-width bleed */
.front-page .hero,
.site-main .hero {
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  width: 100vw;
  position: relative;
  left: 0;
}
