/* ==========================================================================
   Fast Scrap Buyer Dammam — style.css (Batch 2)
   Mobile-first • English (LTR) + Arabic (RTL) • Brand: green / charcoal

   Class hooks that script.js (Batch 3) is expected to toggle:
   - .primary-nav.is-open        -> mobile menu open (also aria-expanded on #menuToggle)
   - .site-header.is-scrolled    -> header shadow after scrolling
   - .form-field.has-error       -> invalid field (also aria-invalid="true" on the control)
   - .form-status.is-success / .is-error -> form feedback
   - .faq-question[aria-expanded="true"] -> open FAQ item (answer uses [hidden])
   - [hidden] is used for iOS help / fallback / status
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --green: #16A34A;          /* brand primary */
  --green-strong: #15803D;   /* accessible green for buttons / text on white */
  --green-dark: #166534;     /* hover */
  --charcoal: #252B30;
  --light: #F3F7F4;
  --white: #FFFFFF;
  --text: #252B30;
  --muted: #5B6670;
  --border: #D5DED8;
  --error: #B91C1C;
  --green-tint: rgba(22, 163, 74, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(37, 43, 48, 0.08);
  --shadow: 0 6px 20px rgba(37, 43, 48, 0.08);
  --shadow-lg: 0 14px 36px rgba(37, 43, 48, 0.14);

  --header-h: 68px;
  --container: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", Arial, sans-serif;
  --transition: 0.2s ease;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
  line-height: 1.85;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6rem;
  line-height: 1.25;
  color: var(--charcoal);
  font-weight: 700;
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--green-strong); text-decoration: none; }
a:hover { color: var(--green-dark); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

[hidden] { display: none !important; }

/* Inline SVG icons (sprite symbols carry their own stroke attributes) */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Visible keyboard focus */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 0.75rem; color: var(--white); }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: 3.5rem;
}
.section-alt { background: var(--light); }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
/* Prevent unwanted top offset when jumping back to #home */
#home { scroll-margin-top: var(--header-h); }

.section-head {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-strong);
}
html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-note {
  margin: 2rem auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid { display: grid; gap: 1.25rem; }

/* Icon badge used across cards */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-strong);
  flex-shrink: 0;
}
.icon-badge .icon { width: 26px; height: 26px; }

/* Tick lists */
.check-list { display: grid; gap: 0.6rem; margin: 1.25rem 0 0; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-list .icon { color: var(--green-strong); margin-top: 0.25em; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--green-strong); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); box-shadow: var(--shadow); }

.btn-secondary { background: var(--charcoal); color: var(--white); }
.btn-secondary:hover { background: #12161a; color: var(--white); }

.btn-outline { background: transparent; color: var(--green-strong); border-color: var(--green-strong); }
.btn-outline:hover { background: var(--green-strong); color: var(--white); }

.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--border); }
.btn-ghost:hover { background: var(--light); color: var(--charcoal); border-color: var(--charcoal); }

.btn-sm { min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.88rem; }
.btn-lg { min-height: 52px; padding: 0.8rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- 5. Header / navigation (mobile-first) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* Mobile navigation panel */
.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 0.75rem 1rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.primary-nav.is-open,
.site-header.nav-open .primary-nav { display: block; }

.nav-list { display: grid; }
.nav-link {
  display: block;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--light);
  color: var(--charcoal);
  font-weight: 600;
}
.nav-link:hover,
.nav-link.is-active { color: var(--green-strong); }

.nav-actions-mobile {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}
.nav-actions-mobile .btn { width: 100%; }

@media (max-width: 1149px) {
  .nav-list {
    justify-items: center;
    text-align: center;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .nav-actions-mobile {
    justify-items: center;
  }

  .nav-actions-mobile .btn {
    width: min(100%, 240px);
  }
}

.nav-actions-desktop { display: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 5.5rem;
  background: var(--light);
}
.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  inset-block-start: -160px;
  inset-inline-end: -140px;
  border-radius: 50%;
  background: var(--green-tint);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero-text {
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-actions .btn { flex: 1 1 180px; }

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- 7. Business highlights ---------- */
.highlights {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  padding-bottom: 1rem;
}
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.highlight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.highlight-title { margin: 0; font-size: 0.95rem; }

/* ---------- 8. About ---------- */
.about-inner { display: grid; gap: 2rem; align-items: center; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-content p { color: var(--muted); }

/* ---------- 9. Scrap we buy ---------- */
.scrap-grid { grid-template-columns: 1fr; }

.scrap-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.scrap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.scrap-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--light);
}
.scrap-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem;
}
.scrap-card-body h3 { font-size: 1.1rem; }
.scrap-card-body p { color: var(--muted); font-size: 0.95rem; }
.scrap-card .btn { margin-top: auto; width: 100%; white-space: normal; }

/* ---------- 10. Services ---------- */
.services-grid { grid-template-columns: 1fr; }
.service-card {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon-badge { margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--muted); }

/* ---------- 11. Why choose us ---------- */
.why-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.why-item h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.why-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- 12. How it works ---------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: none; }
.step {
  position: relative;
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step .icon-badge { margin-bottom: 0.9rem; }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-number {
  position: absolute;
  top: -16px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-strong);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
html[dir="rtl"] .step-number { transform: translateX(50%); }

/* ---------- 13. Service areas ---------- */
.areas-inner { display: block; }
.areas-content { max-width: 720px; margin-inline: auto; text-align: center; }
.area-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--green-strong);
  border-radius: 999px;
  color: var(--charcoal);
  font-size: 1.1rem;
}
.area-primary .icon { color: var(--green-strong); }
.areas-subtitle { font-size: 1rem; color: var(--muted); font-weight: 600; }
.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
}
.area-list li {
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
}

/* ---------- 14. Contact / request a quote ---------- */
.contact-methods { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.contact-card .icon-badge { margin-bottom: 0.5rem; }
.contact-card h3 { margin: 0; font-size: 1.2rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-value {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--green-strong);
  overflow-wrap: anywhere;
}

.contact-card-whatsapp {
  background: var(--green-strong);
  border-color: var(--green-strong);
  color: var(--white);
}
.contact-card-whatsapp:hover { background: var(--green-dark); color: var(--white); }
.contact-card-whatsapp h3,
.contact-card-whatsapp p,
.contact-card-whatsapp .contact-value { color: var(--white); }
.contact-card-whatsapp .icon-badge { background: rgba(255, 255, 255, 0.2); color: var(--white); }

/* Enquiry form */
.enquiry-wrap {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.enquiry-intro h3 { font-size: 1.4rem; }
.enquiry-intro p { color: var(--muted); margin: 0; }

.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 600; font-size: 0.95rem; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem; /* 16px prevents iOS zoom on focus */
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-strong);
  box-shadow: 0 0 0 3px var(--green-tint);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23252B30' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
}
html[dir="rtl"] .form-field select { background-position: left 0.9rem center; }

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea,
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: var(--error); }

.field-error { margin: 0; color: var(--error); font-size: 0.875rem; font-weight: 500; }

.form-status { margin: 1rem 0 0; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--green-strong); }
.form-status.is-error { color: var(--error); }

/* ---------- 15. Install app (PWA) ---------- */
.install-inner { display: grid; gap: 2.5rem; align-items: center; }
.install-content p { color: var(--muted); }
.install-content .btn { margin-top: 1.5rem; }

.install-status {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.5rem 0.9rem;
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.ios-help {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1.5px dashed var(--green-strong);
  border-radius: var(--radius);
}
.ios-help h3 { font-size: 1.05rem; }
.ios-help ol { display: grid; gap: 0.5rem; padding-inline-start: 1.25rem; list-style: decimal; color: var(--muted); }
.ios-help li { padding-inline-start: 0.25rem; }
.ios-help li .icon { color: var(--green-strong); margin-inline-end: 0.35rem; }

.install-fallback {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1.5px dashed var(--green-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
}
.install-fallback h3 { margin: 0 0 0.75rem; color: var(--charcoal); font-size: 1.05rem; }
.install-fallback ol { display: grid; gap: 0.5rem; padding-inline-start: 1.25rem; list-style: decimal; }
.install-fallback p { margin: 0.75rem 0 0; }

.install-media { display: flex; justify-content: center; }
.phone-mockup {
  position: relative;
  width: 240px;
  height: 470px;
  padding: 10px;
  background: var(--charcoal);
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
}
.phone-notch {
  position: absolute;
  top: 10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: var(--charcoal);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
html[dir="rtl"] .phone-notch { transform: translateX(50%); }
.phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--white);
  border-radius: 30px;
}
.phone-screen img { height: 44px; width: auto; object-fit: contain; }
.phone-title { margin: 0; font-weight: 700; color: var(--charcoal); font-size: 1rem; }
.phone-btn {
  width: 100%;
  padding: 0.7rem 0.5rem;
  background: var(--green-strong);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.phone-btn-alt { background: var(--charcoal); }

/* ---------- 16. Google Maps location ---------- */
.location-inner { display: grid; gap: 1.5rem; align-items: stretch; }
.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.location-info .btn { align-self: flex-start; }
.location-row { display: flex; gap: 0.85rem; align-items: flex-start; }
.location-row .icon { width: 28px; height: 28px; color: var(--green-strong); }
.location-row h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.location-row p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

.map-wrap {
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 300px;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.map-placeholder .icon { width: 40px; height: 40px; color: var(--green-strong); }
.map-placeholder p { margin: 0; max-width: 320px; }

/* ---------- 17. FAQ (Immediately before Footer) ---------- */
.faq-inner { max-width: 860px; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-heading { margin: 0; font-size: 1rem; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1rem;
  text-align: start;
}
.faq-question:hover { color: var(--green-strong); }
.faq-icon { color: var(--green-strong); transition: transform var(--transition); }
.faq-question[aria-expanded="true"] { color: var(--green-strong); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer { padding: 0 1.15rem 1.1rem; }
.faq-answer p { margin: 0; color: var(--muted); }

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
}
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--white); }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-block: 3rem 2rem;
}
.footer-about .brand {
  padding: 0.5rem 0.8rem;
  background: var(--white); /* keeps the supplied logo legible on the dark footer */
  border-radius: var(--radius-sm);
}
.footer-about p { margin-top: 1rem; font-size: 0.95rem; max-width: 340px; }

.footer-title { margin-bottom: 1rem; color: var(--white); font-size: 1.05rem; }
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col li { font-size: 0.95rem; }

.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact .icon { margin-top: 0.2em; color: var(--green); }
.footer-contact span, .footer-contact a { overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .footer-grid {
    text-align: center;
  }

  .footer-about .brand {
    margin-inline: auto;
  }

  .footer-about p {
    margin-inline: auto;
  }

  .footer-col ul {
    justify-items: center;
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
    align-items: center;
  }
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  padding-block: 1.25rem 5.5rem; /* room for both floating buttons on mobile */
  text-align: center;
  font-size: 0.9rem;
}
.copyright { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; }

/* ---------- 19. Floating Controls (WhatsApp & Mobile Language Switcher) ---------- */
/* Floating WhatsApp button — anchored bottom-right (physical right so it never collides with lang-float) */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.65rem 1.05rem;
  background: var(--green-strong);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.45);
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { background: var(--green-dark); color: var(--white); transform: translateY(-3px); }
.whatsapp-float .icon { width: 24px; height: 24px; }
.whatsapp-float:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }

/* Floating Mobile Language Switcher (EN | AR) — anchored bottom-left on mobile & tablet */
.lang-float {
  position: fixed !important;
  left: 1rem !important;
  right: auto !important;
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 50px;
  padding: 0.55rem 0.95rem;
  background: var(--charcoal);
  color: var(--white);
  border: 2px solid var(--green);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 22px rgba(37, 43, 48, 0.35);
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}
.lang-float:hover {
  background: #181c20;
  border-color: var(--green-strong);
  transform: translateY(-3px);
}
.lang-float .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}
.lang-float-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.03em;
}
.lang-divider {
  opacity: 0.45;
  font-weight: 400;
}
/* Highlight the active language inside the floating pill */
html[lang="en"] .lang-opt-en,
html[lang="ar"] .lang-opt-ar {
  color: #4ADE80;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[lang="en"] .lang-opt-ar,
html[lang="ar"] .lang-opt-en {
  color: rgba(255, 255, 255, 0.78);
}

/* On extra-small screens (<360px), keep both floating buttons compact so they never touch */
@media (max-width: 359px) {
  .whatsapp-float { padding: 0.6rem 0.85rem; font-size: 0.85rem; right: 0.65rem; }
  .lang-float { padding: 0.5rem 0.75rem; font-size: 0.82rem; left: 0.65rem !important; }
}

/* ==========================================================================
   Responsive breakpoints (mobile-first)
   ========================================================================== */

/* Small phones and up */
@media (min-width: 480px) {
  .highlight-title { font-size: 1rem; }
}

/* Large phones / small tablets */
@media (min-width: 600px) {
  .container { padding-inline: 1.5rem; }
  .scrap-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-field-full { grid-column: 1 / -1; }
  .enquiry-wrap { padding: 2rem; }
}

/* Tablets */
@media (min-width: 768px) {
  .section { padding-block: 4.5rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-methods { grid-template-columns: repeat(3, 1fr); }
  .highlight-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    padding-block: 1.25rem 5rem;
    text-align: start;
  }
}

/* Small laptops */
@media (min-width: 900px) {
  .hero { padding: 4rem 0 7rem; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .about-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .scrap-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .enquiry-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; padding: 2.5rem; }
  .install-inner { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
  .location-inner { grid-template-columns: 0.8fr 1.2fr; }
  .map-wrap, .map-placeholder, .map-wrap iframe { min-height: 360px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
  .whatsapp-float { right: 1.5rem; bottom: 1.5rem; }
  .lang-float { left: 1.5rem !important; bottom: 1.5rem !important; }
}

/* Desktop navigation (hamburger hidden; desktop navbar controls shown) */
@media (min-width: 1150px) {
  :root { --header-h: 76px; }

  .menu-toggle { display: none; }

  .primary-nav,
  .site-header.nav-open .primary-nav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-inline: auto;
  }
  .nav-list { display: flex; align-items: center; gap: 0.1rem; }
  .nav-link {
    padding: 0.45rem 0.55rem;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .nav-link:hover { background: var(--light); }

  .nav-actions-mobile { display: none; }
  .nav-actions-desktop { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }

  .brand-logo { height: 70px; }
  .footer-bottom-inner { padding-block: 1.25rem; }
}

/* Wide screens */
@media (min-width: 1280px) {
  :root { --container: 1240px; }
  .nav-link { padding: 0.5rem 0.65rem; font-size: 0.92rem; }
  .scrap-grid { grid-template-columns: repeat(5, 1fr); }
  .scrap-card-body { padding: 1rem; }
  .scrap-card-body h3 { font-size: 1.02rem; }
  .scrap-card-body p { font-size: 0.9rem; }
  .scrap-card .btn { font-size: 0.82rem; padding-inline: 0.5rem; }
}

/* ---------- 20. Legal Pages (privacy-policy.html & terms-and-conditions.html) ---------- */
.legal-page-main {
  padding-block: 3rem 4.5rem;
  background: var(--light);
  min-height: calc(100vh - var(--header-h) - 200px);
}
.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: 2rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.legal-card h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.legal-card h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-card p,
.legal-card li {
  color: var(--muted);
}
.legal-card ul {
  list-style: disc;
  padding-inline-start: 1.4rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.4rem;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--green-strong);
}
.legal-back:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .legal-card { padding: 3rem 2.75rem; }
}

/* ---------- Arabic / RTL refinements ---------- */
html[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.4; }
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 { line-height: 1.45; }
html[dir="rtl"] .btn { white-space: normal; }
html[dir="rtl"] .nav-link { white-space: normal; }
/* Phone numbers / emails keep LTR rendering (dir="ltr" is set in the HTML) */
html[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover,
  .scrap-card:hover,
  .service-card:hover,
  .contact-card:hover,
  .highlight-card:hover,
  .whatsapp-float:hover,
  .lang-float:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .whatsapp-float, .lang-float, .install, .menu-toggle { display: none !important; }
  body { color: #000; }
}