/*
 * Sadhav Offshore - Layout Styles
 * --------------------------------
 * - Site Header & Navigation
 * - Main Content Sections
 * - Site Footer
 * - Overlapping & Custom Layouts
 * - CTA Section
 * - Responsive Layout Adjustments
 */

/* ==========================================================================
   #FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  background-color: var(--sadhav-blue);
  color: var(--color-link);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow: hidden;
}

/* Footer Top Section */
.footer-top {
  background-color: var(--sadhav-blue);
  position: relative;
  z-index: 1;
  /* padding: 4rem 0 2.5rem; */
}

.footer-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    135deg,
    rgba(0, 63, 135, 0.9) 0%,
    rgba(0, 40, 90, 0.9) 100%
  ); */
  background-color: #fff;
  z-index: -1;
}

/* Footer Widgets */
.footer-widget {
  margin-bottom: 1.5rem;
}
i {
  font-style: normal;
}
.footer-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  height: 70px;
}

.footer-logo:hover {
  transform: translateY(-3px);
}

.footer-about {
  /* color: ; */
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-title {
  /* color: white; */
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--sadhav-red);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  /* margin-bottom: 0.75rem; */
  margin-bottom: 5px;
  position: relative;
  padding-left: 0;
  transition: all 0.3s ease;
}

/* .footer-links li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sadhav-red);
  font-weight: bold;
  transition: all 0.3s ease;
} */

.footer-links li:hover {
  transform: translateX(5px);
}

.footer-links a {
  /* color: rgba(255, 255, 255, 0.8); */
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  width: 100%;
}

.footer-links a:hover {
  /* color: indianred; */
  padding-left: 5px;
}

.footer-links .view-all {
  /* color: var(--sadhav-light-blue); */
  font-weight: 500;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.footer-links .view-all:hover {
  /* color: white; */
  padding-left: 0;
}

.footer-links .view-all i {
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.footer-links .view-all:hover i {
  transform: translateX(3px);
}

/* Contact Info */
.footer-contact {
  margin: 0;
  padding: 0;
}

.contact-item {
  display: flex;
  /* margin-bottom: 1rem; */
  margin-bottom: 5px;
  align-items: flex-start;
  color: var(--color-link);
  transition: all 0.3s ease;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  /* color: var(--sadhav-red); */
  margin-right: 1rem;
  margin-top: 0.25rem;
  width: 20px;
  text-align: center;
}

.contact-item a {
  /* color: rgba(255, 255, 255, 0.8); */
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  /* color: white; */
  /* text-decoration: underline; */
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--sadhav-red);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Bottom */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.15);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  /* color: rgba(255, 255, 255, 0.7); */
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem;
}

.footer-legal-links a:hover {
  color: white;
}

.footer-legal-links a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--sadhav-red);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #c00510;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .footer-widget {
    margin-bottom: 2.5rem;
  }

  .footer-title {
    margin-bottom: 1.25rem;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
  }

  .footer-legal-links {
    justify-content: space-between;
    margin-top: 1rem;
  }

  .copyright {
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .footer-top {
    padding: 3rem 0 1.5rem;
  }

  .footer-widget {
    text-align: left;
  }

  .footer-title::after {
    left: 0%;
    /* transform: translateX(-50%); */
  }

  .footer-links li {
    padding-left: 0;
    margin-bottom: 0;
  }

  .footer-links li::before {
    display: none;
  }

  .social-links {
    justify-content: left;
  }

  .contact-item {
    justify-content: left;
    text-align: left;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .contact-item i {
    margin: 0 0 0.5rem 0;
    width: auto;
  }

  .footer-widget {
    margin-bottom: 0.5rem;
  }

  .contact-item span {
    /* margin: 0 0 0.5rem 0; */
    width: fit-content;
    margin-bottom: 0;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Site Header */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--color-background);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2) 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Add padding to body to account for fixed header */
body {
  padding-top: 70px;
  /* Adjust this value based on your header height */
}

/* For larger screens, revert to sticky */
@media (min-width: 992px) {
  .site-header {
    position: sticky;
    padding: var(--space-2) 0;
  }

  body {
    padding-top: 0;
  }
}

.site-header.is-scrolled {
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-md);
}

.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo svg {
  display: block;
  color: var(--sadhav-blue);
}

.site-header__menu {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.site-header__menu > li > a:not(.button) {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-strong);
  padding: var(--space-2) 0;
  position: relative;
  text-decoration: none;
}

.site-header__menu > li > a:not(.button)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.site-header__menu > li > a:not(.button):hover::after,
.site-header__menu > li > a[aria-current="page"]:not(.button)::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__menu-toggle {
  display: none !important;
  /* Hidden on desktop */
  z-index: 1001;
}

.site-header__cta {
  white-space: nowrap;
}

/* Main Content */
main {
  display: block;
  /* For IE11 */
}

.section {
  padding: var(--space-16) 0;
}

.section--light {
  background-color: var(--color-background-light);
}

.section__title {
  text-align: center;
  margin-bottom: var(--space-3);
}

.section__subtitle {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}

/* Overlapping Layout */
.layout-overlap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}

.layout-overlap__content {
  background-color: var(--color-background);
  padding: var(--space-8);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.layout-overlap__media {
  position: relative;
  z-index: 1;
}

.layout-overlap .layout-overlap__media {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  margin-right: -15%;
}

.layout-overlap .layout-overlap__content {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.layout-overlap--reversed .layout-overlap__media {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  margin-right: 0;
  margin-left: -15%;
}

.layout-overlap--reversed .layout-overlap__content {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

/* Global CTA Section */
.cta-section {
  color: var(--color-white);
  padding: 30px 0;
}

.cto-sect {
  background-color: var(--sadhav-blue);
}

.cta-section__title {
  color: var(--color-white);
  font-size: 2.25rem;
}

.cta-section__subtitle {
  color: var(--color-gray-200);
  margin-bottom: var(--space-6);
  font-size: 1.1rem;
}

/* Site Footer */
.site-footer {
  /* background-color: var(--sadhav-blue); */
  /* color: var(--color-gray-200); */
  padding: var(--space-12) 0 0;
}

/* 
.site-footer a {
  color: var(--color-gray-200);
} */

/* .site-footer a:hover {
  color: var(--color-white);
} */

.site-footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}

.site-footer__title {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

.site-footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom ul {
  display: flex;
  gap: var(--space-4);
}

.social-links {
  display: flex;
  gap: var(--space-2);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .layout-overlap,
  .layout-overlap--reversed {
    grid-template-columns: 1fr;
  }

  .layout-overlap .layout-overlap__media,
  .layout-overlap--reversed .layout-overlap__media {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    margin: 0 0 -10%;
  }

  .layout-overlap .layout-overlap__content,
  .layout-overlap--reversed .layout-overlap__content {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
  }
}

.site-header__logo img {
  height: 66px;
}

/* Hamburger Menu Styles */
.site-header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1002;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Styles */
.site-header__close-menu {
  display: none;
}

.stats-section h2 {
  font-size: 3rem;
  color: #fff;
}

@media (max-width: 768px) {
  .site-header {
    padding: var(--space-3) 0;
    position: fixed;
  }

  .site-header__container {
    position: relative;
    padding: 0 var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-header__nav {
    margin-left: auto;
  }

  .site-header__menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text);
    padding: var(--space-2);
    cursor: pointer;
    z-index: 1002;
    width: 40px;
    height: 40px;
  }

  .site-header__menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 300px;
    background-color: var(--color-background);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1001;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    opacity: 0;
  }

  .site-header__nav.is-open .site-header__menu-wrapper {
    transform: translateX(0);
    opacity: 1;
  }

  .site-header__close-menu {
    display: flex !important;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-background) !important;
    border: 2px solid var(--color-text) !important;
    border-radius: 4px;
    color: var(--color-text);
    padding: 0.5rem !important;
    z-index: 1003;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: none !important;
  }

  .site-header__menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    overflow: hidden;
    text-align: left;
    /* align-items: last baseline; */
  }

  .site-header__menu li {
    width: auto;
    text-align: left;
  }

  .site-header__menu a {
    display: block;
    font-size: 1.1rem;
    padding: var(--space-3) 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header__menu a:hover {
    color: var(--color-accent);
  }

  .site-header__cta {
    display: none;
  }

  .mobile-only {
    display: block;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    /* border-top: 1px solid var(--color-border); */
  }

  .mobile-only a {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  .site-header__logo img {
    height: 50px;
    transition: height 0.2s ease;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    text-align: left;
    gap: var(--space-6);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    text-align: left;
  }

  .site-footer__links ul,
  .site-footer__contact address {
    text-align: left;
  }

  .site-header__logo img {
    height: 60px;
  }

  .site-footer {
    padding-top: 0;
  }
}

.testimonials-section {
  position: relative;
  background-image: url("../images/testimonials.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.5); */
  z-index: 1;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

/* .testimonials-section .testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    margin: 2rem;
} */

.testimonial-slider {
  /* background: rgba(255, 255, 255, 0.1);
   */
  background-color: rgba(0, 63, 135, 0.4);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
}

.testimonial-slider__container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 2rem;
}

.testimonial-slider__slides {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.testimonial-slider__slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  padding: 0 1rem;
  box-sizing: border-box;
}

.testimonial-slider__controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-slider__controls button {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-slider__controls button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-primary);
}

/* Make arrows more prominent */
.testimonial-slider__prev::before {
  content: "❮";
  display: block;
  line-height: 1;
}

.testimonial-slider__next::before {
  content: "❯";
  display: block;
  line-height: 1;
}

.testimonial {
  font-style: italic;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 480px) {
  #service-carousel .card {
    padding: 0;
  }

  #service-carousel .card-img,
  #service-carousel h3,
  #service-carousel p,
  #service-carousel a {
    padding: 1rem;
    margin-bottom: 0px !important;
  }

  .owl-carousel .owl-item img {
    margin-bottom: 0 !important;
  }

  #service-carousel h3 {
    font-size: 1.3rem;
    padding-bottom: 0;
  }

  #service-carousel a {
    padding-bottom: 30px !important;
  }

  #service-carousel .card-title {
    font-size: 1rem;
  }

  #service-carousel .card-text {
    font-size: 0.8rem;
  }

  .section {
    padding: var(--space-8) 0;
  }

  .cta-section__title {
    color: var(--color-white);
    font-size: 1.25rem;
  }

  .project-item-card__content p {
    margin-bottom: 0 !important;
  }

  .about-section .btn {
    margin-top: 30px;
  }

  .btn {
    font-size: 1rem;
  }

  .hero__actions {
    margin-top: 30px;
  }

  body {
    overflow-x: hidden;
  }

  #our-story {
    overflow: hidden;
  }
}
