/* =====================================================
   KAIROS ELECTRONICS — STYLES.CSS
   Premium TV Repair Website — Sri Lanka
   ===================================================== */

/* -------- CUSTOM PROPERTIES -------- */
:root {
  --primary:       #0B1F3A;
  --secondary:     #1E3A5F;
  --accent:        #F59E0B;
  --accent-dark:   #D97706;
  --bg:            #F8FAFC;
  --bg-alt:        #F1F5F9;
  --white:         #FFFFFF;
  --text-dark:     #111827;
  --text-mid:      #374151;
  --text-light:    #6B7280;
  --nav-h:         72px;
  --radius:        16px;
  --radius-sm:     10px;
  --transition:    0.25s ease;
  --card-shadow:   0 4px 24px rgba(11,31,58,0.08);
  --card-shadow-hover: 0 12px 40px rgba(11,31,58,0.15);
}

/* -------- PERFORMANCE: GPU layer hints -------- */
/* Promote heavy animated elements to their own compositor layer */
.hero-video-bg,
.hero-overlay,
.hero-content {
  will-change: transform;
  transform: translateZ(0);
}
#scrollProgress { will-change: width; }
#navbar { will-change: background, box-shadow; }

/* Contain reflow scope to each card so layout changes don't cascade */
.service-card,
.why-card,
.area-card,
.tcard,
.gallery-item {
  contain: layout style;
}

/* Ensure only compositor-friendly properties animate (no layout thrash) */
.service-card:hover,
.why-card:hover,
.area-card:hover,
.tcard:hover { will-change: transform; }

/* Reveal elements: use only opacity+transform (compositor-only = zero jank) */
.reveal, .fade-up {
  will-change: opacity, transform;
}
.reveal.visible, .fade-up.visible {
  will-change: auto; /* release after animation done */
}

/* Images: promote to layer so they don't repaint during hover */
.gallery-img-wrap img {
  will-change: transform, filter;
  transform: translateZ(0);
}



/* -------- RESET & BASE -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
h1,h2,h3,h4,h5 { line-height: 1.25; }
ul { list-style: none; }

/* -------- LOADER -------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; color: var(--white); }
.loader-logo { margin-bottom: 20px; animation: pulse 1.2s ease-in-out infinite; }
.loader-bar { width: 160px; height: 3px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; margin: 0 auto 12px; }
.loader-fill { height: 100%; width: 0; background: var(--accent); border-radius: 2px; animation: loadBar 2s ease-in-out forwards; }
.loader-inner p { font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
@keyframes loadBar { 0%{width:0} 60%{width:75%} 100%{width:100%} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(0.95)} }

/* -------- SCROLL PROGRESS -------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #FBBF24);
  z-index: 9998; transition: width 0.1s linear;
}

/* -------- NAVBAR -------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: 2px; }
.logo-sub   { font-size: 0.62rem; color: var(--accent); letter-spacing: 2.5px; text-transform: uppercase; }
.nav-links {
  /* Desktop: fixed top bar, right side */
  position: fixed;
  top: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 6px;
  padding-right: 32px;
  z-index: 1001; /* above the header */
  background: transparent;
}
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.82);
  padding: 7px 13px; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--accent) !important; color: var(--primary) !important;
  font-weight: 700 !important; padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Hidden on desktop — only shown inside mobile nav drawer */
.nav-close-btn { display: none; }

.hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 8px; cursor: pointer;
  background: none; border: none;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav backdrop — tap outside to close */
.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-backdrop.visible {
  opacity: 1;
}


/* -------- SECTION HELPERS -------- */
.section { padding: 96px 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 5px 14px; border-radius: 30px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--primary); margin-bottom: 12px;
}
.section-subtitle { font-size: 1rem; color: var(--text-light); max-width: 520px; margin: 0 auto; }
.section-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 14px; }
.text-accent { color: var(--accent); }

/* -------- REVEAL ANIMATION -------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; border-radius: var(--radius-sm);
  transition: all var(--transition); position: relative; overflow: hidden;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }
.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }

/* -------- HERO CONTENT — perfectly centered -------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h); /* push content below fixed navbar */
}

/* Background video */
.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay — navy gradient for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(11,31,58,0.88) 0%,
    rgba(11,31,58,0.72) 55%,
    rgba(11,31,58,0.60) 100%
  );
}

/* All content above video */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  padding: 0 32px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 8px 18px; border-radius: 30px;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.9); letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  width: 100%;
}
.hero-title .text-accent {
  display: block;
  margin-top: 10px;
  line-height: 1.25;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.stat-item {
  text-align: center;
  padding: 0 28px;
}
.stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.15); flex-shrink: 0; }


/* Scroll cue */
.hero-scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.45); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
}
.scroll-arrow {
  width: 20px; height: 20px; border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(5px)} }

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* -------- ABOUT -------- */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }

/* Image container */
.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  min-height: 420px;
}

/* Actual photo */
.about-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.about-img-wrap:hover .about-photo {
  transform: scale(1.03);
}

/* Dark gradient overlay */
.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.08) 0%, rgba(11,31,58,0.55) 100%);
  pointer-events: none;
}

/* Badge bottom-left */
.about-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}
.about-badge-pill {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}

/* Trust badges below text */
.trust-badges { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.trust-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 14px 18px; border: 1px solid rgba(11,31,58,0.07);
}
.trust-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(245,158,11,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-badge strong { display: block; font-size: 0.9rem; color: var(--primary); font-weight: 700; }
.trust-badge span { font-size: 0.78rem; color: var(--text-light); }


/* -------- SERVICES -------- */
.services-section { background: var(--bg-alt); padding-top: 72px; padding-bottom: 72px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(11,31,58,0.06);
  box-shadow: var(--card-shadow); position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  z-index: 2;
}

/* Reference image on top */
.service-img-wrap {
  position: relative; width: 100%; height: 145px; overflow: hidden; flex-shrink: 0;
}
.service-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.95) saturate(1.15);
  transition: transform 0.5s ease, filter 0.4s ease;
}
.service-card:hover .service-img { transform: scale(1.07); filter: brightness(1.05) saturate(1.25); }
.service-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.04) 30%, rgba(11,31,58,0.62) 100%);
  pointer-events: none;
}

/* Text body below image */
.service-body { padding: 18px 20px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.service-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(245,158,11,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.service-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--primary); }
.service-card p  { font-size: 0.82rem; color: var(--text-light); line-height: 1.65; padding-bottom: 14px; }
.card-arrow {
  position: absolute; bottom: 14px; right: 16px;
  font-size: 1.1rem; color: var(--accent);
  opacity: 0; transform: translateX(-6px); transition: all var(--transition);
}
.service-card:hover .card-arrow { opacity: 1; transform: translateX(0); }



/* -------- WHY US -------- */
.why-section { background: var(--primary); }
.why-section .section-title { color: var(--white); }
.why-section .section-subtitle { color: rgba(255,255,255,0.6); }
.why-section .section-tag { background: rgba(245,158,11,0.15); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.why-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  transition: background var(--transition), border-color var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(245,158,11,0.3); }
.why-num { font-size: 2.6rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.why-icon { margin: 0 auto 12px; }
.why-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.why-card p { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 16px 18px;
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
}
.feature-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: rgba(245,158,11,0.2); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--accent); font-weight: 700;
}
.feature-item strong { color: var(--white); }

/* -------- GALLERY -------- */
.gallery-section { background: var(--bg); }
.gallery-filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.gallery-filter-btn {
  padding: 8px 20px; border-radius: 30px; border: 1.5px solid rgba(11,31,58,0.15);
  font-size: 0.82rem; font-weight: 600; color: var(--text-mid);
  background: var(--white); transition: all var(--transition);
}
.gallery-filter-btn.active,
.gallery-filter-btn:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item.large { grid-column: span 2; }
.gallery-item.tall  { grid-row: span 2; }
.gallery-item.hidden { display: none; }
.gallery-img-wrap { position: relative; width: 100%; height: 100%; }
.gallery-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(1.02) contrast(1.08) saturate(1.15);
}
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.05); filter: brightness(1.1) contrast(1.12) saturate(1.25); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,31,58,0.92) 100%);
  opacity: 0; transition: opacity 0.35s ease;
  display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-content { color: var(--white); }
.gallery-zoom-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(245,158,11,0.85); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.gallery-label { font-size: 0.82rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 3px; }
.gallery-desc { font-size: 0.75rem; color: rgba(255,255,255,0.75); }

/* -------- LIGHTBOX -------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.lightbox-inner { position: relative; z-index: 1; max-width: 88vw; max-height: 88vh; }
.lightbox-inner img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.lightbox-caption { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-align: center; margin-top: 12px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(245,158,11,0.7); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* -------- AREAS -------- */
.areas-section { background: var(--bg-alt); }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px;
  border: 1px solid rgba(11,31,58,0.07); box-shadow: var(--card-shadow);
  text-align: center; transition: transform var(--transition), box-shadow var(--transition);
}
.area-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.area-card.primary-area { border-top: 3px solid var(--accent); }
.area-pin { width: 44px; height: 44px; border-radius: 50%; background: rgba(245,158,11,0.1); display: flex; align-items: center; justify-content: center; color: var(--accent); margin: 0 auto 14px; }
.secondary-pin { background: rgba(11,31,58,0.07); color: var(--secondary); }
.area-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.area-card p { font-size: 0.83rem; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.area-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); background: rgba(245,158,11,0.1); padding: 3px 10px; border-radius: 20px; }

/* -------- TESTIMONIALS SLIDER -------- */
.testimonials-section { background: var(--white); }
.tslider-wrap { display: flex; align-items: center; gap: 12px; position: relative; }
.tslider-viewport { flex: 1; overflow: hidden; border-radius: var(--radius); }
.tslider-track {
  display: flex; gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.tcard {
  background: var(--bg); border-radius: var(--radius); padding: 28px 26px;
  border: 1px solid rgba(11,31,58,0.08); box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease; flex-shrink: 0;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.tcard-stars { font-size: 1rem; color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.tcard p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.tcard-author { display: flex; align-items: center; gap: 12px; }
.tcard-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.tcard-author strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.tcard-author span { font-size: 0.75rem; color: var(--text-light); }
.tslider-btn { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: var(--white); border: 1.5px solid rgba(11,31,58,0.12); display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all var(--transition); }
.tslider-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); transform: scale(1.08); }
.tslider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.tdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(11,31,58,0.18); border: none; cursor: pointer; padding: 0; transition: all var(--transition); }
.tdot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* -------- CONTACT -------- */
.contact-section { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-sm); padding: 18px 20px;
  border: 1px solid rgba(11,31,58,0.07); box-shadow: var(--card-shadow);
}
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(245,158,11,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.83rem; color: var(--text-light); line-height: 1.6; }
.contact-card a:hover { color: var(--accent); }
.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--card-shadow); border: 1px solid rgba(11,31,58,0.07); }
.contact-form h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(11,31,58,0.12); background: var(--bg);
  font-family: inherit; font-size: 0.88rem; color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
.form-success { display: none; margin-top: 14px; padding: 12px 16px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius-sm); color: #065f46; font-size: 0.85rem; font-weight: 600; }
.form-success.show { display: block; }

/* -------- FOOTER -------- */
.footer { background: var(--primary); }
.footer-top { padding: 64px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.8; margin: 16px 0 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all var(--transition); }
.social-link:hover { background: var(--accent); color: var(--primary); transform: translateY(-2px); }
.footer-links-col h4 { font-size: 0.82rem; font-weight: 700; color: var(--white); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col ul li a { font-size: 0.83rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links-col ul li a:hover { color: var(--accent); }
.footer-contact-list li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-contact-list li a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-contact-list li a:hover { color: var(--accent); }
.footer-bottom { padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* -------- FLOATING WHATSAPP -------- */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all var(--transition); animation: floatPulse 2.5s ease-in-out infinite;
}
.float-wa:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
@keyframes floatPulse { 0%,100%{box-shadow:0 6px 24px rgba(37,211,102,0.45)} 50%{box-shadow:0 6px 36px rgba(37,211,102,0.65)} }

/* -------- RIPPLE -------- */
.ripple { position: relative; overflow: hidden; }

/* -------- FLOAT ANIMATION (LOGO etc) -------- */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* =====================================================
   RESPONSIVE — TABLET 1024px
   ===================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  /* Grids */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .areas-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { min-height: 300px; }
  .about-photo    { min-height: 300px; }

  /* Contact */
  .contact-grid  { grid-template-columns: 1fr; gap: 36px; }

  /* Gallery */
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.large { grid-column: span 2; }
  .gallery-item.tall  { grid-row: span 1; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* =====================================================
   RESPONSIVE — MOBILE 768px
   ===================================================== */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* ── Navbar ── */
  .hamburger { display: flex; }
  .nav-backdrop { display: block; display: none; /* controlled by JS */ }

  /* Full-screen mobile drawer — override desktop top-right bar */
  .nav-links {
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh; min-height: 100svh; padding: 0;
    background: rgba(11,31,58,0.99); backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 4px; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 1002;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1.1rem; padding: 14px 40px;
    width: 100%; text-align: center; border-radius: 0;
  }
  .nav-cta { border-radius: 10px !important; margin-top: 12px; padding: 13px 40px !important; }
  /* Show close btn only inside mobile drawer */
  .nav-close-btn {
    display: flex;
    position: absolute; top: 18px; right: 18px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none; cursor: pointer; color: white;
    align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .nav-close-btn:hover { background: rgba(255,255,255,0.2); }


  /* ── Hero ── */
  .hero { height: 100svh; min-height: 560px; }
  .hero-content { padding: 0 20px; }
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.2; }
  .hero-sub   { font-size: 0.9rem; line-height: 1.6; }
  .hero-actions {
    flex-direction: column; align-items: center;
    gap: 10px; width: 100%;
  }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .btn-lg { padding: 13px 22px; font-size: 0.9rem; }
  .hero-stats { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .hero-scroll-cue { display: none; }

  /* ── Sections ── */
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-subtitle { font-size: 0.88rem; }

  /* ── About ── */
  .about-img-wrap { min-height: 240px; }
  .about-photo    { min-height: 240px; }
  .about-img-badge { bottom: 14px; left: 14px; }
  .about-badge-pill { font-size: 0.75rem; padding: 6px 14px; }
  .trust-badges { gap: 10px; }
  .trust-badge  { padding: 12px 14px; }

  /* ── Services ── */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-img-wrap { height: 120px; }
  .service-body { padding: 14px 16px 12px; }
  .service-card h3 { font-size: 0.9rem; }
  .service-card p  { font-size: 0.78rem; }
  .service-icon { width: 36px; height: 36px; border-radius: 8px; }

  /* ── Why Us ── */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-card { padding: 24px 20px; }
  .why-num  { font-size: 2.4rem; }
  .features-list { gap: 10px; margin-top: 32px; }
  .feature-item { padding: 12px 16px; gap: 10px; }

  /* ── Gallery ── */
  .gallery-filter { flex-wrap: wrap; gap: 8px; }
  .gallery-filter-btn { padding: 6px 16px; font-size: 0.8rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.large { grid-column: span 1; }

  /* ── Areas ── */
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .area-card  { padding: 20px 16px; }

  /* ── Testimonials ── */
  .tcard { padding: 24px 20px; }
  .tslider-btn { width: 36px; height: 36px; }

  /* ── Contact ── */
  .contact-info { gap: 12px; }
  .contact-card { padding: 14px 16px; gap: 12px; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-form-wrap { padding: 24px 20px; }
  .form-group label { font-size: 0.82rem; }
  .form-group input,
  .form-group textarea { font-size: 0.88rem; padding: 10px 14px; }

  /* ── Footer ── */
  .footer-top { padding: 48px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
  .footer-links-col h4 { margin-bottom: 12px; }
  .footer-bottom { padding: 18px 0; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 6px; }

  /* ── Floating WA ── */
  .float-wa { width: 50px; height: 50px; bottom: 20px; right: 16px; }
}

/* =====================================================
   RESPONSIVE — SMALL PHONES 480px
   ===================================================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero { height: 100svh; }
  .hero-title { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .hero-stats .stat-divider { display: none; }
  .hero-stats { gap: 12px; }
  .stat-num   { font-size: 1.6rem; }

  /* Services — single column on small phones */
  .services-grid { grid-template-columns: 1fr; }
  .service-img-wrap { height: 160px; }

  /* Why us */
  .why-grid  { grid-template-columns: 1fr 1fr; }
  .why-card  { padding: 20px 16px; }

  /* Areas */
  .areas-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }

  /* Section typography */
  .section-title { font-size: 1.5rem; }
  .section-tag   { font-size: 0.7rem; }

  /* Contact cards stack icon */
  .contact-card { flex-direction: row; }
}

/* =====================================================
   RESPONSIVE — TINY PHONES 380px
   ===================================================== */
@media (max-width: 380px) {
  .hero-title { font-size: 1.55rem; }
  .hero-actions .btn { font-size: 0.85rem; padding: 12px 16px; }
  .why-grid  { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .footer-social { gap: 8px; }
  .social-link { width: 32px; height: 32px; }
  .float-wa { width: 46px; height: 46px; }
}

