/* ==========================================================================
   Brightmark Digital — Shared Styles
   Complements Tailwind utility classes. Keep global rules here only.
   ========================================================================== */

body {
  font-family: 'Inter', sans-serif;
  background-color: #f1f1f1;
  color: #111827;
}

/* Frosted glass effect used on floating hero cards */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Soft elevated card shadow (default + hover state) */
.card-shadow { box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.06); }
.hover-card-shadow:hover {
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.10);
  transition: all 0.3s ease;
}

/* Material Symbols default weight */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Floating WhatsApp chat button */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: whatsapp-pop .5s cubic-bezier(.2,.8,.2,1.2) .3s both;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  animation: whatsapp-ping 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes whatsapp-pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes whatsapp-ping {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab, .whatsapp-fab::before { animation: none; }
}
@media (max-width: 640px) {
  .whatsapp-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}
.cta-btn { position: relative; }
.cta-btn .material-symbols-outlined { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cta-btn:hover .material-symbols-outlined { transform: translateX(5px); }

/* Editorial eyebrow label (replaces the pill badge look) */
.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
}
.eyebrow-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
  flex-shrink: 0;
}

/* Nav ticker — scrolling marquee of services, signature agency touch */
.nav-ticker { height: 34px; display: flex; align-items: center; }
.nav-ticker-track {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: ticker-scroll 22s linear infinite;
  padding-left: 24px;
}
.nav-ticker-dot { opacity: 0.5; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-ticker-track { animation: none; padding-left: 24px; }
}

/* Active nav link indicator dot */
.active-dot { position: relative; }
.active-dot::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #4D3DD1;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* Scroll-reveal animation base state (JS toggles the "in-view" class) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Pricing toggle switch */
.toggle-track {
  width: 56px;
  height: 30px;
  border-radius: 9999px;
  background: #e2e2e2;
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.toggle-track.active { background: #4D3DD1; }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.toggle-track.active .toggle-thumb { transform: translateX(26px); }

/* Sale/off badge on pricing cards */
.sale-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #ba1a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(186,26,26,0.35);
}

/* Instagram embed frame */
.ig-embed-frame {
  border: none;
  width: 100%;
  min-height: 550px;
  border-radius: 20px;
  overflow: hidden;
}

/* Focus visibility for accessibility (keyboard nav) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #4D3DD1;
  outline-offset: 2px;
}

/* Prevent easy image dragging/saving (deterrent only) */
img { -webkit-user-drag: none; user-select: none; }

/* ==========================================================================
   Digital-marketing motion accents (hero, services, CTA)
   ========================================================================== */
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50%      { transform: translateY(-16px) rotate(var(--tilt, 0deg)); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-slow-reverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

.float-icon {
  animation: float-y 5s ease-in-out infinite;
  will-change: transform;
}
.float-icon.delay-1 { animation-delay: .6s; }
.float-icon.delay-2 { animation-delay: 1.2s; }
.float-icon.delay-3 { animation-delay: 1.8s; }
.float-icon.delay-4 { animation-delay: 2.4s; }

.orbit-ring { animation: spin-slow 18s linear infinite; }
.orbit-ring-reverse { animation: spin-slow-reverse 24s linear infinite; }
.pulse-soft { animation: pulse-soft 3.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .float-icon, .orbit-ring, .orbit-ring-reverse, .pulse-soft { animation: none !important; }
}

/* ==========================================================================
   Services — "cool" image-backed cards
   ========================================================================== */
.service-card-v2 {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.service-card-v2 .service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .6s ease;
  filter: saturate(0.95);
}
.service-card-v2:hover .service-card-img { transform: scale(1.15); filter: saturate(1.15); }
.service-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,28,28,0) 20%, rgba(20,14,60,.55) 65%, rgba(15,10,46,.92) 100%);
  z-index: 1;
  transition: background .4s ease;
}
.service-card-v2:hover::before {
  background: linear-gradient(180deg, rgba(77,61,209,.15) 0%, rgba(20,14,60,.65) 55%, rgba(15,10,46,.95) 100%);
}
.service-card-v2 .service-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.service-card-v2 .service-card-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: all .35s ease;
}
.service-card-v2:hover .service-card-arrow { opacity: 1; transform: translateX(0); }
.service-card-index {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  letter-spacing: 0.05em;
}
.service-card-v2 .service-card-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  transition: background .3s ease, transform .3s ease;
}
.service-card-v2:hover .service-card-badge {
  background: #4D3DD1;
  transform: scale(1.08) rotate(-6deg);
}

/* ==========================================================================
   Instagram post cards (individual post embeds, not the profile widget)
   ========================================================================== */
.insta-post-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.insta-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 16px 34px rgba(0,0,0,0.12);
}
.insta-post-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.insta-post-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.insta-post-card:hover .insta-post-media img { transform: scale(1.08); }
.insta-post-media .insta-hover-overlay {
  position: absolute; inset: 0;
  background: rgba(15,10,46,.45);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  opacity: 0; transition: opacity .3s ease;
  color: #fff; font-weight: 700; font-size: 14px;
}
.insta-post-card:hover .insta-hover-overlay { opacity: 1; }

/* ==========================================================================
   Testimonials carousel
   ========================================================================== */
.testimonial-viewport { overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform .55s cubic-bezier(.65,0,.35,1);
}
.testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 4px 6px 24px;
}
@media (min-width: 768px) {
  .testimonial-slide { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #d9d6ff;
  transition: all .3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.carousel-dot.active { width: 26px; background: #4D3DD1; }
.carousel-arrow {
  width: 44px; height: 44px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.08);
  transition: all .25s ease;
  color: #1a1c1c;
}
.carousel-arrow:hover { background: #4D3DD1; color: #fff; transform: scale(1.06); }

/* ==========================================================================
   Performance: reduce paint on scroll-heavy elements
   ========================================================================== */
nav, .whatsapp-fab, .float-icon {
  will-change: transform;
}
img {
  content-visibility: auto;
}

/* ==========================================================================
   Mobile-first contact form enhancements
   ========================================================================== */
/* Ensure inputs are large enough for thumbs (min 48px touch target) */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px !important; /* prevents iOS zoom on focus */
  min-height: 48px;
  box-sizing: border-box;
}
textarea { min-height: 120px; }

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px !important;
}

/* AJAX header/footer slot — prevent content jump */
#header-slot { min-height: 80px; }

/* ==========================================================================
   Domain & Hosting page – claim button pulse on mobile
   ========================================================================== */
@keyframes claim-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 12px 40px rgba(37,211,102,0.70); }
}
.claim-btn { animation: claim-pulse 2.5s ease-in-out infinite; }
.claim-btn:hover, .claim-btn:focus { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .claim-btn { animation: none; }
}
