/* ============================================================
   NEOM Pest Control Riyadh — نيوم لمكافحة الحشرات بالرياض
   Design System — RTL Arabic, Cairo / Tajawal / El Messiri
   Colors: Emerald Green + Amber + Navy
   ============================================================ */

/* ---------- 1. Fonts (local) ---------- */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/cairo-600.woff2') format('woff2');
}
@font-face {
  font-family: 'El Messiri';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/elmessiri-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/tajawal-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tajawal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/tajawal-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/tajawal-700.woff2') format('woff2');
}

/* ---------- 2. Design tokens ---------- */
:root {
  --primary: #0e7a4c;
  --primary-dark: #0a5c39;
  --primary-darker: #064e3b;
  --primary-light: #e6f4ee;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fef3e2;
  --dark: #0b2545;
  --dark-2: #102a54;
  --bg-light: #f4f8f6;
  --bg-white: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb857;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, .07);
  --shadow: 0 8px 30px rgba(11, 37, 69, .12);
  --shadow-lg: 0 20px 60px rgba(11, 37, 69, .18);
  --font-heading: 'Cairo', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'Cairo', sans-serif;
  --font-brand: 'El Messiri', 'Cairo', sans-serif;
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- 3. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.8;
  font-size: 1rem;
  overflow-x: auto;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--dark); line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

::selection { background: var(--primary); color: #fff; }

/* ---------- 4. Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  font-family: var(--font-heading); transition: all .25s ease; white-space: nowrap;
  border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(14, 122, 76, .35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 122, 76, .4); }
.termite-link { background: var(--dark); color: #fff; border-color: var(--dark); box-shadow: 0 6px 18px rgba(11, 37, 69, .3); }
.termite-link:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-outline:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 50px; font-size: .8rem; font-weight: 700; background: var(--secondary-light);
  color: var(--secondary-dark); font-family: var(--font-heading);
}
.badge-green { background: var(--primary-light); color: var(--primary-dark); }
.badge-light { background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255,255,255,.35); }

/* ---------- 5. Topbar ---------- */
.topbar {
  background: var(--dark); color: #cbd5e1; font-size: .82rem; padding: 8px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 15px; height: 15px; color: var(--secondary); }
.topbar-phone { color: var(--secondary); font-weight: 700; }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-name { font-family: var(--font-brand); font-size: 1.25rem; font-weight: 700; color: var(--primary-darker); line-height: 1.2; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--dark); transition: all .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-light); }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 6px; }
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform .25s ease; }
.has-dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; min-width: 280px; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 120;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { padding: 9px 14px; font-size: .9rem; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; }
.dropdown-menu a svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary-dark); }

.header-cta { display: none; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.header-phone svg { width: 20px; height: 20px; }
.header-phone small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); }
.header-wa { display: inline-flex; align-items: center; gap: 6px; background: var(--whatsapp); color: #fff; padding: 10px 18px; border-radius: 50px; font-weight: 700; font-size: .9rem; }
.header-wa:hover { background: var(--whatsapp-dark); }
.header-wa svg { width: 18px; height: 18px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: all .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 90px 0 110px; overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #0a4a35 55%, var(--primary-dark) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/pattern-dots.svg');
  background-size: 28px; opacity: .12;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; opacity: .35;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero-badge { margin-bottom: 18px; }
.hero h1 { color: #fff; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--secondary); }
.hero p.lead { font-size: 1.12rem; color: #d7e6df; margin-bottom: 26px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: #d7e6df; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; }

.hero-card {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(10px);
}
.hero-card h3 { color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-card h3 svg { width: 24px; height: 24px; color: var(--secondary); }
.hero-card ul li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; color: #e6f0eb; border-bottom: 1px dashed rgba(255,255,255,.15); }
.hero-card ul li:last-child { border-bottom: 0; }
.hero-card ul svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 3px; }
.hero-card .card-cta { margin-top: 18px; display: flex; gap: 10px; }

/* ---------- 8. Stats ---------- */
.stats { background: var(--primary); color: #fff; padding: 28px 0; position: relative; z-index: 3; margin-top: -48px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.stat-label { font-size: .9rem; opacity: .9; }

/* ---------- 9. Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .badge { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- 10. Cards: services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: all .3s ease; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
.service-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured { background: linear-gradient(160deg, var(--primary-darker), var(--primary-dark)); border: none; color: #e6f0eb; }
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: #cfe3d8; }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); flex-shrink: 0;
}
.service-card.featured .service-icon { background: rgba(255,255,255,.15); color: var(--secondary); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.08rem; }
.service-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.service-card .link-more { font-weight: 700; color: var(--primary); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card.featured .link-more { color: var(--secondary); }
.service-card .link-more svg { width: 16px; height: 16px; }
.service-img { width: calc(100% + 44px); height: 150px; aspect-ratio: 16 / 9; object-fit: cover; margin: -26px -22px 2px; }

/* ---------- 11. Feature / Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; transition: all .3s ease;
}
.why-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.why-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.why-icon svg { width: 26px; height: 26px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { font-size: .92rem; color: var(--muted); }

/* ---------- 11b. Certifications ---------- */
.certifications-section { background: var(--bg-light); }
.certifications-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.certification-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: all .3s ease;
}
.certification-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--primary); }
.certification-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); margin-bottom: 14px;
}
.certification-icon svg { width: 25px; height: 25px; }
.certification-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.certification-card p { font-size: .92rem; color: var(--muted); }
.business-contracts {
  margin-top: 26px; padding: 28px 30px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-darker), var(--dark)); color: #e6f0eb;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.business-contracts h3 { color: #fff; margin: 12px 0 8px; }
.business-contracts p { max-width: 760px; color: #cfe3d8; }
.business-contracts .btn { flex-shrink: 0; }

/* ---------- 12. Methods (termite) ---------- */
.methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.method-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .3s ease; display: flex; flex-direction: column;
}
.method-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.method-img { height: 190px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.method-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.method-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; color: var(--secondary); line-height: 1;
}
.method-body h3 { font-size: 1.15rem; }
.method-body p { font-size: .94rem; color: var(--muted); flex: 1; }
.method-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.method-tags span {
  background: var(--bg-light); border: 1px solid var(--border); padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 600; color: var(--primary-dark);
}

/* ---------- 13. Steps (process) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  text-align: center; padding: 26px 18px; background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, arabic-indic);
  width: 44px; height: 44px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 6px 14px rgba(14,122,76,.35);
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .85rem; color: var(--muted); }

/* ---------- 14. Coverage ---------- */
.coverage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.coverage-col { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.coverage-col h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--primary-dark); }
.coverage-col h3 svg { width: 20px; height: 20px; color: var(--secondary); }
.coverage-col ul li { padding: 6px 0; font-size: .92rem; border-bottom: 1px dashed var(--border); }
.coverage-col ul li:last-child { border-bottom: 0; }

/* ---------- 15. Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item {
  border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
  transition: all .3s ease; display: block;
}
.portfolio-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portfolio-item img { width: 100%; height: 240px; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-cap {
  position: absolute; inset: auto 0 0 0; padding: 16px 18px; color: #fff;
  background: linear-gradient(to top, rgba(11,37,69,.9), transparent); font-weight: 700; font-size: .92rem;
}

/* ---------- 16. Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative;
}
.testi-stars { display: flex; gap: 3px; color: var(--secondary); }
.testi-stars svg { width: 18px; height: 18px; }
.testi-card blockquote { font-size: .95rem; color: var(--text); flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-heading); font-size: 1.1rem;
}
.testi-author strong { display: block; font-size: .95rem; }
.testi-author small { color: var(--muted); font-size: .82rem; }

/* ---------- 17. FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: box-shadow .3s ease;
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; text-align: right; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--dark);
}
.faq-q svg { width: 20px; height: 20px; color: var(--primary); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 22px 20px; font-size: .95rem; color: var(--muted); }

/* ---------- 18. CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-darker), var(--primary)); color: #fff;
  border-radius: var(--radius-lg); padding: 50px 44px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: url('../images/pattern-dots.svg'); background-size: 28px; opacity: .1; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #d7e6df; margin-bottom: 26px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-phone { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--secondary); direction: ltr; display: inline-block; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--dark); color: #b9c4d6; margin-top: 70px; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand .brand-name { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .93rem; line-height: 1.9; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: all .25s ease;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--secondary); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .92rem; transition: all .2s ease; display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--secondary); padding-right: 4px; }
.footer-links svg { width: 14px; height: 14px; color: var(--secondary); }

.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .93rem; align-items: flex-start; }
.footer-contact svg { width: 20px; height: 20px; color: var(--secondary); flex-shrink: 0; margin-top: 4px; }
.footer-contact a:hover { color: var(--secondary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-cr { color: var(--secondary); font-weight: 700; }

/* ---------- 20. Floating buttons ---------- */
.float-btns { position: fixed; bottom: 24px; z-index: 1500; display: flex; flex-direction: column; gap: 12px; }
.float-btns.left { left: 24px; }
.float-btns.right { right: 24px; }
.float-btn {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: all .25s ease; position: relative;
}
.float-btn svg { width: 28px; height: 28px; }
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: var(--whatsapp); }
.float-wa:hover { background: var(--whatsapp-dark); }
.float-call { background: var(--primary); }
.float-call:hover { background: var(--primary-dark); }
.float-btn .float-label {
  position: absolute; right: 130%; top: 50%; transform: translateY(-50%) scale(.9); white-space: nowrap;
  background: var(--dark); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 14px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all .25s ease;
}
.float-btns.left .float-btn .float-label { right: auto; left: 130%; }
.float-btn:hover .float-label { opacity: 1; transform: translateY(-50%) scale(1); }
.float-btn.pulse::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- 21. Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0a4a35 60%, var(--primary-dark) 100%);
  color: #fff; padding: 60px 0; position: relative; overflow: hidden;
}
.page-hero .container { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 42px; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: url('../images/pattern-dots.svg'); background-size: 28px; opacity: .1; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-image { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.2); box-shadow: var(--shadow-lg); }
.page-hero h1 { color: #fff; margin: 14px 0 10px; }
.page-hero p { color: #d7e6df; max-width: 700px; font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #b9c9c1; flex-wrap: wrap; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- 22. Page content / prose ---------- */
.prose { max-width: 900px; margin: 0 auto; }
.prose p { margin-bottom: 18px; font-size: 1.02rem; color: var(--text); }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 30px 0 12px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-right: 22px; }
.prose ul li { list-style: disc; margin-bottom: 8px; }
.prose ol li { list-style: decimal; margin-bottom: 8px; }
.prose strong { color: var(--dark); }
.prose .lead { font-size: 1.12rem; color: var(--muted); }

.content-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 30px 0; }
.content-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: all .3s ease;
}
.content-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.content-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.08rem; }
.content-card h3 svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; }
.content-card ul li { position: relative; padding-right: 22px; margin-bottom: 8px; font-size: .95rem; }
.content-card ul li::before { content: ""; position: absolute; right: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.content-card ul svg { display: none; }

.info-box {
  background: var(--primary-light); border-right: 4px solid var(--primary); border-radius: var(--radius-sm);
  padding: 20px 24px; margin: 26px 0; font-size: 1rem;
}
.info-box strong { color: var(--primary-dark); }
.warn-box { background: var(--secondary-light); border-right-color: var(--secondary); }
.warn-box strong { color: var(--secondary-dark); }
.dark-box {
  background: var(--dark); color: #e6f0eb; border-radius: var(--radius); padding: 26px; margin: 26px 0;
}
.dark-box h3 { color: var(--secondary); margin-bottom: 12px; }
.dark-box p { color: #d7e6df; }

/* ---------- 23. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---------- 24. Back to top ---------- */
.to-top {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  width: 46px; height: 46px; border-radius: 50%; background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center; z-index: 1490;
  opacity: 0; transition: all .3s ease; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.to-top:hover { background: var(--primary); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 25. 404 ---------- */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 5rem; color: var(--primary); }
.error-page p { color: var(--muted); margin: 12px 0 26px; }

/* ---------- 26. Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .certifications-grid { grid-template-columns: repeat(2, 1fr); }
  .methods-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .page-hero .container { grid-template-columns: 1fr; gap: 24px; }
  .header-cta .btn { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; width: 100%; max-height: 0; overflow: hidden;
    background: var(--bg-white); transition: max-height .4s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { max-height: 100vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 16px 20px; gap: 2px; }
  .main-nav a { font-size: 1rem; padding: 12px 14px; }
  .has-dropdown .dropdown-menu {
    position: static; min-width: 0; box-shadow: none; border: none; border-radius: 0;
    background: var(--bg-light); padding: 0 10px; max-height: 0; overflow: hidden;
    opacity: 1; visibility: visible; transform: none; transition: max-height .3s ease;
  }
  .has-dropdown.open .dropdown-menu { max-height: 800px; padding: 8px 10px; }
  .has-dropdown .dropdown-menu a { padding: 10px 12px; }
  .topbar .topbar-hide-sm { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand-logo { width: 44px; height: 44px; }
  .hero { padding: 56px 0 130px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services-grid, .why-grid, .coverage-grid, .content-cards, .portfolio-grid, .testi-grid { grid-template-columns: 1fr; }
  .certifications-grid { grid-template-columns: 1fr; }
  .business-contracts { align-items: flex-start; flex-direction: column; padding: 24px 22px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-image { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 36px 22px; }
  .section { padding: 50px 0; }
  .float-btns.left { left: 14px; }
  .float-btns.right { right: 14px; }
  .float-btn { width: 52px; height: 52px; }
  .float-btn svg { width: 24px; height: 24px; }
  .to-top { display: none; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .content-cards { grid-template-columns: 1fr; }
}
