/* ============================================================
   CAPE ELECTRICAL LLC-SPC  |  Main Stylesheet
   ============================================================ */

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

:root {
  --blue:       #0d3fa6;
  --blue-dark:  #092d7a;
  --blue-light: #1a5be8;
  --gold:       #f5a800;
  --gold-light: #ffc940;
  --dark:       #0f1923;
  --dark2:      #1a2635;
  --grey:       #f4f6fb;
  --text:       #2d3748;
  --text-mute:  #718096;
  --white:      #ffffff;
  --radius:     12px;
  --shadow:     0 8px 32px rgba(13,63,166,.13);
  --trans:      .35s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: rgba(13,63,166,.1);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.section-title span { color: var(--blue); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mute);
  margin-top: .75rem;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--trans);
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,168,0,.35);
}

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

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

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left  { opacity:0; transform:translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity:0; transform:translateX(40px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity:1; transform:none; }

/* ---------- TOP BAR ---------- */
#topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .45rem 0;
}

#topbar .tb-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

#topbar a { color: var(--gold); transition: var(--trans); }
#topbar a:hover { color: var(--gold-light); }
#topbar .tb-left, #topbar .tb-right { display: flex; align-items: center; gap: 1.5rem; }
#topbar i { margin-right: .35rem; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: var(--trans);
}

#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(13,63,166,.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}

.nav-logo img { height: 62px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--trans);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width var(--trans);
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

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

.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--trans);
}

/* ---------- HERO ---------- */
#hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #1a5be8 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,168,0,.18);
  border: 1px solid rgba(245,168,0,.4);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-content h1 .accent { color: var(--gold); }

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
}

.stat-item { color: var(--white); }
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: .2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-card i {
  font-size: 5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-card h3 {
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
}

.hero-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin-top: .4rem;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
  text-align: left;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}

.hero-feature i {
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- MARQUEE STRIP ---------- */
.marquee-strip {
  background: var(--blue);
  padding: .85rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.marquee-track span i { color: var(--gold); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- ABOUT ---------- */
#about { padding: 5.5rem 0; }

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

.about-img-wrap {
  position: relative;
}

.about-img-box {
  border-radius: 24px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

.about-img-box img {
  width: 100%; height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.about-img-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9,45,122,.55) 100%);
  border-radius: 24px;
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--dark);
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(245,168,0,.4);
  line-height: 1.3;
  z-index: 2;
}

.about-badge strong { font-size: 1.6rem; display: block; }

.about-content { }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.af-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  background: var(--grey);
  border-radius: var(--radius);
  transition: var(--trans);
}

.af-item:hover { background: rgba(13,63,166,.07); }

.af-icon {
  width: 38px; height: 38px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.af-text strong { display: block; font-size: .9rem; color: var(--dark); font-weight: 700; }
.af-text span   { font-size: .8rem; color: var(--text-mute); }

/* ---------- SERVICES ---------- */
#services {
  padding: 5.5rem 0;
  background: var(--grey);
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-header .section-subtitle { margin: .75rem auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  transition: var(--trans);
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width var(--trans);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(13,63,166,.12);
}

.service-card:hover::after { width: 100%; }

.svc-photo {
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  position: relative;
}

.svc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.service-card:hover .svc-photo img { transform: scale(1.06); }

.svc-icon {
  width: 60px; height: 60px;
  background: rgba(13,63,166,.1);
  color: var(--blue);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: var(--trans);
  flex-shrink: 0;
}

.service-card:hover .svc-icon {
  background: var(--blue);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}

.service-card p {
  font-size: .88rem;
  color: var(--text-mute);
  line-height: 1.6;
}

/* ---------- PRODUCTS ---------- */
#products { padding: 5.5rem 0; }

.products-header { margin-bottom: 3.5rem; }

.products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.filter-btn {
  padding: .45rem 1.2rem;
  border-radius: 50px;
  border: 2px solid rgba(13,63,166,.2);
  background: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mute);
  cursor: pointer;
  transition: var(--trans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  transition: var(--trans);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(13,63,166,.15);
}

.prod-img {
  height: 190px;
  overflow: hidden;
  position: relative;
}

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

.product-card:hover .prod-img img { transform: scale(1.07); }

.prod-info { padding: 1.25rem; }

.prod-category {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .35rem;
}

.prod-info h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
}

.prod-info p { font-size: .82rem; color: var(--text-mute); }

/* ---------- WHY US ---------- */
#why-us {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
}

#why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.why-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.why-header .section-tag {
  background: rgba(245,168,0,.2);
  color: var(--gold);
}

.why-header .section-title { color: var(--white); }
.why-header .section-subtitle { color: rgba(255,255,255,.7); margin: .75rem auto 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--trans);
}

.why-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-5px);
}

.why-icon {
  width: 64px; height: 64px;
  background: rgba(245,168,0,.2);
  border: 2px solid rgba(245,168,0,.35);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.1rem;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}

.why-card p { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- BRANDS ---------- */
#brands { padding: 4rem 0; }

.brands-header { text-align: center; margin-bottom: 2.5rem; }

.brands-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.brand-chip {
  background: var(--grey);
  padding: .7rem 1.6rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-dark);
  border: 1.5px solid rgba(13,63,166,.12);
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.brand-chip:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- CONTACT ---------- */
#contact { padding: 5.5rem 0; background: var(--grey); }

.contact-header { text-align: center; margin-bottom: 3.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ci-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: var(--trans);
}

.ci-card:hover { transform: translateX(4px); }

.ci-icon {
  width: 46px; height: 46px;
  background: rgba(13,63,166,.1);
  color: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ci-text strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-mute);
  margin-bottom: .2rem;
}

.ci-text a, .ci-text span {
  font-size: .95rem;
  color: var(--dark);
  font-weight: 600;
  transition: color var(--trans);
}

.ci-text a:hover { color: var(--blue); }

.social-row {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--trans);
  border: 1.5px solid rgba(13,63,166,.2);
  color: var(--blue);
}

.social-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.social-btn.wa:hover { background: #25D366; border-color: #25D366; }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.75rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,63,166,.1);
}

.form-group textarea { min-height: 110px; }

.form-success {
  display: none;
  background: #d1fae5;
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  margin-top: 1rem;
  align-items: center;
  gap: .5rem;
}

.form-success.show { display: flex; }

/* ---------- MAP ---------- */
#map-section { }

.map-container {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* ---------- FOOTER ---------- */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img { height: 54px; margin-bottom: 1rem; filter: brightness(0) invert(1); }

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.2rem;
}

.footer-col li + li { margin-top: .6rem; }

.footer-col a {
  font-size: .87rem;
  color: rgba(255,255,255,.6);
  transition: color var(--trans);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom a { color: var(--gold); }

/* ---------- WHATSAPP FLOAT ---------- */
#wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}

.wa-bubble {
  background: #25D366;
  color: white;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  cursor: pointer;
  transition: var(--trans);
  animation: wa-pulse 2.5s infinite;
}

.wa-bubble:hover { transform: scale(1.1); }

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 32px rgba(37,211,102,.85), 0 0 0 10px rgba(37,211,102,.12); }
}

.wa-tooltip {
  background: var(--dark);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--trans);
  pointer-events: none;
}

#wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ---------- BACK TO TOP ---------- */
#back-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 900;
  width: 42px; height: 42px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(13,63,166,.35);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--trans);
}

#back-top.show { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--blue-light); }

/* ---------- CHATBOT ---------- */
#chatbot-toggle {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 901;
  width: 58px; height: 58px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(13,63,166,.4);
  cursor: pointer;
  border: none;
  transition: var(--trans);
  animation: bot-pulse 3s infinite;
}

@keyframes bot-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(13,63,166,.4); }
  50%      { box-shadow: 0 6px 32px rgba(13,63,166,.8), 0 0 0 10px rgba(13,63,166,.1); }
}

#chatbot-toggle:hover { background: var(--blue-light); transform: scale(1.08); }

#chatbot-window {
  position: fixed;
  bottom: 5rem;
  left: 1.75rem;
  z-index: 901;
  width: 340px;
  max-height: 520px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0) translateY(20px);
  transform-origin: bottom left;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
  pointer-events: none;
}

#chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cb-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
}

.cb-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.cb-header-info { flex: 1; }
.cb-header-info strong { display: block; font-size: .92rem; }
.cb-header-info span  { font-size: .75rem; color: rgba(255,255,255,.75); }

.cb-online { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; }

.cb-close {
  background: none; border: none;
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--trans);
}
.cb-close:hover { color: var(--white); }

.cb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.cb-messages::-webkit-scrollbar { width: 4px; }
.cb-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.msg {
  max-width: 80%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .85rem;
  line-height: 1.5;
}

.msg.bot {
  background: var(--grey);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.user {
  background: var(--blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg.typing {
  display: flex;
  gap: 4px;
  padding: .75rem .9rem;
}

.typing-dot {
  width: 6px; height: 6px;
  background: var(--text-mute);
  border-radius: 50%;
  animation: typing-bounce .9s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }

@keyframes typing-bounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-5px); }
}

.cb-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .6rem 1rem;
  border-top: 1px solid #f0f4f8;
}

.qr-btn {
  padding: .35rem .75rem;
  border-radius: 50px;
  border: 1.5px solid rgba(13,63,166,.25);
  background: none;
  font-size: .76rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: var(--trans);
}

.qr-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.cb-input-row {
  display: flex;
  border-top: 1px solid #f0f4f8;
  padding: .75rem;
  gap: .5rem;
}

.cb-input-row input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  padding: .55rem 1rem;
  font-size: .85rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--trans);
}

.cb-input-row input:focus { border-color: var(--blue); }

.cb-send {
  width: 36px; height: 36px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--trans);
  font-size: .9rem;
}

.cb-send:hover { background: var(--blue-light); }

/* ---------- MOBILE NAV OVERLAY ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
}

.nav-mobile {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 2rem 1.5rem;
  transition: right var(--trans);
  box-shadow: -8px 0 30px rgba(0,0,0,.12);
  overflow-y: auto;
}

.nav-mobile.open { right: 0; }
.nav-overlay.open { display: block; }

.nav-mobile-close {
  background: none; border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-mute);
  float: right;
  margin-bottom: 2rem;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.nav-mobile-links a {
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--trans);
}

.nav-mobile-links a:hover { background: var(--grey); color: var(--blue); }

/* ============================================================
   RESPONSIVE — all breakpoints
   ============================================================ */

/* ── 1200px: Wide desktop tweaks ── */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ── 1024px: Laptop / large tablet landscape ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .why-grid      { grid-template-columns: repeat(3, 1fr); }

  /* About section: reduce gap */
  .about-grid { gap: 2.5rem; }
}

/* ── 900px: Tablet portrait / large phone landscape ── */
@media (max-width: 900px) {
  #hero { min-height: auto; padding: 4rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-content h1 { font-size: 2.4rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-height: 320px; }
  .about-img-box img { min-height: 280px; max-height: 320px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px: Tablet portrait / large phones ── */
@media (max-width: 768px) {
  /* Top bar */
  #topbar .tb-inner { justify-content: center; gap: .4rem; }
  #topbar .tb-left  { gap: 1rem; }
  #topbar .tb-right .address-item { display: none; } /* hide address */

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-logo img { height: 52px; }

  /* Hero */
  #hero { padding: 3.5rem 0 3rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 1.5rem; }
  .hero-btns  { justify-content: center; }
  .hero-stats { justify-content: center; gap: 2rem; }
  .hero-visual { display: none; }
  .hero-badge { margin-bottom: 1rem; }

  /* Section spacing */
  #about, #services, #why-us,
  #brands, #contact,
  #vision-mission, #clients { padding: 3.5rem 0 !important; }
  #products { padding: 3.5rem 0; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { display: block; max-height: 260px; margin-bottom: 2rem; }
  .about-img-box  { min-height: 240px !important; border-radius: 16px; }
  .about-img-box img { min-height: 240px; max-height: 260px; border-radius: 16px; }
  .about-badge { bottom: -.8rem; right: -.8rem; padding: .8rem 1rem; }
  .about-features { grid-template-columns: 1fr 1fr; }

  /* Vision/Mission cards */
  #vision-mission > .container > div {
    grid-template-columns: 1fr !important;
  }

  /* Services — auto-fill handles 2-col at 768px naturally */
  .svc-photo { height: 160px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .prod-img { height: 160px; }
  /* Quality/safety banner */
  .quality-banner { grid-template-columns: 1fr !important; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Clients */
  #clients > .container > div[style] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem; }

  /* Map */
  .map-container { height: 300px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Chatbot */
  #chatbot-window { width: calc(100vw - 3.5rem); max-height: 480px; }

  /* Floating buttons */
  #wa-float    { bottom: 1.25rem; right: 1.25rem; }
  #back-top    { bottom: 5rem; right: 1.25rem; }
  #chatbot-toggle { bottom: 1.25rem; left: 1.25rem; }
}

/* ── 600px: Phablet ── */
@media (max-width: 600px) {
  .section-title { font-size: 1.7rem; }
  .section-subtitle { font-size: .92rem; }

  /* Hero */
  .hero-content h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.8rem; }

  /* Products filter buttons wrap nicely */
  .products-filter { gap: .4rem; }
  .filter-btn { font-size: .78rem; padding: .35rem .9rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Brands */
  .brand-chip { padding: .55rem 1.1rem; font-size: .82rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Chatbot window */
  #chatbot-window { width: calc(100vw - 2rem); left: 1rem; }
  #chatbot-toggle { left: 1rem; bottom: 1rem; }
  #wa-float { right: 1rem; bottom: 1rem; }
  #back-top { right: 1rem; bottom: 4.5rem; }
}

/* ── 480px: Standard phones (iPhone 12/13/14, Galaxy S) ── */
@media (max-width: 480px) {
  /* Top bar: single line */
  #topbar { font-size: .75rem; }
  #topbar .tb-inner { flex-direction: column; gap: .25rem; text-align: center; }
  #topbar .tb-left, #topbar .tb-right { gap: .75rem; justify-content: center; }

  /* Hero */
  #hero { padding: 3rem 0 2.5rem; }
  .hero-content h1 { font-size: 1.85rem; }
  .hero-badge { font-size: .7rem; }
  .hero-btns  { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; justify-content: center; max-width: 280px; }
  .hero-stats { flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; }

  /* About */
  .about-img-wrap { max-height: 220px; }
  .about-img-box  { min-height: 200px !important; }
  .about-img-box img { min-height: 200px; max-height: 220px; }
  .about-features { grid-template-columns: 1fr; }
  .about-badge { display: none; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }
  .prod-img { height: 200px; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; }

  /* Clients */
  #clients > .container > div[style] {
    grid-template-columns: 1fr !important;
  }

  /* Vision/Mission */
  #vision-mission > .container > div {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Contact form */
  .contact-form-wrap { padding: 1.25rem; border-radius: 14px; }
  .contact-form-wrap h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }

  /* Map */
  .map-container { height: 260px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand img { height: 44px; }

  /* Nav logo */
  .nav-logo img { height: 46px; }

  /* Chatbot */
  #chatbot-window {
    width: calc(100vw - 1.5rem);
    left: .75rem;
    bottom: 5.5rem;
    max-height: 430px;
  }
  #chatbot-toggle { width: 50px; height: 50px; font-size: 1.3rem; bottom: 1rem; left: .75rem; }
  .wa-bubble { width: 50px; height: 50px; font-size: 1.4rem; }
  #wa-float  { bottom: 1rem; right: .75rem; }
  #back-top  { bottom: 4.25rem; right: .75rem; width: 38px; height: 38px; }

  /* Sections */
  .container { width: 95%; }
}

/* ── 375px: iPhone SE / standard iPhones ── */
@media (max-width: 375px) {
  .hero-content h1 { font-size: 1.65rem; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .brands-scroll { gap: .75rem 1.25rem; }
  .brand-chip    { padding: .45rem .9rem; font-size: .78rem; }
  .section-title { font-size: 1.5rem; }
  .footer-grid   { grid-template-columns: 1fr; }
}

/* ── 320px: iPhone SE 1st gen / small Android ── */
@media (max-width: 320px) {
  .hero-content h1 { font-size: 1.45rem; }
  #hero { padding: 2.5rem 0 2rem; }
  .btn { padding: .7rem 1.4rem; font-size: .88rem; }
  .container { width: 96%; }
}

/* ── Touch device: remove hover effects that feel broken on mobile ── */
@media (hover: none) {
  .product-card:hover,
  .service-card:hover,
  .why-card:hover,
  .ci-card:hover,
  .brand-chip:hover { transform: none; }
  .product-card:hover .prod-img img { transform: none; }
  .service-card:hover .svc-photo img { transform: none; }
}
