/* Overrides for React version - minimal changes to make Webflow CSS work */

/* ===== STANDARDIZED SECTION TITLES ===== */
.section-title-std {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--theme, #32013a);
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.25;
}
@media (max-width: 991px) {
  .section-title-std {
    font-size: 2.5rem;
  }
}
@media (max-width: 767px) {
  .section-title-std {
    font-size: 2rem;
  }
}
/* ===== END STANDARDIZED SECTION TITLES ===== */

/* Ensure body uses correct font and background */
body {
  font-family: "Poppins", sans-serif;
  background-color: #fff9f8;
  color: var(--theme, #32013a);
}

/* Force header-title styles - base size */
.header-title {
  font-size: 72px !important;
  font-weight: 400 !important;
  line-height: 87px !important;
  margin-bottom: 5vw !important;
  color: #fff !important;
  font-family: "Poppins", sans-serif !important;
}

/* Responsive header-title sizes from Webflow */
@media only screen and (max-width: 1200px) {
  .header-title {
    font-size: 52px !important;
    line-height: 72px !important;
  }
}

@media only screen and (max-width: 600px) {
  .header-title {
    font-size: calc(max(7.5vw, 30px)) !important;
    font-weight: 500 !important;
    line-height: calc(max(10vw, 38px)) !important;
    margin-bottom: 12vh !important;
  }
}

/* Header subtitle - slightly wider to fit on 2 lines like live site */
.header-p {
  max-width: 370px !important;
}

/* White logo for home page dark background */
.home .top-bar:not(.detached) .logo-icon,
.home .top-bar:not(.detached) .logo-text {
  filter: brightness(0) invert(1);
}

/* Hide overflow on home page */
body.home {
  overflow-x: hidden;
}

/* Ensure header container uses flex layout */
.container-outer.header-container {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  padding-top: 0 !important;
  padding-bottom: 50px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Top bar positioning - closer to top */
.top-bar {
  margin-top: 50px;
}

/* Push main title down to center it between logo and subtitle */
.main-title {
  margin-top: 3vh;
}

/* Header section should be exactly viewport height */
.header {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

/* Logo hover animation - copied from Webflow inline styles */
.logo-hover-container {
  display: flex;
  align-items: center;
  height: 48px;
  overflow: visible;
}

.logo-icon {
  height: 48px;
  width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  transition:
    height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-text {
  height: 34px;
  width: 0;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s;
  pointer-events: none;
  overflow: hidden;
}

.nav-logo {
  width: 95px;
  padding-left: 23px;
  overflow: visible;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding-left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover {
  width: 160px;
  padding-left: 0;
}

.nav-logo:hover .logo-icon {
  height: 40px;
  width: 40px;
}

.nav-logo:hover .logo-text {
  opacity: 1;
  width: 110px;
  margin-left: 6px;
  transform: translateX(0);
  pointer-events: auto;
}

/* ===== FIXED NAVBAR ON SCROLL ===== */
/* Fixed navbar container - hidden by default */
/* Live site: height 140px, padding 0, display block */
.top-bar-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background-color: var(--light, #fff8f6) !important;
  padding: 0 !important;
  height: 140px;
  display: block;
}

/* Show fixed navbar when detached (scrolled) */
.top-bar-bg.detached {
  opacity: 1;
  pointer-events: auto;
}

/* Fixed navbar top-bar styling */
/* Live: top-bar height 55px, positioned inside 140px container */
.top-bar-bg .top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: calc(100% - 12vw);
  margin: 0 auto;
  padding: 0;
  margin-top: 45px;
  height: 55px;
}

/* Logo should be dark in fixed navbar */
.top-bar-bg .logo-icon,
.top-bar-bg .logo-text {
  filter: none !important;
}

/* Hamburger button dark in fixed navbar */
.top-bar-bg .hb-btn.btn-outline {
  background: #32013a !important;
  border-color: #32013a !important;
}

.top-bar-bg .hb-line {
  background: #fff;
}

.top-bar.detached .hb-btn,
.hb-btn.w--open {
  background: #32013a;
  border-color: #32013a;
}

.top-bar .hb-btn.w--open .hb-line {
  background: #fff;
}

/* Hamburger button hover states */
@media only screen and (min-width: 991px) {
  .nav-link:hover .nav-link-icon {
    opacity: 1;
    transform: translateX(0px);
  }

  .top-bar.detached .hb-btn:hover,
  .top-bar:not(.detached) .hb-btn.w--open:hover {
    background: rgba(50, 1, 58, 0.9);
  }

  .top-bar:not(.detached) .hb-btn:not(.w--open):hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Ensure hamburger button is clickable - above header container */
.navbar,
.w-nav {
  position: relative;
  z-index: 100;
}

.hb-btn {
  position: relative;
  z-index: 1001;
}

/* Hamburger animation */
.hb-bl,
.hb-tl {
  transition: transform 0.15s, opacity 0.15s;
  transform-origin: center center;
}

.w-nav-button.w--open .hb-bl {
  transform: scaleX(0);
  opacity: 0;
}

.w-nav-button.w--open .hb-tl {
  transform: translateY(5px);
}

/* Body no scroll when menu open */
body.no-scroll {
  overflow-y: hidden;
}

/* Typed cursor */
#typed::after {
  content: "_";
  display: inline;
  font-weight: 100;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Social links - matches live site exactly */
.nav-social .social {
  display: flex;
}

.nav-social .social-link {
  width: 40px;
  height: 40px;
  background-color: rgb(236, 227, 231);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
}

.nav-social .social-link:last-child {
  margin-right: 0;
}

.nav-social .social-ink-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme, #32013a);
}

.nav-social .social-ink-img svg {
  width: 18px;
  height: 18px;
  fill: var(--theme, #32013a);
}

/* Work grid case item positioning */
.work-grid .case-item-img:nth-child(1) {
  grid-area: img-1;
}
.work-grid .case-item-text:nth-child(2) {
  grid-area: text-1;
}
.work-grid .case-item-img:nth-child(3) {
  grid-area: img-2;
}
.work-grid .case-item-text:nth-child(4) {
  grid-area: text-2;
}
.work-grid .case-item-img:nth-child(5) {
  grid-area: img-3;
}
.work-grid .case-item-text:nth-child(6) {
  grid-area: text-3;
}

/* ===== HAMBURGER BUTTON FIXES ===== */
/* Default state: white outline on transparent background */
.hb-btn.btn-outline {
  background: transparent !important;
  border: 2px solid #fff !important;
  border-radius: 10px;
}

/* Only fill when menu is open OR when in detached state */
.hb-btn.btn-outline.w--open,
.top-bar.detached .hb-btn.btn-outline {
  background: #32013a !important;
  border-color: #32013a !important;
}

/* Hamburger lines should be white */
.hb-line {
  background: #fff;
}

/* ===== NAV MENU SLIDE-OUT FIXES ===== */
/* Slide-out menu - matches live site exactly */
.nav-menu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: auto !important;
  height: 100vh !important;
  background-color: var(--light, #fff8f6) !important;
  z-index: 900 !important;
  overflow-y: auto !important;
  padding-left: 110px !important;
  padding-right: 200px !important;
}

/* Menu container padding - matches live site exactly */
/* Live: paddingTop 160px, paddingBottom 170px */
.nav-menu-container {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100vh !important;
  padding-top: 160px !important;
  padding-bottom: 170px !important;
  box-sizing: border-box !important;
}

/* Nav links styling */
.nav-links {
  display: flex;
  flex-direction: column;
}

/* Live: fontSize 16px, fontWeight 400, marginBottom 30px */
.nav-links-title {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--theme, #32013a);
  margin-bottom: 30px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Live: fontSize 40px, fontWeight 500, lineHeight 20px, padding 20px */
.nav-link {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  font-size: 40px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  color: var(--theme, #32013a) !important;
  text-decoration: none;
  padding: 20px !important;
}

.nav-link-icon {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.2s, transform 0.2s;
  margin-left: 15px;
}

.nav-link:hover .nav-link-icon {
  opacity: 1;
  transform: translateX(0);
}

/* ===== SEE HOW BUTTON FIXES ===== */
/* Header button - matches live site exactly */
/* Live: width 205px, height 45px, padding 10.4px 52.8px, border-radius 6px */
.btn.btn-header {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 6px !important;
  color: #fff;
  text-decoration: none;
  height: 45px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
}

/* Button content layout */
.btn-content {
  display: flex !important;
  align-items: center !important;
  height: 100%;
}

.btn-content-w-right {
  flex-direction: row !important;
  gap: 0 !important;
}

/* SEE HOW text - padding on both sides to match live site */
.btn-header .btn-content > div:first-child {
  padding: 0 53px !important;
}

/* Button right arrow container - live has 45x45 with border-left */
.btn-right {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 45px !important;
  height: 41px !important;
  border-left: 2px solid #fff !important;
  margin-left: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0;
}

/* Remove any conflicting border removal */
.btn-right-outline {
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  /* Keep border-left from .btn-right */
}

.btn-right img {
  width: 16px;
  height: 16px;
}

.btn-outline-theme {
  background: transparent;
}

/* Mobile nav adjustments */
@media (max-width: 991px) {
  .nav-logo:hover {
    width: 95px;
    padding-left: 23px;
  }

  .nav-logo:hover .logo-icon {
    height: 48px;
    width: 48px;
  }

  .nav-logo:hover .logo-text {
    opacity: 0;
    width: 0;
  }

  .nav-menu {
    width: 100vw !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
  }

  .nav-menu-container {
    padding-top: 160px !important;
    padding-bottom: 60px !important;
  }

  .nav-link {
    font-size: 28px !important;
  }
}
