/* =========================================
   ATHERMIK – Main Stylesheet
   ========================================= */

/* --- Variables -------------------------------------------------- */
:root {
  --primary:    #0EA5E9;
  --primary-d:  #0284C7;
  --primary-l:  #E0F2FE;
  --red:        #DC2626;
  --red-d:      #B91C1C;
  --navy:       #0F172A;
  --navy-m:     #1E293B;
  --teal:       #0D9488;
  --gold:       #D97706;
  --white:      #FFFFFF;
  --bg-light:   #F0F9FF;
  --text-dark:  #0F172A;
  --text-mid:   #334155;
  --text-muted: #64748B;
  --border:     #E2E8F0;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 8px 30px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.15);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --nav-h:      72px;
}

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

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

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

img { display: block; width: 100%; height: auto; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

.section { padding: 96px 0; }
.bg-light { background: var(--bg-light); }

/* --- Loader ----------------------------------------------------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

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

.loader-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 64px; font-weight: 800;
  color: var(--primary);
  animation: pulse 1s ease-in-out infinite alternate;
}

.loader-bar {
  margin: 20px auto 0;
  width: 200px; height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 99px; overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--red));
  border-radius: 99px;
  animation: loadBar 1.4s ease-in-out infinite;
}

@keyframes loadBar { 0%{width:0} 60%{width:100%} 100%{width:100%} }
@keyframes pulse { from{transform:scale(1)} to{transform:scale(1.08)} }

/* --- Navbar ----------------------------------------------------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
}
#navbar.scrolled .logo-name { color: var(--navy); }
#navbar.scrolled .logo-tag  { color: var(--text-muted); }
#navbar.scrolled .nav-links a { color: var(--text-dark); }

@media (max-width: 1024px) {
  #navbar.scrolled .nav-links a { color: var(--white); }
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: .85; }

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14,165,233,.4);
}
.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .logo-img {
    width: 38px;
    height: 38px;
  }
}

.nav-logo:hover .logo-img {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.02);
}



.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); line-height: 1.1; }
.logo-tag  { font-size: 10px; color: rgba(255,255,255,.7); letter-spacing: .5px; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block; padding: 8px 12px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); background: rgba(14,165,233,.08); }
.nav-links .nav-cta {
  background: var(--red); color: var(--white);
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(220,38,38,.35);
}
.nav-links .nav-cta:hover { background: var(--red-d); transform: translateY(-1px); color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  border-radius: 6px;
  padding: 5px 12px; font-size: 13px; font-weight: 600;
  transition: all var(--transition);
  letter-spacing: 1px;
}
#navbar.scrolled .lang-btn {
  background: var(--bg-light); border-color: var(--border); color: var(--text-dark);
}
.lang-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; width: 36px;
}
.hamburger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 99px;
  transition: all var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ------------------------------------------------------- */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('./img-hero.jpg');
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: heroBgZoom 20s ease-in-out infinite alternate;
}
@keyframes heroBgZoom { from{transform:scale(1.05)} to{transform:scale(1.12)} }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(15,23,42,.6) 60%, rgba(14,165,233,.25) 100%);
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(14,165,233,.3);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) scale(0); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { transform: translateY(-100px) scale(1); opacity:0; }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px; max-width: 800px;
  animation: heroFadeUp .9s ease both;
}
@keyframes heroFadeUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }

.hero-badge {
  display: inline-block; margin-bottom: 20px;
  background: rgba(14,165,233,.2); border: 1px solid rgba(14,165,233,.5);
  backdrop-filter: blur(8px);
  color: #7DD3FC; font-size: 13px; font-weight: 600;
  padding: 6px 18px; border-radius: 99px; letter-spacing: .5px;
  animation: heroFadeUp .9s .1s ease both;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 800; color: var(--white); line-height: 1;
  letter-spacing: -2px;
  animation: heroFadeUp .9s .2s ease both;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.hero-title span { color: var(--primary); }

.hero-tagline {
  font-size: clamp(14px, 2.5vw, 20px); color: rgba(255,255,255,.75);
  letter-spacing: 3px; text-transform: uppercase; margin: 12px 0 24px;
  animation: heroFadeUp .9s .3s ease both;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.85);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.65;
  animation: heroFadeUp .9s .4s ease both;
}

.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: heroFadeUp .9s .5s ease both;
}

.hero-scroll {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 24px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* --- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  transition: all var(--transition);
  position: relative; overflow: hidden; white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 20px rgba(14,165,233,.4); }
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(14,165,233,.5); }

.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-white { background: var(--white); color: var(--primary); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.2); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

.ripple::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.35); width: 0; height: 0;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  transition: width .5s, height .5s, opacity .5s;
  opacity: 0;
}
.ripple:active::after { width: 200px; height: 200px; opacity: 0; }

/* --- Section header -------------------------------------------- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 5vw, 44px); font-weight: 700;
  color: var(--navy); line-height: 1.15; margin-bottom: 16px;
}
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 580px; margin: 0 auto; }

.section-tag {
  display: inline-block; margin-bottom: 12px;
  background: var(--primary-l); color: var(--primary);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px;
}

/* --- Stats ----------------------------------------------------- */
#stats {
  background: var(--navy);
  padding: 56px 24px;
}
.stats-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 32px;
}
.stat-item {
  text-align: center; color: var(--white);
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: transform var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { transform: translateY(-4px); }
.stat-item i { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.stat-item div { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 48px; font-weight: 800; color: var(--white); line-height: 1; }
.stat-plus { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-item p { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* --- Services -------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white); border-radius: var(--radius);
  overflow: visible; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: visible; /* KEY FIX */
}
.card-img-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  clip-path: inset(0); /* THIS replaces overflow:hidden for the zoom effect */
}
.service-card:hover .card-img-wrap img {
  transform: scale(1.07);
}
.card-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  z-index: 0;
}
.card-icon {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  z-index: 10; /* bump z-index */
  position: absolute;
  clip-path: none;
}
.card-icon.red  { background: linear-gradient(135deg, var(--red), #F87171); }
.card-icon.blue { background: linear-gradient(135deg, var(--primary), #38BDF8); }
.card-icon.teal { background: linear-gradient(135deg, var(--teal), #2DD4BF); }
.card-icon.navy { background: linear-gradient(135deg, var(--navy), #475569); }
.card-icon.gold { background: linear-gradient(135deg, var(--gold), #FCD34D); }

.card-body { padding: 36px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-body > p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }

.card-list { margin-bottom: 16px; }
.card-list li {
  font-size: 13px; color: var(--text-mid); padding: 4px 0 4px 18px;
  position: relative;
}
.card-list li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

.card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card-link {
  font-size: 13px; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition), color var(--transition);
}
.card-link::after { content: '→'; }
.card-link:hover { color: var(--primary-d); gap: 8px; }

/* --- Badges ---------------------------------------------------- */
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
}
.badge.blue  { background: #DBEAFE; color: #1D4ED8; }
.badge.red   { background: #FEE2E2; color: var(--red); }
.badge.navy  { background: #E2E8F0; color: var(--navy); }

/* --- CTA Banner ------------------------------------------------ */
#cta-banner {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 50%, var(--teal) 100%);
  padding: 72px 24px;
  position: relative; overflow: hidden;
}
#cta-banner::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.cta-content {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-text h2 { font-family: 'Poppins', sans-serif; font-size: clamp(24px,4vw,36px); font-weight: 700; color: var(--white); margin-bottom: 8px; }
.cta-text p  { font-size: 16px; color: rgba(255,255,255,.85); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- About ----------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-img-wrap {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-img-wrap img { border-radius: var(--radius); aspect-ratio: 4/3; }

.about-float-badge {
  position: absolute; top: 24px; left: -16px;
  background: var(--red); color: var(--white);
  padding: 10px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(220,38,38,.35);
  animation: floatBadge 3s ease-in-out infinite alternate;
}
@keyframes floatBadge { from{transform:translateY(0)} to{transform:translateY(-8px)} }

.about-exp-badge {
  position: absolute; bottom: 24px; right: -16px;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 20px; text-align: center;
  box-shadow: var(--shadow-md);
  animation: floatBadge 3s 1.5s ease-in-out infinite alternate;
}
.exp-num { display: block; font-family: 'Poppins', sans-serif; font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.about-exp-badge span { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.about-text h2 { font-family: 'Poppins', sans-serif; font-size: clamp(26px,4vw,38px); font-weight: 700; color: var(--navy); margin-bottom: 20px; line-height: 1.2; }
.about-text > p { font-size: 16px; color: var(--text-mid); line-height: 1.75; margin-bottom: 14px; }

.about-values { margin: 28px 0; display: flex; flex-direction: column; gap: 18px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary-l); color: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: background var(--transition), color var(--transition);
}
.value-item:hover .value-icon { background: var(--primary); color: var(--white); }
.value-item h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.value-item p  { font-size: 13px; color: var(--text-muted); }

/* --- Why Us ---------------------------------------------------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.why-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--white);
  transition: transform var(--transition);
}
.why-card:hover .why-icon { transform: scale(1.1) rotate(-5deg); }
.why-icon.red  { background: linear-gradient(135deg, var(--red), #F87171); }
.why-icon.blue { background: linear-gradient(135deg, var(--primary), #38BDF8); }
.why-icon.teal { background: linear-gradient(135deg, var(--teal), #2DD4BF); }
.why-icon.navy { background: linear-gradient(135deg, var(--navy), #475569); }
.why-icon.gold { background: linear-gradient(135deg, var(--gold), #FCD34D); }

.why-card h3 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* --- Reviews --------------------------------------------------- */
.stars-row { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 8px; font-size: 20px; color: #F59E0B; }
.stars-row span { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); margin-left: 6px; }

.reviews-slider { position: relative; overflow: hidden; }
.reviews-track {
  display: flex; gap: 24px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.review-card {
  min-width: calc(33.333% - 16px); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { color: #F59E0B; font-size: 15px; margin-bottom: 14px; display: flex; gap: 2px; }
.review-card p { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: var(--white); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.reviewer strong { display: block; font-size: 14px; color: var(--navy); font-weight: 600; }
.reviewer span   { font-size: 12px; color: var(--text-muted); }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.slider-controls button {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  color: var(--text-dark); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.slider-controls button:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: scale(1.08); }

.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--border); transition: all var(--transition); cursor: pointer;
}
.dot.active { width: 24px; background: var(--primary); }

/* --- News ------------------------------------------------------ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 860px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.news-img { position: relative; height: 210px; overflow: hidden; }
.news-img img { height: 100%; transition: transform .5s ease; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 99px;
}

.news-body { padding: 24px; }
.news-date { font-size: 12px; color: var(--text-muted); }
.news-body h3 { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); margin: 8px 0 10px; line-height: 1.35; }
.news-body p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.news-link { font-size: 13px; font-weight: 600; color: var(--primary); transition: color var(--transition); }
.news-link:hover { color: var(--primary-d); }
.news-link::after { content: ' →'; }

/* --- Jobs ------------------------------------------------------ */
.jobs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 860px) { .jobs-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .jobs-grid { grid-template-columns: 1fr; } }

.job-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.job-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.job-header { display: flex; align-items: center; gap: 14px; }
.job-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--white);
}
.job-icon.red  { background: linear-gradient(135deg, var(--red), #F87171); }
.job-icon.blue { background: linear-gradient(135deg, var(--primary), #38BDF8); }
.job-icon.teal { background: linear-gradient(135deg, var(--teal), #2DD4BF); }
.job-header h3 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); }
.job-type { font-size: 12px; color: var(--text-muted); }
.job-card > p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-tags span {
  font-size: 11px; font-weight: 600; background: var(--bg-light); color: var(--primary);
  border: 1px solid var(--primary-l); padding: 3px 10px; border-radius: 99px;
}

/* --- FAQ ------------------------------------------------------- */
.faq-wrap { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover, .faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--primary); }

.faq-q {
  width: 100%; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 16px; font-weight: 600; color: var(--navy); text-align: left;
  transition: color var(--transition);
}
.faq-q i { flex-shrink: 0; color: var(--primary); transition: transform var(--transition); font-size: 14px; }
.faq-item.open .faq-q i { transform: rotate(45deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-a p { padding: 0 24px 20px; font-size: 15px; color: var(--text-mid); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; }

/* --- Map ------------------------------------------------------- */
.map-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrapper iframe { display: block; }
.map-info-bar {
  background: var(--navy); padding: 20px 28px;
  display: flex; gap: 32px; flex-wrap: wrap; align-items: center;
}
.map-info-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 14px; }
.map-info-item i { color: var(--primary); font-size: 16px; flex-shrink: 0; }
.map-info-item a { color: rgba(255,255,255,.85); }
.map-info-item a:hover { color: var(--primary); }

/* --- Contact --------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 400px 1fr; gap: 60px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 18px 20px; border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-info-card:hover { border-color: var(--primary); transform: translateX(4px); }
.contact-info-card i { color: var(--primary); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.contact-info-card h4 { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { font-size: 15px; color: var(--navy); font-weight: 500; }
.contact-info-card a:hover { color: var(--primary); }

.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-light); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(14,165,233,.35); }

/* --- Form ------------------------------------------------------ */
.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-dark); text-transform: uppercase; letter-spacing: .5px; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 15px; color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #CBD5E1; }
.form-success[hidden] {
  display: none !important;
}

.form-success {
  display: flex; align-items: center; gap: 10px;
  background: #F0FDF4; color: #15803D;
  border: 1px solid #BBF7D0; border-radius: var(--radius-sm);
  padding: 14px 18px; font-weight: 600; margin-top: 12px;
}

/* --- Footer ---------------------------------------------------- */
#footer { background: var(--navy); color: rgba(255,255,255,.75); }

.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; color: var(--white);
}
.footer-logo i { color: var(--primary); font-size: 24px; }

.footer-desc { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.6); margin-bottom: 20px; }

.footer-col h4 {
  font-size: 13px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px; color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--primary); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.footer-contact span, .footer-contact a { font-size: 14px; color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: var(--primary); }
.certifs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--primary); }

/* --- Back to top ----------------------------------------------- */
#backToTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  box-shadow: 0 6px 20px rgba(14,165,233,.45); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px) scale(.8);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
#backToTop.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#backToTop:hover { background: var(--primary-d); transform: translateY(-3px) scale(1.05); }

/* --- Reveal animation ------------------------------------------ */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive nav -------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(15,23,42,.98); backdrop-filter: blur(16px);
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(255,255,255,.08);
    animation: slideDown .3s ease both;
    z-index: 999;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { padding: 12px 16px; font-size: 16px; border-radius: var(--radius-sm); }
  .nav-links.open .nav-cta { display: inline-block; width: auto; margin-top: 8px; }
  .nav-links.open .nav-cta-li { width: auto; }
  @keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
}

/* --- Responsive sections --------------------------------------- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .stats-container { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 20px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .contact-form { padding: 28px 20px; }
  .map-info-bar { gap: 16px; }
  .cta-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-container { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { padding: 13px 24px; }
}

/* --- Landscape mobile ----------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
  #hero { min-height: 120vh; }
  .hero-title { font-size: 48px; }
  .hero-btns { flex-direction: row; }
}

/* --- Scrollbar ------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* --- Selection ------------------------------------------------- */
::selection { background: var(--primary); color: var(--white); }

/* --- Global overflow fix --------------------------------------- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* --- Hero content mobile fix ----------------------------------- */
@media (max-width: 480px) {
  .hero-content {
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(40px, 12vw, 64px);
    letter-spacing: -1px;
  }

  .hero-tagline {
    letter-spacing: 1.5px;
    font-size: 12px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .logo-name {
    font-size: 17px;
  }

  .logo-tag {
    font-size: 9px;
  }

.logo-img {
  width: 36px;
  height: 36px;
  padding: 0;
  object-fit: contain;
}
}


a.service-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

a.service-card .card-link {
  pointer-events: none;
}

/* ─── PARTNERS CAROUSEL ─────────────────────────────────────────────────── */
#partners { background: var(--white); }

.partners-mask {
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  overflow: hidden;
  margin-top: 20px;
}

.partners-track {
  display: flex;
  gap: 20px;
  padding: 12px 0 20px;
  /* NO animation here — JS handles it entirely */
}

.partner-card {
  flex-shrink: 0;
  width: 190px;
  height: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.partner-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-d), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.partner-card:hover {
  border-color: rgba(14,165,233,.4);
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(14,165,233,.15);
}

.partner-card:hover::before { transform: scaleX(1); }

.partner-logo-wrap {
  width: 100px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.partner-card:hover .partner-logo { transform: scale(1.08); }

.partner-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.2px;
  transition: color var(--transition);
}

.partner-card:hover .partner-name { color: var(--primary-d); }

@media (max-width: 768px) {
  .partner-card { width: 150px; height: 100px; }
  .partner-logo-wrap { width: 80px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .partners-mask { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

/* ─── EMERGENCY BAR ─────────────────────────────────────────────────────── */
#emergency-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001; /* above navbar */
  background: linear-gradient(90deg, #b91c1c, #dc2626);
  padding: 9px 24px;
}

.emergency-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.emergency-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
}

.emergency-text i {
  font-size: 14px;
  color: #fca5a5;
}

.emergency-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 99px;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
  letter-spacing: .3px;
}

.emergency-cta:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.6);
}

/* push navbar down by emergency bar height */
#navbar {
  top: 37px; /* matches bar height */
}

/* ─── HERO GOOGLE RATING ────────────────────────────────────────────────── */
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 99px;
  animation: heroFadeUp .9s .6s ease both;
}

.hero-rating-stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  font-size: 13px;
}

.hero-rating-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-rating-score {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.hero-rating-count {
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.hero-rating-google {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .9;
  border-radius: 0;
}

@media (max-width: 480px) {
  .emergency-text span { display: none; } /* show only phone on mobile */
  .emergency-inner { justify-content: center; }
  #navbar { top: 35px; }
}

/* ─── HOW IT WORKS ──────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

@media (max-width: 900px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .how-grid { grid-template-columns: 1fr; } }

.how-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.how-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.how-number {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  background: var(--primary-l);
  padding: 3px 8px;
  border-radius: 99px;
}

.how-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  box-shadow: 0 8px 24px rgba(14,165,233,.3);
  transition: transform var(--transition);
}

.how-card:hover .how-icon {
  transform: scale(1.1) rotate(-5deg);
}

.how-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.how-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* arrow connector between cards */
.how-arrow {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .how-arrow { display: none; }
}

/* ─── MOBILE CALL FAB ───────────────────────────────────────────────────── */
.call-fab {
  display: none; /* desktop: hidden */
}

@media (max-width: 768px) {
  .call-fab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 901;
    background: #16a34a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 99px;
    box-shadow: 0 8px 28px rgba(22,163,74,.5);
    white-space: nowrap;
    text-decoration: none;
    animation: callPulse 2s ease-in-out infinite;
  }

  /* push estimate FAB up so they don't overlap */
  .estimate-fab {
    bottom: 100px;
  }
}

@keyframes callPulse {
  0%, 100% {
    box-shadow: 0 8px 28px rgba(22,163,74,.5);
    transform: translateX(-50%) scale(1);
  }
  50% {
    box-shadow: 0 8px 40px rgba(22,163,74,.75);
    transform: translateX(-50%) scale(1.04);
  }
}


/* ─── DROPDOWN MENU ─────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-arrow {
  font-size: 10px;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 200;
  list-style: none;
}

/* little arrow pointer */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  rotate: 45deg;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: var(--text-dark) !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition) !important;
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: var(--bg-light) !important;
  color: var(--primary) !important;
}

.nav-submenu a i {
  width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: 13px;
}

/* Mobile: dropdown becomes accordion */
@media (max-width: 1024px) {
  .nav-submenu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary);
    border-radius: 0;
    background: rgba(255,255,255,.05);
    padding: 4px 0 4px 12px;
    margin: 4px 0 4px 16px;
    display: none;
  }

  .nav-dropdown.open .nav-submenu { display: block; }

  .nav-submenu::before { display: none; }

  .nav-submenu a {
    color: rgba(255,255,255,.8) !important;
    font-size: 14px !important;
    padding: 9px 12px !important;
  }

  .nav-submenu a:hover {
    background: rgba(14,165,233,.1) !important;
    color: var(--primary) !important;
  }
}

/* Default: dark hero → show light logo, hide dark logo */
.logo-dark  { display: none; }
.logo-light { display: block; }

/* Scrolled: white navbar → show dark logo, hide light logo */
#navbar.scrolled .logo-light { display: none; }
#navbar.scrolled .logo-dark  { display: block; }

.hero-rating {
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.hero-rating:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}
a.hero-rating:focus { outline: none; }
