/* ===== WI Contracting — RTL, construction color scheme ===== */

:root {
  --navy: #0b1424;
  --navy-2: #101d33;
  --blue: #00a8e8;
  --green: #6db33f;
  --orange: #e8622c;
  --orange-dark: #c94f1f;
  --amber: #f5a623;
  --ink: #101826;
  --gray-600: #5b6577;
  --gray-400: #94a3b8;
  --gray-100: #f4f6f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 20, 36, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 20, 36, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--white);
  direction: rtl;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--gray-600); font-size: 1.05rem; margin: 0; }

.text-accent { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-cta {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(232, 98, 44, 0.35);
}
.btn-cta:hover { background: var(--orange-dark); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 10px 20px;
}
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  padding: 10px 20px;
}
.btn-whatsapp:hover { background: #1ebd59; }
.btn-whatsapp .icon { width: 18px; height: 18px; fill: currentColor; }

.btn-block { width: 100%; justify-content: center; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 36, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { height: 46px; width: auto; }
.brand-text { color: var(--white); font-weight: 800; font-size: 1.15rem; }
.brand-text em { color: var(--orange); font-style: normal; }

.nav-panel { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: space-between; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--orange); }

.navbar-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 98, 44, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(0, 168, 232, 0.2), transparent 45%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 780px; }

.badge {
  display: inline-block;
  background: rgba(232, 98, 44, 0.15);
  border: 1px solid rgba(232, 98, 44, 0.4);
  color: var(--amber);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 20px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.9rem; color: var(--orange); font-weight: 900; }
.stat span { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 18px; }
.about p { color: var(--gray-600); }

.check-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-right: 30px;
  color: var(--ink);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
  background: rgba(109, 179, 63, 0.15);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.about-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.about-card h3 { font-size: 1.3rem; margin: 0 0 14px; }
.about-card p { color: rgba(255, 255, 255, 0.78); }
.about-card-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.about-card-badges span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Services */
.services { background: var(--gray-100); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(11, 20, 36, 0.05);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { font-size: 1.15rem; margin: 0 0 10px; font-weight: 700; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; margin: 0; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 20, 36, 0.08);
}
.why-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 10px;
}
.why-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.why-card p { color: var(--gray-600); margin: 0; font-size: 0.95rem; }

/* Coverage */
.coverage { background: var(--navy); color: var(--white); text-align: center; }
.coverage .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.coverage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.city-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 14px; }
.contact-info p { color: var(--gray-600); margin: 0 0 26px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; }
.contact-details svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  margin-top: 3px;
}
.contact-details span { display: block; font-size: 0.85rem; color: var(--gray-400); font-weight: 600; }
.contact-details a { font-weight: 700; color: var(--ink); }
.contact-details p { margin: 0; font-weight: 600; }

.lead-form {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.lead-form h3 { margin: 0 0 22px; font-size: 1.3rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #dfe4ea;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-note { margin-top: 14px; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-note.success { color: var(--green); font-weight: 700; }
.form-note.error { color: #e11d48; font-weight: 700; }

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.85); padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand-mark { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer-logo { height: 40px; }
.footer-brand-mark span { color: var(--white); font-weight: 800; font-size: 1.15rem; }
.footer-brand-mark span em { color: var(--orange); font-style: normal; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; max-width: 320px; }
.footer-brand a { color: var(--orange); font-weight: 600; }
.footer-links h4, .footer-contact h4 { color: var(--white); margin: 0 0 16px; font-size: 1rem; }
.footer-links a, .footer-contact a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
  z-index: 200;
  animation: pulse 2.4s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.8), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-panel { display: none; }
  .nav-toggle { display: flex; }
  .navbar { position: sticky; }
  .nav-panel.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    gap: 20px;
  }
  .nav-panel.is-open .nav-links,
  .nav-panel.is-open .navbar-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nav-panel.is-open .navbar-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
  }
  .nav-panel.is-open .navbar-cta .btn { width: 100%; justify-content: center; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 60px 0; }
}
