/* ===== VARIABLES ===== */
:root {
  --primary: #1B4965;
  --primary-light: #5FA8D3;
  --green: #52B788;
  --green-light: #B7E4C7;
  --warm: #F7F4F0;
  --text: #1a1a2e;
  --muted: #6B7280;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(27,73,101,0.1);
  --shadow-lg: 0 8px 48px rgba(27,73,101,0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: all 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Heebo', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* Arabic */
html[lang="ar"] body { font-family: 'Noto Sans Arabic', sans-serif; }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.label {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; border-radius: 50px;
  font-weight: 700; font-size: 1rem; border: none;
  transition: var(--ease); white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #143a52; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #128C7E; transform: translateY(-2px); }
.btn-map { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-map:hover { background: var(--primary); color: white; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07); transition: var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }

.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-main { font-size: 0.95rem; font-weight: 800; color: var(--primary); }
.logo-sub { font-size: 0.72rem; color: var(--green); font-weight: 600; }

.nav { display: flex; gap: 2rem; }
.nav a { color: var(--text); font-weight: 500; position: relative; }
.nav a::after { content:''; position: absolute; bottom: -4px; inset-inline: 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform 0.2s; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone { display: flex; align-items: center; gap: 0.4rem; color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.header-phone:hover { color: var(--green); }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.3rem;
  background: none; border: 2px solid var(--primary-light);
  border-radius: 50px; padding: 0.35rem 0.75rem;
  color: var(--primary); font-size: 0.82rem; font-weight: 700;
  transition: var(--ease);
}
.lang-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  background: white; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 0.4rem; min-width: 140px;
  display: none; z-index: 100;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: block; width: 100%; padding: 0.55rem 0.9rem;
  background: none; border: none; text-align: start;
  font-size: 0.88rem; border-radius: 6px; transition: background 0.2s;
  color: var(--text);
}
.lang-option:hover { background: var(--warm); }
.lang-option.active { color: var(--primary); font-weight: 700; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--ease); }

/* ===== HERO ===== */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1518241353330-0f7941c2d9b5?w=1600&q=85');
  background-size: cover; background-position: center; filter: brightness(1.15) saturate(1.1);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,73,101,0.72) 0%, rgba(23,181,195,0.38) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 2rem; }
.hero-services-row { display: flex; align-items: center; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero-serv-tag {
  color: white; font-size: 0.95rem; font-weight: 600; text-decoration: none;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35);
  padding: 0.35rem 0.9rem; border-radius: 50px; backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.hero-serv-tag:hover { background: rgba(244,132,95,0.45); }
.hero-serv-sep { color: rgba(255,255,255,0.5); font-size: 1rem; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28); color: white;
  padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.9rem;
  margin-bottom: 1.5rem; backdrop-filter: blur(5px);
}
.hero-title { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 900; color: white; line-height: 1.1; margin-bottom: 1.25rem; }
.accent-text { color: var(--green-light); }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(255,255,255,0.92); margin-bottom: 0.5rem; }
.hero-loc { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); }
.scroll-line { width: 2px; height: 48px; background: linear-gradient(to bottom, transparent, white); margin: 0 auto; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ===== STATS ===== */
.stats { background: var(--primary); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { color: white; }
.stat-num-wrap { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-num { font-size: 2.6rem; font-weight: 900; }
.stat-plus { font-size: 1.4rem; font-weight: 700; color: var(--green-light); }
.stat-item p { font-size: 0.88rem; opacity: 0.8; margin-top: 0.25rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover; width: 100%; height: 460px; }
.about-card-float {
  position: absolute; bottom: -1.5rem; inset-inline-start: -1.5rem;
  background: var(--green); color: white; padding: 1.2rem 1.5rem;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  text-align: center; font-weight: 700;
}
.float-icon { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }
.about-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.about-content p { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }
.check-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { color: var(--text); font-weight: 500; padding-inline-start: 1.5rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 700; }

/* ===== SERVICES ===== */
.services { background: var(--warm); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--ease); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--primary-light); }
.service-card.featured::before { background: var(--green); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.serv-img { width: 100%; overflow: hidden; height: 160px; flex-shrink: 0; }
.serv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.serv-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.serv-badge {
  position: absolute; top: 0.75rem; inset-inline-start: 0.75rem;
  background: var(--green); color: white; font-size: 0.7rem;
  font-weight: 700; padding: 0.18rem 0.55rem; border-radius: 50px; z-index: 1;
}
.serv-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.service-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--primary); margin-bottom: 0.45rem; }
.service-card p { color: var(--muted); line-height: 1.6; margin-bottom: 1rem; font-size: 0.85rem; flex: 1; }
.serv-link { color: var(--green); font-weight: 700; font-size: 0.85rem; }
.serv-link:hover { color: var(--primary); }

/* ===== HOW ===== */
.how { background: var(--white); }
.steps-wrap { display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.step { flex: 1; min-width: 160px; max-width: 200px; text-align: center; padding: 1.5rem 1rem; }
.step-num { width: 54px; height: 54px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 900; margin: 0 auto 1rem; }
.step h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.step-arrow { color: var(--primary-light); font-size: 1.6rem; flex-shrink: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--warm); }
.testim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.testim-card { background: white; border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow); }
.stars { color: #F59E0B; font-size: 0.95rem; margin-bottom: 1rem; }
.testim-card p { color: var(--muted); line-height: 1.8; font-size: 0.93rem; margin-bottom: 1.5rem; font-style: italic; }
.testim-author { display: flex; align-items: center; gap: 0.75rem; }
.avatar { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.testim-author strong { display: block; font-size: 0.9rem; }
.testim-author span { color: var(--muted); font-size: 0.78rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-bottom: 2.5rem; }
.contact-info h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.contact-info > p { color: var(--muted); margin-bottom: 1.75rem; }
.info-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.info-item { display: flex; align-items: flex-start; gap: 0.9rem; }
.info-icon { font-size: 1.25rem; flex-shrink: 0; }
.info-item strong { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.1rem; }
.info-item a, .info-item span { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.contact-btns { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* Form */
.form-wrap { background: var(--warm); border-radius: var(--radius); padding: 2.25rem; }
.form-wrap h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.step-dots { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.step-dot { width: 9px; height: 9px; border-radius: 50%; background: #dce5ec; transition: background 0.25s, transform 0.2s; flex-shrink: 0; }
.step-dot.done { background: var(--green); }
.step-dot.active { background: var(--primary); transform: scale(1.25); }
.step-counter { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.9rem; }
.step-title { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.85rem; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeStep 0.22s ease; }
@keyframes fadeStep { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.choice-card {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem;
  border: 1.5px solid #E5E7EB; border-radius: 10px; cursor: pointer;
  font-size: 0.86rem; font-weight: 500; transition: all 0.18s; background: white; user-select: none;
}
.choice-card:hover { border-color: var(--primary-light); }
.choice-card.selected { border-color: var(--primary); background: rgba(27,73,101,0.07); }
.choice-card input { display: none; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.65rem 1rem; border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.92rem;
  background: white; color: var(--text); transition: border-color 0.2s; text-align: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-light); }
[dir="ltr"] .field input, [dir="ltr"] .field select, [dir="ltr"] .field textarea { text-align: left; }
.form-nav { display: flex; align-items: center; gap: 0.65rem; margin-top: 1.1rem; }
.form-nav .btn, .form-nav .btn-wa { flex: 1; justify-content: center; }
.btn-back {
  background: none; border: 1.5px solid #E5E7EB; border-radius: 8px;
  padding: 0.62rem 1rem; font-family: inherit; font-size: 0.86rem;
  color: var(--muted); cursor: pointer; flex-shrink: 0; transition: var(--ease);
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); }
.btn-back.hidden { visibility: hidden; pointer-events: none; }
.privacy-note { text-align: center; font-size: 0.76rem; color: var(--muted); margin-top: 0.7rem; }

/* Map */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ===== FOOTER ===== */
.footer { background: var(--primary); color: white; padding: 2.25rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo strong { display: block; font-size: 0.95rem; }
.footer-logo small { color: var(--green-light); font-size: 0.75rem; }
.footer p { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.copy { font-size: 0.78rem !important; opacity: 0.45 !important; }
.salmon-text { color: #F4845F; }
.header-right-col { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.header-social { display: flex; gap: 0.45rem; align-items: center; }
.hsoc { color: var(--muted); transition: color 0.2s; line-height: 0; }
.hsoc:hover { color: var(--primary); }
.social-links { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; color: white;
  transition: var(--ease); text-decoration: none;
}
.social-icon:hover { background: var(--green); transform: translateY(-2px); }
.social-icon-news { font-size: 0.58rem; line-height: 1.1; text-align: center; color: white; }
.wa-cta-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.wa-cta-text { font-size: 0.82rem; color: var(--green); font-weight: 600; margin: 0; }

/* ===== FLOATING BUTTONS ===== */
.float-btns {
  position: fixed; bottom: 1.5rem; inset-inline-start: 1.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; z-index: 999;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25); transition: var(--ease); text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
.float-wa { background: #25D366; color: white; }
.float-call { background: var(--primary); color: white; }
.float-wa-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.float-wa-label {
  background: white; color: var(--primary); font-size: 0.72rem; font-weight: 700;
  padding: 0.3rem 0.65rem; border-radius: 20px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  animation: pulse-label 2.5s ease-in-out infinite;
}
@keyframes pulse-label {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card-float { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; inset-inline: 0;
    background: white; padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1); gap: 1rem;
  }
  .hamburger { display: flex; }
  .header-phone span { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-wrap img { height: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .serv-img { height: 180px; }
  .steps-wrap { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(0); }
  .testim-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .contact-btns { flex-direction: column; }
  .contact-btns .btn { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .hero-title { font-size: 2.2rem; }
  .section { padding: 3.5rem 0; }
}
