/*
Theme Name: ASDB Solutions
Theme URI: https://asdb.co.za
Author: vzwebdesigns
Author URI: https://vzwebdesigns.com
Description: A clean, professional WordPress theme built for ASDB Solutions PTY Ltd — covering CCTV, Internet, TVs, Solar systems, Computers, Websites and Networking. Designed by vzwebdesigns.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asdb-solutions
Tags: business, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== Design Tokens ===== */
:root {
  --asdb-blue: #1f3aa6;
  --asdb-blue-dark: #15287a;
  --asdb-blue-light: #3a57c9;
  --asdb-yellow: #f7d51d;
  --asdb-yellow-dark: #e6c200;
  --asdb-gray-900: #14172b;
  --asdb-gray-700: #2f3346;
  --asdb-gray-500: #6b7088;
  --asdb-gray-300: #d8dae6;
  --asdb-gray-100: #f4f5fb;
  --asdb-white: #ffffff;
  --asdb-shadow: 0 10px 30px -12px rgba(20, 23, 43, 0.18);
  --asdb-shadow-lg: 0 20px 50px -16px rgba(31, 58, 166, 0.28);
  --asdb-radius: 14px;
  --asdb-radius-lg: 22px;
  --asdb-container: 1180px;
  --asdb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --asdb-transition: all 0.25s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--asdb-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--asdb-gray-700);
  background: var(--asdb-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--asdb-blue); text-decoration: none; transition: var(--asdb-transition); }
a:hover { color: var(--asdb-blue-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--asdb-font);
  color: var(--asdb-gray-900);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* ===== Layout ===== */
.asdb-container {
  width: 100%;
  max-width: var(--asdb-container);
  margin: 0 auto;
  padding: 0 24px;
}
.asdb-section { padding: 90px 0; }
.asdb-section--alt { background: var(--asdb-gray-100); }
.asdb-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.asdb-section-head .asdb-eyebrow {
  display: inline-block;
  background: rgba(31, 58, 166, 0.08);
  color: var(--asdb-blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.asdb-section-head p { color: var(--asdb-gray-500); font-size: 1.05rem; }

/* ===== Buttons ===== */
.asdb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--asdb-transition);
  text-decoration: none !important;
  white-space: nowrap;
}
.asdb-btn--primary {
  background: var(--asdb-blue);
  color: var(--asdb-white) !important;
  box-shadow: 0 8px 20px -8px rgba(31, 58, 166, 0.6);
}
.asdb-btn--primary:hover {
  background: var(--asdb-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(31, 58, 166, 0.7);
}
.asdb-btn--accent {
  background: var(--asdb-yellow);
  color: var(--asdb-gray-900) !important;
  box-shadow: 0 8px 20px -8px rgba(247, 213, 29, 0.7);
}
.asdb-btn--accent:hover {
  background: var(--asdb-yellow-dark);
  transform: translateY(-2px);
}
.asdb-btn--ghost {
  background: transparent;
  color: var(--asdb-white) !important;
  border-color: rgba(255, 255, 255, 0.4);
}
.asdb-btn--ghost:hover { border-color: var(--asdb-white); background: rgba(255,255,255,0.08); }
.asdb-btn--whatsapp { background: #25d366; color: #fff !important; }
.asdb-btn--whatsapp:hover { background: #1ebe57; transform: translateY(-2px); }

/* ===== Header ===== */
.asdb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--asdb-gray-300);
}
.asdb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.asdb-logo { display: flex; align-items: center; gap: 12px; }
.asdb-logo img { height: 54px; width: auto; }
.asdb-logo__text { font-weight: 800; color: var(--asdb-gray-900); font-size: 1.05rem; line-height: 1.1; }
.asdb-logo__text span { display: block; font-size: 0.7rem; font-weight: 600; color: var(--asdb-gray-500); letter-spacing: 0.1em; text-transform: uppercase; }

.asdb-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; align-items: center; }
.asdb-nav a {
  padding: 10px 16px;
  color: var(--asdb-gray-700);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.asdb-nav a:hover { background: var(--asdb-gray-100); color: var(--asdb-blue); }

.asdb-header__cta { display: flex; align-items: center; gap: 10px; }

.asdb-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.asdb-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--asdb-gray-900);
  margin: 5px 0;
  transition: var(--asdb-transition);
}

/* ===== Hero ===== */
.asdb-hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(247, 213, 29, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(31, 58, 166, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #f0f2fb 100%);
  padding: 110px 0 100px;
  overflow: hidden;
}
.asdb-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.asdb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--asdb-white);
  border: 1px solid var(--asdb-gray-300);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--asdb-gray-700);
  margin-bottom: 22px;
  box-shadow: var(--asdb-shadow);
}
.asdb-hero__eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #25d366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
}
.asdb-hero h1 { color: var(--asdb-gray-900); margin-bottom: 18px; }
.asdb-hero h1 span { color: var(--asdb-blue); }
.asdb-hero p.lead {
  font-size: 1.15rem;
  color: var(--asdb-gray-500);
  max-width: 560px;
  margin-bottom: 32px;
}
.asdb-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.asdb-hero__stats {
  display: flex; gap: 32px; margin-top: 46px; padding-top: 28px;
  border-top: 1px solid var(--asdb-gray-300);
}
.asdb-hero__stat strong { display: block; font-size: 1.6rem; color: var(--asdb-gray-900); font-weight: 800; }
.asdb-hero__stat span { font-size: 0.85rem; color: var(--asdb-gray-500); }

.asdb-hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asdb-hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(247, 213, 29, 0.35), transparent 65%);
  filter: blur(20px);
}
.asdb-hero__logo {
  position: relative;
  width: 78%;
  filter: drop-shadow(0 30px 40px rgba(31, 58, 166, 0.25));
  animation: asdb-float 6s ease-in-out infinite;
}
@keyframes asdb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Services ===== */
.asdb-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.asdb-service-card {
  background: var(--asdb-white);
  border: 1px solid var(--asdb-gray-300);
  border-radius: var(--asdb-radius-lg);
  padding: 32px 28px;
  transition: var(--asdb-transition);
  position: relative;
  overflow: hidden;
}
.asdb-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--asdb-blue), var(--asdb-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.asdb-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--asdb-shadow-lg);
  border-color: transparent;
}
.asdb-service-card:hover::before { transform: scaleX(1); }
.asdb-service-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 58, 166, 0.1), rgba(247, 213, 29, 0.2));
  color: var(--asdb-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.asdb-service-card__icon svg { width: 28px; height: 28px; }
.asdb-service-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.asdb-service-card p { color: var(--asdb-gray-500); font-size: 0.95rem; margin: 0; }

/* ===== Why Us ===== */
.asdb-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.asdb-why-card {
  text-align: center;
  padding: 30px 20px;
}
.asdb-why-card__num {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--asdb-yellow);
  color: var(--asdb-gray-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 10px 24px -10px rgba(247, 213, 29, 0.8);
}
.asdb-why-card h3 { margin-bottom: 10px; }
.asdb-why-card p { color: var(--asdb-gray-500); font-size: 0.95rem; }

/* ===== CTA Band ===== */
.asdb-cta-band {
  background: linear-gradient(135deg, var(--asdb-blue) 0%, var(--asdb-blue-dark) 100%);
  color: var(--asdb-white);
  border-radius: var(--asdb-radius-lg);
  padding: 60px 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.asdb-cta-band::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 213, 29, 0.3), transparent 70%);
}
.asdb-cta-band h2 { color: var(--asdb-white); margin-bottom: 10px; }
.asdb-cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.asdb-cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }

/* ===== Contact ===== */
.asdb-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.asdb-contact-card {
  background: var(--asdb-white);
  border: 1px solid var(--asdb-gray-300);
  border-radius: var(--asdb-radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--asdb-transition);
}
.asdb-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--asdb-shadow);
  border-color: var(--asdb-blue);
}
.asdb-contact-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--asdb-blue), var(--asdb-blue-light));
  color: var(--asdb-white);
  display: flex; align-items: center; justify-content: center;
}
.asdb-contact-card__icon svg { width: 28px; height: 28px; }
.asdb-contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.asdb-contact-card p { color: var(--asdb-gray-500); font-size: 0.9rem; margin-bottom: 16px; }
.asdb-contact-card a.value {
  display: inline-block;
  font-weight: 700;
  color: var(--asdb-gray-900);
  font-size: 1.05rem;
  word-break: break-word;
}
.asdb-contact-card a.value:hover { color: var(--asdb-blue); }

/* ===== Footer ===== */
.asdb-footer {
  background: var(--asdb-gray-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}
.asdb-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.asdb-footer h4 {
  color: var(--asdb-white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.asdb-footer ul { list-style: none; padding: 0; margin: 0; }
.asdb-footer li { margin-bottom: 10px; }
.asdb-footer a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.asdb-footer a:hover { color: var(--asdb-yellow); }
.asdb-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.asdb-footer__brand img { height: 50px; }
.asdb-footer__brand strong { color: var(--asdb-white); font-size: 1.05rem; display: block; }
.asdb-footer__brand span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.asdb-footer__about { font-size: 0.95rem; line-height: 1.7; max-width: 320px; }
.asdb-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.asdb-footer__bottom a { color: var(--asdb-yellow); font-weight: 600; }
.asdb-footer__bottom a:hover { color: #fff; }

/* ===== Floating WhatsApp ===== */
.asdb-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
  z-index: 99;
  transition: var(--asdb-transition);
}
.asdb-fab:hover { transform: scale(1.08); color: #fff; }
.asdb-fab svg { width: 30px; height: 30px; }

/* ===== Default WP Content ===== */
.asdb-page-content {
  padding: 80px 0;
}
.asdb-page-content article { margin-bottom: 40px; }
.asdb-page-content h1, .asdb-page-content h2 { margin-top: 1.4em; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .asdb-hero { padding: 70px 0; }
  .asdb-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .asdb-hero__visual { max-width: 400px; margin: 0 auto; }
  .asdb-cta-band { grid-template-columns: 1fr; padding: 44px 30px; text-align: center; }
  .asdb-cta-band__actions { justify-content: center; }
  .asdb-footer__grid { grid-template-columns: 1fr 1fr; }
  .asdb-nav { display: none; }
  .asdb-burger { display: block; }
  .asdb-nav.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--asdb-white);
    border-bottom: 1px solid var(--asdb-gray-300);
    padding: 16px;
  }
  .asdb-nav.is-open ul { flex-direction: column; align-items: stretch; }
  .asdb-nav.is-open a { display: block; }
  .asdb-header__cta .asdb-btn { display: none; }
  .asdb-header__cta .asdb-btn--accent { display: inline-flex; padding: 10px 18px; }
}
@media (max-width: 560px) {
  .asdb-section { padding: 60px 0; }
  .asdb-hero__stats { flex-wrap: wrap; gap: 20px; }
  .asdb-footer__grid { grid-template-columns: 1fr; }
  .asdb-footer__bottom { flex-direction: column; text-align: center; }
}
