/* ==========================================================================
   MAYA INVESTMENT — red design system layer over the base template.
   Deep red primary, warm charcoal neutrals, serif display type.
   Minimal: no glow, no gradients beyond tasteful overlays, calm motion.
   ========================================================================== */

:root {
  --brand:       #B91C1C;  /* primary red */
  --brand-deep:  #7F1D1D;  /* hover / depth */
  --brand-soft:  #FBECEC;  /* tinted wash */
  --ink:         #16181D;  /* warm charcoal */
  --ink-soft:    #3A3F47;
  --paper:       #FFFFFF;
  --paper-warm:  #F7F6F4;
  --muted:       #5B6470;

  /* Remap template variables to the red system */
  --navy:        var(--ink);
  --navy-deep:   #0C0D10;
  --navy-mid:    var(--brand);
  --navy-light:  #D43D3D;
  --blue-soft:   var(--brand-soft);
  --text:        var(--ink);
  --text-muted:  var(--muted);
  --off-white:   var(--paper-warm);
  --border:      rgba(22, 24, 29, 0.1);
  --border-mid:  rgba(22, 24, 29, 0.18);
  --shadow-sm:   0 2px 8px rgba(22, 24, 29, 0.06);
  --shadow-md:   0 6px 24px rgba(22, 24, 29, 0.08);
  --shadow-lg:   0 16px 48px rgba(22, 24, 29, 0.1);
  --shadow-xl:   0 24px 64px rgba(22, 24, 29, 0.14);
}

::selection { background: var(--brand); }

/* Buttons: dark by default, red on hover */
.btn-navy:hover {
  background: var(--brand);
  border-color: var(--brand);
}

/* Eyebrow labels carry the red accent */
.eyebrow { color: var(--brand); }

/* Links inside body copy */
a:hover { color: var(--brand); }

/* Dropdown + nav active states */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: var(--brand); }
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus { color: var(--brand); }

/* Service / feature icons: red mark on soft tint */
.svc-icon, .feat-icon, .ov-icon {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}

/* Section rule accent */
.rule { background: var(--brand); }

/* Footer bottom hairline */
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* ==========================================================================
   Hero slider (shared video layer, per-slide text crossfade)
   ========================================================================== */
.hero { position: relative; background: #101216; }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #101216;
}
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-bg-layer.active { opacity: 1; }
.hero-media-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(10, 11, 14, 0.55);
  pointer-events: none;
}
.hero .hero-inner,
.hero .hero-slider-nav { position: relative; z-index: 4; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade 0.9s ease; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-slider-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2.25rem;
}
.hero-dot {
  width: 26px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
}
.hero-dot.active { background: var(--brand-light, #E05757); }
.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}
.hero-arrow:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.hero-slide-count {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
}

/* Dropdown caret (desktop + mobile) — replaces Bootstrap's default triangle */
.nav-link.dropdown-toggle::after { display: none; }
.nav-link .dropdown-caret {
  display: inline-block;
  font-size: 0.62rem;
  margin-left: 0.4rem;
  vertical-align: baseline;
  transition: transform 0.25s ease;
}
.nav-link[aria-expanded="true"] .dropdown-caret { transform: rotate(180deg); }

/* Brand lockup sizing in nav + footer */
.navbar-brand img { height: 40px; width: auto; }
.footer-logo img { height: 44px; width: auto; margin-bottom: 1rem; }

/* Team monogram cards */
.team-mono {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Profile table (about page) */
.maya-profile { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.maya-profile th, .maya-profile td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.maya-profile th { width: 30%; background: var(--off-white); font-weight: 600; }

/* Form note */
.maya-form-note {
  display: none;
  border: 1px solid rgba(185, 28, 28, 0.35);
  background: #FDF3F3;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* FAQ accordion: roomy padding, body font */
#aboutFaq .accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
#aboutFaq .accordion-button {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  padding: 1.1rem 1.35rem;
}
#aboutFaq .accordion-button:not(.collapsed) {
  background: var(--brand-soft);
  color: var(--navy);
  box-shadow: none;
}
#aboutFaq .accordion-button:focus { box-shadow: none; border-color: transparent; }
#aboutFaq .accordion-body { font-size: 0.92rem; padding: 1.1rem 1.35rem 1.35rem; }

/* Testimonial slider with blurred photo backdrop */
.maya-testi { position: relative; overflow: hidden; background: #101216; color: #fff; }
.maya-testi-bg {
  position: absolute;
  inset: -24px;
  background: url('../slide1.jpg') center / cover no-repeat;
  filter: blur(10px) brightness(0.42);
  pointer-events: none;
}
.maya-testi .container { position: relative; z-index: 1; }
.maya-testi-slide { display: none; max-width: 760px; margin: 0 auto; text-align: center; }
.maya-testi-slide.active { display: block; animation: heroFade 0.8s ease; }
.maya-testi-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.5;
  color: #fff;
  margin-bottom: 1.25rem;
}
.maya-testi-slide figcaption { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.maya-testi-nav { display: flex; justify-content: center; gap: 10px; margin-top: 2rem; }
.maya-testi-dot {
  width: 26px; height: 3px; border: 0; border-radius: 2px;
  background: rgba(255, 255, 255, 0.3); cursor: pointer; padding: 0;
}
.maya-testi-dot.active { background: #E05757; }

/* Slimmer nav links */
#mainNav .nav-link { font-size: 0.7rem; padding: 0.5rem 0.6rem !important; }
#mainNav .nav-link::after { left: 0.6rem; right: 0.6rem; }

/* Contact Us as a plain link — no highlight pill */
.nav-cta {
  background: transparent;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 0.6rem;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-cta:hover { background: transparent; color: #fff !important; }
#mainNav.scrolled .nav-cta { background: transparent; color: var(--navy) !important; }
#mainNav.scrolled .nav-cta:hover { background: transparent; color: var(--navy-mid) !important; }
#mainNav .navbar-collapse .nav-cta { width: auto; text-align: left; padding: 0.6rem 0; margin-top: 0; }
#mainNav.scrolled .navbar-collapse .nav-cta { color: var(--navy) !important; }

/* Roomier nav for the fuller menu (desktop) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav { gap: 0 !important; }
  .navbar-nav .nav-link {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    white-space: nowrap;
  }
  .nav-link .dropdown-caret { margin-left: 0.25rem; }
  .nav-cta { font-size: 0.64rem; padding: 0.5rem 0.75rem; white-space: nowrap; }
  .navbar-brand img { height: 34px; }
}

/* Portfolio filter + stage tags */
.filter-btn {
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}
.redirect-box { max-width: 560px; margin: 0 auto; text-align: center; }

/* CTA band: keep decorative overlay click-through so buttons always tap */
.cta-band::before { pointer-events: none; }
.cta-band .container { position: relative; z-index: 1; }

/* Talk-to-Us sidebar card: narrower measure, centred on small screens */
.service-card.talk-card { max-width: 320px; }
@media screen and (max-width: 991px) {
  .service-card.talk-card { max-width: 340px; margin-left: auto; margin-right: auto; }
}

/* Mobile: full-width tappable CTA buttons */
@media screen and (max-width: 768px) {
  .cta-band .btn-navy,
  .cta-band .btn-white {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Full-bleed video band (edge to edge, no padding) */
.maya-fullvideo {
  position: relative;
  width: 100%;
  height: min(78vh, 720px);
  min-height: 380px;
  overflow: hidden;
  background: #101216;
}
.maya-fullvideo video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: calmer hero */
@media screen and (max-width: 768px) {
  .hero-slider-nav { margin-top: 1.5rem; }
}

/* Mobile: show the full board video frame instead of a cover crop */
@media screen and (max-width: 768px) {
  .maya-fullvideo { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .maya-fullvideo video { object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer { transition: none; }
  .hero-slide.active { animation: none; }
}
