:root{
  --red:#d92a2a; /* Sonax red */
  --dark:#111;
  --muted:#f5f5f5;
  --text:#222;
  --accent:#777;
  font-family: 'Tajawal', sans-serif;
}
*{box-sizing:border-box}
body{margin:0;color:var(--text);background:white;line-height:1.6}
.container{max-width:1200px;margin:0 auto;padding:20px}

/* ===== HEADER IMPROVEMENTS ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #b30000 0%, var(--red) 50%, #ff2323 100%);
  box-shadow: 0 4px 20px rgba(217, 42, 42, 0.3);
  border-bottom: 3px solid rgba(255,255,255,0.1);
  min-height: 80px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  animation: headerShine 5s ease-in-out infinite;
  pointer-events: none;
  
}

@keyframes headerShine {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

.site-header > * { position: relative; z-index: 1; }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width: 100%;
  padding: 0 20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: translateY(-2px);
}

/* Logo Switcher Animation - Enhanced */
.logo-switcher{
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.logo-switcher .logo-item{
  position: absolute;
  width: 85px;
  height: 85px;
  object-fit: contain;
  transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0) invert(1);
}

.logo-switcher .logo-svg{
  animation: logoFadeInOut 6s ease-in-out infinite;
}

.logo-switcher .logo-png{
  animation: logoFadeInOut 6s ease-in-out infinite 3s;
}

/* Enlarge the al-salam PNG logo specifically (header + footer)
   Minimal, targeted change so other layout/identity unaffected */
.logo-switcher .logo-png {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.logo-switcher-footer .logo-png-footer {
  width: 160px;
  height: 65px;
  object-fit: contain;
}

@keyframes logoFadeInOut {
  0%, 40% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50%, 90% {
    opacity: 0;
    transform: scale(0.85) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.brand-text h1{
  margin:0;
  font-size:22px;
  color:#ffffff;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.tagline{
  margin:0;
  color:rgba(255,255,255,0.95);
  font-size:14px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a{
  padding: 8px 16px;
  text-decoration:none;
  color:#ffffff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.main-nav a:hover{
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.main-nav a:hover::after {
  width: 70%;
}

.btn{
  display:inline-block;
  padding:12px 24px;
  border-radius:25px;
  text-decoration:none;
  font-weight:700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 15px;
}

.btn.primary{
  background: #ffffff;
  color: var(--red);
  border: 2px solid transparent;
}

.btn.primary:hover{
  background: var(--red);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.btn.outline{
  border:2px solid var(--red);
  color:var(--red);
  background:transparent;
}

.btn.outline:hover{
  background:var(--red);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(217,42,42,0.3);
}

.btn.small{padding:8px 16px;font-size:14px}

/* ===== FOOTER IMPROVEMENTS ===== */
footer {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #f9f9f9;
  padding: 50px 0 20px;
  margin-top: 80px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  border-top: 4px solid var(--red);
}

footer::before{
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(217, 42, 42, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(217, 42, 42, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

footer > * { position: relative; z-index: 1; }

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid rgba(217, 42, 42, 0.3);
}

.footer-logo,
.footer-links,
.footer-contact {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}

.footer-logo:hover,
.footer-links:hover,
.footer-contact:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(217,42,42,0.2);
}

.footer-logo h2 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
}

.footer-logo p {
  color: #d6d6d6;
  font-size: 14px;
  line-height: 1.8;
}

/* Footer Logo Switcher - Enhanced */
.logo-switcher-footer{
  position: relative;
  width: 110px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 8px rgba(217,42,42,0.3));
}

.logo-switcher-footer .logo-item-footer{
  position: absolute;
  width: 110px;
  height: 45px;
  object-fit: contain;
  transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-switcher-footer .logo-svg-footer{
  animation: logoFadeInOutFooter 6s ease-in-out infinite;
}

.logo-switcher-footer .logo-png-footer{
  animation: logoFadeInOutFooter 6s ease-in-out infinite 3s;
}

@keyframes logoFadeInOutFooter {
  0%, 40% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50%, 90% {
    opacity: 0;
    transform: scale(0.85) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
  padding-right: 20px;
  position: relative;
}

.footer-links ul li::before {
  content: '◀';
  position: absolute;
  right: 0;
  color: var(--red);
  font-size: 12px;
  transition: all 0.3s ease;
}

.footer-links ul li:hover::before {
  right: -5px;
}

.footer-links ul li a {
  color:#d6d6d6;
  transition: all 0.3s ease;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--red);
  transform: translateX(-5px);
}

.footer-contact p {
  margin-bottom: 12px;
  color: #d6d6d6;
  font-size: 15px;
  padding-right: 25px;
  position: relative;
}

.footer-contact p::before {
  content: '●';
  position: absolute;
  right: 0;
  color: var(--red);
  font-size: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #bdbdbd;
  letter-spacing: 0.5px;
}

/* ===== SERVICES PAGE IMPROVEMENTS ===== */
.section-title {
  font-size: 2.5rem;
  color: var(--red);
  font-weight: 900;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to left, var(--red), transparent);
  border-radius: 2px;
}

/* Card improvements for all pages */
.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(217,42,42,0.25);
}

.card img,
.carousel-inner img {
  transition: transform 0.3s ease;
}

.card:hover img,
.card:hover .carousel-inner img {
  transform: scale(1.05);
}

.card h5 {
  color: var(--red);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.card p {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
}

.card p strong {
  color: var(--red);
  font-weight: 700;
}

.hero-ctas {
  text-align: center;
  margin-top: 50px;
  padding: 40px 0;
  background: linear-gradient(135deg, rgba(217,42,42,0.05) 0%, transparent 100%);
  border-radius: 20px;
}

/* ===== ABOUT PAGE IMPROVEMENTS ===== */
.lead {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.9;
  font-weight: 500;
}

.text-bold {
  font-weight: 600;
}

/* Brush background - Enhanced */
.brush-decor-wrap{
  position: relative;
  padding: 40px 20px;
  border-radius: 20px;
  overflow: hidden;
  margin: 40px 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(217,42,42,0.15), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(26,26,26,0.08), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 2px solid rgba(217,42,42,0.1);
}

.brush-decor-wrap .brush-shape{
  position: absolute;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: multiply;
}

.brush-decor-wrap .top-right{ 
  top:-40px; 
  right:-40px; 
  width:280px; 
}

.brush-decor-wrap .bottom-left{ 
  bottom:-40px; 
  left:-40px; 
  width:260px; 
}

.brush-decor-wrap img {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.brush-decor-wrap img:hover {
  transform: scale(1.05);
}

/* ===== BOOKING PAGE IMPROVEMENTS ===== */
.booking-page .card {
  background: #ffffff;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.booking-page .form-label {
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.booking-page .form-control,
.booking-page .form-select {
  border: 2px solid #e0e0e0;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.booking-page .form-control:focus,
.booking-page .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 0.2rem rgba(217,42,42,0.15);
  transform: translateY(-2px);
}

.booking-page .btn-danger {
  background: linear-gradient(135deg, var(--red) 0%, #b30000 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(217,42,42,0.3);
  transition: all 0.3s ease;
}

.booking-page .btn-danger:hover {
  background: linear-gradient(135deg, #b30000 0%, var(--red) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217,42,42,0.4);
}

/* Hero */
.hero{
  padding:50px 0;
  background:linear-gradient(180deg, #fff 60%, #fbfbfb);
}

.hero-grid{
  display:flex;
  gap:30px;
  align-items:center;
  justify-content:space-between;
}

.hero-text h2{
  font-size:32px;
  margin:0 0 15px;
  font-weight: 800;
  color: var(--red);
}

.hero-text p{
  margin:0 0 20px;
  color:var(--accent);
  font-size: 16px;
  line-height: 1.7;
}

/* Responsive */
@media(max-width:900px){
  .hero-grid{flex-direction:column}
  .grid{grid-template-columns:repeat(1,1fr)}
  .header-inner{flex-direction:column;align-items:flex-start;gap:10px}
  .main-nav{flex-wrap:wrap}
  .footer-content{grid-template-columns:1fr}
}

/* Mobile-specific improvements (preserve colors/identity) */
@media (max-width: 768px) {
  .site-header {
    min-height: 64px;
    padding: 6px 12px;
    background-size: cover;
  }

  .header-inner{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 6px 12px;
  }

  .logo-switcher{width:60px;height:60px}
  .logo-switcher .logo-item{width:54px;height:54px}

  .brand{gap:10px}
  .brand-text h1{font-size:16px}
  .tagline{font-size:12px}

  /* hide desktop links (already toggled by markup) and style mobile toggler */
  .main-nav .d-none.d-lg-flex{display:none!important}
  .nav-toggler{
    background:transparent;
    border:2px solid rgba(255,255,255,0.12);
    color:#fff;
    border-radius:8px;
    padding:6px 10px;
    font-size:18px;
    line-height:1;
  }
  .nav-toggler:focus{box-shadow:0 0 0 0.2rem rgba(217,42,42,0.12)}

  .hero{padding:28px 0}
  .hero-text h2{font-size:22px}
  .hero-grid{gap:18px}

  .btn{padding:10px 14px;font-size:14px}
  .btn.primary{padding:8px 12px}

  .card{border-radius:12px}
  .container{padding:12px}

  /* compact footer */
  footer{padding:28px 0 18px}
  .footer-content{gap:18px}
  .footer-logo h2{font-size:1.1rem}
  .footer-logo p,.footer-contact p,.footer-links ul li a{font-size:14px}

  /* offcanvas tweaks */
  .offcanvas { width: 85%; }
  .offcanvas .offcanvas-header { padding: 12px 16px; }
  .offcanvas .offcanvas-body { padding: 12px 16px; }
  .offcanvas .nav-link{font-size:16px;padding:12px 8px}
  .offcanvas .badge{left:6px; top:4px}
}

@media (max-width: 420px) {
  .logo-switcher{width:50px;height:50px}
  .logo-switcher .logo-item{width:46px;height:46px}
  .brand-text h1{font-size:14px}
  .tagline{font-size:11px}
  .nav-toggler{padding:6px 8px;font-size:16px}
  .hero-text p{font-size:14px}
  .footer-logo p,.footer-contact p,.footer-links ul li a{font-size:13px}
  .offcanvas { width: 92%; }
}

/* Minimal change: set offcanvas/menu link color only (no other modifications) */
.offcanvas .nav-link,
.offcanvas a.nav-link,
.offcanvas .main-nav a {
  color: var(--text) !important;
}
