/* Shiv Electricians — Fixora-style premium build */

:root{
  --primary:#0F766E;
  --primary-dark:#0B5A54;
  --secondary:#14B8A6;
  --accent:#FACC15;
  --radius:20px;
  --shadow-premium:0 10px 30px -10px rgba(15,118,110,.18), 0 2px 8px -2px rgba(15,118,110,.10);
  --shadow-soft:0 6px 20px -8px rgba(17,24,39,.12);
}

html{ scroll-behavior:smooth; }
body{
  font-family:'Poppins', sans-serif;
  color:#111827;
  background-color:#ffffff;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{
  color:inherit;
  background-color:transparent;
}

/* ---------- scroll reveal (Framer-Motion-style fade/slide-up) ---------- */
html.js .reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
html.js .reveal.in{ opacity:1; transform:translateY(0); }
html.js .reveal-stagger > *{ opacity:0; transform:translateY(22px); transition:opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1); }
html.js .reveal-stagger.in > *{ opacity:1; transform:translateY(0); }
html.js .reveal-stagger.in > *:nth-child(1){ transition-delay:.03s; }
html.js .reveal-stagger.in > *:nth-child(2){ transition-delay:.09s; }
html.js .reveal-stagger.in > *:nth-child(3){ transition-delay:.15s; }
html.js .reveal-stagger.in > *:nth-child(4){ transition-delay:.21s; }
html.js .reveal-stagger.in > *:nth-child(5){ transition-delay:.27s; }
html.js .reveal-stagger.in > *:nth-child(6){ transition-delay:.33s; }
html.js .reveal-stagger.in > *:nth-child(7){ transition-delay:.39s; }
html.js .reveal-stagger.in > *:nth-child(8){ transition-delay:.45s; }

/* ---------- button ripple ---------- */
.ripple-btn{ position:relative; overflow:hidden; }
.ripple{
  position:absolute; border-radius:50%; background:rgba(255,255,255,.55);
  transform:scale(0); animation:ripple-anim .6s ease-out forwards; pointer-events:none;
}
@keyframes ripple-anim{ to{ transform:scale(2.6); opacity:0; } }

/* ---------- premium shadow / card hover ---------- */
.card-premium{ box-shadow:var(--shadow-premium); transition:transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease; }
.card-premium:hover{ transform:translateY(-6px); box-shadow:0 18px 40px -12px rgba(15,118,110,.28); }

/* ---------- horizontal snap scroll (mobile plans / mobile categories) ---------- */
.snap-row{ display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.snap-row::-webkit-scrollbar{ display:none; }
.snap-item{ scroll-snap-align:start; flex-shrink:0; }
/* ---------- premium plans carousel track ---------- */
.plans-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.3) transparent;
  cursor: grab;
}
.plans-track.cursor-grabbing {
  cursor: grabbing !important;
  user-select: none;
}
.plans-track::-webkit-scrollbar {
  height: 6px;
}
.plans-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
  margin: 0 4px;
}
.plans-track::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.3);
  border-radius: 999px;
  transition: background .2s ease;
}
.plans-track::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------- hero slider (mobile) ---------- */
.hero-slider{ position:relative; overflow:hidden; border-radius:var(--radius); }
.hero-slides{ display:flex; transition:transform .6s cubic-bezier(.65,0,.35,1); }
.hero-slide{ flex:0 0 100%; }
.slider-dots{ position:absolute; left:0; right:0; bottom:14px; display:flex; justify-content:center; gap:6px; }
.slider-dots span{ width:6px; height:6px; border-radius:99px; background:rgba(255,255,255,.5); transition:all .3s ease; }
.slider-dots span.active{ width:18px; background:#fff; }

/* ---------- bottom nav (mobile app) ---------- */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:rgba(255,255,255,.98); backdrop-filter:blur(14px);
  box-shadow:0 -6px 24px -8px rgba(17,24,39,.14);
  padding:8px 4px calc(6px + env(safe-area-inset-bottom));
  border-top:1px solid #F1F5F4;
}
.bottom-nav a{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  font-size:11px; font-weight:600; color:#9CA3AF; flex:1; padding:4px 2px; border-radius:14px;
}
.bottom-nav a.active{ color:var(--primary); }
.bottom-nav a svg{ width:22px; height:22px; }
.bottom-nav a.fab{
  color:#fff; background:var(--primary); width:52px; height:52px; border-radius:50%;
  margin-top:-26px; flex:0 0 52px; box-shadow:0 10px 22px -6px rgba(15,118,110,.55);
  justify-content:center;
}
.bottom-nav a.fab svg{ width:24px; height:24px; }
.bottom-nav a.fab span{ display:none; }

/* ---------- misc ---------- */
.chip-badge{
  font-size:11px; font-weight:700; letter-spacing:.02em; padding:3px 10px; border-radius:999px;
}
.faq-item .faq-icon{ transition:transform .2s ease; }
.faq-item.open .faq-icon{ transform:rotate(45deg); }
.faq-item .faq-panel{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .25s ease;
}
.faq-item .faq-panel-inner{ min-height:0; overflow:hidden; }
.faq-item.open .faq-panel{ grid-template-rows:1fr; }
.faq-q:focus-visible,
.faq-contact-link:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:3px;
}
.faq-contact-cta{
  padding:24px;
  border:1px solid rgba(20,184,166,.25);
  border-radius:var(--radius);
  background:rgba(20,184,166,.07);
  text-align:center;
}
.faq-contact-cta h2{
  color:var(--primary-dark);
  font-size:20px;
  font-weight:700;
}
.faq-contact-cta p{
  max-width:640px;
  margin:8px auto 20px;
  color:#4b5563;
  font-size:14px;
  line-height:1.6;
}
.faq-contact-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}
.faq-contact-link{
  display:inline-flex;
  min-height:48px;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  border:1px solid var(--primary);
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:background-color .2s ease,border-color .2s ease;
}
.faq-contact-link:hover{ background:var(--primary-dark); border-color:var(--primary-dark); }
.faq-contact-link-secondary{ background:#fff; color:var(--primary-dark); }
.faq-contact-link-secondary:hover{ background:#f0fdfa; border-color:var(--primary-dark); }
@media (prefers-reduced-motion:reduce){
  .faq-item .faq-icon,
  .faq-item .faq-panel,
  .faq-contact-link{ transition:none; }
}

/* line clamp fallback */
.clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* mobile top app bar safe area */
.app-topbar{ padding-top:env(safe-area-inset-top); }

/* ---------- cart & badges ---------- */
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 3px 6px rgba(0,0,0,0.18);
  transition: transform .2s ease, opacity .2s ease;
}
.cart-badge.hidden {
  display: none !important;
}

.review-link {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.review-link-label,
.review-link svg {
  flex-shrink: 0;
}

.app-topbar [data-cart-badge] {
  top: -10px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  padding: 0 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb info remove"
    "qty qty qty";
  column-gap: 12px;
  row-gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #F3F4F6;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-premium);
}
.cart-item-thumb { grid-area: thumb; align-self: start; }
.cart-item-info { grid-area: info; min-width: 0; }
.cart-item-remove { grid-area: remove; align-self: start; }
.cart-item-footer {
  grid-area: qty;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}
.cart-item-icon,
.cart-item-photo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-icon {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
}
.cart-item-photo {
  object-fit: cover;
  border: 1px solid #F3F4F6;
  background: #F8FAFA;
}
.cart-item-name {
  font-weight: 700;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
}
.cart-item-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6B7280;
}
@media (min-width: 640px) {
  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    grid-template-areas: "thumb info qty remove";
    align-items: center;
    padding: 18px 20px;
  }
  .cart-item-thumb,
  .cart-item-remove { align-self: center; }
  .cart-item-footer {
    border-top: 0;
    padding-top: 0;
    gap: 18px;
  }
  .cart-item-icon,
  .cart-item-photo {
    width: 64px;
    height: 64px;
  }
  .cart-item-name { font-size: 16px; }
}

.qty-control {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  background: #F9FAFB;
}
.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  background: #ffffff;
  border: none;
  transition: background .15s ease, color .15s ease;
  user-select: none;
}
.qty-btn:hover {
  background: #F3F4F6;
  color: var(--primary);
}
.qty-btn:active {
  background: #E5E7EB;
}
.qty-val {
  min-width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
