/* ==================================================
   SA Engineering theme layer
   Palette taken from the logo: deep navy base, solar amber (sun),
   brand blue (the "S" mark) and leaf green as small accents.
   Blueprint-grid motif on dark sections and the footer.
   Loaded after every other stylesheet; remove its <link> in
   views/partials/head.ejs to revert.
   ================================================== */

/* theme variables live on `*` in style.css / scheme-1.css, so override them the same way */
* {
  --primary-color: #F5A623;
  --primary-color-rgb: 245, 166, 35;
  --bg-dark-1: #0B1D3A;
  --bg-dark-2: #071328;
  --bg-dark-3: #050d1c;
  --bg-dark-1-rgb: 11, 29, 58;
  --bg-dark-2-rgb: 7, 19, 40;
  --bg-light: #F3F6FB;
  --heading-font-color: #0B1D3A;
  --rounded-1: 16px;
  --btn-rounded: 999px;
  --btn-padding: 12px 28px;
  --btn-color: #0B1D3A;

  --sa-blue: #1F56D6;
  --sa-blue-rgb: 31, 86, 214;
  --sa-green: #6DB33F;
  --sa-line: #E3E8F1;
  --sa-brand-gradient: linear-gradient(90deg, var(--sa-blue) 0%, var(--primary-color) 55%, var(--sa-green) 100%);
  --sa-grid: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
             linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

body {
  background: #ffffff;
}

/* ---------- headings ---------- */
h2 {
  font-size: clamp(32px, 3.6vw, 50px);
}

.text-light h2,
.bg-dark h2 {
  color: #ffffff;
}

/* section eyebrow labels: brand-blue text with an amber lead line */
.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sa-blue);
}

.subtitle::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-color);
}

.text-center .subtitle,
.subtitle.text-center {
  justify-content: center;
}

.subtitle.id-color,
.text-light .subtitle,
.bg-dark .subtitle,
section.bg-dark .subtitle {
  color: var(--primary-color);
}

.text-light .subtitle::before,
.bg-dark .subtitle::before {
  background: #ffffff;
}

/* amber text is hard to read on white, so accent text on light sections uses a deeper amber */
section:not(.bg-dark):not(.text-light):not(.bg-color) .id-color:not(i):not([class*="icon"]):not(.fs-40) {
  color: #C67F0A;
}

/* ---------- top bar ---------- */
header.header-light #topbar,
header.header-light.smaller #topbar {
  background: var(--bg-dark-2);
  border-bottom: solid 1px rgba(255, 255, 255, 0.08);
}

header.header-light .topbar-widget a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  transition: color 0.3s ease;
}

header.header-light .topbar-widget a:hover {
  color: #ffffff;
}

header.header-light .topbar-widget a i,
header.header-light .topbar-widget i {
  color: var(--primary-color);
}

header.header-light #topbar .social-icons i {
  color: rgba(255, 255, 255, 0.72);
}

header.header-light #topbar .social-icons i:hover {
  color: var(--bg-dark-1);
  background: var(--primary-color);
}

/* ---------- header ---------- */
@media only screen and (min-width: 993px) {
  /* logo icon no longer hangs below the header */
  header.transparent:not(.smaller):not(.header-mobile) div#logo img.brand-logo-icon {
    height: 112px;
  }

  header.transparent:not(.smaller):not(.header-mobile) div#logo .brand-logo-name {
    font-size: 30px;
  }

  header.transparent:not(.smaller):not(.header-mobile) div#logo .brand-logo-sub {
    font-size: 11.8px;
  }

  header.transparent:not(.smaller):not(.header-mobile)::before {
    background: linear-gradient(to bottom, rgba(var(--bg-dark-2-rgb), 0.75), rgba(var(--bg-dark-2-rgb), 0));
  }

  /* menu: amber underline that draws in on hover */
  #mainmenu > li > a.menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 6px;
    bottom: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  #mainmenu > li:hover > a.menu-item::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  /* dropdowns: rounded with an amber accent edge */
  #mainmenu > li > ul {
    border-radius: 14px;
    border-top: solid 3px var(--primary-color);
    overflow: hidden;
  }
}

header.header-light.smaller {
  box-shadow: 0 10px 30px rgba(var(--bg-dark-1-rgb), 0.08);
}

/* "Call Us": solid amber pill */
header .menu_side_area a.btn-main.btn-line,
header.header-light .menu_side_area a.btn-main.btn-line,
header.transparent:not(.smaller):not(.header-mobile) .menu_side_area a.btn-main.btn-line {
  background: var(--primary-color);
  color: var(--bg-dark-1);
  border: none;
  font-weight: 700;
  padding: 11px 24px;
  box-shadow: 0 10px 24px rgba(var(--primary-color-rgb), 0.35);
}

header .menu_side_area a.btn-main.btn-line:hover,
header.header-light .menu_side_area a.btn-main.btn-line:hover,
header.transparent:not(.smaller):not(.header-mobile) .menu_side_area a.btn-main.btn-line:hover {
  background: #ffffff;
  color: var(--bg-dark-1);
}

header.header-light.smaller .menu_side_area a.btn-main.btn-line:hover {
  background: var(--bg-dark-1);
  color: #ffffff;
}

/* ---------- buttons ---------- */
a.btn-main,
.btn-main {
  font-weight: 700;
}

a.btn-main:hover,
.btn-main:hover {
  background: var(--bg-dark-1);
  color: #ffffff;
}

.text-light a.btn-main:hover,
.bg-dark a.btn-main:hover,
section.bg-dark a.btn-main:hover {
  background: #ffffff;
  color: var(--bg-dark-1);
}

/* ---------- page banners (inner pages) ---------- */
#subheader {
  padding: 150px 0 90px 0;
}

#subheader h1 {
  font-size: clamp(44px, 6.4vw, 96px);
  text-transform: none;
  letter-spacing: -0.04em;
  line-height: 1;
}

#subheader .sw-overlay,
.sw-overlay {
  background:
    linear-gradient(100deg, rgba(var(--bg-dark-2-rgb), 0.95) 0%, rgba(var(--bg-dark-1-rgb), 0.78) 45%, rgba(var(--bg-dark-1-rgb), 0.35) 100%);
}

#subheader .sw-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sa-grid);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 70%);
}

#subheader .border-bottom {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* breadcrumb as a glass pill */
#subheader .crumb {
  padding: 8px 18px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: solid 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#subheader .crumb li.active {
  color: var(--primary-color);
}

/* ---------- dark sections: blueprint grid + amber glow ---------- */
section.bg-dark:not(#subheader) {
  background-image:
    radial-gradient(circle at 88% 0%, rgba(var(--primary-color-rgb), 0.14), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(var(--sa-blue-rgb), 0.18), transparent 45%),
    var(--sa-grid);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

/* contact strip above the footer */
section.bg-dark.pt-60 {
  border-top: solid 1px rgba(255, 255, 255, 0.06);
}

section.bg-dark .grid-divider > div h4 {
  color: #ffffff;
}

/* light sections get a soft tint */
.bg-light {
  background-image: radial-gradient(circle at 100% 0%, rgba(var(--sa-blue-rgb), 0.05), transparent 40%) !important;
}

/* ---------- images ---------- */
section img.rounded-1,
section .rounded-1 > img {
  box-shadow: 0 24px 50px rgba(var(--bg-dark-1-rgb), 0.14);
}

/* ---------- cards: tie into the palette ---------- */
.service-card,
.about-card,
.leader-card {
  border-color: var(--sa-line);
}

.service-card:hover,
.about-card:hover,
.leader-card:hover {
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

/* readable on white: navy icon on amber, deeper amber for role text */
.about-card-icon {
  color: var(--bg-dark-1);
}

.leader-role {
  color: #C67F0A;
}

/* ---------- forms ---------- */
.form-control {
  padding: 14px 18px;
  border: solid 1px var(--sa-line);
  border-radius: 12px;
  background-color: #F8FAFD;
}

.form-control:focus {
  background-color: #ffffff;
}

/* ---------- footer ---------- */
footer {
  background-color: var(--bg-dark-2);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(var(--primary-color-rgb), 0.10), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(var(--sa-blue-rgb), 0.16), transparent 42%),
    var(--sa-grid);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

/* brand-colour line across the top of the footer */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sa-brand-gradient);
}

footer h5 {
  margin-bottom: 22px;
}

footer .widget ul li {
  margin-bottom: 6px;
}

footer .social-icons a i {
  background: rgba(255, 255, 255, 0.06);
  border: solid 1px rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

footer .social-icons a:hover i {
  background: var(--primary-color);
  color: var(--bg-dark-1);
  border-color: var(--primary-color);
}

.subfooter {
  border-top-color: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

/* ---------- back to top ---------- */
#back-to-top {
  background: var(--primary-color);
  color: var(--bg-dark-1);
}

/* ==================================================
   Bold layer: gradient accents carried through the site
   ================================================== */

/* faded second half of headings becomes a shimmering amber gradient */
h1 .op-3,
h2 .op-3,
h3 .op-3 {
  opacity: 1;
  background: linear-gradient(100deg, #FFC94D 0%, #F5A623 40%, #FF7A1A 75%, #FFC94D 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sa-shimmer 7s ease-in-out infinite;
}

@keyframes sa-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* amber blocks get a warm gradient instead of a flat fill */
.bg-color {
  background: linear-gradient(120deg, #FFC94D 0%, #F5A623 45%, #FF8A1F 100%);
}

/* stat badges on amber ("+5 Years of Experience") glow */
.bg-color.rounded-1 {
  box-shadow: 0 24px 50px rgba(var(--primary-color-rgb), 0.45);
}

.bg-color .fs-72,
.bg-color h1 {
  letter-spacing: -0.04em;
  font-weight: 800;
}

/* scrolling service names on the dark band: gradient text */
.de-marquee-list-2 .id-color,
.de-marquee-list .id-color {
  background: linear-gradient(100deg, #FFD66B, #F5A623 50%, #FF8A1F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* check lists: amber check inside a soft circle */
.ul-check li {
  position: relative;
}

.ul-check li:before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--bg-dark-1);
  background: linear-gradient(135deg, #FFD66B, #F5A623);
  box-shadow: 0 6px 14px rgba(var(--primary-color-rgb), 0.35);
}

/* light sections: faint dotted engineering texture */
section:not(.bg-dark):not(.bg-color):not(#subheader):not(.hero-v2) {
  background-image: radial-gradient(rgba(var(--bg-dark-1-rgb), 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* homepage section headings a bit more dramatic */
#services h2,
section h2.wow {
  letter-spacing: -0.035em;
}

/* email links: no underline on hover, just a colour shift */
a.email-link,
a.email-link:hover {
  text-decoration: none !important;
}

a.email-link:hover {
  opacity: 1;
  color: var(--primary-color);
}

section:not(.bg-dark):not(.text-light) a.email-link:hover {
  color: #C67F0A;
}

.bg-color a.email-link:hover {
  color: var(--bg-dark-1);
  opacity: 0.75;
}

/* ==================================================
   Logo wordmark + menu colours to match the theme
   ================================================== */

/* "SA ENGINEERING": amber-gold gradient, like the hero highlight words */
header div#logo .brand-logo-name {
  background: linear-gradient(100deg, #FFE08A 0%, #F5A623 45%, #FF8A1F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* "SERVICES PVT LTD": soft white between amber rules */
header div#logo .brand-logo-sub {
  color: rgba(255, 255, 255, 0.78);
}

header div#logo .brand-logo-sub::before,
header div#logo .brand-logo-sub::after {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0), #F5A623);
}

header div#logo .brand-logo-sub::after {
  background: linear-gradient(90deg, #F5A623, rgba(245, 166, 35, 0));
}

/* white header after scrolling (and on mobile): deeper gold so it reads on white */
header.smaller div#logo .brand-logo-name,
header.header-mobile div#logo .brand-logo-name {
  background: linear-gradient(100deg, #0B1D3A 0%, #0B1D3A 52%, #C67F0A 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

header.smaller div#logo .brand-logo-sub,
header.header-mobile div#logo .brand-logo-sub {
  color: #C67F0A;
}

@media only screen and (max-width: 992px) {
  header div#logo .brand-logo-name {
    background: linear-gradient(100deg, #0B1D3A 0%, #0B1D3A 52%, #C67F0A 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  header div#logo .brand-logo-sub {
    color: #C67F0A;
  }
}

/* menu links over the hero: soft white, amber on hover */
@media only screen and (min-width: 993px) {
  header.transparent:not(.smaller):not(.header-mobile) #mainmenu > li > a,
  header.transparent:not(.smaller):not(.header-mobile) #mainmenu > li.has-child:after {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.3s ease, transform 0.3s ease;
  }

  header.transparent:not(.smaller):not(.header-mobile) #mainmenu > li:hover > a,
  header.transparent:not(.smaller):not(.header-mobile) #mainmenu > li.has-child:hover:after {
    color: #F5A623;
  }

  header.smaller #mainmenu > li > a {
    transition: color 0.3s ease, transform 0.3s ease;
  }

  header.smaller #mainmenu > li:hover > a {
    color: #C67F0A;
  }
}

/* the original header CSS forces white text over the hero with a very specific
   selector, so match it here to let the gold gradient show */
@media only screen and (min-width: 993px) {
  header.transparent:not(.smaller):not(.header-mobile) div#logo .brand-logo-name {
    color: transparent;
  }

  header.transparent:not(.smaller):not(.header-mobile) div#logo .brand-logo-sub {
    color: rgba(255, 255, 255, 0.78);
  }
}

/* ==================================================
   Leadership cards: same tile animation as the other cards
   (lift + 3D tilt from motion.js, accent bar, photo zoom, icon pop)
   ================================================== */
.leader-card {
  position: relative;
  border-radius: 22px;
  border-color: var(--sa-line);
  box-shadow: 0 10px 30px rgba(var(--bg-dark-1-rgb), 0.06);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.leader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bg-dark-1), var(--primary-color));
  transition: width 0.5s ease;
}

.leader-card:hover {
  transform: translateY(-12px);
  border-color: rgba(var(--primary-color-rgb), 0.5);
  box-shadow: 0 28px 60px rgba(var(--bg-dark-1-rgb), 0.16);
}

.leader-card:hover::before {
  width: 100%;
}

/* photo: slow zoom + navy wash rising from the bottom on hover */
.leader-img {
  position: relative;
}

.leader-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(var(--bg-dark-1-rgb), 0.55) 0%, rgba(var(--bg-dark-1-rgb), 0) 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.leader-card:hover .leader-img::after {
  opacity: 1;
}

.leader-img img {
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.leader-card:hover .leader-img img {
  transform: scale(1.08);
}

/* name + role */
.leader-body h3 {
  transition: color 0.4s ease;
}

.leader-card:hover .leader-body h3 {
  color: var(--bg-dark-1);
}

.leader-role {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: rgba(var(--primary-color-rgb), 0.14);
}

/* social icons pop up one after the other */
.leader-card .social-icons a i {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease;
}

.leader-card:hover .social-icons a i {
  transform: translateY(-4px);
}

.leader-card:hover .social-icons a:nth-child(2) i {
  transition-delay: 0.06s;
}

.leader-card .social-icons a:hover i {
  color: var(--bg-dark-1) !important;
  background: var(--primary-color) !important;
}

/* Cards that carry the WOW scroll-in class themselves: animate.css keeps the last
   keyframe applied ("fill-mode: both"), which freezes `transform` and blocks the
   hover lift and 3D tilt. "backwards" keeps the hidden start state during the
   delay but releases the card once the scroll-in has finished. */
.wow.animated.about-card,
.wow.animated.leader-card,
.wow.animated.service-card,
.wow.animated.client-card,
.wow.animated.project-card,
.wow.animated.home-service-card,
.wow.animated.other-service-card {
  animation-fill-mode: backwards;
}

/* ==================================================
   Mobile menu (below 993px): visible submenus + clean chevrons
   The theme left submenu links white on the white mobile menu.
   ================================================== */
@media only screen and (max-width: 992px) {
  header.header-mobile #mainmenu > li > a.menu-item {
    font-weight: 700;
  }

  /* submenu panel */
  header.header-mobile #mainmenu li ul {
    margin: 0;
    padding: 0 0 0 4px;
    background: #F5F7FB;
    border-left: solid 3px var(--primary-color);
    border-radius: 0 12px 12px 0;
  }

  header.header-mobile #mainmenu li ul li {
    padding-left: 16px;
    border: none;
  }

  header.header-mobile #mainmenu li li a {
    display: block;
    padding: 11px 0;
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-font-color) !important;
    background: none;
    border: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
  }

  header.header-mobile #mainmenu li li:first-child a {
    padding-top: 14px;
  }

  header.header-mobile #mainmenu li li:last-child a {
    padding-bottom: 14px;
  }

  header.header-mobile #mainmenu li li a:hover,
  header.header-mobile #mainmenu li li a:active {
    color: #C67F0A !important;
    padding-left: 6px;
  }

  /* arrow toggle: font chevron instead of the thin image, flips when open */
  header.header-mobile #mainmenu > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: 6px;
    border-radius: 10px;
    background: rgba(var(--bg-dark-1-rgb), 0.06) !important;
    transition: background-color 0.3s ease;
  }

  header.header-mobile #mainmenu > li > span::before {
    content: "\f107";
    font-family: "FontAwesome";
    font-size: 18px;
    line-height: 1;
    color: var(--heading-font-color);
    transition: transform 0.35s ease, color 0.3s ease;
  }

  header.header-mobile #mainmenu > li > span.active {
    background: var(--primary-color) !important;
  }

  header.header-mobile #mainmenu > li > span.active::before {
    transform: rotate(180deg);
    color: var(--bg-dark-1);
  }
}

/* ==================================================
   Footer logo: same lockup as the navbar (icon + gold name + sub-line)
   ================================================== */
footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

footer .footer-brand-icon {
  height: 84px;
  width: auto;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

footer .footer-brand:hover .footer-brand-icon {
  transform: rotate(-6deg) scale(1.05);
}

footer .footer-brand-text {
  display: flex;
  flex-direction: column;
  font-family: "Cinzel", Georgia, serif;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

footer .footer-brand-name {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(100deg, #FFE08A 0%, #F5A623 45%, #FF8A1F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

footer .footer-brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 10.4px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.78);
}

footer .footer-brand-sub::before,
footer .footer-brand-sub::after {
  content: "";
  flex: 1;
  height: 1.5px;
}

footer .footer-brand-sub::before {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0), #F5A623);
}

footer .footer-brand-sub::after {
  background: linear-gradient(90deg, #F5A623, rgba(245, 166, 35, 0));
}

/* GSTIN as a small tag line */
footer .footer-gstin {
  font-family: var(--heading-font);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

footer .footer-gstin span {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bg-dark-1);
  background: var(--primary-color);
}

@media (max-width: 575px) {
  footer .footer-brand-icon {
    height: 66px;
  }

  footer .footer-brand-name {
    font-size: 21px;
  }

  footer .footer-brand-sub {
    font-size: 8.8px;
    letter-spacing: 2px;
  }
}
