/* =========================================================
   شركة روافد الحلول المتقدمة — Rawafed Advanced Solutions
   Design System & Modern Stylesheet
   Color Palette inspired by Brand Logo on Pure White Background
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors from Logo */
  --blue-primary:       #0074C8;
  --blue-dark:          #00599B;
  --blue-deeper:        #003E6D;
  --blue-light:         #EBF5FD;
  --blue-glow:          rgba(0, 116, 200, 0.15);
  --blue-border:        #B9DCF7;

  --gold-primary:       #E19E4C;
  --gold-dark:          #C27E2C;
  --gold-light:         #FDF6EC;
  --gold-glow:          rgba(225, 158, 76, 0.2);
  --gold-amber:         #F5BA58;
  --gold-border:        #F9DEB5;

  /* Surfaces & Backgrounds (Pure White Theme) */
  --bg-main:            #FFFFFF;
  --bg-subtle:          #F8FAFC;
  --bg-surface:         #F1F5F9;
  --bg-card:            #FFFFFF;
  --bg-card-hover:      #FDFEFF;

  /* Borders & Dividers */
  --border-light:       #E2E8F0;
  --border-subtle:      #EDF2F7;
  --border-focus:       #0074C8;

  /* Text Colors */
  --text-heading:       #1E242B;
  --text-body:          #475569;
  --text-muted:         #64748B;
  --text-light:         #94A3B8;

  /* Gradients */
  --grad-primary:       linear-gradient(135deg, #0074C8 0%, #005699 100%);
  --grad-gold:          linear-gradient(135deg, #E19E4C 0%, #F5BA58 100%);
  --grad-gold-hover:    linear-gradient(135deg, #CF8E3E 0%, #EAA847 100%);
  --grad-hero-text:     linear-gradient(135deg, #0074C8 15%, #0288D1 50%, #E19E4C 95%);
  --grad-accent-bar:    linear-gradient(90deg, #0074C8 0%, #F5BA58 100%);
  --grad-card-top:      linear-gradient(90deg, #0074C8, #E19E4C);

  /* Shadows */
  --shadow-xs:          0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm:          0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md:          0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg:          0 16px 36px rgba(15, 23, 42, 0.09);
  --shadow-hover:       0 20px 45px rgba(0, 116, 200, 0.12);
  --shadow-gold-btn:    0 8px 25px rgba(225, 158, 76, 0.35);
  --shadow-blue-btn:    0 8px 25px rgba(0, 116, 200, 0.3);

  /* Dimensions & Radius */
  --radius-sm:          8px;
  --radius-md:          14px;
  --radius-lg:          20px;
  --radius-pill:        9999px;

  --max-w:              1200px;
  --pad:                clamp(20px, 5vw, 48px);

  /* Transitions */
  --ease:               cubic-bezier(0.16, 1, 0.3, 1);
  --transition:         all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- RESET & BASE ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------------- UTILITIES & TYPOGRAPHY ---------------- */
.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 110px);
}

.section.subtle {
  background-color: var(--bg-subtle);
  border-block: 1px solid var(--border-light);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 16px;
  line-height: 1.8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--blue-light);
  color: var(--blue-primary);
  border: 1px solid var(--blue-border);
}

.badge-gold {
  background: var(--gold-light);
  color: var(--gold-dark);
  border-color: var(--gold-border);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 0 0 rgba(225, 158, 76, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 158, 76, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(225, 158, 76, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 158, 76, 0); }
}

.gradient-text {
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

/* Background Subtle Grids & Radial Accents */
.mesh-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.mesh-glow-blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 116, 200, 0.18) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.mesh-glow-gold {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(225, 158, 76, 0.18) 0%, transparent 70%);
  top: 100px;
  right: -80px;
}

.grid-pattern-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 116, 200, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 116, 200, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 20%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 20%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--grad-gold);
  color: #1A150C;
  box-shadow: var(--shadow-gold-btn);
}

.btn-gold:hover {
  background: var(--grad-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(225, 158, 76, 0.45);
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue-btn);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0060A6 0%, #00457A 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 116, 200, 0.4);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--blue-primary);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--blue-light);
  border-color: var(--blue-primary);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border-light);
}

.btn-ghost:hover {
  background: var(--bg-surface);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(-4px);
}

/* ---------------- NAVIGATION ---------------- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 998;
  padding-block: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  padding-block: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 40, 80, 0.06);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  max-width: unset;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}

.mobile-icon-nav{
  display: none;
}

.brand:hover .brand-logo-img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-align: center;
  display: flex;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding-block: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad-accent-bar);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--blue-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--blue-primary);
  font-weight: 700;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-heading);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.burger:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.burger svg {
  width: 22px;
  height: 22px;
}

/* Mobile Nav Drawer */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
  padding: 40px 50px;
}

.mobile-panel.open {
  transform: translateX(0);
}

.mobile-panel a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  padding-block: 6px;
}

.mobile-panel a.active,
.mobile-panel a:hover {
  color: var(--blue-primary);
}

.mobile-panel .btn {
  margin-top: 12px;
  width: 100%;
  max-width: 280px;
}

/* ---------------- HERO SECTION ---------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 70px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-subtle) 100%);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 630px;
}

.hero-badge-wrap {
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  line-height: 1.26;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-heading);
}

.hero-copy p {
  margin-top: 20px;
  color: var(--text-body);
  font-size: 1.15rem;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero Live Counter Cards */
.hero-stats-row {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.hero-stat-card strong {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1.1;
}

.hero-stat-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Hero Showcase Mockup */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-mockup {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 116, 200, 0.16), 0 0 0 1px rgba(226, 232, 240, 0.9);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.browser-mockup:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -12px rgba(0, 116, 200, 0.22), 0 0 0 1px var(--blue-border);
}

.browser-bar {
  background: var(--bg-surface);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.browser-address {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  direction: ltr;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-address svg {
  width: 12px;
  height: 12px;
  stroke: var(--blue-primary);
}

.browser-content {
  padding: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-subtle) 100%);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-logo {
  width: 90px;
  height: 18px;
  background: var(--grad-accent-bar);
  border-radius: 4px;
}

.mockup-nav-lines {
  display: flex;
  gap: 8px;
}

.mockup-nav-lines span {
  width: 32px;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
}

.mockup-hero-banner {
  background: linear-gradient(135deg, rgba(0, 116, 200, 0.08) 0%, rgba(225, 158, 76, 0.08) 100%);
  border: 1px dashed var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 24px 18px;
  text-align: center;
}

.mockup-title-bar {
  width: 65%;
  height: 14px;
  background: var(--blue-primary);
  border-radius: 4px;
  margin: 0 auto 10px;
}

.mockup-sub-bar {
  width: 85%;
  height: 8px;
  background: var(--text-light);
  border-radius: 4px;
  margin: 0 auto 16px;
  opacity: 0.7;
}

.mockup-btn-bar {
  width: 100px;
  height: 26px;
  background: var(--grad-gold);
  border-radius: 6px;
  margin: 0 auto;
}

.mockup-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mockup-mini-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 8px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--blue-light);
}

.mockup-text-1 {
  width: 70%;
  height: 6px;
  background: var(--blue-primary);
  border-radius: 3px;
}

.mockup-text-2 {
  width: 90%;
  height: 5px;
  background: var(--border-light);
  border-radius: 3px;
}

/* Floating Feature Badges around Mockup */
.floating-badge {
  position: absolute;
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 40, 80, 0.12);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-pos-1 {
  top: -16px;
  right: -20px;
  animation-delay: 0s;
}

.badge-pos-2 {
  bottom: 24px;
  left: -24px;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue-bg {
  background: var(--blue-light);
  color: var(--blue-primary);
}

.icon-gold-bg {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.floating-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.floating-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ---------------- TRUST / SECTORS STRIP ---------------- */
.strip {
  border-block: 1px solid var(--border-light);
  background: #FFFFFF;
  padding-block: 30px;
}

.strip .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.strip-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.strip-label::before {
  content: '';
  width: 14px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.strip-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.strip-pill {
  padding: 8px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.strip-pill:hover {
  background: var(--blue-light);
  border-color: var(--blue-border);
  color: var(--blue-primary);
  transform: translateY(-2px);
}

.strip-pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-primary);
}

/* ---------------- SERVICES SECTION ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--grad-card-top);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
  color: #FFFFFF;
  transform: scale(1.08);
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.service-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-features li svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold-primary);
  flex-shrink: 0;
}

/* ---------------- PROJECT ESTIMATOR (Interactive Component) ---------------- */
.estimator-card {
  background: #FFFFFF;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.estimator-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 6px; height: 100%;
  background: var(--grad-primary);
}

.estimator-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.estimator-head h3 {
  font-size: 1.35rem;
}

.estimator-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.estimator-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.estimator-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.estimator-step label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
}

.estimator-step select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-heading);
  font-size: 0.92rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.estimator-step select:focus {
  border-color: var(--blue-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 116, 200, 0.12);
}

.estimator-result-box {
  background: var(--blue-light);
  border: 1px dashed var(--blue-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.result-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.result-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.result-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------- WHY US SECTION ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--blue-border);
  transform: translateX(-6px);
  box-shadow: var(--shadow-sm);
}

.why-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card:nth-child(even) .why-card-icon {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
}

.why-card-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.why-card-content p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Why Comparison Card */
.why-showcase-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.why-metric-row {
  margin-bottom: 24px;
}

.why-metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.why-progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.why-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 1.2s var(--ease);
}

.fill-blue {
  background: var(--grad-primary);
}

.fill-gold {
  background: var(--grad-gold);
}

.why-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.highlight-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.highlight-box strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-primary);
}

.highlight-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------------- PROCESS SECTION ---------------- */
.process-steps-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 20px;
}

.process-step-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.process-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-hover);
}

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--gold-border);
}

.process-step-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.process-step-card p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------------- PROJECTS PREVIEW ---------------- */
.proj-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.proj-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.proj-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-hover);
}

.proj-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.proj-visual svg.proj-illustration {
  width: 70%;
  height: 70%;
  transition: transform 0.4s var(--ease);
}

.proj-card:hover .proj-visual svg.proj-illustration {
  transform: scale(1.06);
}

.proj-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  color: var(--blue-primary);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(4px);
}

.proj-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.proj-body h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.proj-body p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.proj-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.proj-tech span {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 500;
}

.proj-result {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.proj-result strong {
  font-size: 1.15rem;
  color: var(--blue-primary);
  font-weight: 800;
}

.proj-result span {
  font-size: 0.8rem;
  color: var(--text-body);
}

/* ---------------- TESTIMONIALS ---------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
}

.stars-row {
  display: flex;
  gap: 4px;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.stars-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-card blockquote {
  margin: 0 0 20px;
  color: var(--text-heading);
  font-size: 1rem;
  line-height: 1.8;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------------- FAQ ACCORDION ---------------- */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.faq-item.active {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: color 0.25s var(--ease);
}

.faq-question:hover {
  color: var(--blue-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 0 24px;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 22px 24px;
}

/* ---------------- CTA SECTION ---------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(48px, 6vw, 76px);
  background: linear-gradient(135deg, #00599B 0%, #0074C8 55%, #0288D1 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  box-shadow: 0 20px 45px rgba(0, 116, 200, 0.28);
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 186, 88, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.cta-content h2 {
  color: #FFFFFF;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
}

.cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-actions .btn-ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ---------------- FLOATING WHATSAPP BUTTON ---------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------------- FOOTER ---------------- */
footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
}

.footer-brand .brand-logo-img {
  height: 42px;
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-heading);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--grad-accent-bar);
  border-radius: 2px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-body);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--blue-primary);
  transform: translateX(-4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-body);
  font-size: 0.92rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ---------------- PROJECTS PAGE STYLES ---------------- */
.page-header {
  padding-top: 160px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-top: 12px;
}

.page-header p {
  margin-top: 16px;
  color: var(--text-body);
  max-width: 620px;
  font-size: 1.1rem;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--blue-primary);
  border-color: var(--blue-border);
  background: var(--blue-light);
}

.filter-btn.active {
  background: var(--grad-primary);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-blue-btn);
  font-weight: 600;
}

.proj-grid.full {
  grid-template-columns: repeat(3, 1fr);
}

.proj-card.hidden {
  display: none !important;
}

/* ---------------- REVEAL ON SCROLL ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- RESPONSIVE MEDIA QUERIES ---------------- */
@media (max-width: 1024px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .burger { display: flex; }

  .proj-grid, .proj-grid.full {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimator-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-logo-img{
    height: 35px;
  }
  .nav-cta .btn{
    display:none
  }
  .mobile-icon-nav{
    display:none
  }
  .nav{
    position:absolute;

  }
  .hero {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-steps-wrap {
    grid-template-columns: 1fr;
  }

  .proj-grid, .proj-grid.full {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 14px;
    border-radius: 50%;
    bottom: 20px;
    left: 20px;
  }
}