/* ==========================================================================
   S.M. Commission & Agency (ኤስ.ኤም. የኮሚሽንና አገናኝነት ስራ)
   Custom Stylesheet & Official Logo-Harmonized Design System
   Official Flyer Palette:
   - Primary Cerulean: #0c7c96
   - Bright Logo Cerulean: #1199b5
   - Deep Ocean Navy-Teal: #063547
   - Luminous Aqua-Cyan CTA: #22c5d8
   - Periwinkle Sky Tint: #bccfed
   - Ice-Blue Canvas: #eff4fb
   ========================================================================== */

:root {
  --brand-teal-dark: #0c7c96;
  --brand-teal-deep: #063547;
  --brand-teal-light: #1199b5;
  --brand-teal-mint: #bccfed;
  --brand-gold: #22c5d8;
  --brand-gold-hover: #0e8fa8;
  --brand-bg-light: #eff4fb;
  --brand-white: #ffffff;
}

html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans Ethiopic', 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--brand-bg-light);
  color: #0f172a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography adjustments for Amharic (Ge'ez) & English */
.font-ethiopic {
  font-family: 'Noto Sans Ethiopic', 'Poppins', 'Inter', sans-serif;
  line-height: 1.65;
}

/* Custom Brand Gradients */
.bg-brand-gradient {
  background: linear-gradient(135deg, #063547 0%, #0c7c96 52%, #1199b5 100%);
}

.bg-brand-banner {
  background: radial-gradient(circle at 85% 20%, rgba(17, 153, 181, 0.42) 0%, transparent 55%),
              radial-gradient(circle at 15% 80%, rgba(34, 197, 216, 0.25) 0%, transparent 50%),
              linear-gradient(125deg, #042433 0%, #0c7c96 55%, #1199b5 100%);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #22c5d8 0%, #1199b5 52%, #0e8fa8 100%);
}

.text-gold-gradient {
  background: linear-gradient(90deg, #67e8f9 0%, #22c5d8 50%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle architectural grid pattern overlay */
.hero-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glassmorphism surfaces */
.glass-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(188, 207, 237, 0.7);
}

.glass-dark {
  background: rgba(6, 53, 71, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(188, 207, 237, 0.28);
}

/* Card & Interactive Hover Transitions */
.listing-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -12px rgba(12, 124, 150, 0.22),
              0 8px 20px -6px rgba(6, 53, 71, 0.08);
}

.listing-card .card-image {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-card:hover .card-image {
  transform: scale(1.07);
}

.service-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(12, 124, 150, 0.18);
}

/* Filter Tab Active State */
.filter-tab {
  transition: all 0.25s ease;
}

.filter-tab.active {
  background-color: #0c7c96;
  color: #ffffff;
  border-color: #0c7c96;
  box-shadow: 0 8px 20px -4px rgba(12, 124, 150, 0.35);
}

/* ==========================================================================
   ANIMATED REAL LOGO SYSTEM (.sm-logo-badge & .sm-logo-hero-showcase)
   ========================================================================== */
@keyframes smLogoOrbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes smLogoOrbitReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes smLogoFloatBreath {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-2.5px) scale(1.045);
  }
}

@keyframes smLogoSheenSweep {
  0%, 55% {
    transform: translateX(-140%) skewX(-22deg);
    opacity: 0;
  }
  65% {
    opacity: 0.75;
  }
  88%, 100% {
    transform: translateX(180%) skewX(-22deg);
    opacity: 0;
  }
}

.sm-logo-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #eff4fb 65%, #dbeafe 100%);
  border: 1.5px solid rgba(17, 153, 181, 0.38);
  box-shadow: 0 8px 22px -6px rgba(12, 124, 150, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}

.group:hover .sm-logo-badge,
.sm-logo-badge:hover {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 12px 28px -6px rgba(34, 197, 216, 0.45),
              0 0 0 3px rgba(34, 197, 216, 0.18);
}

.sm-logo-orbit {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    rgba(34, 197, 216, 0.85),
    rgba(12, 124, 150, 0.15) 40%,
    rgba(17, 153, 181, 0.85) 70%,
    rgba(34, 197, 216, 0.85)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: smLogoOrbitSpin 8s linear infinite;
}

.sm-logo-float {
  position: relative;
  z-index: 2;
  animation: smLogoFloatBreath 4.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 5px rgba(12, 124, 150, 0.22));
}

.sm-logo-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.72) 50%,
    transparent 100%
  );
  width: 55%;
  pointer-events: none;
  animation: smLogoSheenSweep 5s ease-in-out infinite;
}

/* Larger Hero / Login Medallion Showcase */
.sm-logo-hero-showcase {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: radial-gradient(circle at 32% 25%, #ffffff 0%, #eff4fb 72%, #d8e8fa 100%);
  box-shadow: 0 0 30px rgba(34, 197, 216, 0.35),
              0 10px 24px -8px rgba(6, 53, 71, 0.45);
  overflow: visible;
}

.sm-logo-hero-showcase::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px dashed rgba(34, 197, 216, 0.65);
  animation: smLogoOrbitSpin 12s linear infinite;
  pointer-events: none;
}

.sm-logo-hero-showcase::after {
  content: '';
  position: absolute;
  inset: -11px;
  border-radius: 9999px;
  border: 1.5px solid rgba(188, 207, 237, 0.35);
  border-top-color: rgba(34, 197, 216, 0.9);
  animation: smLogoOrbitReverse 9s linear infinite;
  pointer-events: none;
}

.sm-logo-static .sm-logo-orbit,
.sm-logo-static .sm-logo-float,
.sm-logo-static .sm-logo-sheen,
.sm-logo-static::before,
.sm-logo-static::after {
  animation: none !important;
}

/* Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 216, 0.72);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(34, 197, 216, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 216, 0);
  }
}

.pulse-gold {
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseWhatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-whatsapp {
  animation: pulseWhatsapp 2.4s infinite;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fadeInScale 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .sm-logo-orbit,
  .sm-logo-float,
  .sm-logo-sheen,
  .sm-logo-hero-showcase::before,
  .sm-logo-hero-showcase::after,
  .sm-hero-watermark-wrap,
  .sm-hero-bg-ring-1,
  .sm-hero-bg-ring-2,
  .sm-hero-bg-beam,
  .animate-float,
  .pulse-gold,
  .pulse-whatsapp {
    animation: none !important;
  }
}

/* ==========================================================================
   HERO ANIMATED LOGO / VIDEO WATERMARK BACKGROUND (edmobile16.com-inspired)
   ========================================================================== */
@keyframes smHeroWatermarkZoom {
  0% {
    transform: scale(0.94) translateY(0px);
  }
  50% {
    transform: scale(1.12) translateY(-10px);
  }
  100% {
    transform: scale(0.94) translateY(0px);
  }
}

@keyframes smHeroRingRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes smHeroRingRotateReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes smHeroBeamSweep {
  0%, 40% {
    transform: translateX(-120%) skewX(-24deg);
    opacity: 0;
  }
  55% {
    opacity: 0.45;
  }
  85%, 100% {
    transform: translateX(160%) skewX(-24deg);
    opacity: 0;
  }
}

.sm-hero-bg-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sm-hero-orb-1 {
  position: absolute;
  top: -12%;
  left: -8%;
  width: 600px;
  height: 600px;
  border-radius: 9999px;
  background: rgba(12, 124, 150, 0.25);
  filter: blur(80px);
}

.sm-hero-orb-2 {
  position: absolute;
  bottom: -15%;
  right: -6%;
  width: 520px;
  height: 520px;
  border-radius: 9999px;
  background: rgba(34, 197, 216, 0.2);
  filter: blur(80px);
}

.sm-hero-orb-3 {
  position: absolute;
  top: 22%;
  left: 34%;
  width: 420px;
  height: 420px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  filter: blur(64px);
}

.sm-hero-watermark-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: smHeroWatermarkZoom 18s ease-in-out infinite;
}

.sm-hero-watermark-img {
  opacity: var(--sm-hero-bg-opacity, 0.22);
  filter: brightness(0) invert(1) drop-shadow(0 0 36px rgba(34, 197, 216, 0.65));
}

.sm-hero-bg-ring-1 {
  position: absolute;
  width: min(76vw, 660px);
  height: min(76vw, 660px);
  border-radius: 9999px;
  border: 2px dashed rgba(34, 197, 216, 0.32);
  animation: smHeroRingRotate 26s linear infinite;
}

.sm-hero-bg-ring-2 {
  position: absolute;
  width: min(92vw, 820px);
  height: min(92vw, 820px);
  border-radius: 9999px;
  border: 1.5px solid rgba(188, 207, 237, 0.16);
  border-top-color: rgba(34, 197, 216, 0.65);
  border-bottom-color: rgba(17, 153, 181, 0.48);
  animation: smHeroRingRotateReverse 36s linear infinite;
}

.sm-hero-bg-beam {
  position: absolute;
  top: -15%;
  bottom: -15%;
  width: 38%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(165, 243, 252, 0.16) 50%,
    transparent 100%
  );
  animation: smHeroBeamSweep 11s ease-in-out infinite;
}

@media (max-width: 1023px) {
  .sm-hero-watermark-wrap {
    inset: 0 0 auto 0;
    height: 620px;
    padding-top: 24px;
  }

  .sm-hero-watermark-img {
    opacity: max(var(--sm-hero-bg-opacity, 0.22), 0.26);
  }

  .sm-hero-bg-ring-1 {
    width: 300px;
    height: 300px;
  }

  .sm-hero-bg-ring-2 {
    width: 370px;
    height: 370px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eff4fb;
}

::-webkit-scrollbar-thumb {
  background: #0c7c96;
  border-radius: 9999px;
  border: 2px solid #eff4fb;
}

::-webkit-scrollbar-thumb:hover {
  background: #1199b5;
}

/* Hide scrollbars cleanly on mobile horizontal tab scrollers */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Printable 1-page Showroom Brochure */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  header,
  .sr-no-print,
  #sr-category-tabs,
  #sr-thumbnails {
    display: none !important;
  }
  .bg-slate-900,
  .bg-slate-950\/70 {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
  }
  .text-white,
  .text-slate-300,
  .text-slate-400 {
    color: #1e293b !important;
  }
}
