﻿/* ============ Total Clean Tanger — Styles ============ */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --teal: #14b8a6;
  --accent: #f59e0b;
  --accent-dark: #e07b00;
  --green: #22c55e;
  --green-light: #dcfce7;
  --violet: #8b5cf6;
  --ink: #0f172a;
  --ink-soft: #475569;
  --bg: #ffffff;
  --bg-alt: #f0f9ff;
  --bg-mint: #ecfdf5;
  --line: #e2e8f0;
  --wa: #25d366;
  --wa-dark: #1eb857;
  --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  --grad-accent: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --grad-green: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 8px 24px rgba(14,116,233,.14);
  --shadow-lg: 0 20px 50px rgba(14,116,233,.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", "Cairo", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: "Cairo", "Inter", system-ui, sans-serif;
  direction: rtl;
}

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

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-large { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%); box-shadow: var(--shadow-md); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: var(--wa-dark); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e, #f59e0b);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name span { color: var(--primary); }

.nav { display: flex; gap: 1.1rem; align-items: center; }
.nav a {
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-soft);
  padding: .3rem 0;
  position: relative;
  transition: color .15s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .2s;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  display: flex;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: .35rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  color: #0369a1;
  transition: background .15s, color .15s;
}
.lang-btn.is-active { background: var(--grad-primary); color: #fff; box-shadow: 0 2px 8px rgba(14,165,233,.4); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Floating WhatsApp ---------- */
.floating-wa {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37,211,102,.4);
  transition: transform .2s;
}
.floating-wa:hover { transform: scale(1.1); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 8vw, 6rem) 0 3rem;
  background:
    radial-gradient(42% 55% at 8% 12%, rgba(34,197,94,.16), transparent 60%),
    radial-gradient(50% 60% at 92% 18%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(40% 45% at 60% 100%, rgba(249,115,22,.12), transparent 60%),
    linear-gradient(180deg, #f0f9ff 0%, #ecfeff 45%, #fff 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #7c2d12;
  font-weight: 800;
  font-size: .82rem;
  padding: .45rem 1.05rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 16px rgba(249,115,22,.35);
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; color: var(--ink-soft); }
.hero-media { position: relative; }
.hero-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid transparent; background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #0ea5e9, #22c55e, #f59e0b) border-box; }
.hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-card {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: .8rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.hero-card strong { font-size: .95rem; }
.hero-card span { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-alt:nth-of-type(odd) { background: var(--bg-alt); }
.section-alt:nth-of-type(even) { background: var(--bg-mint); }
.section-head { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
.section-tag {
  display: inline-block;
  color: #0284c7;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  margin-bottom: .6rem;
  background: linear-gradient(90deg, #0284c7, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .7rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #7dd3fc; }
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
}
.service-card:nth-child(4n+1) .service-icon { background: #e0f2fe; color: #0284c7; }
.service-card:nth-child(4n+2) .service-icon { background: #ffedd5; color: #ea580c; }
.service-card:nth-child(4n+3) .service-icon { background: #dcfce7; color: #16a34a; }
.service-card:nth-child(4n+4) .service-icon { background: #e0f2fe; color: #0d9488; }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.02rem; font-weight: 700; }
.service-card p { font-size: .88rem; color: var(--ink-soft); flex: 1; }
.service-cta { font-weight: 700; font-size: .88rem; color: var(--primary); }
.service-cta:hover { color: var(--accent-dark); }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.benefit {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-icon {
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #e0f2fe;
  margin-bottom: .6rem;
}
.benefit:nth-child(2) .benefit-icon { background: #ffedd5; }
.benefit:nth-child(3) .benefit-icon { background: #dcfce7; }
.benefit:nth-child(4) .benefit-icon { background: #fef9c3; }
.benefit:nth-child(5) .benefit-icon { background: #ede9fe; }
.benefit:nth-child(6) .benefit-icon { background: #ccfbf1; }
.benefit h3 { font-size: 1rem; margin-bottom: .3rem; }
.benefit p { font-size: .86rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}
.step {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  position: relative;
}
.step-num {
  width: 48px; height: 48px;
  margin: 0 auto .9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(14,165,233,.35);
}
.step:nth-child(2) .step-num { background: var(--grad-accent); box-shadow: 0 8px 18px rgba(249,115,22,.35); }
.step:nth-child(3) .step-num { background: var(--grad-green); box-shadow: 0 8px 18px rgba(34,197,94,.35); }
.step:nth-child(4) .step-num { background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%); box-shadow: 0 8px 18px rgba(139,92,246,.35); }
.step h3 { font-size: 1rem; margin-bottom: .3rem; }
.step p { font-size: .86rem; color: var(--ink-soft); }

/* ---------- Real results gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #7dd3fc; }
.gallery-item:nth-child(2n) { background: #f0fdf4; }
.gallery-item:nth-child(2n+1) { background: #eff6ff; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/2.6;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: .55rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Pricing ---------- */
.price-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6 55%, #22c55e);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: 0 20px 50px rgba(14,165,233,.3);
}
.price-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 1rem;
  text-align: left;
  margin-bottom: 1.4rem;
}
html[lang="ar"] .price-items { text-align: right; }
.price-item { font-size: .95rem; font-weight: 500; }
.price-note { margin-bottom: 1.5rem; font-size: .95rem; opacity: .92; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.about-content h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 1rem; }
.about-content p { color: var(--ink-soft); margin-bottom: .9rem; }
.about-list { margin-top: 1rem; display: grid; gap: .5rem; }
.about-list li { font-weight: 600; }

/* ---------- Testimonials ---------- */
.testi-note { font-size: .85rem; font-style: italic; opacity: .8; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  box-shadow: var(--shadow-sm);
}
.testi-stars { color: var(--accent); letter-spacing: 2px; }
.testi-text { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.testi-author { display: flex; align-items: center; gap: .7rem; }
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.testi-author strong { display: block; font-size: .88rem; }
.testi-author small { color: var(--ink-soft); font-size: .78rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item.open { border-color: #67e8f9; box-shadow: 0 6px 18px rgba(14,165,233,.12); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.05rem 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
html[lang="ar"] .faq-q { text-align: right; }
.faq-q::after { content: "+"; font-size: 1.3rem; color: var(--primary); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Final CTA / Contact ---------- */
.final-cta {
  background:
    radial-gradient(45% 60% at 90% 10%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(45% 60% at 10% 90%, rgba(249,115,22,.16), transparent 60%),
    linear-gradient(135deg, #0c4a6e, #155e75 40%, #134e4a 75%, #166534);
  color: #fff;
}
.final-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.final-left h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }
.final-left p { opacity: .9; margin-bottom: 1.6rem; }
.final-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.final-contact { display: grid; gap: .4rem; font-size: .92rem; opacity: .92; }
.final-contact a { font-weight: 700; text-decoration: underline; }

.quote-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.quote-form-wrap h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.3rem; }
.quote-form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  padding: .7rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  width: 100%;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,116,144,.12);
}
.field input[aria-invalid="true"] { border-color: #dc2626; }
.field-half { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
}

/* ---------- Footer ---------- */
.footer { background: #0b1220; color: #cbd5e1; padding-top: 3rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer .brand-name { color: #fff; }
.footer .brand-name span { color: #38bdf8; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .4rem; font-size: .88rem; }
.footer-col a:hover { color: #38bdf8; }
.footer-brand p { font-size: .88rem; margin-top: .9rem; max-width: 26rem; }
.socials { margin-top: 1rem; font-size: .85rem; opacity: .8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; }
.footer-bottom p { font-size: .84rem; text-align: center; }

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .final-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 6%;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .services-grid, .benefits-grid, .steps, .testi-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .field-half { grid-template-columns: 1fr; }
  .price-items { grid-template-columns: 1fr; }
}