/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-brown);
  color: white;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* Respect reduced motion: hide Lottie animations */
@media (prefers-reduced-motion: reduce) {
  lottie-player {
    visibility: hidden;
  }
}

/* CSS custom properties */
:root {
  --color-brown:  #6D552F;
  --color-cream:  #f0efed;
  --color-dark:   #221f20;
  --color-navy:   #001937;
  --color-accent: #DDE8B6;
  --color-lime:   #BBCD7D;
  --color-green:  #384B20;
}

/* Video aspect-ratio wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modal */
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: 6px solid var(--color-brown);
  border-radius: 0;
  padding: 0;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}
#zcal-modal {
  max-width: 640px;
}

/* Lime hover — applies to both btn-primary and btn-ghost */
.btn-lime-hover:hover {
  background-color: #BBCD7D !important;
  color: #221f20 !important;
  border-color: #BBCD7D !important;
}

/* Custom contact form inputs */
.kiwi-input {
  display: block;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}
.kiwi-input:focus {
  outline: 2px solid var(--color-brown);
  outline-offset: 1px;
  border-color: var(--color-brown);
}

/* GTM noscript */
.gtm-iframe {
  display: none;
  visibility: hidden;
}

/* FAQ accordion — gold/brown buttons matching original */
.faq-item summary {
  display: none; /* hidden by default, shown via .faq-summary */
}
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-brown);
  color: white;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 1rem;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-item { }
.faq-item > summary { display: flex; }
.faq-item > summary { all: unset; display: flex; justify-content: space-between; align-items: center; background-color: var(--color-brown); color: white; padding: 1rem 1.25rem; cursor: pointer; font-size: 0.875rem; font-weight: 600; gap: 1rem; width: 100%; box-sizing: border-box; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-arrow { flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] > summary .faq-arrow { transform: rotate(90deg); }
.faq-body { padding: 1.25rem; background: white; border: 1px solid #e5e7eb; border-top: none; font-size: 0.875rem; color: #4b5563; line-height: 1.7; }

/* brand-navy color for testimonial names */
.text-brand-navy { color: #001937; }

/* Client logo grayscale → color on hover */
.logo-grid img {
  filter: grayscale(100%) contrast(1.15);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}
.logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Dropdown menu */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 260px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 50;
}
.nav-dropdown-parent:hover .nav-dropdown,
.nav-dropdown-parent:focus-within .nav-dropdown {
  display: block;
}

/* Mobile-only separator between team bios */
.team-bio-separator {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(109, 85, 47, 0.25);
}
@media (min-width: 1024px) {
  .team-bio-separator {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

/* Team photo overlapping wrapper */
.team-photo-overlap {
  position: relative;
  width: 452px;
  height: 400px;
  margin: 0 auto 0;
  display: block;
}
.team-photo-mobile {
  display: none;
}
@media (max-width: 639px) {
  .team-photo-overlap { display: none; }
  .team-photo-mobile  { display: none; }
}

/* WE HAVE FANS — Lottie star animation
   Original canvas: w:1000 h:328. Render at 320px wide → 105px tall */
.stars-lottie-wrapper {
  width: 200px;
  height: 79px;
  margin: 0 auto;
}

/* Dark sections: dot pattern overlay matching original */
.bg-charcoal {
  background-image: url('/assets/images/64f2036ff6decbe606c09cd7_dot-pattern.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ── Header / nav: match original kiwistrategic.com ── */

/* Top bar: exactly 20px, thin borders, shadow */
.site-topbar {
  height: 20px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0.5px solid #151515;
  border-bottom: 0.5px solid #151515;
  box-shadow: 0 3px 25px rgba(0, 0, 0, 0.15);
}
.site-topbar p {
  font-size: 0.6rem;
  line-height: 1;
}

/* Header nav bar: 80px matching original */
#site-header nav {
  height: 96px;
}

/* Logo: 145px wide matching original */
#site-header a[aria-label="KIWI Strategic home"] img {
  width: 145px;
  max-width: 145px;
}

/* Nav links: brown default → lime on hover and active page */
.nav-link {
  color: var(--color-brand-brown);
  font-weight: 600;
}
.nav-link:hover {
  color: var(--color-brand-lime);
}
.nav-link[aria-current="page"] {
  color: var(--color-brand-brown);
  border-bottom: 2px solid var(--color-brand-lime);
  padding-bottom: 2px;
}

/* "Hire Us" in header: lime on hover with brown text (matches original) */
header .btn-primary:hover {
  background-color: var(--color-brand-lime);
  color: var(--color-brand-brown);
}

/* Dropdown: 210px, rounded corners, offset, richer shadow */
.nav-dropdown {
  width: 210px;
  min-width: 210px;
  border-radius: 3px;
  padding: 5px;
  margin-top: 18px;
  left: -7px;
  box-shadow: 0 0.85em 1.5em rgba(0, 18, 36, 0.25);
  position: absolute;
}

/* Invisible bridge that fills the gap so cursor stays inside .nav-dropdown-parent */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

/* Dropdown items: Jost bold 14px, compact padding */
.nav-dropdown a {
  font-family: var(--font-jost);
  font-size: 14px !important;
  font-weight: 700;
  padding: 9px 12px !important;
  border-radius: 2px;
}
.nav-dropdown a:hover {
  background-color: rgba(211, 211, 211, 0.06);
  color: var(--color-brand-brown);
}

@media (max-width: 1023px) {
  #hero-photos picture:first-child { transform: translateX(3px); }
  #hero-photos picture:last-child  { transform: translateX(3px); }
}

@media (max-width: 767px) {
  [aria-label="Philosophy"] p {
    white-space: nowrap;
    font-size: clamp(0.7rem, 3.8vw, 1.25em) !important;
  }
  #hero-photos {
    height: 300px !important;
    gap: 6px;
  }
  #hero-photos picture:first-child img {
    height: 300px !important;
    object-position: right top !important;
  }
  #hero-photos picture:last-child {
    margin-left: 0 !important;
  }
  #hero-photos picture:last-child img {
    height: 300px !important;
    object-position: left top !important;
  }
}


