/* =============================================
   PEST CONTROL SITE – SHARED STYLES
   Arabic RTL | Google Ads Optimized | Fast Load
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Tajawal:wght@400;500;700&display=swap&font-display=swap');

:root {
  --green:       #1a7a2e;
  --green-dark:  #0f5520;
  --green-light: #e8f5e9;
  --orange:      #e65c00;
  --orange-light:#fff3e0;
  --text:        #1a1a2e;
  --text-light:  #444;
  --border:      #dde;
  --white:       #ffffff;
  --gray-bg:     #f7f9f7;
  --shadow:      0 4px 20px rgba(0,0,0,.10);
  --radius:      12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ?? HEADER ?? */
.site-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  white-space: nowrap;
}
.logo-icon { font-size: 2rem; }
.logo span { color: #a5d6a7; }

nav ul {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
nav a {
  color: #cce8cc;
  font-size: .88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
nav a:hover, nav a.active {
  background: var(--green);
  color: #fff;
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-call {
  background: var(--orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  min-height: 48px;
}
.btn-call:hover { background: #c44f00; transform: scale(1.04); }

/* ?? HERO ?? */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1e5c1e 55%, #2e7d32 100%);
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 760px;
  margin: auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 5px 18px;
  border-radius: 30px;
  font-size: .85rem;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero h1 em { color: #a5d6a7; font-style: normal; }
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .9;
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(230,92,0,.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.btn-primary:hover { background: #c44f00; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,92,0,.4); }
.btn-secondary {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  backdrop-filter: blur(4px);
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.btn-secondary:hover { background: rgba(255,255,255,.25); }

/* ?? TRUST BAR ?? */
.trust-bar {
  background: var(--green-light);
  border-bottom: 2px solid #c8e6c9;
  padding: 16px 20px;
}
.trust-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: #0a4018;
}
.trust-item .icon { font-size: 1.3rem; }

/* ?? SECTIONS ?? */
.section { padding: 64px 20px; }
.section-alt { background: var(--gray-bg); }
.container { max-width: 1200px; margin: auto; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.section-title p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: auto; }
.divider {
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 4px;
  margin: 12px auto 0;
}

/* ?? SERVICE CARDS ?? */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
  border-color: var(--green-light);
}
.service-card .card-icon { font-size: 3.5rem; margin-bottom: 14px; }
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.service-card p { color: var(--text-light); font-size: .95rem; line-height: 1.65; margin-bottom: 18px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.card-link:hover { border-color: var(--green); }

/* ?? WHY US ?? */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.why-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.why-text h4 { font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.why-text p  { font-size: .9rem; color: var(--text-light); }

/* ?? STEPS ?? */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.step-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 14px;
}
.step-item h4 { font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.step-item p  { font-size: .9rem; color: var(--text-light); }

/* ?? CTA BANNER ?? */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #bf360c 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: 12px; }
.cta-banner p  { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }
.btn-white {
  background: #fff;
  color: #b84800;
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  min-height: 48px;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }

/* ?? FAQ ?? */
.faq-list { max-width: 780px; margin: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 24px;
  text-align: right;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
  min-height: 48px;
}
.faq-q:hover { background: var(--green-light); }
.faq-q .arrow { font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q { background: var(--green-light); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 16px 24px 20px;
  color: var(--text-light);
  font-size: .97rem;
  border-top: 1px solid var(--border);
  background: var(--gray-bg);
}
.faq-item.open .faq-a { display: block; }

/* ?? INNER PAGE HERO ?? */
.inner-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #2e7d32 100%);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}
.inner-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 10px; }
.inner-hero .big-icon { font-size: 4rem; margin-bottom: 12px; }
.inner-hero p { font-size: 1.1rem; opacity: .85; max-width: 560px; margin: auto; }
.breadcrumb {
  font-size: .85rem;
  opacity: .7;
  margin-bottom: 14px;
}
.breadcrumb a { opacity: .9; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ?? CONTENT SECTIONS ?? */
.content-block { max-width: 820px; margin: auto; }
.content-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
  margin-top: 36px;
}
.content-block p { color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.content-block ul { padding-right: 20px; list-style: disc; margin-bottom: 16px; }
.content-block ul li { margin-bottom: 8px; color: var(--text-light); }

.info-box {
  background: var(--green-light);
  border-right: 4px solid var(--green);
  padding: 18px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: .95rem;
}
.warning-box {
  background: var(--orange-light);
  border-right: 4px solid var(--orange);
  padding: 18px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: .95rem;
}

/* ?? CONTACT FORM ?? */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .97rem;
  color: var(--text);
  transition: border-color .2s;
  background: var(--white);
  direction: rtl;
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%;
  background: var(--green-dark);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}
.btn-submit:hover { background: var(--green); transform: translateY(-2px); }

.contact-info h3 { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  width: 46px;
  height: 46px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-item h4 { font-weight: 700; font-size: .95rem; color: var(--green-dark); }
.contact-item p  { font-size: .9rem; color: var(--text-light); }

/* ?? FOOTER ?? */
.site-footer {
  background: #0a2a12;
  color: #a5d6a7;
  padding: 48px 20px 0;
}
.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1a4a22;
}
.footer-brand p { font-size: .9rem; line-height: 1.8; color: #8bc34a; margin-top: 12px; opacity: .8; }
.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: .9rem; opacity: .75; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  opacity: .6;
  flex-wrap: wrap;
  gap: 8px;
}

/* ?? FLOATING BUTTONS ?? */
.float-wa-btn,
.float-call-btn {
  position: fixed !important;
  bottom: 24px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  z-index: 9999 !important;
  border: 3px solid #fff !important;
  transition: transform .2s, box-shadow .2s;
}

/* واتساب — يسار */
.float-wa-btn {
  left: 24px !important;
  right: auto !important;
  background: #25D366 !important;
  box-shadow: 0 4px 18px rgba(37,211,102,.5) !important;
}

/* اتصال — يمين */
.float-call-btn {
  right: 24px !important;
  left: auto !important;
  background: #1a73e8 !important;
  box-shadow: 0 4px 18px rgba(26,115,232,.5) !important;
}

.float-wa-btn:hover   { transform: scale(1.1) !important; box-shadow: 0 8px 26px rgba(37,211,102,.6) !important; }
.float-call-btn:hover { transform: scale(1.1) !important; box-shadow: 0 8px 26px rgba(26,115,232,.6) !important; }

/* ?? RESPONSIVE ?? */
@media (max-width: 900px) {
  nav { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 14px; }
  .hero { padding: 60px 16px 50px; }
  .section { padding: 44px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 16px; }
  .contact-form { padding: 24px 18px; }
  /* على الموبايل: مسافة أكبر بين الزرارين */
  .float-wa-btn  { left: 16px !important; bottom: 20px !important; }
  .float-call-btn { right: 16px !important; bottom: 20px !important; }
}

/* ?? SCHEMA / SEO HELPERS ?? */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}