/* ============================================================
   Rustomjee navbar — design/colors/hover ported from
   https://www.rustomjee.com/  (header + Enquire CTA)
   Also: scroll-down indicator on the hero banner.
   Scoped under #header / .banner to win over existing rules.
   ============================================================ */

/* Goudy Old Style Italic — same font the corporate site uses for
   the intro/description paragraph */
@font-face {
  font-family: "goudyItalic";
  src: url("../fonts/goudyItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --rj-white: #ffffff;
  --rj-black: #151515;
  --rj-gold: #ce9a52;
  --rj-gold-dark: #9e6c26;
  --rj-gold-light: #807464;
  --rj-separator: #dad4c6;
}

/* ---------- Header bar ---------- */
#header.header-container,
#header.header-container.scrolled,
#header.header-container.sticky,
#header.header-container.sticky-new {
  background: var(--rj-white) !important;
  border-bottom: 1px solid var(--rj-separator) !important;
  box-shadow: none !important;
  -webkit-transition: background-color .25s cubic-bezier(0.2, 0, 0, 1) !important;
  -o-transition: background-color .25s cubic-bezier(0.2, 0, 0, 1) !important;
  transition: background-color .25s cubic-bezier(0.2, 0, 0, 1) !important;
}

#header .navbar-container {
  padding: 0 40px;
  min-height: 62px;
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  #header .navbar-container { padding: 0 24px; }
}
@media (max-width: 767px) {
  #header .navbar-container { padding: 0 16px; min-height: 56px; }
}

/* Logo: dark wordmark, matches rustomjee.com (144x24) */
#header .logo img,
#header .logo-img-2 img {
  width: auto !important;
  height: 24px !important;
  max-height: 26px;
  -o-object-fit: contain;
  object-fit: contain;
  filter: none !important;
}

/* ---------- Nav links ---------- */
#header .navLinks { gap: 32px; }

#header .navLinks .navLink {
  font-family: "FuturaBook", "futura", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1;
  font-weight: 400 !important;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--rj-black) !important;
  -webkit-transition: color .3s ease !important;
  -o-transition: color .3s ease !important;
  transition: color .3s ease !important;
}

#header .navLinks .navLink:hover,
#header .navLinks .navLink.active {
  color: var(--rj-gold-dark) !important;
}

/* Gold underline grow on hover (from center) */
#header .navLinks .navLink::after {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--rj-gold) !important;
  -webkit-transition: width .3s ease, left .3s ease;
  -o-transition: width .3s ease, left .3s ease;
  transition: width .3s ease, left .3s ease;
}

#header .navLinks .navLink:hover::after,
#header .navLinks .navLink.active::after {
  left: 0;
  width: 100%;
}

/* Mobile hamburger icon → dark on white header */
#header .menu img { filter: invert(1); }

/* ============================================================
   Unified CTA styling — every call-to-action matches the
   navbar "Enquire" button (gold outline + gold gradient that
   fills from the bottom on hover, text turns white).
   Uses a background-size fill (no pseudo-element) so it works
   on <button>, <a> and <input type="submit"> alike and does
   not clash with the arrow-btn's existing ::before.
   ============================================================ */
button.btnPrimary,
a.btnPrimary,
.primary-button .btnPrimary,
button.btnPrimaryMobile,
a.btnPrimaryMobile,
a.arrow-btn,
button.arrow-btn,
.arrow-btn.sticky-cta-link,
.btn.primary.submit-bg,
input.submit-bg {
  position: relative;
  display: inline-flex !important;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center !important;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center !important;
  gap: 8px;
  background-color: transparent !important;
  background-image: linear-gradient(180deg, #d9ac6a 0%, var(--rj-gold) 100%) !important;
  background-repeat: no-repeat !important;
  background-position: 50% 100% !important;
  background-size: 100% 0% !important;
  border: 1px solid var(--rj-gold) !important;
  border-radius: 4px !important;
  color: var(--rj-gold-dark) !important;
  font-family: "FuturaBook", "futura", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  padding: 12px 26px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  z-index: 1;
  -webkit-transition: background-size .35s cubic-bezier(0.2, 0, 0, 1), color .3s ease, border-color .3s ease !important;
  -o-transition: background-size .35s cubic-bezier(0.2, 0, 0, 1), color .3s ease, border-color .3s ease !important;
  transition: background-size .35s cubic-bezier(0.2, 0, 0, 1), color .3s ease, border-color .3s ease !important;
}

button.btnPrimary:hover,
a.btnPrimary:hover,
.primary-button .btnPrimary:hover,
button.btnPrimaryMobile:hover,
a.btnPrimaryMobile:hover,
a.arrow-btn:hover,
button.arrow-btn:hover,
.arrow-btn.sticky-cta-link:hover,
.btn.primary.submit-bg:hover,
input.submit-bg:hover {
  color: var(--rj-white) !important;
  border-color: var(--rj-gold) !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  transform: none !important;
}

/* arrow icon follows the text colour (gold → white on hover) */
a.arrow-btn svg line,
a.arrow-btn svg path,
button.arrow-btn svg line,
button.arrow-btn svg path {
  stroke: currentColor !important;
  -webkit-transition: stroke .3s ease;
  -o-transition: stroke .3s ease;
  transition: stroke .3s ease;
}

/* neutralise legacy sliding-panel / pseudo decorations on these CTAs */
a.arrow-btn::before,
button.arrow-btn::before,
a.arrow-btn::after,
button.arrow-btn::after,
a.arrow-btn span::before,
button.btnPrimary::after,
a.btnPrimary::after {
  display: none !important;
  background: none !important;
  content: none !important;
  width: 0 !important;
}

/* ---------- Mobile header bar (mmenu) ---------- */
.mmenu-page .mobile-header {
  background-color: var(--rj-white) !important;
  border-bottom: 1px solid var(--rj-separator);
  box-shadow: none;
}

.mmenu-page .mobile-header .logo img {
  height: 22px;
  width: auto;
  -o-object-fit: contain;
  object-fit: contain;
}

/* dark menu icon on the white bar */
.mmenu-page .mobile-header .menu-trigger,
.mmenu-page .mobile-header .menu-close {
  filter: invert(1);
}

/* ---------- Second-section paragraph: Goudy italic (as per corporate site) ---------- */
.second-wrapper .second-intro p,
.second-wrapper .projects-subline {
  font-family: "goudyItalic", "Goudy Old Style", Georgia, serif !important;
  font-style: italic !important;
  font-size: 24px !important;
  line-height: 1.5 !important;
  letter-spacing: .3px !important;
  color: #222 !important;
}

@media (max-width: 767px) {
  .second-wrapper .second-intro p,
  .second-wrapper .projects-subline {
    font-size: 17px !important;
  }
}

/* ============================================================
   Scroll-down indicator on the hero banner
   ============================================================ */
.banner.inner-main-banner {
  position: relative;
}

.banner .scroll-down-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 20;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #111;
  cursor: pointer;
  -webkit-transition: opacity .3s ease;
  -o-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.banner .scroll-down-indicator .scroll-label {
  font-family: "FuturaBook", "futura", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: .9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.banner .scroll-down-indicator .scroll-chevron {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(0, 0, 0, .55);
  border-radius: 50%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-animation: rjScrollBounce 1.8s ease-in-out infinite;
  animation: rjScrollBounce 1.8s ease-in-out infinite;
  -webkit-transition: background-color .3s ease, border-color .3s ease;
  -o-transition: background-color .3s ease, border-color .3s ease;
  transition: background-color .3s ease, border-color .3s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.banner .scroll-down-indicator:hover .scroll-chevron {
  background-color: rgba(206, 154, 82, .9);
  border-color: rgba(206, 154, 82, .9);
}

.banner .scroll-down-indicator .scroll-chevron svg {
  width: 26px;
  height: 26px;
  stroke: #111;
}

@-webkit-keyframes rjScrollBounce {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(6px); transform: translateY(6px); }
}
@keyframes rjScrollBounce {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(6px); transform: translateY(6px); }
}

@media (max-width: 767px) {
  .banner .scroll-down-indicator { bottom: 16px; }
  .banner .scroll-down-indicator .scroll-chevron { width: 48px; height: 48px; }
  .banner .scroll-down-indicator .scroll-chevron svg { width: 22px; height: 22px; }
  .banner .scroll-down-indicator .scroll-label { font-size: 13px; letter-spacing: 2px; }
}

/* ============================================================
   Hero banner clears the fixed white navbar below 1330px.
   The base rule (.banner.career-banner { margin-top: 24px })
   let the ~63px opaque navbar overlap the top of the hero on
   narrower desktops/tablets. Push the hero down so it sits
   fully below the navbar. Loaded last, so this wins the cascade.
   ============================================================ */
@media (min-width: 1000px) and (max-width: 1350px) {
  .banner.career-banner {
    margin-top: 24px !important;
  }
}

@media (min-width: 1000px) and (max-width: 1296px) {
  .banner.career-banner {
    margin-top: 169px !important;
  }
}

/* ============================================================
   Location pill on each project card image — mirrors the
   explore-cards badge (e.g. the "Juhu" pill). Injected by JS
   from each card's "Location : X" text.
   ============================================================ */
#project .gallery-carousel .card-loc-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rj-gold-dark);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(20, 20, 20, 0.18);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

#project .gallery-carousel .card-loc-badge i {
  font-size: 12px;
}

@media (max-width: 767px) {
  #project .gallery-carousel .card-loc-badge {
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 11.5px;
  }
}