/* ===================================================================
   VizagFix — design tokens
   Palette built around a security/signal-light idea: dark ink navy,
   a warm amber "indicator light" accent, and a deep teal for trust
   and secondary actions. Avoids the generic cream+terracotta combo.
=================================================================== */
:root {
  --ink: #101826;
  --ink-soft: #4A5568;
  --paper: #F5F6F1;
  --paper-raised: #FFFFFF;
  --line: #DEDCD2;
  --accent: #EEAF16;
  --accent-dark: #DC9309;
  --teal: #0172D9;
  --teal-dark: #014CA9;
  --danger: #B4432E;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 38, 0.06), 0 8px 24px rgba(16, 24, 38, 0.06);
  --max-width: 1160px;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1DA851; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; max-width: 200px; }
.footer-logo { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: #DDE1E8; font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--accent); transition: right .2s ease;
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { background: var(--accent); color: var(--ink) !important; padding: 9px 16px; border-radius: 7px; }
.nav-cart { position: relative; }
.nav-cart-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 4px; background: var(--danger); color: #fff; font-size: 0.68rem; font-weight: 700; border-radius: 20px; vertical-align: middle; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- nav dropdown (Services / Digital Marketing, etc.) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: #DDE1E8; font-weight: 500; font-size: 0.95rem; padding: 0;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-dropdown-toggle:hover { color: #fff; }
.nav-caret { font-size: 0.7em; transition: transform .15s ease; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: 0;
  background: #fff; border-radius: 10px; box-shadow: 0 14px 34px rgba(16,24,38,0.18);
  min-width: 220px; padding: 8px; z-index: 50;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; color: var(--ink) !important; font-weight: 500; font-size: 0.92rem;
  padding: 9px 12px; border-radius: 7px; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: #F3F4F1; text-decoration: none; }
.nav-dropdown-menu a::after { display: none !important; }

@media screen and (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: flex-start;
    padding: 10px 24px 20px; gap: 14px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static; display: none; box-shadow: none; background: none;
    padding: 4px 0 0 14px; min-width: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; gap: 10px; }
  .nav-dropdown-menu a { color: #DDE1E8 !important; padding: 2px 0; }
  .nav-dropdown-menu a:hover { background: none; }
}

/* ---------- hero ---------- */
.hero { padding: 60px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow { color: var(--teal); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.hero p.lede { font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 340px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.hero-stat span { color: var(--ink-soft); font-size: 0.85rem; }

@media screen and (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; margin: 0 auto; }
  .hero-orbit { display: none; }
}

/* ---------- services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.service-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: transform .3s ease;
}
.service-card:nth-child(2n) .service-icon { background: var(--teal); }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 a { color: var(--ink); }
.service-card p { font-size: 0.95rem; margin-bottom: 6px; }
.service-card .more { font-weight: 600; font-size: 0.9rem; }

@media screen and (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.services-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media screen and (max-width: 900px) { .services-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media screen and (max-width: 620px) { .services-grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- generic content blocks ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media screen and (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.step { border-left: 3px solid var(--accent); padding-left: 18px; }
.step .num { font-family: var(--font-head); font-size: 1.6rem; color: var(--teal); display: block; margin-bottom: 6px; }
.step-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
@media screen and (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge { background: rgba(1, 114, 217, 0.1); color: var(--teal-dark); padding: 6px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }

.cta-strip { background: var(--ink); color: #fff; padding: 44px 0; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #C9CEDA; margin-left: auto; margin-right: auto; }
.cta-strip .hero-actions { justify-content: center; }

.radar-ping { position: relative; width: 64px; height: 64px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.radar-ping span {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; animation: radarPing 2.4s ease-out infinite;
}
.radar-ping span:nth-child(2) { animation-delay: .8s; }
.radar-ping span:nth-child(3) { animation-delay: 1.6s; }
.radar-dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
@keyframes radarPing { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar-ping span { animation: none; opacity: 0.4; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 30px; }
@media screen and (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item:nth-child(2n) .ic { background: var(--teal); }

form.stack { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.92rem; margin-bottom: 18px; }
.alert-success { background: rgba(1, 114, 217, 0.12); color: var(--teal-dark); border: 1px solid rgba(1,114,217,0.3); }
.alert-error { background: rgba(180, 67, 46, 0.1); color: var(--danger); border: 1px solid rgba(180,67,46,0.3); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9CEDA; padding: 44px 0 26px; margin-top: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer a { color: #C9CEDA; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: #8891A0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media screen and (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: #25D366; color: #fff; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}

/* Call button, stacked above the WhatsApp one */
.call-float {
  position: fixed; bottom: 86px; right: 22px; z-index: 60;
  background: var(--accent, #0172D9); color: #fff; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .whatsapp-float { bottom: 16px; right: 14px; } .call-float { bottom: 80px; right: 14px; } }

/* ---------- service detail page ---------- */
.service-hero { padding: 44px 0 10px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- admin ---------- */
/* =====================================================================
   Admin panel — premium redesign
===================================================================== */
.admin-body { background: #F3F4F1; font-family: var(--font-body); color: var(--ink); }
.admin-shell { display: flex; min-height: 100vh; }

/* ---------- sidebar ---------- */
.admin-sidebar {
  width: 240px; background: var(--ink); color: #fff; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 16px; }
.admin-nav-close { display: none; background: none; border: none; color: #9AA3B5; cursor: pointer; padding: 4px; }
.admin-nav { flex: 1; padding: 4px 10px; }
.admin-nav-label {
  padding: 16px 10px 6px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #6B7484;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 1px 0;
  border-radius: 8px; color: #B9C0CE; font-size: 0.89rem; font-weight: 500;
  position: relative; transition: background .15s ease, color .15s ease;
}
.admin-nav-icon { display: flex; flex-shrink: 0; opacity: 0.85; }
.admin-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.admin-nav-link.active { background: rgba(238,175,22,0.14); color: #fff; }
.admin-nav-link.active .admin-nav-icon { color: var(--accent); opacity: 1; }
.admin-nav-link.active::before {
  content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent); border-radius: 0 3px 3px 0;
}
.admin-nav-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
.admin-nav-foot a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px;
  color: #9AA3B5; font-size: 0.86rem;
}
.admin-nav-foot a:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.admin-nav-toggle, .admin-nav-scrim { display: none; }

/* ---------- main content ---------- */
.admin-main { flex: 1; padding: 28px 36px 60px; max-width: 1240px; width: 100%; }
.admin-main h1 { font-size: 1.5rem; margin-bottom: 4px; }
.admin-main > p:first-of-type { color: var(--ink-soft); margin-bottom: 4px; }

/* ---------- cards ---------- */
.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px;
  margin-bottom: 20px; box-shadow: 0 1px 2px rgba(16,24,38,0.04);
}
.admin-card h3 { font-size: 1.02rem; margin-bottom: 14px; }
.admin-card h3:only-child { margin-bottom: 0; }

/* Dashboard-style stat card */
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(16,24,38,0.04); transition: box-shadow .2s ease, transform .2s ease;
}
.stat-card:hover { box-shadow: 0 6px 20px rgba(16,24,38,0.08); transform: translateY(-2px); }
.stat-card .stat-label { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.82rem; font-weight: 600; margin-bottom: 10px; }
.stat-card .stat-icon {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(238,175,22,0.14); color: var(--accent-dark); flex-shrink: 0;
}
.stat-card .stat-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-link { display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media screen and (max-width: 900px) { .stat-grid, .stat-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 560px) { .stat-grid, .stat-grid-3 { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.89rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.admin-table th {
  color: #7C8595; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  background: #FAFAF8; border-bottom: 1px solid var(--line);
}
.admin-table th:first-child { border-top-left-radius: 8px; }
.admin-table th:last-child { border-top-right-radius: 8px; }
.admin-table tbody tr { transition: background .12s ease; }
.admin-table tbody tr:hover { background: #FAFAF8; }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 600; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-new { background: rgba(217,142,43,0.14); color: var(--accent-dark); }
.pill-done { background: rgba(1,114,217,0.12); color: var(--teal-dark); }

/* ---------- form focus polish ---------- */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,114,217,0.12);
}

/* ---------- admin empty state ---------- */
.admin-empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
.admin-empty .icon { color: var(--line); margin-bottom: 10px; display: flex; justify-content: center; }

/* ---------- login ---------- */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 20px; }
.login-card { background: #1B2436; padding: 36px; border-radius: 14px; width: 100%; max-width: 380px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-card p { color: #AEB6C4; }
.login-card .field label { color: #DDE1E8; }
.login-card .field input { background: #101826; border-color: rgba(255,255,255,0.15); color: #fff; }
.login-card .field input:focus { box-shadow: 0 0 0 3px rgba(238,175,22,0.18); border-color: var(--accent); }

@media screen and (max-width: 900px) {
  .admin-sidebar {
    position: fixed; left: 0; top: 0; z-index: 200; transform: translateX(-100%);
    transition: transform .25s ease; width: 260px; box-shadow: 0 0 40px rgba(0,0,0,0.3);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-nav-close { display: block; }
  .admin-nav-toggle {
    display: flex; align-items: center; justify-content: center; position: fixed; top: 14px; left: 14px; z-index: 150;
    width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: #fff; border: none; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  }
  .admin-nav-scrim {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 190;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .admin-nav-scrim.show { opacity: 1; pointer-events: auto; }
  .admin-main { padding: 70px 16px 40px; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.gallery-item { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-raised); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(16,24,38,0.72); color: #fff; font-size: 0.78rem; padding: 6px 8px; }
@media screen and (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media screen and (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- banner carousel ---------- */
.banner-carousel { position: relative; border-radius: 14px; overflow: hidden; background: #F3F4F1; }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-slide { flex: 0 0 100%; display: block; }
/* object-fit: contain (not cover) so the whole banner is always visible —
   never crops text/offer details near the edges, whatever size image is
   uploaded. max-height just stops an unusually tall/square image from
   taking over the page; width:100% + height:auto keeps wide ones crisp. */
.banner-slide img { width: 100%; height: auto; max-height: 420px; display: block; margin: 0 auto; object-fit: contain; background: #F3F4F1; }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(16,24,38,0.35); cursor: pointer; padding: 0; }
.banner-dot.active { background: var(--ink); width: 20px; border-radius: 5px; }
@media screen and (max-width: 620px) { .banner-slide img { max-height: 220px; } }

/* ---------- shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }
.shop-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; transition: box-shadow .2s ease, transform .2s ease; }
.shop-card:hover { box-shadow: 0 8px 24px rgba(16,24,38,0.1); transform: translateY(-3px); text-decoration: none; }
.shop-card-img { position: relative; aspect-ratio: 1; background: #F3F4F1; display: flex; align-items: center; justify-content: center; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-noimg { color: var(--line); }
.shop-card-oos { position: absolute; top: 8px; right: 8px; background: var(--danger); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.shop-card-body { padding: 14px; }
.shop-card-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 4px; }
.shop-card-name { font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.shop-card-price { font-family: var(--font-head); font-weight: 700; color: var(--accent-dark); }
.shop-card-price span { font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--ink-soft); }
@media screen and (max-width: 900px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media screen and (max-width: 620px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-row-img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: #F3F4F1; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-stepper button { background: #FAFAF8; border: none; width: 30px; height: 32px; cursor: pointer; font-size: 1rem; }
.qty-stepper input { width: 42px; border: none; text-align: center; font-size: 0.92rem; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 18px; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media screen and (max-width: 780px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.review-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { font-size: 0.95rem; }
.review-name { font-weight: 700; font-family: var(--font-head); font-size: 0.95rem; }
.review-service { color: var(--ink-soft); font-size: 0.82rem; }
@media screen and (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.blog-card { display: block; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.blog-card:hover { text-decoration: none; border-color: var(--accent); }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 16px 18px; }
.blog-date { font-size: 0.78rem; color: var(--ink-soft); }
.blog-card h3 { margin: 6px 0; font-size: 1.05rem; }
.blog-content { font-size: 1rem; line-height: 1.7; }
.blog-content p { max-width: none; color: var(--ink); }
.blog-content img { border-radius: 8px; margin: 16px 0; }
@media screen and (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.upload-preview { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.upload-preview .thumb { width: 110px; }
.upload-preview .thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* ---------- service page photo ---------- */
.service-photo {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-photo:hover img { transform: scale(1.06); }
.service-photo-placeholder {
  border-radius: var(--radius); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(238,175,22,0.14), rgba(1,114,217,0.1));
  border: 1px dashed var(--line);
}
.service-photo-placeholder .badge-icon {
  width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; transform: scale(1.6);
}

/* ===================================================================
   Polish pass: preloader, motion, hover depth, lightbox
=================================================================== */

/* ---------- branded preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease, visibility .45s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 88px; height: 88px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent);
  border-right-color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  animation: loaderSpin 0.9s linear infinite;
}
.loader-ring img { width: 40px; height: auto; animation: loaderPulse 1.4s ease-in-out infinite; }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.65; transform: scale(0.88); } }

/* ---------- header depth on scroll ---------- */
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.28); }

/* ---------- hover depth & motion ---------- */
.btn { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,24,38,0.16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn-spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%;
  animation: loaderSpin 0.6s linear infinite; vertical-align: -2px;
}
.btn-outline .btn-spinner, .btn-teal .btn-spinner { border-color: rgba(16,24,38,0.3); border-top-color: var(--ink); }

.service-card, .review-card, .blog-card, .video-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover, .review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.gallery-item { transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.hero-art { position: relative; }
.hero-art::before {
  content: ''; position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(238,175,22,0.16) 0%, rgba(1,124,227,0.1) 45%, transparent 72%);
  border-radius: 50%; z-index: 0; animation: heroGlow 5s ease-in-out infinite;
}
.hero-art img, .hero-art svg { position: relative; z-index: 1; }
@keyframes heroGlow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.85; } }

.hero-orbit {
  position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper-raised); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  animation: orbitFloat 3.6s ease-in-out infinite;
}
.hero-orbit.c1 { top: 4%; left: 2%; color: var(--accent); animation-delay: 0s; }
.hero-orbit.c2 { top: 62%; left: -4%; color: var(--teal); animation-delay: .6s; width: 40px; height: 40px; }
.hero-orbit.c3 { top: 10%; right: -2%; color: var(--teal); animation-delay: 1.2s; }
.hero-orbit.c4 { bottom: 2%; right: 6%; color: var(--accent); animation-delay: 1.8s; width: 40px; height: 40px; }
@keyframes orbitFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-illustration svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.illus-cone { animation: illusPulse 2.6s ease-in-out infinite; transform-origin: 95px 67px; }
.illus-live-dot { animation: illusBlink 1.4s ease-in-out infinite; }
.illus-float-a { animation: illusFloat 3.2s ease-in-out infinite; transform-origin: 378px 150px; }
.illus-float-b { animation: illusFloat 3.2s ease-in-out infinite 1s; transform-origin: 150px 30px; }
.illus-camera { animation: illusSway 4.5s ease-in-out infinite; transform-origin: 60px 67px; }
@keyframes illusPulse { 0%, 100% { opacity: 0.14; } 50% { opacity: 0.28; } }
@keyframes illusBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes illusFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes illusSway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2.5deg); } }
@media (prefers-reduced-motion: reduce) {
  .illus-cone, .illus-live-dot, .illus-float-a, .illus-float-b, .illus-camera { animation: none; }
}

.tech-grid-bg {
  background-image: radial-gradient(rgba(16,24,38,0.09) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}
.tech-grid-bg-dark {
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ---------- empty states ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-state .icon { color: var(--line); margin-bottom: 14px; display: flex; justify-content: center; }
.empty-state p { margin: 0 auto; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader-ring, .loader-ring img, .hero-art::before, .hero-orbit { animation: none; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(16,24,38,0.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: none; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #DDE1E8; font-size: 0.9rem; }

/* ===================================================================
   Tally-style invoice/quotation sheet ("ti-" prefix)
   Shared by admin invoice/quote views AND the public share pages
   (view-invoice.php, view-quote.php) so both render identically.
=================================================================== */
.ti-doc { font-size: 0.88rem; color: var(--ink); }
.ti-topline { height: 4px; background: linear-gradient(90deg, var(--accent), var(--teal)); margin: -1px -1px 20px; border-radius: 3px 3px 0 0; }
.ti-header { width: 100%; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.ti-header-left { width: 62%; vertical-align: top; padding-right: 20px; }
.ti-biz-details { font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
.ti-title-block { width: 38%; vertical-align: top; text-align: right; }
.ti-doc-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 8px; }
.ti-meta { margin-left: auto; font-size: 0.82rem; border-collapse: collapse; }
.ti-meta td { padding: 2px 0 2px 14px; text-align: right; color: var(--ink-soft); }
.ti-meta td:last-child { color: var(--ink); }

.ti-parties { width: 100%; border-collapse: collapse; margin-top: 16px; table-layout: fixed; }
.ti-parties td { border: 1px solid var(--line); padding: 10px 14px; vertical-align: top; font-size: 0.85rem; line-height: 1.55; }
.ti-parties td:last-child:not(:only-child) { width: 220px; text-align: right; }
.ti-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 4px; }
.ti-party-name { font-weight: 700; font-size: 0.98rem; margin-bottom: 2px; }

.ti-items { width: 100%; border-collapse: collapse; margin-top: -1px; font-size: 0.83rem; }
.ti-items th, .ti-items td { border: 1px solid var(--line); padding: 7px 9px; }
.ti-items thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }
.ti-center { text-align: center; }
.ti-right { text-align: right; }

.ti-bottom-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 18px; align-items: start; }
.ti-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.ti-words { font-weight: 600; font-size: 0.88rem; }

.ti-taxsummary { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 0.82rem; }
.ti-taxsummary th, .ti-taxsummary td { border: 1px solid var(--line); padding: 6px 9px; }
.ti-taxsummary thead th { background: var(--paper); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; }

.ti-totals { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ti-totals td { padding: 5px 4px; }
.ti-totals tr.ti-grand td { border-top: 2px solid var(--ink); font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; padding-top: 8px; }

.ti-signature { margin-top: 34px; text-align: center; font-size: 0.85rem; }
.ti-sign-space { height: 50px; }

.ti-footer-note { text-align: center; color: var(--ink-soft); font-size: 0.72rem; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }

@media screen and (max-width: 780px) { .ti-bottom-grid { grid-template-columns: 1fr; } .ti-parties td:last-child { text-align: left; } .ti-header, .ti-header-left, .ti-title-block { display: block; width: 100%; padding-right: 0; } .ti-title-block { text-align: left; margin-top: 14px; } .ti-meta { margin-left: 0; } .ti-meta td { text-align: left; padding: 2px 14px 2px 0; } }

@media print {
  @page { size: A4; margin: 12mm; }
  .admin-sidebar, .no-print { display: none !important; }
  .admin-main { padding: 0 !important; max-width: none !important; }
  .invoice-sheet { border: none !important; box-shadow: none !important; padding: 0 !important; }
  .ti-items { page-break-inside: auto; }
  .ti-items tr { page-break-inside: avoid; }
  .ti-bottom-grid { page-break-inside: avoid; }
  body { background: #fff !important; }
}

/* ---------- support tickets ---------- */
.ticket-thread { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.ticket-msg { max-width: 88%; padding: 11px 14px; border-radius: 12px; font-size: 0.93rem; line-height: 1.5; border: 1px solid var(--line); background: #fff; }
.ticket-msg .ticket-msg-meta { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 4px; }
.ticket-msg.from-customer { align-self: flex-start; background: #F3F4F1; }
.ticket-msg.from-admin { align-self: flex-end; background: #EAF3FD; border-color: #C9DFF7; }
.ticket-msg.from-system { align-self: center; max-width: 100%; background: none; border: 1px dashed var(--line); color: var(--ink-soft); font-size: 0.85rem; text-align: center; }
.ticket-msg.internal-note { align-self: flex-end; background: #FFF6DB; border-color: #F0DC9A; }
.ticket-attachments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ticket-attachments img { height: 84px; width: auto; max-width: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.ticket-row-overdue td { background: #FDECEC; }
.pill-overdue { background: #FBD5D5; color: #9B1C1C; }
.rating-options { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.rating-options label { font-weight: 500; cursor: pointer; }

/* serial / service numbers printed under an invoice line */
.ti-serial { font-size: 0.82em; color: #4A5568; margin-top: 2px; word-break: break-word; }
