/* Brand tokens extracted directly from the SOLA Property Management logo */
:root {
  --brand: #3f5188;
  --brand-dark: #2f3d68;
  --navy: #161f38;
  --tint: #b5c3ec;
  --tint-soft: #eef2fb;
  --brown: #6a4a46;
  --brown-light: #8c6560;
}

/* Selection highlight in Sola Blue (zero yellow anywhere) */
::selection {
  background-color: var(--brand);
  color: #fff;
}

/* ---------- Navbar: crisp white bar so the SOLA logo shines in its real colors ---------- */
#mainNav,
#mainNav.navbar-shrink {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(22, 31, 56, 0.08);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
#mainNav .navbar-brand {
  padding: 0;
  display: inline-flex;
  align-items: center;
}
#mainNav .navbar-brand img {
  height: 54px;
  width: auto;
  display: block;
  transition: height 0.3s ease, transform 0.3s ease;
}
#mainNav .navbar-brand:hover img {
  transform: scale(1.03);
}
#mainNav .navbar-nav .nav-item .nav-link {
  color: var(--navy) !important;
  position: relative;
  font-weight: 700;
  transition: color 0.25s ease;
}
#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--brand) !important;
}
#mainNav .navbar-toggler {
  background-color: var(--brand);
  color: #fff;
  border: none;
}
#mainNav .lang-btn {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: var(--brand);
  color: var(--brand);
  border-color: var(--brand);
  font-family: "Montserrat", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: 50rem;
  padding: 0.35rem 1rem;
}
#mainNav .lang-btn:hover {
  background-color: var(--brand);
  color: #fff;
}
@media (min-width: 992px) {
  #mainNav .navbar-nav .nav-item .nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0.5rem;
    bottom: 0.15rem;
    height: 2.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brown));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  #mainNav .navbar-nav .nav-item .nav-link:hover::after,
  #mainNav .navbar-nav .nav-item .nav-link.active::after {
    transform: scaleX(1);
  }
}
@media (max-width: 991.98px) {
  #mainNav .navbar-nav {
    padding-bottom: 0.5rem;
  }
}
#mainNav.navbar-shrink {
  background-color: rgba(255, 255, 255, 0.98) !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  box-shadow: 0 8px 28px rgba(22, 31, 56, 0.14) !important;
}
#mainNav.navbar-shrink .navbar-brand img {
  height: 44px !important;
}

/* ---------- Masthead: cool Sola Blue & Warm Brown grade over studio photo ---------- */
header.masthead {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: none;
  padding-top: 11.5rem;
  padding-bottom: 7.5rem;
}
header.masthead::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(22, 31, 56, 0.86) 0%, rgba(63, 81, 136, 0.76) 55%, rgba(106, 74, 70, 0.72) 100%),
    url("../assets/hero.jpg") center 40% / cover no-repeat;
  animation: hero-pan 18s ease-in-out infinite alternate;
}
header.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(181, 195, 236, 0.18), transparent 65%);
  pointer-events: none;
}
header.masthead .masthead-subheading {
  text-wrap: balance;
  color: var(--tint);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
}
header.masthead .masthead-heading {
  line-height: 1.18;
  text-shadow: 0 8px 30px rgba(12, 18, 36, 0.45);
}
header.masthead .btn-primary {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-color: var(--brand-dark);
  --bs-btn-hover-bg: var(--tint);
  --bs-btn-hover-border-color: var(--tint);
  --bs-btn-hover-color: var(--navy);
  --bs-btn-active-bg: var(--tint);
  --bs-btn-active-color: var(--navy);
  border-radius: 50rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  header.masthead {
    padding-top: 14.5rem;
    padding-bottom: 10rem;
  }
  header.masthead .masthead-heading {
    font-size: 3.75rem;
    line-height: 1.15;
  }
}

/* Animated equalizer bars in Masthead */
.hero-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  height: 26px;
  margin-bottom: 1.25rem;
  padding: 6px 14px;
  border-radius: 50rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(181, 195, 236, 0.3);
  backdrop-filter: blur(6px);
}
.hero-eq span {
  display: block;
  width: 3.5px;
  background: var(--tint);
  border-radius: 3px;
  animation: eq-bounce 1.2s ease-in-out infinite;
}
.hero-eq span:nth-child(1) { height: 8px; animation-delay: 0s; }
.hero-eq span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.hero-eq span:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.hero-eq span:nth-child(4) { height: 16px; animation-delay: 0.15s; }
.hero-eq span:nth-child(5) { height: 9px; animation-delay: 0.35s; }

/* ---------- Section Headings & Alternating Backgrounds ---------- */
.section-heading {
  color: var(--navy);
}
.section-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 3.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brown));
  margin: 1rem auto 0;
  transform-origin: center;
}
html[lang="ar"] .section-heading::after {
  margin-inline: auto;
}
.page-section.bg-light {
  background-color: var(--tint-soft) !important;
}

/* ---------- About Us: High-Clarity Executive Summary & Equal-Height Entity Cards ---------- */
.about-lead-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: 1.15rem;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 16px 40px rgba(22, 31, 56, 0.14);
  position: relative;
  overflow: hidden;
}
.about-badge {
  display: inline-block;
  background: rgba(181, 195, 236, 0.18);
  color: var(--tint);
  border: 1px solid rgba(181, 195, 236, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 50rem;
}
.about-lead-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
}
.about-lead-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.75;
}
.about-lead-text strong {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(181, 195, 236, 0.5);
  text-underline-offset: 3px;
}
.director-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(181, 195, 236, 0.28);
  border-radius: 0.9rem;
  padding: 1.5rem 1.4rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.director-label {
  color: var(--tint);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}
.director-name {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}
.director-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.entity-card {
  background: #fff;
  border: 1px solid rgba(63, 81, 136, 0.18);
  border-top: 5px solid var(--brand);
  border-radius: 1.1rem;
  box-shadow: 0 12px 34px rgba(22, 31, 56, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
  overflow: hidden;
}
.entity-card.entity-card-accent {
  border-top-color: var(--brown);
}
.entity-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 46px rgba(63, 81, 136, 0.15);
}
.entity-card-header {
  background: var(--tint-soft);
  padding: 1.6rem 1.85rem 1.35rem;
  border-bottom: 1px solid rgba(63, 81, 136, 0.1);
}
.entity-card-accent .entity-card-header {
  background: linear-gradient(135deg, rgba(106, 74, 70, 0.08), rgba(238, 242, 251, 0.6));
}
.entity-role-pill {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.85rem;
  border-radius: 50rem;
}
.entity-role-pill.pill-brown {
  background: var(--brown);
}
.entity-name {
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 700;
}
.entity-name-ar {
  color: var(--brown);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.entity-card-body {
  padding: 1.25rem 1.85rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.entity-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(63, 81, 136, 0.15);
}
.entity-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.entity-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
}
.entity-val {
  font-size: 0.98rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}
.entity-val.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--brand-dark);
  font-weight: 700;
}
.entity-val a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(63, 81, 136, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.entity-val a:hover {
  color: var(--brown);
  text-decoration-color: var(--brown);
}

/* ---------- Official Channel Links Bar in Portfolio ---------- */
.channel-links-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  border-radius: 50rem;
  font-family: "Montserrat", "IBM Plex Sans Arabic", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--tint-soft);
  color: var(--navy);
  border: 1px solid rgba(63, 81, 136, 0.22);
  box-shadow: 0 6px 18px rgba(22, 31, 56, 0.06);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.channel-pill:hover {
  transform: translateY(-3px);
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 12px 26px rgba(63, 81, 136, 0.22);
}
.channel-pill.channel-pill-primary {
  background: linear-gradient(135deg, var(--brown), var(--brand-dark));
  color: #fff;
  border-color: transparent;
}
.channel-pill.channel-pill-primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brown));
  color: #fff;
}
.portfolio-group-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Montserrat", "IBM Plex Sans Arabic", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-dark);
  background: var(--tint-soft);
  border: 1px solid rgba(63, 81, 136, 0.18);
  padding: 0.4rem 1.05rem;
  border-radius: 50rem;
}
html[lang="ar"] .portfolio-group-label {
  letter-spacing: 0;
}

/* ---------- Services: interactive equal-height cards with floating icon animation ---------- */
#services .service-card {
  background: #fff;
  border: 1px solid rgba(63, 81, 136, 0.12);
  border-radius: 1rem;
  padding: 2.25rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(22, 31, 56, 0.05);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}
#services .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brown));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#services .service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 44px rgba(63, 81, 136, 0.14);
  border-color: rgba(63, 81, 136, 0.3);
}
#services .service-card:hover::before {
  transform: scaleX(1);
}
#services .fa-stack {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: icon-float 4.5s ease-in-out infinite;
}
#services .col-md-4:nth-child(2) .fa-stack {
  animation-delay: 0.8s;
}
#services .col-md-4:nth-child(3) .fa-stack {
  animation-delay: 1.6s;
}
#services .service-card:hover .fa-stack {
  transform: scale(1.12) rotate(-3deg);
}
#services .service-card:hover .fa-circle {
  color: var(--brown) !important;
  transition: color 0.35s ease;
}

/* ---------- Portfolio: smooth zoom & pulsing play button ---------- */
#portfolio .portfolio-item {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(63, 81, 136, 0.12);
  box-shadow: 0 12px 32px rgba(22, 31, 56, 0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
#portfolio .portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(63, 81, 136, 0.18);
}
.portfolio-item .portfolio-link {
  overflow: hidden;
  display: block;
}
.portfolio-item .portfolio-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.portfolio-item:hover .portfolio-link img {
  transform: scale(1.08);
}
#portfolio .portfolio-item .portfolio-link .portfolio-hover {
  background: linear-gradient(135deg, rgba(63, 81, 136, 0.88), rgba(106, 74, 70, 0.85));
  backdrop-filter: blur(3px);
}
#portfolio .portfolio-item .portfolio-link:hover .portfolio-hover-content svg,
#portfolio .portfolio-item .portfolio-link:hover .portfolio-hover-content i {
  animation: pulse-scale 1s ease-in-out infinite alternate;
}
.portfolio-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portfolio-caption .portfolio-caption-heading {
  text-wrap: balance;
  color: var(--navy);
}
.portfolio-caption .portfolio-caption-subheading {
  font-size: 0.9rem;
}

/* ---------- Contact section: Equal-height spaced cards in brand navy ---------- */
section#contact {
  background-image: radial-gradient(circle at 80% 20%, rgba(63, 81, 136, 0.32), transparent 55%),
                    radial-gradient(circle at 20% 80%, rgba(106, 74, 70, 0.28), transparent 55%);
  background-color: var(--navy);
}
#contact .section-heading {
  color: #fff;
}
#contact .section-heading::after {
  background: linear-gradient(90deg, var(--tint), var(--brown-light));
}
#contact .section-subheading {
  color: rgba(255, 255, 255, 0.78) !important;
}
#contact .contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(181, 195, 236, 0.2);
  border-radius: 1rem;
  padding: 1.85rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#contact .contact-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--tint);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}
#contact .contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(181, 195, 236, 0.14);
  color: var(--tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
#contact .contact-card:hover .contact-card-icon {
  transform: scale(1.1);
  background: var(--brand);
  color: #fff;
}
#contact .contact-card h4 {
  color: var(--tint);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
#contact .contact-card p {
  line-height: 1.75;
}
#contact .contact-card a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
#contact .contact-card a:hover {
  color: var(--tint);
  border-color: var(--tint);
}
#contact .form-hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}
.form-control {
  border-radius: 0.6rem;
  border: 1px solid rgba(181, 195, 236, 0.3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(63, 81, 136, 0.28);
}

/* ---------- Buttons & Footer ---------- */
.btn {
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22, 31, 56, 0.24);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
#contact .btn-primary {
  border-radius: 50rem;
  background: linear-gradient(135deg, var(--brand), var(--brown));
  border: none;
  padding-inline: 2.75rem;
}
#contact .btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brown));
}
.footer {
  border-top: 1px solid rgba(22, 31, 56, 0.08);
  background-color: #fff;
}
.footer .btn-social {
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.footer .btn-social:hover {
  transform: translateY(-4px) scale(1.06);
  background-color: var(--brand);
  border-color: var(--brand);
}

/* ---------- Arabic / RTL ---------- */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .nav-link,
html[lang="ar"] .btn,
html[lang="ar"] .masthead-heading,
html[lang="ar"] .masthead-subheading,
html[lang="ar"] .section-heading,
html[lang="ar"] .section-subheading,
html[lang="ar"] .navbar-brand,
html[lang="ar"] .about-badge,
html[lang="ar"] .director-label,
html[lang="ar"] .entity-role-pill,
html[lang="ar"] .entity-label {
  font-family: "IBM Plex Sans Arabic", "Montserrat", sans-serif;
  letter-spacing: 0;
}
html[lang="ar"] .masthead-subheading,
html[lang="ar"] .section-subheading,
html[lang="ar"] .portfolio-caption-subheading {
  font-style: normal;
}
html[lang="ar"] .masthead-heading {
  line-height: 1.4;
}
html[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
html[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
html[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
html[dir="rtl"] .text-lg-end { text-align: left !important; }
@media (min-width: 992px) {
  html[dir="rtl"] .text-lg-start { text-align: right !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
  header.masthead { padding-top: 8.5rem; padding-bottom: 4.5rem; }
  header.masthead .masthead-subheading { font-size: 1.05rem; line-height: 1.5; margin-bottom: 1rem; }
  header.masthead .masthead-heading { font-size: 2.05rem; line-height: 1.25; margin-bottom: 1.75rem; }
  html[lang="ar"] header.masthead .masthead-heading { font-size: 1.95rem; line-height: 1.45; }
  header.masthead .btn-xl { padding: 1rem 1.85rem; font-size: 1rem; }
  .page-section { padding: 4.5rem 0; }
  .page-section h2.section-heading { font-size: 1.9rem; }
  .page-section h3.section-subheading { margin-bottom: 2.75rem; }
  .about-lead-card { padding: 1.5rem 1.25rem; }
  .about-lead-title { font-size: 1.25rem; }
  .entity-card-header, .entity-card-body { padding-inline: 1.25rem; }
  #contact .form-group { margin-bottom: 1rem; }
  #contact form#contactForm .form-group input,
  #contact form#contactForm .form-group textarea { padding: 1rem; }
  .footer .row > div { text-align: center !important; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  header.masthead .masthead-heading { font-size: 2.85rem; line-height: 1.2; }
  .portfolio-item { margin-bottom: 0; }
  .portfolio-caption .portfolio-caption-heading { font-size: 1.1rem; }
  .portfolio-caption { padding: 1.25rem 0.75rem; }
}

/* ---------- Keyframe Animations & Scroll Reveal ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(36px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hero-pan {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.45); opacity: 0.7; }
  50%      { transform: scaleY(1.25); opacity: 1; }
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes pulse-scale {
  from { transform: scale(1); }
  to   { transform: scale(1.18); }
}

@media (prefers-reduced-motion: no-preference) {
  #mainNav {
    animation: fade-in 0.6s ease-out both;
  }
  header.masthead .hero-eq {
    animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }
  header.masthead .masthead-subheading {
    animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s both;
  }
  header.masthead .masthead-heading {
    animation: fade-up 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) 0.38s both;
  }
  header.masthead .btn {
    animation: fade-up 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) 0.54s both;
  }

  /* Reliable time-based scroll reveal via IntersectionObserver */
  .js .reveal {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    transition:
      opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 0.12s);
    will-change: opacity, transform;
  }
  .js .reveal.in {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .js .section-heading.reveal::after {
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
  }
  .js .section-heading.reveal.in::after {
    transform: scaleX(1);
  }
}
