/* ---- Base site variables (change once, reflect everywhere) ---- */
:root {
  /* ---- Al Shumar Brand Colors ---- */
  --color-primary: 10 61 145;   /* #0A3D91 - deep blue */
  --color-secondary: 0 174 239; /* #00AEEF - aqua blue */
  --color-bg: 255 255 255;
  --color-text: 17 24 39;       /* gray-900 */
}

/* Optional alternate theme */
.theme-alt {
  --color-primary: 0 174 239;   /* swap to aqua as main */
  --color-secondary: 10 61 145; /* deep blue as accent */
  --color-bg: 10 10 12;
  --color-text: 243 244 246;
}

/* Small helpers */
body {
  background: rgb(var(--color-bg));
  color: rgb(var(--color-text));
}

/* Utilities that aren't worth Tailwind classes */
.container-max {
  /* max-width: 1200px; */
  margin-inline: auto;
  padding-inline: 1rem;
}

/* White Navbar Background */
.nav-surface\/brand-gradient {
  background: rgb(var(--color-bg));
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced Nav Link Styling */
.nav-link {
  color: rgb(var(--color-primary));
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary), 0.1) 0%,
    rgba(var(--color-secondary), 0.05) 100%
  );
  border-radius: 0.75rem;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0.5rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgb(var(--color-primary)) 0%,
    rgb(var(--color-secondary)) 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  left: 1rem;
  right: 1rem;
}

.nav-link:hover {
  color: rgb(var(--color-primary));
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(var(--color-primary), 0.15),
    0 2px 6px rgba(var(--color-secondary), 0.1);
}

/* Enhanced active state */
.nav-link.active {
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary), 0.1) 0%,
    rgba(var(--color-secondary), 0.05) 100%
  );
  color: rgb(var(--color-primary));
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 8px rgba(var(--color-primary), 0.1);
}

.nav-link.active::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link.active::after {
  transform: scaleX(1);
  left: 1rem;
  right: 1rem;
}

/* Enhanced Live Demo Button */
.live-demo-btn {
  background: linear-gradient(
    135deg,
    rgb(var(--color-primary)) 0%,
    rgb(var(--color-secondary)) 100%
  );
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 15px rgba(var(--color-primary), 0.2);
}

.live-demo-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.live-demo-btn:hover::before {
  opacity: 1;
}

.live-demo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(var(--color-primary), 0.3),
    0 4px 15px rgba(var(--color-secondary), 0.2);
}

/* Enhanced Mobile Menu Toggle */
#navToggle {
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--color-primary), 0.2);
  background: rgba(var(--color-primary), 0.05);
  color: rgb(var(--color-primary));
}

#navToggle:hover {
  background: rgba(var(--color-primary), 0.1);
  transform: scale(1.1);
  border-color: rgba(var(--color-primary), 0.4);
}

/* Enhanced Mobile Dropdown */
#navDropdown {
  background: rgb(var(--color-bg));
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#navDropdown a {
  transition: all 0.3s ease;
  border: 1px solid transparent;
  color: rgb(var(--color-primary));
}

#navDropdown a:hover {
  background: rgba(var(--color-primary), 0.05);
  border-color: rgba(var(--color-primary), 0.2);
  transform: translateX(8px);
  color: rgb(var(--color-primary));
}

/* Active state for current page */
.nav-link.active {
  background: rgba(var(--color-primary), 0.1);
  color: rgb(var(--color-primary));
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Shadow utilities */
.shadow-soft {
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1), 
    0 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-blur {
  backdrop-filter: blur(10px);
}

/* Stylish Brand - No Container */
.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  border-radius: 1rem;
}

.brand-container:hover {
  transform: translateY(-2px);
}

.brand-logo {
  width: 4rem;  /* Increased from 3.5rem */
  height: 4rem; /* Increased from 3.5rem */
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
}

.brand-container:hover .brand-logo {
  transform: scale(1.15) rotate(5deg);
  
}

.brand-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(
    135deg,
    rgb(var(--color-primary)) 0%,
    rgb(var(--color-secondary)) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  line-height: 1;
}

.brand-container:hover .brand-name {
  background: linear-gradient(
    135deg,
    rgb(var(--color-secondary)) 0%,
    rgb(var(--color-primary)) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Footer Links */
footer a {
  transition: all 0.3s ease;
  position: relative;
  color: rgb(var(--color-primary));
}

footer a:hover {
  color: rgb(var(--color-secondary));
  transform: translateX(5px);
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgb(var(--color-secondary));
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* For mobile */
@media (max-width: 768px) {
  .brand-container {
    gap: 0.75rem;
  }
  
  .brand-logo {
    width: 3.5rem;  
    height: 3.5rem; 
  }
  
  .brand-name {
    font-size: 1.5rem;
  }
  
  .nav-link {
    padding: 0.625rem 1rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .brand-container {
    gap: 0.5rem;
  }
  
  .brand-logo {
    width: 3rem;  /* Increased from 2.5rem */
    height: 3rem; /* Increased from 2.5rem */
  }
  
  .brand-name {
    font-size: 1.25rem;
  }
}

/* === Footer (brand-on-dark) === */
.site-footer {
  background: rgb(var(--color-primary));
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-title {
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}

.site-footer .footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, opacity .2s ease;
}

.site-footer .footer-link:hover {
  color: rgb(var(--color-secondary));
  transform: translateX(4px);
}

.site-footer .footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
}

.site-footer .logo-ring {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border-radius: 0.75rem;
  padding: .5rem;
}
/* === Floating Social Bar === */
.floating-social {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}

.floating-social .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: rgb(var(--color-primary));
  color: #fff;  
  transition: transform .18s ease, filter .18s ease, background .18s ease;
  outline: none;
}

.floating-social .social-btn:hover,
.floating-social .social-btn:focus-visible {
  transform: translateX(-2px);
  background: rgb(var(--color-secondary));
  filter: brightness(1.05);
}

.floating-social .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Mobile: tuck it near the bottom to avoid covering content */
@media (max-width: 640px) {
  .floating-social {
    top: auto;
    bottom: 88px;
    right: 12px;
    transform: none;
    gap: 8px;
  }
  .floating-social .social-btn {
    width: 42px; height: 42px;
  }
}

/* Platform colors */
.social-btn.whatsapp {
  background: #25D366;          /* WhatsApp green */
  color: #fff;
  border-color: rgba(0,0,0,.05);
}
.social-btn.whatsapp:hover,
.social-btn.whatsapp:focus-visible { filter: brightness(1.05); }

.social-btn.facebook {
  background: #1877F2;          /* Facebook blue */
  color: #fff;
  border-color: rgba(0,0,0,.05);
}
.social-btn.facebook:hover,
.social-btn.facebook:focus-visible { filter: brightness(1.05); }

.social-btn.instagram {
  /* Instagram gradient */
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  border-color: rgba(0,0,0,.05);
}
.social-btn.instagram:hover,
.social-btn.instagram:focus-visible { filter: brightness(1.05); }

/* Ensure SVGs render inside the round buttons */
.floating-social .social-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
