/* ===== AL AZAZI  PREMIUM LAW FIRM CSS ===== */

/* --- GLOBAL RESET & BASE --- */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* --- HIDE WORDPRESS FOOTER CREDIT --- */
.powered-by-wordpress, .site-info, footer .wp-block-site-title + *, .has-powered-by a[href*="wordpress"], a[href*="wordpress.com"]:not(.wp-block-navigation-item__content) { display: none !important; }
footer a[href*="wordpress.org"], footer a[href*="wordpress.com"] { display: none !important; }
.wp-block-template-part footer p:last-child { display: none !important; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }
h1 { font-weight: 200 !important; }
h2 { font-weight: 300 !important; }

/* --- ANIMATIONS --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes lineGrow { from { width: 0; } to { width: 80px; } }
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* --- SCROLL REVEAL --- */
.wp-block-group, .wp-block-columns, .wp-block-cover, .wp-block-media-text, .wp-block-image { animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.wp-block-column:nth-child(1) { animation-delay: 0.05s; }
.wp-block-column:nth-child(2) { animation-delay: 0.15s; }
.wp-block-column:nth-child(3) { animation-delay: 0.25s; }
.wp-block-column:nth-child(4) { animation-delay: 0.35s; }

/* --- COVER BLOCKS (HERO SECTIONS) --- */
.wp-block-cover { transition: none; }
.wp-block-cover .wp-block-cover__inner-container { animation: fadeIn 1.2s ease both; animation-delay: 0.3s; }
.wp-block-cover__background { transition: opacity 0.6s ease; }

/* --- NAVIGATION --- */
.wp-block-navigation a { position: relative; transition: color 0.3s ease; }
.wp-block-navigation a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: #C9A96E; transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.wp-block-navigation a:hover::after { width: 100%; }
.wp-block-navigation a:hover { color: #C9A96E !important; }

/* --- BUTTONS --- */
.wp-block-button__link { transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important; letter-spacing: 0.12em !important; font-size: 13px !important; font-weight: 500 !important; text-transform: uppercase !important; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #C9A96E !important; color: #fff !important; border-color: #C9A96E !important; }

/* --- CARD HOVER EFFECTS --- */
.wp-block-column .wp-block-group { transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.wp-block-column .wp-block-group:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(10,25,47,0.12) !important; }

/* --- SEPARATOR STYLING --- */
.wp-block-separator { transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

/* --- IMAGES --- */
.wp-block-image img, .wp-block-media-text__media img { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease; }
.wp-block-image:hover img, .wp-block-media-text:hover .wp-block-media-text__media img { transform: scale(1.03); }

/* --- COVER PARALLAX --- */
.wp-block-cover.has-parallax { background-attachment: fixed; }

/* --- QUOTE STYLING --- */
.wp-block-quote { border-left: 3px solid #C9A96E !important; padding-left: 30px !important; }
.wp-block-quote p { font-style: italic; font-size: 20px !important; line-height: 1.7 !important; }

/* --- FOOTER CLEANUP --- */
footer.wp-block-template-part { border-top: 1px solid rgba(255,255,255,0.1); }

/* --- RESPONSIVE --- */
@media (max-width: 782px) {
	h1 { font-size: 36px !important; }
	h2 { font-size: 28px !important; }
	.wp-block-cover { min-height: 70vh !important; }
	.wp-block-columns { gap: 20px !important; }
}
}

/* ============================================================
   MOBILE RESPONSIVENESS — alazazi.com
   ============================================================ */

html, body { overflow-x: hidden !important; max-width: 100vw !important; }
*, *::before, *::after { box-sizing: border-box; }

@media (max-width: 1024px) {
  .wp-block-site-logo img, header img.wp-image-166, header img.wp-image-167 {
    width: 300px !important; max-width: 60vw !important; height: auto !important;
  }
  .wp-block-cover .wp-block-cover__inner-container, .wp-block-group__inner-container {
    padding-left: 30px !important; padding-right: 30px !important;
  }
  .wp-block-columns { flex-wrap: wrap !important; gap: 20px !important; }
  .wp-block-column { flex-basis: 100% !important; min-width: 0 !important; }
}

@media (max-width: 782px) {
  header .wp-block-group, header .wp-block-columns {
    flex-wrap: wrap !important; flex-direction: column !important;
    align-items: center !important; gap: 10px !important; padding: 10px 15px !important;
  }
  .wp-block-site-logo img, header img.wp-image-166, header img.wp-image-167, header .wp-block-image img {
    width: 220px !important; max-width: 70vw !important; height: auto !important;
  }
  .wp-block-navigation { font-size: 14px !important; flex-wrap: wrap !important; justify-content: center !important; gap: 5px 12px !important; }
  .wp-block-navigation__container { flex-wrap: wrap !important; justify-content: center !important; gap: 5px 12px !important; }
  .wp-block-navigation-item__content { padding: 4px 6px !important; font-size: 14px !important; }
  header .wp-block-button .wp-block-button__link { padding: 8px 16px !important; font-size: 13px !important; white-space: nowrap !important; }
  h1, .wp-block-heading[style*="font-size"] { font-size: 28px !important; line-height: 1.3 !important; }
  h2 { font-size: 22px !important; line-height: 1.3 !important; }
  h3 { font-size: 18px !important; line-height: 1.3 !important; }
  p, li { font-size: 15px !important; line-height: 1.6 !important; }
  .wp-block-cover { min-height: 50vh !important; padding: 40px 15px !important; }
  .wp-block-cover .wp-block-cover__inner-container { padding: 20px 15px !important; max-width: 100% !important; }
  .wp-block-cover[style*="background-attachment"] { background-attachment: scroll !important; }
  .wp-block-columns { flex-direction: column !important; flex-wrap: wrap !important; gap: 15px !important; }
  .wp-block-column { flex-basis: 100% !important; width: 100% !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  .wp-block-media-text { display: block !important; }
  .wp-block-media-text .wp-block-media-text__media { width: 100% !important; margin-bottom: 15px !important; }
  .wp-block-media-text .wp-block-media-text__content { width: 100% !important; padding: 15px !important; }
  .wp-block-image img, figure.wp-block-image { max-width: 100% !important; height: auto !important; }

  [style*="width:500px"], [style*="width: 500px"], [style*="width:600px"], [style*="width: 600px"],
  [style*="width:700px"], [style*="width: 700px"], [style*="width:800px"], [style*="width: 800px"] {
    width: 100% !important; max-width: 100% !important;
  }
  [style*="padding-top:100"], [style*="padding-top: 100"], [style*="padding-bottom:100"], [style*="padding-bottom: 100"] {
    padding-top: 40px !important; padding-bottom: 40px !important;
  }
  [style*="padding-top:8"], [style*="padding-top: 8"], [style*="padding-top:10"], [style*="padding-top: 10"] {
    padding-top: 35px !important;
  }
  [style*="padding-bottom:8"], [style*="padding-bottom: 8"], [style*="padding-bottom:10"], [style*="padding-bottom: 10"] {
    padding-bottom: 35px !important;
  }
  [style*="padding-left:6"], [style*="padding-left: 6"], [style*="padding-right:6"], [style*="padding-right: 6"],
  [style*="padding-left:40"], [style*="padding-left: 40"], [style*="padding-right:40"], [style*="padding-right: 40"] {
    padding-left: 15px !important; padding-right: 15px !important;
  }
  .wp-block-button .wp-block-button__link { padding: 12px 24px !important; font-size: 14px !important; max-width: 100% !important; }
  .wp-block-buttons { flex-wrap: wrap !important; justify-content: center !important; }
  .wp-block-gallery { columns: 1 !important; }
  .wp-block-gallery .wp-block-image { width: 100% !important; }
  .wp-block-spacer { height: 30px !important; }
  .wp-block-separator { margin: 20px auto !important; }
  .wp-block-table { overflow-x: auto !important; display: block !important; }
  footer .wp-block-columns { flex-direction: column !important; text-align: center !important; }
  footer .wp-block-column { flex-basis: 100% !important; margin-bottom: 20px !important; }
  blockquote, .wp-block-quote { padding: 15px 20px !important; margin: 15px 0 !important; }
}

@media (max-width: 480px) {
  .wp-block-site-logo img, header img.wp-image-166, header img.wp-image-167, header .wp-block-image img {
    width: 180px !important;
  }
  h1, .wp-block-heading[style*="font-size"] { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 16px !important; }
  .wp-block-cover { min-height: 40vh !important; padding: 30px 10px !important; }
  .wp-block-navigation { font-size: 13px !important; gap: 4px 8px !important; }
  .wp-block-navigation-item__content { padding: 3px 4px !important; font-size: 13px !important; }
  .wp-block-button .wp-block-button__link { display: block !important; text-align: center !important; width: 100% !important; }
  .wp-block-group__inner-container, .wp-block-cover .wp-block-cover__inner-container { padding: 15px 10px !important; }
}

@supports (-webkit-touch-callout: none) {
  .wp-block-cover[style*="background-attachment:fixed"], .wp-block-cover[style*="background-attachment: fixed"] {
    background-attachment: scroll !important;
  }
}
