/* ============================================
   FANI NIGERIA LIMITED — Homepage
   Modern • Elegant • Animated
   ============================================ */

:root {
  --bg: #05070a;
  --bg-elevated: #0c1017;
  --bg-card: #111722;
  --text: #f0f2f5;
  --text-muted: #8b95a8;
  --text-dim: #5a6577;
  --accent: #e85a2a;
  --accent-soft: rgba(232, 90, 42, 0.15);
  --accent-glow: rgba(232, 90, 42, 0.35);
  --teal: #2dd4bf;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Dark mode: rich gradient + canvas visible */
html:not(.light) body {
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(232, 90, 42, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 10%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(43, 108, 176, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 80% 60%, rgba(232, 90, 42, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #05070a 0%, #0a0e16 45%, #070b12 100%);
  background-attachment: fixed;
}

html:not(.light) #hero-canvas {
  display: block;
  opacity: 1;
}

/* Light mode: no canvas */
html.light #hero-canvas {
  display: none !important;
  opacity: 0;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.section {
  padding: 30px 0;
  position: relative;
  z-index: 2;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.logo-mark,
.logo-text {
  display: none;
}

.logo-word {
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  color: #2b6cb0;
  background: linear-gradient(135deg, #2b6cb0 0%, #1e4d8c 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.header .logo-word { font-size: 1.35rem; }
.footer .logo-word { font-size: 1.5rem; }

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* Get quote: hidden on mobile */
.header-cta {
  display: none;
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.85rem;
}

.cta-short { display: none; }
.cta-full { display: inline; }

.menu-toggle {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

@media (max-width: 899px) {
  .header-cta { display: none !important; }
  .menu-toggle { display: flex; }
  .header-inner { gap: 12px; }
  .logo-img { height: 40px; max-width: 120px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  font-family: inherit;
  max-width: 100%;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d4923a);
  color: #0a0c10;
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:hover { box-shadow: 0 12px 40px var(--accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 100%;
  max-width: 100%;
  text-align: left;
  padding: 0;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero-content {
    padding: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-main {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Desktop: title LEFT | text RIGHT — fits container */
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 48px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}

.hero-left {
  min-width: 0;
}

.hero-right {
  min-width: 0;
  padding-left: 8px;
}

.hero-right .hero-sub {
  max-width: 420px;
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-right .hero-actions {
  margin-bottom: 0;
}

.hero-title {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
}

.hero-stats {
  margin-top: 56px;
  max-width: 1100px;
}

@media (max-width: 899px) {
  .hero-main {
    display: block;
    max-width: 100%;
  }

  .hero-right {
    padding-left: 0;
  }

  .hero-title {
    margin-bottom: 20px;
    font-size: clamp(2rem, 8.5vw, 2.85rem);
  }

  .hero-right .hero-sub {
    max-width: 100%;
    margin-bottom: 28px;
  }
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  max-width: 100%;
  flex-wrap: wrap;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-title .line { display: block; }

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  margin-bottom: 64px;
  align-items: center;
}

.hero-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .hero-actions .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-plus {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

.about-visual { display: grid; gap: 16px; }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.card-icon svg { width: 24px; height: 24px; }

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  word-wrap: break-word;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 480px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
  transition: gap 0.3s;
}

.text-link:hover { gap: 14px; }

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 90, 42, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.service-card:hover .service-line { transform: scaleX(1); }

.service-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.projects-showcase {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-height: 560px;
}

.project-item.large { grid-row: span 2; }

@media (max-width: 800px) {
  .projects-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }
  .project-item.large { grid-row: auto; min-height: 320px; }
  .project-item { min-height: 240px; }
}

.project-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 240px;
  transition: transform 0.5s var(--ease);
}

.project-item:hover { transform: scale(1.015); }

.project-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transition: transform 0.7s var(--ease);
}

.project-item:hover .project-bg { transform: scale(1.08); }

.project-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.4;
}

.project-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 10, 0.95) 0%, rgba(5, 7, 10, 0.3) 50%, transparent 100%);
}

.project-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 360px;
}

.projects-cta {
  text-align: center;
  margin-top: 48px;
}

.why {
  background: linear-gradient(180deg, transparent, rgba(232, 90, 42, 0.03), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
}

.why-list {
  list-style: none;
  margin-top: 32px;
}

.why-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.why-list li:last-child { border-bottom: none; }

.why-list strong { font-size: 1.05rem; }

.why-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.why-quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  position: relative;
}

.why-quote::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
}

.why-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.why-quote cite {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: normal;
}

.testimonials {
  background: linear-gradient(180deg, transparent, rgba(232, 90, 42, 0.025), transparent);
}

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

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 90, 42, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c94a1f);
  color: #0a0c10;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 80vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--border);
    z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; padding: 14px 18px; }
}

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #c94a1f);
  color: #fff;
  padding: 14px 18px 14px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s, box-shadow 0.3s;
  font-family: inherit;
}

.wa-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-float:hover {
  box-shadow: 0 12px 36px var(--accent-glow);
  transform: translateY(-3px) scale(1.02);
}

.wa-float svg { flex-shrink: 0; }
.wa-label { white-space: nowrap; }

@media (max-width: 600px) {
  .wa-float {
    bottom: 20px;
    right: 16px;
    padding: 14px;
    width: 56px;
    height: 56px;
    justify-content: center;
    border-radius: 50%;
  }
  .wa-label { display: none; }
}

@media (max-width: 899px) {
  .section { padding: 30px 0; }
  .container { width: min(1200px, 94%); }
  .hero { padding: 50px 0 80px;  margin-bottom: -100px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-sub { font-size: 1.05rem; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 2rem; }
  .contact-form { padding: 24px 18px; }
  .why-quote { padding: 32px 22px; }
  .why-quote blockquote { font-size: 1.15rem; }
  .service-card { padding: 28px 22px; }
  .project-content { padding: 24px; }
}

/* Force hero content visible (badge + title) so it never stays hidden */
.hero .reveal,
.hero .reveal-left,
.hero .reveal-right {
  opacity: 1;
  transform: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  max-width: 100%;
  flex-wrap: wrap;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}


/* Hero mobile layout polish */
@media (max-width: 899px) {
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.85rem);
    line-height: 1.12;
    margin-bottom: 20px;
  }

  .hero-title .line {
    display: block;
  }

  .hero-sub {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 40px;
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.85rem;
    min-width: 0;
  }

  .hero-actions .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 7px 14px 7px 10px;
    margin-bottom: 24px;
    line-height: 1.35;
  }

  .hero-stats {
    gap: 20px 28px;
    padding-top: 24px;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-actions .btn {
    padding: 11px 10px;
    font-size: 0.8rem;
    gap: 6px;
  }
}




/* ===== Theme + Language controls ===== */
.lang-wrap {
  position: relative;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .header-controls {
    margin-left: 0;
    order: 0;
  }
  .header-inner {
    /* logo | nav | controls | cta */
  }
}

.theme-toggle,
.lang-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  font-family: inherit;
  padding: 0;
  position: relative;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle svg,
.lang-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

html.light .theme-toggle .icon-sun { display: block; }
html.light .theme-toggle .icon-moon { display: none; }

.lang-toggle {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-toggle .lang-code {
  line-height: 1;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 120;
}

.lang-menu.open {
  display: block;
}

.lang-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.lang-menu button.active {
  color: var(--accent);
}

/* ===== Light mode — professional white ===== */
html.light {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #e85a2a;
  --accent-soft: rgba(232, 90, 42, 0.1);
  --accent-glow: rgba(232, 90, 42, 0.28);
  --teal: #0f766e;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
}

html.light body {
  color: var(--text);
  background: #f8fafc;
  background-attachment: fixed;
}

/* subtle top wash only — not muddy gray */
html.light body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 50% at 50% -20%, rgba(232, 90, 42, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(30, 77, 140, 0.05) 0%, transparent 50%);
}

html.light .noise {
  opacity: 0.02;
}

html.light .header {
  background: transparent;
}

html.light .header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

html.light .nav-link {
  color: #64748b;
}

html.light .nav-link:hover,
html.light .nav-link.active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

html.light .hero-title {
  color: #0f172a;
}

html.light .hero-sub {
  color: #475569;
}

html.light .hero-badge {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #64748b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html.light .stat-num {
  color: #0f172a;
}

html.light .stat-label {
  color: #64748b;
}

html.light .hero-stats {
  border-top-color: rgba(15, 23, 42, 0.1);
}

html.light .about-card,
html.light .service-card,
html.light .testimonial-card,
html.light .contact-form,
html.light .why-quote,
html.light .leadership {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

html.light .about-card:hover,
html.light .service-card:hover,
html.light .testimonial-card:hover {
  border-color: rgba(232, 90, 42, 0.25);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 20px 40px rgba(232, 90, 42, 0.08);
}

html.light .section-title {
  color: #0f172a;
}

html.light .section-desc,
html.light .about-text p,
html.light .service-card p {
  color: #475569;
}

html.light .client-pill {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #475569;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

html.light .project-item {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

html.light .project-bg::after {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 45%, transparent 100%);
}

html.light .project-content h3,
html.light .project-content p {
  color: #fff;
}

html.light .gallery-item {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}

html.light .gallery-item span {
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
}

html.light .btn-primary {
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 90, 42, 0.3);
}

html.light .btn-ghost {
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
}

html.light .btn-ghost:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.22);
}

html.light .theme-toggle,
html.light .lang-toggle,
html.light .menu-toggle {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.light .theme-toggle:hover,
html.light .lang-toggle:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
}

html.light .menu-toggle span {
  background: #0f172a;
}

html.light .lang-menu {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html.light .lang-menu button {
  color: #475569;
}

html.light .lang-menu button:hover,
html.light .lang-menu button.active {
  background: rgba(232, 90, 42, 0.08);
  color: #e85a2a;
}

/* html.light .nav {
  background: #ffffff;
  border-left-color: rgba(15, 23, 42, 0.08);
} */

@media (max-width: 899px) {
  html.light .nav.open {
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.1);
  }
}

html.light .why {
  background: linear-gradient(180deg, transparent, rgba(232, 90, 42, 0.03), transparent);
}

html.light .why-list li {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html.light .why-list strong {
  color: #0f172a;
}

html.light .why-list span {
  color: #475569;
}

html.light .why-quote blockquote {
  color: #0f172a;
}

html.light .why-quote cite {
  color: #64748b;
}

html.light .contact-item a {
  color: #0f172a;
}

html.light .contact-item a:hover {
  color: #e85a2a;
}

html.light .form-group input,
html.light .form-group textarea {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

html.light .form-group input:focus,
html.light .form-group textarea:focus {
  background: #ffffff;
  border-color: #e85a2a;
  box-shadow: 0 0 0 3px rgba(232, 90, 42, 0.12);
}

html.light .footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

html.light .footer-brand p,
html.light .footer-links a,
html.light .footer-copy p {
  color: #64748b;
}

html.light .footer-links a:hover {
  color: #e85a2a;
}

html.light .info-chip {
  background: rgba(232, 90, 42, 0.08);
  color: #c2410c;
  border-color: rgba(232, 90, 42, 0.2);
}

html.light .leadership-photo {
  border-color: rgba(232, 90, 42, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html.light .wa-float {
  color: #fff;
}

html.light .scroll-line {
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Arabic / RTL — text direction only, layout stays stable */
html[dir="rtl"] {
  direction: rtl;
}

/* Keep header visual order (logo left, controls right) even in RTL */
html[dir="rtl"] .header-inner {
  direction: ltr; /* lock chrome LTR so logo/nav/controls don't flip */
}

html[dir="rtl"] .nav {
  direction: rtl; /* nav link text reads RTL */
}

/* Hero: keep title on left, text on right like English layout */
html[dir="rtl"] .hero-main {
  direction: ltr;
}

html[dir="rtl"] .hero-left,
html[dir="rtl"] .hero-right {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .hero-actions {
  direction: rtl;
  justify-content: flex-start;
}

html[dir="rtl"] .hero-badge {
  direction: rtl;
}

html[dir="rtl"] .hero-stats {
  direction: rtl;
}

/* Content sections: natural RTL text */
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-desc,
html[dir="rtl"] .section-label,
html[dir="rtl"] .about-text,
html[dir="rtl"] .service-card,
html[dir="rtl"] .testimonial-text,
html[dir="rtl"] .testimonial-author,
html[dir="rtl"] .contact-info,
html[dir="rtl"] .why-text,
html[dir="rtl"] .why-quote,
html[dir="rtl"] .project-content,
html[dir="rtl"] .footer {
  text-align: right;
}

html[dir="rtl"] .text-link {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-form {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
  text-align: right;
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
  text-align: right;
  direction: rtl;
}

/* Mobile drawer stays from the right edge (same as LTR) so design is consistent */
html[dir="rtl"] .nav {
  /* keep default right-side drawer */
}

@media (max-width: 899px) {
  html[dir="rtl"] .hero-left,
  html[dir="rtl"] .hero-right {
    text-align: right;
  }

  html[dir="rtl"] .hero-actions {
    direction: rtl;
  }
}
