/*LOGO*/
.nav-logo .nav-wordmark {
  display: none;
}

.nav-logo img {
  height: auto;
  max-height: 90px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.footer-logo img {
  height: auto;
  max-height: 50px;
  width: auto;
  display: block;
}

/*STICKY NAV + BANNER*/
.site-nav {
  position: fixed !important;
  top: 36px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(250, 247, 244, 0.95) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  backdrop-filter: blur(24px) !important;
}

.banner-hidden .site-nav {
  top: 0 !important;
}

.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 2rem;
}

.site-banner a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.site-banner a:hover {
  opacity: 0.9;
}

.banner-link {
  color: var(--pink-light);
  font-weight: 500;
}

.banner-close {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  transition: color 0.3s;
}

.banner-close:hover {
  color: var(--white);
}

.banner-hidden .site-banner {
  display: none;
}

/*ABOUT PAGE — FOUNDER IMAGE*/
.page-template-page-about .split:first-of-type {
  grid-template-columns: 250px 1fr;
  align-items: start;
  gap: 3rem;
}

/*BUTTON HOVERS*/
.btn-ghost[style*="a4bbe6"]:hover {
  background: linear-gradient(135deg, #8aa8dd, #7094d4) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(164, 187, 230, 0.35);
}

/*HAMBURGER — HIDDEN ON DESKTOP*/
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10002;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/*DROPDOWN OVERFLOW FIX (ALL SCREENS)*/
.nav-bar-wrapper .has-dropdown {
  overflow: visible !important;
}

/*TESTIMONIALS*/
.testimonial-carousel button:hover {
  background: var(--text-primary) !important;
  color: var(--cream) !important;
  border-color: var(--text-primary) !important;
}

.testimonial-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/*CITY LANDING PAGE — FOUNDER IMAGE*/
.page-template-page-city-landing .split.reverse .split-image.portrait {
  max-width: 280px;
}

/*MOBILE — 768px AND BELOW*/
@media (max-width: 768px) {

  /* Nav scrolls away on mobile */
  .site-nav {
    position: absolute !important;
    top: 36px !important;
    background: var(--cream) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .banner-hidden .site-nav {
    top: 0 !important;
  }

  /* Hamburger */
  .nav-hamburger {
    display: block;
    margin-left: auto;
    z-index: 10002 !important;
    position: relative !important;
  }

  /* Mobile nav overlay */
  .nav-bar-wrapper {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--white) !important;
    z-index: 10001 !important;
    padding: 100px 2rem 2rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    right: unset !important;
    bottom: unset !important;
    max-height: none !important;
    min-height: none !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .nav-bar-wrapper.mobile-open {
    display: block !important;
  }

  .nav-bar-wrapper .nav-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .nav-bar-wrapper .nav-bar .menu-item {
    display: block !important;
    border-bottom: 1px solid var(--border-light) !important;
  }

  .nav-bar-wrapper .nav-bar .menu-item a {
    font-size: 1.1rem !important;
    padding: 1rem 0 !important;
    display: block !important;
    color: var(--text-primary) !important;
    text-align: center !important;
  }

  /* CTA button in mobile nav */
  .nav-bar-wrapper .nav-bar .menu-item.menu-cta {
    border-bottom: none !important;
    margin-top: 1rem !important;
    text-align: center !important;
  }

  .nav-bar-wrapper .nav-bar .menu-item.menu-cta a {
    background: var(--text-primary) !important;
    color: var(--cream) !important;
    font-size: 0.9rem !important;
    padding: 0.7rem 1.5rem !important;
    display: inline-block !important;
    width: auto !important;
    margin: 0 auto !important;
    border-radius: 100px !important;
  }

  /* Services dropdown in mobile nav */
  .nav-bar-wrapper .nav-dropdown {
    position: static !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 0.3rem 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    animation: none !important;
    background: transparent !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .nav-bar-wrapper .nav-dropdown .menu-item {
    border-bottom: none !important;
  }

  .nav-bar-wrapper .nav-dropdown .menu-item a {
    font-size: 0.85rem !important;
    padding: 0.35rem 0 !important;
    color: var(--text-muted) !important;
    text-align: center !important;
  }

  .nav-bar-wrapper .dropdown-arrow {
    display: none !important;
  }

  /* Hide JS-moved dropdown on mobile */
  body > .nav-dropdown {
    display: none !important;
  }

  /* Hero */
  .hero.hero-fullwidth {
    min-height: 80vh !important;
    padding: calc(var(--nav-height) + 4rem) 1.5rem 3rem !important;
    align-items: flex-start !important;
  }

  .hero-fullwidth .hero-content {
    padding: 0 !important;
    margin-top: 1rem !important;
  }

  .hero-fullwidth .btn-primary {
    font-size: 0.85rem !important;
    padding: 0.7rem 1.5rem !important;
  }

  .hero-fullwidth .btn-ghost {
    font-size: 0.8rem !important;
    padding: 0.5rem 0 !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 0.8rem !important;
    align-items: flex-start !important;
  }

  /* Typography — bigger for readability */
  .section-sub {
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
    margin-top: 0.8rem !important;
  }

  .section-heading {
    font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
  }

  .service-card p,
  .step p,
  .intro-card p,
  .accordion-content p {
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
  }

  .section-label {
    font-size: 0.72rem !important;
  }

  /* Spacing — tighter on mobile */
  .section {
    padding: 4rem 5vw !important;
  }

  .section.compact {
    padding: 3rem 5vw !important;
  }

  .card-grid-3 {
    gap: 1.2rem !important;
    margin-top: 2rem !important;
  }

  .service-card {
    padding: 1.8rem 1.5rem !important;
  }

  .cta-section {
    padding: 4rem 5vw !important;
  }

  /* Grids stack to single column */
  .page-template-page-careers .section-inner > div[style*="grid-template-columns"],
  .page-template-page-front-page .section-inner > div[style*="grid-template-columns"],
  .bg-off-white .section-inner > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .section .reveal-stagger[style*="grid-template-columns"],
  .section .reveal-stagger[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* About founder */
  .page-template-page-about .split:first-of-type {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .page-template-page-about .split:first-of-type .split-image.portrait {
    max-width: 200px;
    margin: 0 auto;
  }

  /* Banner */
  .site-banner {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
  }

  .site-banner a {
    font-size: 0.72rem;
  }

  /* Testimonials */
  .testimonial-scroll > div {
    min-width: 280px !important;
    max-width: 280px !important;
  }
}

/* Form field fixes */
.nightowl-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.nightowl-form input[type="text"],
.nightowl-form input[type="email"],
.nightowl-form input[type="tel"],
.nightowl-form input[type="date"],
.nightowl-form textarea,
.nightowl-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.3s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.nightowl-form input:focus,
.nightowl-form textarea:focus,
.nightowl-form select:focus {
  border-color: #a4bbe6;
}

.nightowl-form textarea {
  resize: vertical;
}

@media (max-width: 600px) {
  .nightowl-form form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}