/* ===================================================
   HOME PAGE CSS — index.html
   =================================================== */

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* Left panel — image */
.hero-visual {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-img.loaded { transform: scale(1); }

.hero-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,25,35,0.2) 0%,
    rgba(15,25,35,0.05) 100%
  );
}

.hero-visual-badge {
  position: absolute;
  bottom: 2.5rem; left: 2.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.badge-text strong { display: block; font-size: 0.9rem; font-weight: 700; }
.badge-text span   { font-size: 0.75rem; opacity: 0.7; }

/* Right panel — content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 5rem;
  background: var(--cream);
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: var(--cream-border);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.2vw, 4.8rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.75rem;
}

.hero-title strong {
  font-weight: 700;
  display: inline;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  display: inline;
}

.hero-title br {
  display: block;
  content: "";
  margin-top: 0;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-desc strong { color: var(--navy); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 440px;
}

.trust-stat {
  flex: 1;
  padding: 1.1rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--cream-border);
  background: var(--white);
}

.trust-stat:last-child { border-right: none; }

.trust-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}

.trust-num .plus { color: var(--gold); }

.trust-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}

/* Decorative quote line */
.hero-quote-bar {
  position: absolute;
  bottom: 3rem; right: 3rem;
  max-width: 220px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}

html[lang="ar"] .hero-quote-bar {
  right: auto;
  left: 3rem;
  border-left: none;
  border-right: 2px solid var(--gold);
  padding-left: 0;
  padding-right: 1rem;
  text-align: right;
}


/* ---------- Quote Strip ---------- */
.quote-strip {
  padding: 4rem 0;
  background: var(--navy);
  overflow: hidden;
}

.quote-inner {
  text-align: center;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.quote-text em {
  color: var(--gold-bright);
  font-style: italic;
}

.quote-attribution {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(250,250,248,0.4);
}

.quote-ornament {
  font-family: var(--font-serif);
  font-size: 6rem;
  color: rgba(255,255,255,0.04);
  line-height: 0.5;
  margin-bottom: 1rem;
  display: block;
}

/* ---------- Services Preview ---------- */
.services-preview {
  background: var(--cream);
  padding: var(--section-padding) 0;
}

.services-preview-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

.services-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--cream-border);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.service-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition-slow);
  overflow: hidden;
  cursor: default;
}

.service-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-item:hover::before { transform: scaleX(1); }

.service-item:hover {
  background: var(--cream-2);
  z-index: 1;
}

.service-num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  display: block;
}

.service-icon-wrap {
  width: 52px; height: 52px;
  background: var(--cream-2);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-icon-wrap i {
  font-size: 1.35rem;
  color: var(--navy);
  transition: var(--transition);
}

.service-item:hover .service-icon-wrap { background: var(--navy); }
.service-item:hover .service-icon-wrap i { color: var(--gold-bright); }

.service-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.service-brief {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}

.service-item:hover .service-arrow { gap: 10px; }

/* ---------- About Teaser ---------- */
.about-teaser {
  background: var(--cream-2);
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
  padding: var(--section-padding) 0;
}

.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-img-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.about-img-frame:hover img { transform: scale(1.03); }

.about-img-accent {
  position: absolute;
  top: -20px; left: -20px;
  width: 120px; height: 120px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-xs);
  opacity: 0.3;
  z-index: -1;
}

.about-img-card {
  position: absolute;
  bottom: 2rem; right: -2rem;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  min-width: 200px;
}

html[lang="ar"] .about-img-accent { left: auto; right: -20px; }
html[lang="ar"] .about-img-card   { right: auto; left: -2rem; }

.about-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.about-card-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.about-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.about-teaser-content {}

.about-teaser-content .section-title { margin-bottom: 1rem; }

.about-teaser-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.highlight-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.highlight-row i {
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--navy);
  padding: 3.5rem 0;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: var(--navy-light);
}

.stat-col {
  padding: 1rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

.stat-col:first-child { border-left: 1px solid rgba(255,255,255,0.07); }

.stat-big {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-big .unit { font-size: 2rem; font-weight: 400; }

.stat-desc {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,250,248,0.4);
}

/* ---------- Testimonials Section (Home) ---------- */
.testimonials-home {
  padding: var(--section-padding) 0;
  background: var(--cream);
}

.testimonials-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.featured-testimonial {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.featured-quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  line-height: 0.8;
  margin-bottom: 1rem;
  opacity: 0.5;
  display: block;
}

.featured-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-border);
}

.author-avatar-lg {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 1rem;
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.author-role { font-size: 0.8rem; color: var(--gold); }

.featured-stars { display: flex; gap: 3px; margin-top: 4px; }
.featured-stars i { color: var(--gold); font-size: 0.8rem; }

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.testi-mini {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cream-border);
  cursor: pointer;
  transition: var(--transition);
}

.testi-mini:first-child { padding-top: 0; }

.testi-mini:hover { padding-left: 0.5rem; }

.testi-mini-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.testi-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}

.testi-name { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.testi-role-mini { font-size: 0.75rem; color: var(--gold); }

.testi-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--navy);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '⚖';
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  color: rgba(255,255,255,0.02);
  line-height: 1;
}

.cta-inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cta-title em {
  font-weight: 300;
  font-style: italic;
  color: var(--gold-bright);
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(250,250,248,0.6);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(250,250,248,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-note i { color: var(--gold); }

/* ---------- Responsive Home ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 40vh; max-height: 480px; }
  .hero-content { padding: 3rem 2rem; }
  html[lang="ar"] .hero-content { padding: 3rem 2rem; }
  .hero-content::before { display: none; }
  .hero-quote-bar { display: none; }
  .hero-desc { max-width: 100%; }
  .hero-trust { max-width: 100%; }

  .about-teaser-grid { gap: 3.5rem; }
  .about-img-card { right: 0; }
  html[lang="ar"] .about-img-card { right: auto; left: 0; }
  .testimonials-layout { grid-template-columns: 1fr; }
  .featured-testimonial { position: static; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-col:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .hero-visual { min-height: 280px; max-height: 380px; }
  .hero-visual-badge {
    left: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
    max-width: calc(100% - 2rem);
  }
  html[lang="ar"] .hero-visual-badge {
    left: auto;
    right: 1rem;
  }
  .services-grid-home { grid-template-columns: 1fr; }
  .services-preview-header { grid-template-columns: 1fr; }
  .about-teaser-grid { grid-template-columns: 1fr; }
  .about-img-card { position: static; margin-top: 1rem; }
  .about-img-accent { display: none; }
  .about-img-frame img { height: 320px; }

  .hero-trust {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
  }
  .trust-stat {
    flex: 1;
    padding: 0.85rem 0.5rem;
    border-right: 1px solid var(--cream-border);
    border-bottom: none;
  }
  .trust-stat:last-child { border-right: none; }
  html[lang="ar"] .trust-stat {
    border-right: none;
    border-left: 1px solid var(--cream-border);
  }
  html[lang="ar"] .trust-stat:last-child { border-left: none; }
  .trust-num { font-size: 1.45rem; }
  .trust-lbl { font-size: 0.65rem; }

  .stats-bar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-visual { min-height: 240px; max-height: 320px; }
  .hero-content { padding: 2rem 1.25rem; }
  .hero-title { font-size: clamp(2.2rem, 8.5vw, 3rem); letter-spacing: normal; }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  .hero-trust { max-width: 100%; width: 100%; }
  .hero-actions { flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-visual-badge {
    padding: 0.6rem 0.85rem;
  }
  .badge-icon { width: 34px; height: 34px; font-size: 0.95rem; }
  .badge-text strong { font-size: 0.8rem; }
  .badge-text span { font-size: 0.7rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .stats-bar-grid { grid-template-columns: 1fr; }
  .stat-col { border-right: none; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
}
