/* ─── Azzara Group Custom Styles ─── */
/* Advanced effects that go beyond theme.json capabilities */

:root {
  --azzara-digital: #2563eb;
  --azzara-digital-bg: rgba(37,99,235,0.07);
  --azzara-digital-glow: rgba(37,99,235,0.15);
  --azzara-sourcing: #0d9488;
  --azzara-sourcing-bg: rgba(13,148,136,0.07);
  --azzara-sourcing-glow: rgba(13,148,136,0.15);
  --azzara-branding: #7c3aed;
  --azzara-branding-bg: rgba(124,58,237,0.07);
  --azzara-branding-glow: rgba(124,58,237,0.15);
  --azzara-umbrella: #ea580c;
  --azzara-umbrella-bg: rgba(234,88,12,0.07);
  --azzara-umbrella-glow: rgba(234,88,12,0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

body > .wp-site-blocks {
  overflow-x: clip;
}

/* Remove root padding gap between sticky header and content */
body > .wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body > .wp-site-blocks > * + *,
.entry-content > * + *,
.wp-block-post-content > * + * {
  margin-block-start: 0 !important;
}

/* ─── Sticky Header ─── */
header.wp-block-template-part {
  position: sticky !important;
  top: 0 !important;
  z-index: 999;
}

.admin-bar header.wp-block-template-part {
  top: 32px !important;
}

/* ─── Nav Dropdown ─── */
.wp-block-navigation .wp-block-navigation__submenu-container {
  background: #0c1829 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 8px !important;
  padding: 0.5rem 0 !important;
  min-width: 200px;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.5rem 1.2rem !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.82rem !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06) !important;
}

/* ─── Nav CTA Button ─── */
.azzara-nav-cta a {
  padding: 0.55rem 1.6rem !important;
  background: var(--azzara-digital) !important;
  color: white !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.azzara-nav-cta a:hover {
  background: #3b82f6 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

/* Nav link opacity */
.wp-block-navigation a:not(.azzara-nav-cta a) {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.wp-block-navigation a:not(.azzara-nav-cta a):hover {
  opacity: 1;
}

/* ─── Gradient Text ─── */
.azzara-gradient-text {
  background: linear-gradient(135deg, #60a5fa, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.azzara-brand-gradient {
  background: linear-gradient(135deg, #2563eb, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero Grid Background ─── */
.azzara-hero-grid-bg {
  position: relative;
}

.azzara-hero-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.azzara-hero-grid-bg::after {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(13,148,136,0.05) 40%, transparent 70%);
  pointer-events: none;
}

/* ─── Stat Cards ─── */
.is-style-azzara-stat-card {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.is-style-azzara-stat-card:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  transform: translateY(-2px);
}

/* ─── Division Cards ─── */
.is-style-azzara-card {
  background: #ffffff;
  border: 1px solid #eceae4;
  border-radius: 14px !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  position: relative;
  height: 100%;
}

.is-style-azzara-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: transparent;
}

/* Division accent top bars */
.azzara-card-digital { border-top: 3px solid transparent; }
.azzara-card-digital:hover { border-top-color: #2563eb; }
.azzara-card-sourcing { border-top: 3px solid transparent; }
.azzara-card-sourcing:hover { border-top-color: #0d9488; }
.azzara-card-branding { border-top: 3px solid transparent; }
.azzara-card-branding:hover { border-top-color: #7c3aed; }
.azzara-card-umbrella { border-top: 3px solid transparent; }
.azzara-card-umbrella:hover { border-top-color: #ea580c; }

/* Make entire card clickable via the "Discover" link */
.is-style-azzara-card {
  position: relative;
}

.is-style-azzara-card .azzara-card-link a {
  text-decoration: none;
}

.is-style-azzara-card .azzara-card-link a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.is-style-azzara-card:hover {
  cursor: pointer;
}

/* ─── Division Icons ─── */
.azzara-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s;
  line-height: 0;
}

.azzara-icon svg {
  display: block;
}

.azzara-icon-digital { background: var(--azzara-digital-bg); color: var(--azzara-digital); }
.azzara-icon-sourcing { background: var(--azzara-sourcing-bg); color: var(--azzara-sourcing); }
.azzara-icon-branding { background: var(--azzara-branding-bg); color: var(--azzara-branding); }
.azzara-icon-umbrella { background: var(--azzara-umbrella-bg); color: var(--azzara-umbrella); }

.is-style-azzara-card:hover .azzara-icon-digital {
  background: var(--azzara-digital-glow);
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}
.is-style-azzara-card:hover .azzara-icon-sourcing {
  background: var(--azzara-sourcing-glow);
  box-shadow: 0 4px 12px rgba(13,148,136,0.15);
}
.is-style-azzara-card:hover .azzara-icon-branding {
  background: var(--azzara-branding-glow);
  box-shadow: 0 4px 12px rgba(124,58,237,0.15);
}
.is-style-azzara-card:hover .azzara-icon-umbrella {
  background: var(--azzara-umbrella-glow);
  box-shadow: 0 4px 12px rgba(234,88,12,0.15);
}

/* ─── Tags ─── */
.azzara-tag {
  padding: 0.22rem 0.6rem;
  background: #f3f1ec;
  border: 1px solid #eceae4;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #5a6478;
  display: inline-block;
}

/* ─── Trust Dot ─── */
.azzara-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── About Metric Cards ─── */
.azzara-metric-card {
  background: #ffffff;
  border: 1px solid #eceae4;
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
}

.azzara-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* ─── Testimonial Cards ─── */
.azzara-testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2.2rem 1.8rem;
  transition: all 0.3s;
  height: 100%;
}

.azzara-testimonial-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

/* ─── Division Badge ─── */
.azzara-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.azzara-badge-digital { background: rgba(37,99,235,0.15); color: #60a5fa; }
.azzara-badge-sourcing { background: rgba(13,148,136,0.15); color: #2dd4bf; }
.azzara-badge-branding { background: rgba(124,58,237,0.15); color: #a78bfa; }
.azzara-badge-umbrella { background: rgba(234,88,12,0.15); color: #fb923c; }

/* ─── Divider Line ─── */
.azzara-divider {
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* ─── Section Label ─── */
.azzara-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8b93a3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.azzara-section-label::before,
.azzara-section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: #e2e0da;
}

.azzara-section-label-dark {
  color: rgba(255,255,255,0.35);
}

.azzara-section-label-dark::before,
.azzara-section-label-dark::after {
  background: rgba(255,255,255,0.1);
}

/* ─── Hero Label ─── */
.azzara-hero-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.azzara-hero-label::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, #2563eb, #0d9488);
}

/* ─── Curve Transition ─── */
.azzara-curve-transition {
  height: 80px;
  background: #0c1829;
  position: relative;
}

.azzara-curve-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #f8f7f4;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ─── CTA Glow ─── */
.azzara-cta-glow {
  position: relative;
}

.azzara-cta-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Buttons ─── */
.wp-block-button.is-style-azzara-outline .wp-block-button__link {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}

.wp-block-button.is-style-azzara-outline .wp-block-button__link:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.wp-block-button.is-style-azzara-dark .wp-block-button__link {
  background: #0c1829;
  color: #fff;
}

.wp-block-button.is-style-azzara-dark .wp-block-button__link:hover {
  background: #162038;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,24,41,0.2);
}

/* ─── Brand Font ─── */
.azzara-brand-font,
h1 .azzara-brand-font,
h2 .azzara-brand-font,
.has-heading-font-family .azzara-brand-font {
  font-family: var(--wp--preset--font-family--brand), sans-serif !important;
  font-style: normal !important;
}

/* ─── CTA Brand Name ─── */
.azzara-cta-brand {
  font-family: var(--wp--preset--font-family--brand), sans-serif;
  color: #2b4279;
  font-style: normal;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* ─── Logo ─── */
.azzara-logo-link {
  display: block;
  line-height: 0;
}

.azzara-logo-link img {
  display: block;
  max-width: 140px;
  height: auto;
}

/* Center logo in footer */
.wp-block-group.has-navy-background-color > .wp-block-shortcode {
  text-align: center;
}

/* ─── Footer Division Links ─── */
.azzara-footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

/* ─── Animations ─── */
@keyframes azzaraFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes azzaraFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.azzara-animate-fade-up {
  opacity: 0;
  animation: azzaraFadeUp 0.8s ease forwards;
}

.azzara-animate-delay-1 { animation-delay: 0.2s; }
.azzara-animate-delay-2 { animation-delay: 0.35s; }
.azzara-animate-delay-3 { animation-delay: 0.5s; }
.azzara-animate-delay-4 { animation-delay: 0.65s; }

.azzara-animate-fade-in {
  opacity: 0;
  animation: azzaraFadeIn 1s ease 0.5s forwards;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .azzara-hero-grid-bg::after {
    width: 400px;
    height: 400px;
  }
}

/* ─── Reverse Curve Transition (Light to Dark) ─── */
.azzara-curve-transition-reverse {
  height: 80px;
  background: #f8f7f4;
  position: relative;
}

.azzara-curve-transition-reverse::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #0c1829;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ─── Section with Rounded Top (replaces separate curve transitions) ─── */
.azzara-cover-rounded-top,
.azzara-section-rounded-top {
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .azzara-cover-rounded-top,
  .azzara-section-rounded-top {
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
  }
}

/* ─── Division Page: Step Numbers ─── */
.azzara-step-number {
  width: 44px;
  height: 44px;
  border: 2px solid var(--azzara-digital);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 1.1rem;
  font-weight: 700;
  color: #60a5fa;
  margin: 0 auto 1rem;
}

/* ─── Division Page: Platform Badges ─── */
.azzara-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: #ffffff;
  border: 1px solid #eceae4;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e2536;
  transition: all 0.3s;
}

.azzara-platform-badge:hover {
  border-color: var(--azzara-digital);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
  transform: translateY(-2px);
}

/* ─── Division Page: Metric Highlight ─── */
.azzara-metric-highlight {
  color: #60a5fa;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 700;
}

/* ─── Division Page: Service List ─── */
.azzara-service-list {
  list-style: none;
  padding-left: 0 !important;
  margin: 1rem 0;
}

.azzara-service-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: #5a6478;
  line-height: 1.8;
}

.azzara-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azzara-digital);
}

/* ─── FAQ Accordion ─── */
.azzara-faq-item {
  cursor: pointer;
}

.azzara-faq-item summary {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wp--preset--color--navy, #0c1829);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.azzara-faq-item summary::-webkit-details-marker {
  display: none;
}

.azzara-faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: #8b93a3;
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}

.azzara-faq-item[open] summary::after {
  content: '−';
  color: var(--azzara-digital);
}

.azzara-faq-item summary:hover {
  color: var(--azzara-digital);
}

.azzara-faq-item[open] summary {
  color: var(--azzara-digital);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .azzara-curve-transition,
  .azzara-curve-transition-reverse {
    height: 40px;
  }

  .azzara-curve-transition::after,
  .azzara-curve-transition-reverse::after {
    height: 40px;
  }
}
