/* Sonic Spark — Modern Brand Theme Overrides
   Palette from logo: deep navy + lightning gold
   This file layers on top of assets/css/style.css to refresh visuals
*/

:root {
  --brand-navy: #0b1435;          /* deep navy */
  --brand-navy-2: #121a44;        /* secondary navy */
  --brand-gold: #f5b21a;          /* lightning gold */
  --brand-gold-2: #ffca2c;        /* lighter gold */
  --brand-white: #ffffff;
  --brand-slate: #0f1a4c;
  --brand-muted: #94a3b8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px rgba(11, 20, 53, 0.35);
  --shadow-md: 0 10px 30px rgba(11, 20, 53, 0.25);
  --shadow-sm: 0 6px 18px rgba(11, 20, 53, 0.15);
}

/* Fix horizontal overflow */
html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Ensure all sections stay within viewport */
section {
  overflow-x: hidden;
  max-width: 100%;
}

.container, .container-fluid {
  overflow-x: hidden;
}

/* Typography */
html, body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0e132f;
}

/* Header / Navbar */
.hasisHeader {
  overflow: visible !important;
}

.hasisHeader header {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(11, 20, 53, 0.06);
  overflow: visible !important;
}

.hasisHeader .container {
  overflow: visible !important;
}

.hasisHeader .navbar {
  overflow: visible !important;
}

.hasisHeader .navbar-collapse {
  overflow: visible !important;
}

.hasisHeader .navbar-nav {
  overflow: visible !important;
}

.hasisHeader .nav-item.dropdown {
  position: relative !important;
}

.hasisHeader .navbar-light .navbar-nav .nav-link {
  color: #0e132f;
  font-weight: 600;
}
.hasisHeader .navbar-light .navbar-nav .nav-link:hover {
  color: var(--brand-gold);
}

.hasisHeader .btn {
  background: var(--brand-gold);
  color: #0b1435;
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.hasisHeader .btn:hover {
  background: var(--brand-gold-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Dropdown Menu Styling - Fix z-index and overflow */
.hasisHeader .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(11, 20, 53, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 200px;
  z-index: 9999 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
}

.hasisHeader .dropdown-item {
  color: #0e132f !important;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10000 !important;
}

.hasisHeader .dropdown-item:hover {
  background: var(--brand-gold) !important;
  color: #0b1435 !important;
}

/* Hero */
.handelHero .masthead {
  padding: 5rem 0 4rem;
  background: radial-gradient(1400px 900px at 20% -10%, #1d275f 0%, var(--brand-navy) 40%, #0a1230 100%);
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.handelHero .masthead::before {
  content: "";
  position: absolute;
  right: -8vw;
  top: -8vh;
  width: 56vw;
  height: 56vw;
  max-width: 780px;
  max-height: 780px;
  background: conic-gradient(from 200deg, rgba(245,178,26,0.12), rgba(245,178,26,0.0) 40%, rgba(245,178,26,0.18) 55%, rgba(245,178,26,0.0) 70%);
  filter: blur(10px);
  border-radius: 50%;
  pointer-events: none;
}

.handelHero .masthead h1 {
  color: var(--brand-white);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.handelHero .btn {
  background: var(--brand-gold);
  color: #0b1435 !important;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.handelHero .btn:hover {
  background: var(--brand-gold-2);
  transform: translateY(-2px);
}

.handelHero .masthead .masthead-cards .card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(11,20,53,0.06);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.handelHero .masthead .masthead-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.handelHero .masthead .masthead-cards .card span[itemprop="serviceType"] {
  font-weight: 700;
  color: #0e132f;
}

/* Waves */
.handelHero svg.wave .c, .handelHero svg.wave .d { fill: #f9fafb; }

/* Section: Work */
.wowWork {
  margin-top: 60px;
}
.wowWork h2 strong {
  color: #0e132f;
}
.wowWork .badge {
  background: rgba(245,178,26,0.2);
  color: #0b1435;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}
.wowWork .btn {
  background: var(--brand-navy);
  border-radius: 12px;
  padding: 10px 20px;
}
.wowWork .btn:hover { background: var(--brand-slate); }

/* Products integrated into hero - no standalone section needed */
.handelHero .masthead h2 {
  color: var(--brand-white);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.handelHero .masthead .text-white-50 {
  opacity: 0.85;
  font-size: 1.05rem;
}

/* Product badges */
.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 2px 8px rgba(245,178,26,0.25);
  border: 1px solid rgba(245,178,26,0.3);
}

/* New Product Card Design - Vertical Layout */
.product-card-new {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
  border: 2px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.product-card-new::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.product-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.product-card-new:hover::before {
  opacity: 1;
}

.product-card-new:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 0 10px 30px rgba(59, 130, 246, 0.2) !important;
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 50%, #bfdbfe 100%);
}

.product-card-new .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.product-icon-wrapper {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.12));
  border: 3px solid rgba(59, 130, 246, 0.25);
  border-radius: 50%;
  padding: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2), inset 0 2px 8px rgba(255,255,255,0.8);
}

.product-card-new:hover .product-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.25));
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35), inset 0 2px 12px rgba(255,255,255,0.9);
}

.product-icon-large {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.product-card-new h4 {
  color: var(--brand-navy);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-card-new p {
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.4;
}

.product-card-new .btn-primary {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-2) 100%);
  border: none;
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(245,178,26,0.35);
  text-transform: uppercase;
  padding: 8px 20px !important;
}

.product-card-new .btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-gold-2) 0%, var(--brand-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,178,26,0.5);
  color: var(--brand-navy);
}

/* Corner ribbons for card labels */
.ribbon {
  position: absolute;
  top: 14px;
  left: -46px;
  width: 160px;
  text-align: center;
  transform: rotate(-45deg);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  z-index: 5;
  pointer-events: none; /* purely decorative */
}

.ribbon.ribbon--new {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.ribbon.ribbon--live {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.product-badge-live {
  background: linear-gradient(135deg, var(--brand-gold) 0%, #fbbf24 100%);
  color: var(--brand-navy);
  border: 1px solid rgba(245,178,26,0.3);
}

/* Feature boxes */
.samonService .feature-box-1 {
  background: #ffffff;
  border: 1px solid rgba(11,20,53,0.06);
  border-radius: var(--radius-lg);
  box-shadow:
    0 18px 36px rgba(15,23,42,0.10),
    0 2px 6px rgba(15,23,42,0.06);
  transition: transform .18s ease, box-shadow .2s ease;
}
.samonService .feature-box-1:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 52px rgba(15,23,42,0.14),
    0 8px 14px rgba(15,23,42,0.08);
}
.samonService .feature-box-1 .icon {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: #0b1435;
}
.samonService .feature-box-1:hover:after {
  background: var(--brand-navy);
}

.samonService .section-title h2 {
  border-left-color: var(--brand-gold);
}

/* Testimonials */
.tefnuTestimonial .second-div {
  background: linear-gradient(135deg, var(--brand-navy-2), var(--brand-navy));
}
.tefnuTestimonial .bg-circle { background: var(--brand-gold); }
.tefnuTestimonial .clients { color: var(--brand-gold); }

/* Counters */
.countyCounters .counter-box.colored { background: #f9fafb; }
.countyCounters .counter-box i { color: var(--brand-navy); }

/* CTA / Contact */
.cisabelContact .btn {
  background: var(--brand-gold);
  color: #0b1435;
  border-radius: 12px;
}
.cisabelContact .btn:hover { background: var(--brand-gold-2); }

/* Contact — CTA layout matching reference UI (structure only, theme-aware) */
.cisabelContact { padding-top: 40px; padding-bottom: 40px; }
.cisabelContact .contact-subtitle { color: #475569; max-width: 980px; }

.cisabelContact .contact-panel {
  background: #ffffff;
  border: 1px solid rgba(11,20,53,0.06);
  border-radius: var(--radius-lg);
  box-shadow:
    0 22px 48px rgba(15,23,42,0.10),
    0 6px 14px rgba(15,23,42,0.06);
  padding: 32px 28px;
}

.contact-cta-card {
  position: relative;
  border: 1px solid rgba(11,20,53,0.07);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow:
    0 1px 1px rgba(2,6,23,0.04),
    0 8px 16px rgba(2,6,23,0.08),
    0 24px 52px rgba(2,6,23,0.10);
  padding: 36px 28px;
  padding-left: 110px; /* space for leading icon */
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  text-decoration: none !important;
  color: #0e132f;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease, background .25s ease;
  overflow: hidden; /* contain ambient glow */
  isolation: isolate; /* keep pseudo-element below content */
}

/* Ambient shadow glow below the card to create depth */
.contact-cta-card::before {
  content: "";
  position: absolute;
  inset: -12px -24px -28px -24px; /* extend below to allow blur */
  background: radial-gradient(120% 60% at 50% 110%, rgba(15,23,42,0.18) 0%, rgba(15,23,42,0) 60%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  opacity: .75;
}

.contact-cta-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 6px rgba(2,6,23,0.06),
    0 16px 28px rgba(2,6,23,0.10),
    0 40px 72px rgba(2,6,23,0.12);
  border-color: rgba(11,20,53,0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.contact-cta-icon {
  position: absolute;
  left: 24px;
  top: 28px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: var(--brand-navy);
  border: 1px solid rgba(11,20,53,0.08);
  box-shadow:
    0 2px 4px rgba(2,6,23,0.06),
    0 10px 24px rgba(2,6,23,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.contact-cta-icon i { font-size: 26px; }

.contact-cta-label {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-left: 0;
}

.contact-cta-arrow {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  color: #0e132f;
  border: 1px solid rgba(11,20,53,0.08);
  box-shadow:
    0 2px 4px rgba(2,6,23,0.06),
    0 10px 20px rgba(2,6,23,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.contact-cta-arrow i { font-size: 18px; }

@media (max-width: 575.98px) {
  .contact-cta-label { font-size: 1.6rem; }
}

/* Footer */
.faltuFooter .footer { background: #DDD6D6; }
.faltuFooter .footer-wave-path { fill: #fff; }
.faltuFooter .footer-content-column,
.faltuFooter .footer-menu-name,
.faltuFooter .footer-menu-list li a,
.faltuFooter .footer-call-to-action-title,
.faltuFooter .footer-call-to-action-description { color: var(--primary); }
.faltuFooter .footer-call-to-action-button {
  background: var(--brand-gold);
  color: #0b1435;
}
.faltuFooter .footer-call-to-action-button:hover {
  background: var(--brand-gold-2);
  color: #0b1435;
}
.faltuFooter .footer-copyright { background: #0a1230; }

/* Back to Top */
#button { background: var(--brand-gold); }
#button::after { color: #0b1435; }
#button:hover { background: var(--brand-gold-2); }

/* Utility */
.shadow-brand { box-shadow: var(--shadow-md); }

@media (min-width: 992px) {
  .handelHero .masthead h1 { font-size: 3.25rem; }
}


