/* ============================================================
   OPHICA CONSULTING — REUSABLE COMPONENTS
   Navigation, Buttons, Eyebrows, Accordions, Interactive Cards, Footer
   ============================================================ */

/* ------------------------------------------------------------
   1. NAVIGATION & HEADER
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height-desktop);
  background-color: transparent;
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              background-color var(--transition-normal),
              backdrop-filter var(--transition-normal),
              border-bottom var(--transition-normal),
              box-shadow var(--transition-normal);
  will-change: transform;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.scrolled {
  background-color: rgba(254, 254, 253, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Brand Logo */
/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.site-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo:hover .site-logo-img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .site-logo-img {
    height: 34px;
  }
}

/* Desktop Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #383838;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-orange);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-orange);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--color-orange);
}

/* Mobile Navigation Overlay / Drawer */
.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  .nav-menu,
  .header-actions .cta-desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-toggle line {
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  .site-header.nav-open .mobile-toggle line:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.nav-open .mobile-toggle line:nth-child(1) {
    opacity: 0;
  }

  .site-header.nav-open .mobile-toggle line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-height-mobile));
    height: calc(100dvh - var(--header-height-mobile));
    background-color: #FEFEFD;
    padding: 24px var(--container-padding-mobile) 32px;
    border-top: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                visibility 0.3s;
    overflow-y: auto;
    z-index: 999;
  }

  .site-header.nav-open .mobile-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .mobile-nav-link {
    font-size: 20px;
    font-weight: 750;
    color: var(--color-black);
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
  }

  .mobile-nav-link span:last-child {
    font-size: 18px;
    color: var(--color-muted);
    transition: transform 0.15s ease, color 0.15s ease;
  }

  .mobile-nav-link.active,
  .mobile-nav-link:hover {
    color: var(--color-orange);
    padding-left: 4px;
  }

  .mobile-nav-link.active span:last-child,
  .mobile-nav-link:hover span:last-child {
    color: var(--color-orange);
    transform: translateX(4px);
  }

  .mobile-nav-cta {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 16px;
  }
}

/* ------------------------------------------------------------
   2. EYEBROWS & SECTION HEADINGS
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  line-height: var(--type-eyebrow-line);
  letter-spacing: var(--type-eyebrow-tracking);
  color: var(--color-orange);
  text-transform: uppercase;
  margin-bottom: 16px;
  white-space: nowrap;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: block;
  width: var(--eyebrow-line-width-desktop);
  height: var(--eyebrow-line-height);
  background-color: var(--color-orange);
  flex-shrink: 0;
}

.eyebrow-center {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.eyebrow-left {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .eyebrow {
    font-size: var(--type-eyebrow-size);
    gap: 10px;
    margin-bottom: 12px;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: var(--eyebrow-line-width-mobile);
  }
}

.section-head {
  margin-bottom: 36px;
}

.section-head.text-center {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin-top: 14px;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 680px;
}

.section-dark .section-head p,
.section-dark-alt .section-head p {
  color: var(--color-muted-secondary);
}

.section-head.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   3. BUTTONS & ACTIONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 13px 22px;
  font-size: var(--type-btn-size);
  font-weight: var(--type-btn-weight);
  line-height: var(--type-btn-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast),
              background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-primary,
.cta {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: 1px solid var(--color-orange);
}

.btn-primary::before,
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.btn-primary:hover::before,
.cta:hover::before {
  left: 160%;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover,
.cta:hover {
  background-color: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(239, 91, 63, 0.3);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-orange);
  border: 1px solid var(--color-white);
}

.btn-white:hover {
  background-color: #F8F8F8;
  color: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: 1px solid var(--color-dark);
}

.btn-dark:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-orange);
  text-decoration: none;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.btn-link:hover {
  color: var(--color-orange-dark);
  transform: translateX(3px);
}

/* ------------------------------------------------------------
   4. INTERACTIVE CARDS (THE OPHICA APPROACH, WHAT WE BELIEVE, GET IN TOUCH)
   ------------------------------------------------------------ */
.interactive-card {
  position: relative;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--color-text);
  transition: background-color 0.15s ease,
              border-color 0.15s ease,
              color 0.12s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}

.interactive-card .card-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-orange);
  margin-bottom: 24px;
  transition: color 0.12s ease;
}

.interactive-card h3,
.interactive-card h4 {
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 8px;
  transition: color 0.12s ease;
}

.interactive-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
  margin-top: 0;
  margin-bottom: 0;
  transition: color 0.12s ease;
}

/* Card Interaction: Hover & Held (Pointer Pressed) */
.interactive-card:hover,
.interactive-card.is-held {
  background-color: var(--color-orange) !important;
  border-color: var(--color-orange) !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(239, 91, 63, 0.22);
}

.interactive-card:hover .card-number,
.interactive-card:hover .why-editorial-num,
.interactive-card:hover .expect-num,
.interactive-card:hover h3,
.interactive-card:hover h4,
.interactive-card:hover p,
.interactive-card:hover a,
.interactive-card:hover .why-editorial-arrow,
.interactive-card:hover .expect-arrow,
.interactive-card.is-held .card-number,
.interactive-card.is-held .why-editorial-num,
.interactive-card.is-held .expect-num,
.interactive-card.is-held h3,
.interactive-card.is-held h4,
.interactive-card.is-held p,
.interactive-card.is-held a,
.interactive-card.is-held .why-editorial-arrow,
.interactive-card.is-held .expect-arrow {
  color: var(--color-white) !important;
}

/* Dark variant interactive card (#1A1A1A background) */
.interactive-card-dark,
.section-dark .interactive-card,
.section-dark .belief-card {
  background-color: #1A1A1A;
  border-color: var(--color-border-dark);
  color: var(--color-white);
}

.interactive-card-dark h3,
.interactive-card-dark h4,
.section-dark .interactive-card h3,
.section-dark .interactive-card h4,
.section-dark .belief-card h3 {
  color: var(--color-white);
}

.interactive-card-dark p,
.section-dark .interactive-card p,
.section-dark .belief-card p {
  color: var(--color-muted-secondary);
}

.interactive-card-dark .card-number,
.section-dark .interactive-card .card-number,
.section-dark .belief-card .card-number {
  color: var(--color-orange);
}

.interactive-card-dark:hover,
.interactive-card-dark.is-held,
.section-dark .interactive-card:hover,
.section-dark .interactive-card.is-held,
.section-dark .belief-card:hover,
.section-dark .belief-card.is-held {
  background-color: var(--color-orange) !important;
  border-color: var(--color-orange) !important;
  transform: translateY(-4px);
}

.section-dark .interactive-card:hover h3,
.section-dark .interactive-card:hover p,
.section-dark .interactive-card:hover .card-number,
.section-dark .interactive-card.is-held h3,
.section-dark .interactive-card.is-held p,
.section-dark .interactive-card.is-held .card-number,
.section-dark .belief-card:hover h3,
.section-dark .belief-card:hover p,
.section-dark .belief-card:hover .card-number,
.section-dark .belief-card.is-held h3,
.section-dark .belief-card.is-held p,
.section-dark .belief-card.is-held .card-number {
  color: var(--color-white) !important;
}

/* ------------------------------------------------------------
   5. SPECIAL STATIC BLACK SECTION: WHY OPHICA EXISTS
   Rule: Permanently black, centered, static (no hover/hold)
   ------------------------------------------------------------ */
.static-why-section {
  background-color: var(--color-paper) !important;
  color: var(--color-text) !important;
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .static-why-section {
    padding-top: var(--section-padding-tablet);
    padding-bottom: var(--section-padding-tablet);
  }
}

@media (max-width: 768px) {
  .static-why-section {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
  }
}

@media (max-width: 390px) {
  .static-why-section {
    padding-top: var(--section-padding-small);
    padding-bottom: var(--section-padding-small);
  }
}

.static-why-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.static-why-content .eyebrow {
  margin-bottom: 18px;
}

.static-why-content h2 {
  color: var(--color-black);
  max-width: 860px;
  margin: 0 auto 18px;
  text-align: center;
}

.static-why-content h2 span {
  color: var(--color-orange);
}

.static-why-subhead {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.static-why-subhead span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--color-orange);
}

.static-why-description {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-line);
  text-align: center;
}

/* ------------------------------------------------------------
   6. ACCORDION (ACCESSIBLE FAQ)
   ------------------------------------------------------------ */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 750;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--color-orange);
}

.faq-trigger-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-orange);
  flex-shrink: 0;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(239, 91, 63, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-orange);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease;
  line-height: 1;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel p {
  padding-bottom: 24px;
  padding-left: 36px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 760px;
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

/* Dark FAQ styling */
.faq-dark .faq-accordion {
  border-top-color: var(--color-border-dark);
}

.faq-dark .faq-item {
  border-bottom-color: var(--color-border-dark);
}

.faq-dark .faq-trigger {
  color: var(--color-white);
}

.faq-dark .faq-trigger:hover {
  color: var(--color-orange);
}

.faq-dark .faq-panel p {
  color: var(--color-muted-secondary);
}

.faq-dark .faq-icon {
  border-color: rgba(239, 91, 63, 0.45);
}

.faq-dark .faq-item.open .faq-icon {
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

/* ------------------------------------------------------------
   7. FINAL CTA BANNER (LET'S TALK)
   ------------------------------------------------------------ */
.final-cta-section {
  background-color: var(--color-orange); /* Pure #EF5B3F */
  color: var(--color-white);
  padding: 90px 0;
  text-align: center;
}

.final-cta-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-inner .eyebrow {
  color: var(--color-white);
}

.final-cta-inner .eyebrow::before,
.final-cta-inner .eyebrow::after {
  background-color: var(--color-white);
}

.final-cta-inner h2 {
  color: var(--color-white);
  margin-top: 14px;
  margin-bottom: 18px;
}

.final-cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-line);
  margin-bottom: 28px;
  max-width: 620px;
}

.final-cta-email {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   8. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 85px 0 32px;
  border-top: 1px solid #242424;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .brand-logo {
  color: var(--color-white);
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--color-muted-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-tracking);
  color: var(--color-muted-secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col li {
  font-size: 14px;
  color: #CCCCCC;
  line-height: 1.4;
}

.footer-col a {
  color: #CCCCCC;
  display: inline-block;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}

.footer-col a:hover {
  color: var(--color-orange);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid #262626;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #777777;
}

.footer-bottom a {
  color: #888888;
  transition: color 0.18s ease;
}

.footer-bottom a:hover {
  color: var(--color-orange);
}

.footer-bottom a {
  color: #888888;
  margin-left: 14px;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 60px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom a {
    margin-left: 0;
    margin-right: 14px;
  }
}
