/* ============================================
   BUILDPRO MAINTENANCE — DESIGN SYSTEM & STYLES
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  --navy: #0f2249;
  --navy-mid: #1a3461;
  --navy-light: #1e3f73;
  --accent: #1a6ef5;
  --accent-hover: #1558d4;
  --accent-light: #e8f1ff;
  --gold: #f59e0b;
  --red-emergency: #dc2626;
  --red-emergency-light: #fee2e2;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(15,34,73,0.08), 0 1px 2px rgba(15,34,73,0.05);
  --shadow-md: 0 4px 16px rgba(15,34,73,0.10), 0 2px 6px rgba(15,34,73,0.06);
  --shadow-lg: 0 10px 40px rgba(15,34,73,0.14), 0 4px 16px rgba(15,34,73,0.08);
  --shadow-xl: 0 20px 60px rgba(15,34,73,0.18);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Permanently eliminate flashing text caret on all static elements */
*:not(input):not(textarea):not([contenteditable="true"]) {
  caret-color: transparent !important;
}

/* Allow clean typing caret inside real input fields */
input, textarea, [contenteditable="true"] {
  caret-color: var(--accent, #1a6ef5);
}

/* Remove focus flashing outlines on mouse clicks */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
div:focus:not(:focus-visible),
span:focus:not(:focus-visible),
li:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a, button, [role="button"], select, .btn, .nav-links a, .pf-btn, .tc-btn, .tc-dot, .lang-current-btn, .lang-option {
  cursor: pointer;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; -webkit-user-drag: none; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(26,110,245,0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,110,245,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
  white-space: nowrap;
  min-width: 0;
  text-decoration: none;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.navbar.scrolled .logo { color: var(--navy); }

.logo-icon { font-size: 1.3rem; flex-shrink: 0; }
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
}

.navbar.scrolled .nav-links a { color: var(--gray-700); }
.nav-links a:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.navbar.scrolled .nav-links a:hover { background: var(--accent-light); color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.emergency-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red-emergency, #dc2626);
  color: white;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
  animation: emergency-glow-breath 3s ease-in-out infinite;
  transition: transform 0.3s ease, background 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.emergency-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.55);
}

.pulse-ring,
.fab-pulse {
  display: none;
}

@keyframes emergency-glow-breath {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.4), 0 0 0 0 rgba(220, 38, 38, 0.35);
  }
  50% {
    box-shadow: 0 6px 26px rgba(220, 38, 38, 0.55), 0 0 0 7px rgba(220, 38, 38, 0.15);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.navbar.scrolled .hamburger span { background: var(--navy); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: hero-zoom 12s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1);    }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 34, 73, 0.85) 0%,
    rgba(26, 52, 97, 0.75) 50%,
    rgba(15, 34, 73, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  animation: fade-up 0.9s ease-out;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52,211,153,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(52,211,153,0.10); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0);    }
  50%       { transform: rotate(45deg) translateY(8px); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section { background: var(--gray-50); }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-light) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,110,245,0.2);
}

.service-card:hover::before { opacity: 1; }

.service-card.featured {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: transparent;
  color: var(--white);
}

.service-card.featured::before { display: none; }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,0.8); }
.service-card.featured .service-list li { color: rgba(255,255,255,0.85); }
.service-card.featured .service-list li::before { background: rgba(255,255,255,0.6); }

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--red-emergency);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  animation: badge-pulse-red 2s ease-in-out infinite;
}

@keyframes badge-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon-wrap.electrical  { background: #fffbeb; color: #d97706; }
.service-icon-wrap.plumbing    { background: #eff6ff; color: #2563eb; }
.service-icon-wrap.drywall     { background: #fdf4ff; color: #9333ea; }
.service-icon-wrap.flooring    { background: #ecfdf5; color: #059669; }
.service-icon-wrap.plastering  { background: #fef2f2; color: #e11d48; }
.service-icon-wrap.renovations { background: #f0fdfa; color: #0d9488; }
.service-icon-wrap.concrete    { background: #f1f5f9; color: #475569; }
.service-icon-wrap.emergency   { background: rgba(255,255,255,0.15); color: #fbbf24; }
.service-icon-wrap.custom      { background: rgba(37,99,235,0.08); color: var(--accent); }

.service-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-list {
  margin-bottom: 24px;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--gray-600);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.service-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.service-link:hover {
  gap: 10px;
  color: var(--accent-hover);
  text-decoration: underline;
}
.service-card.featured .service-link { color: #93c5fd; }
.emergency-link { color: #fbbf24; }
.emergency-link:hover { color: #fde68a; }

/* ============================================
   WHY US SECTION
   ============================================ */
.why-section {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}

.why-section .section-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

.why-section .section-title { color: var(--white); }
.why-section .section-sub   { color: rgba(255,255,255,0.75); }

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

.why-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-feature h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.why-feature p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.why-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.metric-card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.metric-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.metric-card.secondary {
  background: rgba(26,110,245,0.25);
  border-color: rgba(26,110,245,0.4);
}

.metric-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-unit {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.metric-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section { background: var(--white); }

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

.about-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  background: var(--accent-light);
  border-color: rgba(26,110,245,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.about-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section { background: var(--gray-50); }

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(26,110,245,0.15);
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.97rem;
  color: var(--gray-700);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   REQUEST FORM
   ============================================ */
.request-section { background: var(--white); }

.request-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.request-info .section-title { margin-top: 16px; }
.request-info .section-sub   { max-width: 420px; margin: 0 0 28px; }

.request-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.perk {
  font-size: 0.92rem;
  color: var(--gray-700);
  font-weight: 500;
}

.contact-quick {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cq-icon {
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cq-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.cq-val {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.cq-val:hover { color: var(--accent); }

/* ---- Form ---- */
.request-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,110,245,0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--red-emergency);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; appearance: auto; }

/* ---- File Upload ---- */
.upload-group { margin-bottom: 28px; }

.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon  { font-size: 2rem; margin-bottom: 10px; }
.upload-text  { font-size: 0.95rem; color: var(--gray-600); }
.upload-browse{ color: var(--accent); font-weight: 600; }
.upload-hint  { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

.file-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid rgba(26,110,245,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.file-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}

.file-chip-remove:hover { color: var(--red-emergency); }

.submit-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.form-success {
  margin-top: 24px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.success-icon { font-size: 2rem; margin-bottom: 10px; }
.form-success h3 { color: #15803d; margin-bottom: 8px; }
.form-success p  { color: #166534; font-size: 0.92rem; }

.form-error {
  margin-top: 16px;
  background: var(--red-emergency-light);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.form-error p { color: var(--red-emergency); font-size: 0.9rem; }

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact-section {
  background: linear-gradient(165deg, #0a1628 0%, var(--navy) 100%);
  color: var(--white);
  padding-top: 80px;
  padding-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 64px;
}

.contact-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 18px 0 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  overflow: hidden;
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.2s ease;
}

.social-link:hover {
  color: var(--white);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.social-link:hover svg {
  transform: scale(1.1);
}

.social-link.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-link.social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
}

.social-link.social-tiktok:hover {
  background: #010101;
  border-color: #fe2c55;
  box-shadow: 0 0 12px rgba(254, 44, 85, 0.5), 0 0 12px rgba(37, 244, 238, 0.4);
}

.social-link.social-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.social-link.social-google:hover {
  background: #ea4335;
  border-color: #ea4335;
}

.contact-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 20px;
}

.contact-col ul { display: flex; flex-direction: column; gap: 12px; }

.contact-col ul li a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transition: var(--transition);
}

.contact-col ul li a:hover { color: #60a5fa; padding-left: 4px; }
[dir="rtl"] .contact-col ul li a:hover { padding-left: 0; padding-right: 4px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-detail > span:first-child { font-size: 1.1rem; margin-top: 2px; }

.contact-detail a, .contact-detail span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.contact-detail a:hover { color: #93c5fd; }

.contact-detail small {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer-badges { display: flex; gap: 8px; }

.footer-badges .badge, .hero-badge {
  border: 1px solid rgba(255,255,255,0.2);
}

.footer-badges .badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

/* Instant Emergency Visibility Guard */
.emergency-disabled #emergency-btn,
.emergency-disabled #fab-emergency,
.emergency-disabled #service-emergency,
.emergency-disabled #footer-service-emergency-li,
.emergency-disabled #footer-emerg-hours-val {
  display: none !important;
}

/* ============================================
   FLOATING EMERGENCY BUTTON
   ============================================ */
.fab-emergency {
  position: fixed;
  bottom: 96px; /* positioned comfortably above WhatsApp (bottom: 28px + 56px height = 84px top -> 12px clear gap) */
  right: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red-emergency);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.45);
  animation: emergency-glow-breath 3s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease;
  overflow: visible;
  text-decoration: none;
}

.fab-emergency:hover {
  background: #b91c1c;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.55);
}

.fab-emergency:active {
  transform: translateY(-1px) scale(0.98);
}

/* Consistent RTL positioning on desktop */
[dir="rtl"] .fab-emergency {
  right: auto;
  left: 28px;
  flex-direction: row;
}

.fab-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr 1fr; }
}

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

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-inner {
    padding: 0 12px;
    height: 64px;
    gap: 8px;
  }

  .logo {
    gap: 6px;
    font-size: 0.95rem;
    max-width: 140px;
    flex-shrink: 1;
  }

  .logo-icon {
    font-size: 1.15rem;
  }

  .logo-text {
    font-size: 0.88rem;
    font-weight: 700;
    max-width: 110px;
  }

  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .lang-current-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
    gap: 3px;
  }

  .lang-arrow {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0f2249 !important;
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.open { display: flex; }
  .nav-links a,
  .navbar.scrolled .nav-links a,
  .nav-links.open a {
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: inherit;
    display: block;
    width: 100%;
  }

  .nav-links a:hover,
  .navbar.scrolled .nav-links a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #60a5fa !important;
  }

  .hamburger {
    display: flex;
    padding: 4px;
  }
  
  .emergency-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { padding-bottom: 95px !important; }
  .footer-bottom .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .form-row      { grid-template-columns: 1fr; }
  .hero-stats    { gap: 16px; justify-content: center; }
  .why-visual    { grid-template-columns: 1fr; }
  .request-form  { padding: 24px 18px; border-radius: var(--radius-lg); }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS auto-zoom */
  }

  .fab-emergency .fab-label { display: none; }
  .fab-emergency {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    bottom: 78px;
    right: 18px;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45);
    z-index: 998;
  }
  .fab-icon {
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fab-whatsapp {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    bottom: 18px; /* Primary bottom position */
    right: 18px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    z-index: 999;
  }
  .fab-wa-label { display: none; }

  [dir="rtl"] .fab-emergency {
    right: auto;
    left: 18px;
  }

  [dir="rtl"] .fab-whatsapp {
    right: auto;
    left: 18px;
  }

  /* When emergency is hidden, move WhatsApp button down to primary position */
  .fab-whatsapp.alone {
    bottom: 18px !important;
  }
}

@media (max-width: 480px) {
  .hero-title  { font-size: 1.85rem; line-height: 1.25; }
  .hero-sub    { font-size: 0.95rem; }
  .hero-cta    { flex-direction: column; width: 100%; }
  .btn         { width: 100%; justify-content: center; text-align: center; }
  .hero-stats  { flex-direction: column; gap: 12px; align-items: center; }
  .stat-divider{ display: none; }
  .stat-item   { align-items: center; text-align: center; }
  [dir="rtl"] .stat-item { align-items: center; text-align: center; }
  
  .logo { max-width: none; font-size: 1rem; }
  .logo-text { max-width: none; font-size: 0.9rem; overflow: visible; text-overflow: clip; }
  .emergency-btn { padding: 6px 10px; font-size: 0.75rem; }
  .lang-current-btn { padding: 5px 10px; font-size: 0.78rem; gap: 4px; }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: relative;
}

.lang-current-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 7px 14px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  font-family: 'Inter', sans-serif;
}

.navbar.scrolled .lang-current-btn {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--navy);
}

.lang-current-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.45);
}

.navbar.scrolled .lang-current-btn:hover {
  background: var(--accent-light);
  border-color: rgba(26,110,245,0.3);
  color: var(--accent);
}

.lang-flag  { font-size: 1rem; }
.lang-code  { letter-spacing: 0.04em; }
.lang-arrow { font-size: 0.7rem; opacity: 0.7; transition: transform 0.2s ease; }
.lang-current-btn[aria-expanded="true"] .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  min-width: 145px;
  max-width: calc(100vw - 20px);
  overflow: hidden;
  z-index: 2000;
  animation: dropdown-in 0.18s ease-out;
}

[dir="rtl"] .lang-dropdown {
  right: 0 !important;
  left: auto !important;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: start;
  transition: var(--transition);
  font-family: inherit;
}

.lang-option:hover { background: var(--accent-light); color: var(--accent); }
.lang-option.active { background: var(--accent-light); color: var(--accent); font-weight: 700; }
.lang-option span { font-size: 1.1rem; }

/* ============================================
   MULTILINGUAL FONT SYSTEM
   ============================================ */
[lang="ar"] {
  --font-body:    'Cairo', sans-serif;
  --font-heading: 'Cairo', sans-serif;
}

[lang="he"] {
  --font-body:    'Heebo', sans-serif;
  --font-heading: 'Heebo', sans-serif;
}

body        { font-family: var(--font-body,    'Inter', sans-serif); }
h1, h2, h3, h4 { font-family: var(--font-heading, 'Outfit', sans-serif); }

/* Smooth font + direction transition */
html { transition: none; }

/* ============================================
   RTL — GLOBAL DIRECTION SUPPORT
   ============================================ */

/* Service list bullets */
[dir="rtl"] .service-list li {
  padding-left: 0;
  padding-right: 16px;
}
[dir="rtl"] .service-list li::before {
  left: auto;
  right: 0;
}

/* Why features */
[dir="rtl"] .why-feature {
  flex-direction: row-reverse;
  text-align: right;
}

/* Hero content text alignment */
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-badge   { flex-direction: row-reverse; }
[dir="rtl"] .hero-cta     { flex-direction: row-reverse; }
[dir="rtl"] .hero-stats   { flex-direction: row-reverse; }
[dir="rtl"] .stat-item    { align-items: flex-end; }

/* Contact details */
[dir="rtl"] .contact-detail     { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .contact-quick-item { flex-direction: row-reverse; }
[dir="rtl"] .contact-quick-item > div { text-align: right; }

/* Form text alignment */
[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea { text-align: right; direction: rtl; }
[dir="rtl"] .upload-area { direction: rtl; }

/* Testimonial author */
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; }
[dir="rtl"] .testimonial-author > div { text-align: right; }
[dir="rtl"] .testimonial-text { text-align: right; }

/* Request info perks */
[dir="rtl"] .request-perks { text-align: right; }
[dir="rtl"] .perk { text-align: right; }

/* About cards */
[dir="rtl"] .about-card { text-align: right; }

/* Footer */
[dir="rtl"] .footer-bottom .container { flex-direction: row-reverse; }
[dir="rtl"] .contact-brand p { text-align: right; }
[dir="rtl"] .contact-col ul li a { padding-right: 0; }
[dir="rtl"] .contact-col ul li a:hover { padding-right: 4px; padding-left: 0; }
[dir="rtl"] .social-links { flex-direction: row-reverse; }

/* Section header */
[dir="rtl"] .section-sub { text-align: center; }

/* Floating button — move to left side */
[dir="rtl"] .fab-emergency {
  right: auto;
  left: 32px;
}

/* Nav links in RTL */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-actions { flex-direction: row-reverse; }
[dir="rtl"] .nav-links a:hover { padding-right: 0; }

/* Metric cards */
[dir="rtl"] .metric-val { direction: ltr; } /* keep numbers LTR */

/* Hero stats numbers always LTR */
[dir="rtl"] .stat-num { direction: ltr; display: inline-block; }

/* Why text */
[dir="rtl"] .why-text { text-align: right; }
[dir="rtl"] .why-text .section-sub { text-align: right; }

/* Request layout */
[dir="rtl"] .request-info { text-align: right; }
[dir="rtl"] .request-info .section-sub { margin: 0 0 28px; text-align: right; }

/* Footer logo */
[dir="rtl"] .footer-logo { flex-direction: row-reverse; }
[dir="rtl"] .logo { flex-direction: row-reverse; }

/* Language dropdown in mobile */
@media (max-width: 768px) {
  [dir="rtl"] .fab-emergency {
    left: 32px;
    right: auto;
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .hero-cta { flex-direction: column; }
  [dir="rtl"] .hero-stats { flex-direction: row-reverse; flex-wrap: wrap; }
}

/* ============================================
   PORTFOLIO GALLERY
   ============================================ */
.portfolio-section { background: var(--gray-50); }

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

[dir="rtl"] .portfolio-filters,
html[dir="rtl"] .portfolio-filters,
body[dir="rtl"] .portfolio-filters,
.portfolio-filters[dir="rtl"] {
  direction: rtl !important;
  flex-direction: row !important;
}

[dir="ltr"] .portfolio-filters,
html[dir="ltr"] .portfolio-filters,
body[dir="ltr"] .portfolio-filters,
.portfolio-filters[dir="ltr"] {
  direction: ltr !important;
  flex-direction: row !important;
}

[dir="rtl"] .portfolio-card,
html[dir="rtl"] .portfolio-card,
body[dir="rtl"] .portfolio-card {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .portfolio-overlay,
html[dir="rtl"] .portfolio-overlay,
body[dir="rtl"] .portfolio-overlay {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .portfolio-card-footer,
html[dir="rtl"] .portfolio-card-footer,
body[dir="rtl"] .portfolio-card-footer {
  flex-direction: row-reverse;
}

.pf-btn {
  padding: 9px 22px;
  border-radius: 100px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.pf-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.pf-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26,110,245,0.35);
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .portfolio-grid { grid-template-columns: 1fr; } }

/* Card */
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card.hidden { display: none; }
.portfolio-card.filtered-out {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  display: none;
}

/* Image + Overlay */
.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.07); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,65,0.92) 0%, rgba(10,25,65,0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay-inner { color: var(--white); }
.portfolio-overlay-inner h3 { font-size: 1.05rem; margin: 8px 0 6px; line-height: 1.3; }
.portfolio-overlay-inner p  { font-size: 0.84rem; opacity: 0.85; line-height: 1.5; }

.portfolio-cat-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Footer bar */
.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 10px;
}

.portfolio-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portfolio-tag.electrical  { background: #fff8e1; color: #b45309; }
.portfolio-tag.plumbing    { background: #e0f0ff; color: #1565c0; }
.portfolio-tag.drywall     { background: #f3e5f5; color: #7e22ce; }
.portfolio-tag.flooring    { background: #ecfdf5; color: #047857; }
.portfolio-tag.plastering  { background: #ffedd5; color: #c2410c; }
.portfolio-tag.renovations { background: #e0e7ff; color: #4338ca; }
.portfolio-tag.concrete    { background: #f1f5f9; color: #475569; }

.portfolio-loc {
  font-size: 0.8rem;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RTL portfolio */
[dir="rtl"] .portfolio-overlay { text-align: right; }
[dir="rtl"] .portfolio-card-footer { flex-direction: row-reverse; }
[dir="rtl"] .portfolio-filters { flex-direction: row-reverse; }

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */
.testimonials-section { background: var(--white); }

/* Carousel container */
.tc-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.tc-track {
  display: flex;
  gap: 0;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

/* Each card takes full width inside carousel */
.tc-track .testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
  border: none;
  box-shadow: none;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin: 0 16px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .tc-track { /* show 2 at a time */ }
  .tc-track .testimonial-card { flex: 0 0 calc(50% - 32px); }
}

/* Author photo */
.author-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Controls */
.tc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.tc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.tc-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26,110,245,0.3);
}

.tc-dots {
  display: flex;
  gap: 8px;
}

.tc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.tc-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(26,110,245,0.4);
}

/* RTL: flip arrow directions */
[dir="rtl"] .tc-prev { transform: scaleX(-1); }
[dir="rtl"] .tc-next { transform: scaleX(-1); }
[dir="rtl"] .tc-controls { flex-direction: row-reverse; }
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; }
[dir="rtl"] .testimonial-author > div { text-align: right; }
[dir="rtl"] .testimonial-text { text-align: right; }

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: #25d366;
  color: var(--white);
  text-decoration: none;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

.fab-whatsapp.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-whatsapp:hover {
  background: #1ebe5d;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
  transform: translateY(-4px) scale(1.06);
}

.fab-whatsapp:active {
  transform: translateY(-1px) scale(0.98);
}

.fab-wa-label {
  display: none !important;
}

/* RTL WhatsApp button */
[dir="rtl"] .fab-whatsapp {
  right: auto;
  left: 28px;
}

@media (max-width: 768px) {
  .fab-whatsapp {
    width: 50px;
    height: 50px;
    min-width: 50px;
    bottom: 18px;
    right: 18px;
  }
  [dir="rtl"] .fab-whatsapp {
    right: auto;
    left: 18px;
  }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.btn-back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px; /* Placed on the opposite side of WhatsApp */
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 34, 73, 0.9);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, visibility 0.3s ease;
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btn-back-to-top:hover {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 26px rgba(26, 110, 245, 0.45);
}

.btn-back-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

/* In RTL: WhatsApp & Emergency are bottom-left, so Back to Top is bottom-right */
[dir="rtl"] .btn-back-to-top {
  left: auto;
  right: 28px;
}

@media (max-width: 768px) {
  .btn-back-to-top {
    bottom: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
  }
  [dir="rtl"] .btn-back-to-top {
    left: auto;
    right: 18px;
  }
}


