:root {
  --keystone-navy: #091b4d;
  --keystone-gold: #c9a24a;
  --keystone-gold-soft: #e6d3a2;
}

/* Prevent horizontal scrolling on zoom out */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Keep gold limited to accents and highlights */
.sec-title .title,
.sec-title h2 span,
.main-menu .navigation > li.current > a,
.main-menu .navigation > li > a:hover,
.list-style-one li:before,
.list-style-two li .icon,
.list-style-five li .icon,
.list-style-six li .icon,
.read-more:hover {
  color: var(--keystone-gold) !important;
}

.sec-title h2:after,
.services-block-two .overlay-box-two .icon-box {
  background-color: var(--keystone-gold);
}

/* Hero slider highlight text */
.main-slider h1 span {
  color: var(--keystone-gold) !important;
}

/* First services section: gold on hover for icon and button */
.services-section .services-block .inner-box:hover .icon-box {
  background: var(--keystone-gold) !important;
}

.services-section .services-block .inner-box:hover h5 a {
  color: var(--keystone-gold) !important;
}

.services-section .services-block .inner-box .plus-box:hover,
.services-section .services-block .inner-box .plus-box:hover .plus {
  background-color: var(--keystone-gold) !important;
  color: #ffffff !important;
}

/* About page cards: matching hover accents */
.services-section-three .services-block-three .inner-box:hover .icon-box {
  background: var(--keystone-gold) !important;
}

.services-section-three .services-block-three .inner-box:hover h6 a {
  color: var(--keystone-gold) !important;
}

.services-section-three .services-block-three .inner-box:before,
.services-section-three .services-block-three .inner-box:after {
  background-color: var(--keystone-gold) !important;
}

/* Home page services section two: full gold hover card */
.services-section-two .services-block-two .inner-box:hover .overlay-box-two:before {
  background: var(--keystone-gold) !important;
}

.services-section-two .services-block-two .inner-box:hover .overlay-box-two .text,
.services-section-two .services-block-two .inner-box:hover .overlay-box-two h5 a {
  color: #ffffff !important;
}

.main-header .sticky-header {
  border-top: 1px solid var(--keystone-gold-soft);
}

/* Hero section modern refinements */
.main-slider {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow-x: hidden;
}

.main-slider .slide {
  background-image: none !important;
  background-color: transparent;
}

.main-slider .slide .content {
  max-width: 900px !important;
  margin: 0 auto !important;
  text-align: center;
  padding: 150px 40px !important;
}

.main-slider .title {
  display: none !important;
}

/* WhatsApp Sticky Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 999;
}

.whatsapp-button:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-button:active {
  transform: scale(0.95);
}

/* Mobile responsive button fixes */
@media (max-width: 768px) {
  .btn-style-one {
    padding: 12px 30px !important;
  }
  
  .btn-style-one .icon {
    display: none !important;
  }
  
  /* WhatsApp button mobile responsive */
  .whatsapp-button {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}

/* Main Slider Responsive Background Image */
@media (min-width: 1400px) {
  .main-slider {
    background-size: cover;
    background-position: center right;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .main-slider {
    background-size: cover;
    background-position: center right;
  }
}

@media (min-width: 992px) and (max-width: 1023px) {
  .main-slider {
    background-size: cover;
    background-position: center center;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .main-slider {
    background-size: cover;
    background-position: center center;
  }
}

@media (max-width: 767px) {
  .main-slider {
    background-size: cover;
    background-position: center center;
  }
}

/* Desktop: use more viewport width + clearer vertical rhythm (tablet/mobile unchanged) */
@media (min-width: 992px) {
  .auto-container {
    max-width: 1380px;
    padding-left: 28px;
    padding-right: 28px;
  }

  /* First content band after hero: was flush with slider */
  .services-section {
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .about-section {
    padding-top: 120px !important;
    padding-bottom: 112px !important;
  }

  .gallery-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .testimonial-section {
    padding-top: 120px !important;
    padding-bottom: 112px !important;
  }

  /* Overlap section: keep upward pull, add a bit more room below carousel */
  .testimonial-section.padding-top {
    padding-top: 80px !important;
    margin-top: 50px;
  }

  .services-section-two {
    padding-top: 120px !important;
    padding-bottom: 72px !important;
  }

  .team-section {
    padding-top: 115px !important;
    padding-bottom: 118px !important;
  }
}

@media (min-width: 1400px) {
  .auto-container {
    max-width: 1500px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1600px) {
  .auto-container {
    max-width: 1580px;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* --------------------------------------------------------------------------
   Footer (main-footer-keystone): layout, typography, contacts & social row
   -------------------------------------------------------------------------- */

.main-footer.main-footer-keystone {
  padding-top: 88px;
  background: linear-gradient(165deg, #0c2858 0%, #06173d 42%, #010c28 100%);
  box-shadow: inset 0 1px 0 rgba(230, 211, 162, 0.14);
}

.main-footer.main-footer-keystone:before,
.main-footer.main-footer-keystone:after {
  opacity: 0.45;
  pointer-events: none;
}

.main-footer.main-footer-keystone .widgets-section {
  padding-bottom: 48px;
}

.main-footer.main-footer-keystone .footer-widget {
  margin-bottom: 32px;
}

.main-footer.main-footer-keystone .footer-widget h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 162, 74, 0.28);
  color: rgba(255, 255, 255, 0.95);
}

.main-footer.main-footer-keystone .logo-widget .text {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.95em;
  max-width: 26em;
}

.main-footer.main-footer-keystone .list-link li a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.main-footer.main-footer-keystone .list-link li a:hover {
  margin-left: 0;
  text-decoration: none;
  transform: translateX(6px);
  color: var(--keystone-gold-soft) !important;
}

.main-footer.main-footer-keystone .footer-widget-contact .list-style-two li {
  line-height: 1.65em;
  margin-bottom: 14px;
  color: rgba(175, 211, 243, 0.95);
}

.main-footer.main-footer-keystone .footer-widget-contact .list-style-two li a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-footer.main-footer-keystone .footer-widget-contact .list-style-two li a:hover {
  color: var(--keystone-gold-soft);
  border-bottom-color: rgba(201, 162, 74, 0.45);
}

.main-footer.main-footer-keystone .footer-bottom {
  padding: 22px 0 20px;
  background: linear-gradient(180deg, rgba(0, 8, 24, 0.98) 0%, #020a1a 100%);
  border-top: 1px solid rgba(201, 162, 74, 0.35);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.2);
}

.main-footer.main-footer-keystone .footer-bottom .copyright {
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  color: rgba(175, 211, 243, 0.88);
}

.main-footer.main-footer-keystone .footer-bottom .copyright a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-footer.main-footer-keystone .footer-bottom .copyright a:hover {
  color: var(--keystone-gold-soft);
}

.main-footer.main-footer-keystone .footer-bottom .copyright-meta {
  opacity: 0.65;
  font-size: 12px;
}

@media (min-width: 992px) {
  .main-footer.main-footer-keystone .footer-bottom .copyright {
    justify-content: flex-start;
  }
}

.main-footer.main-footer-keystone .footer-bottom .social-column ul.footer-social {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-footer.main-footer-keystone .footer-bottom .social-column ul.footer-social li {
  margin-left: 0 !important;
}

.main-footer.main-footer-keystone .footer-bottom .social-column ul.footer-social li.follow {
  margin-right: 14px;
  color: rgba(175, 211, 243, 0.75);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-footer.main-footer-keystone .footer-bottom .social-column ul.footer-social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.main-footer.main-footer-keystone .footer-bottom .social-column ul.footer-social li a:hover {
  transform: translateY(-3px);
  background: var(--keystone-gold);
  border-color: var(--keystone-gold);
  color: var(--keystone-navy) !important;
}

@media (min-width: 992px) {
  .main-footer.main-footer-keystone .footer-bottom .social-column ul.footer-social {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .main-footer.main-footer-keystone .footer-bottom .copyright {
    justify-content: center;
    text-align: center;
  }
}

/* ============================================================
   MODERN PREMIUM STYLING UPDATES
   Premium look with modern animations and improved spacing
   ============================================================ */

/* ---- ROOT VARIABLES ---- */
:root {
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.25s var(--transition-smooth);
  --transition-normal: 0.35s var(--transition-smooth);
  --transition-slow: 0.5s var(--transition-smooth);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ---- MODERN ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(201, 162, 74, 0); }
}

/* ---- BUTTON IMPROVEMENTS ---- */
.theme-btn,
.btn-style-fifteen,
.btn-style-sixteen,
.btn-style-seventeen,
.btn-style-eighteen {
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.theme-btn:hover,
.btn-style-fifteen:hover,
.btn-style-sixteen:hover,
.btn-style-seventeen:hover,
.btn-style-eighteen:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Modern button styling */
.btn-style-fifteen,
.btn-style-sixteen,
.btn-style-seventeen {
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-style-fifteen:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(50, 65, 255, 0.35);
}

.btn-style-sixteen {
  padding: 18px 48px !important;
  border-radius: 8px !important;
}

.btn-style-sixteen:hover {
  transform: translateY(-3px);
}

/* ---- SERVICE CARDS ENHANCEMENT - MODERN PREMIUM ---- */

/* Modern smooth transitions */
@keyframes smoothLift {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlaySlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-block,
.services-block-three {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  overflow: hidden;
}

.services-block .inner-box,
.services-block-three .inner-box {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(9, 27, 77, 0.08);
}

/* Premium hover state - smooth elevation */
.services-block .inner-box:hover,
.services-block-three .inner-box:hover {
  box-shadow: 0 20px 50px rgba(9, 27, 77, 0.15);
  transform: translateY(-8px);
}

/* Icon boxes with smooth transitions */
.services-block .inner-box .icon-box,
.services-block-three .inner-box .icon-box {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

/* ---- SERVICES SECTION TWO - PREMIUM IMAGE CARDS ---- */
.services-block-two {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(9, 27, 77, 0.1);
}

.services-block-two .inner-box {
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image smooth transitions */
.services-block-two .image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.services-block-two .image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Premium hover - image zoom and dim */
.services-block-two:hover .image img {
  transform: scale(1.08);
  filter: brightness(0.75);
}

/* First overlay - title box */
.services-block-two .overlay-box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.services-block-two .overlay-inner {
  width: 100%;
}

.services-block-two .overlay-inner h5 {
  margin: 0 0 12px 0;
  font-size: 22px;
  color: #ffffff;
  transition: color 0.4s ease;
}

.services-block-two .overlay-inner h5 a {
  color: #ffffff !important;
  transition: color 0.4s ease;
}

/* Second overlay - detailed info (hidden by default) */
.services-block-two .overlay-box-two {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.95) 0%, rgba(156, 125, 50, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  padding: 40px 28px;
  text-align: center;
}

.services-block-two:hover .overlay-box-two {
  opacity: 1;
}

.services-block-two .overlay-inner-two {
  animation: overlaySlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-block-two .overlay-box-two .icon-box {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 20px;
  display: inline-flex;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-block-two:hover .overlay-box-two .icon-box {
  transform: scale(1.15) rotate(5deg);
}

.services-block-two .overlay-box-two h5 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.services-block-two .overlay-box-two h5 a {
  color: #ffffff !important;
}

.services-block-two .overlay-box-two .text {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.7;
  transition: all 0.4s ease;
}

/* Card hover - elevation and shadow */
.services-block-two:hover {
  box-shadow: 0 24px 60px rgba(9, 27, 77, 0.2);
  transform: translateY(-10px);
}

/* First overlay - hide on hover */
.services-block-two:hover .overlay-box {
  opacity: 0;
  transform: translateY(-20px);
}

/* ---- IMPROVED SPACING & SECTION PADDING ---- */
section {
  transition: padding var(--transition-normal);
}

.services-section,
.about-section,
.team-section,
.testimonial-section {
  padding-top: 88px !important;
  padding-bottom: 88px !important;
}

@media (min-width: 768px) {
  .services-section,
  .about-section {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
  }

  .team-section,
  .testimonial-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
}

@media (min-width: 1200px) {
  .services-section,
  .about-section,
  .team-section,
  .testimonial-section {
    padding-top: 140px !important;
    padding-bottom: 140px !important;
  }
}

/* ---- TYPOGRAPHY REFINEMENTS ---- */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.3px;
  font-weight: 700;
}

p {
  line-height: 1.75;
  letter-spacing: 0.2px;
}

.sec-title h2,
.sec-title-two h2 {
  line-height: 1.4;
  margin-bottom: 20px;
}

/* ---- HOVER & TRANSITION EFFECTS ---- */
a,
button,
input[type="submit"],
.read-more {
  transition: var(--transition-fast);
}

.read-more,
.read-more-two {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.read-more:hover,
.read-more-two:hover {
  border-bottom-color: var(--keystone-gold);
  color: var(--keystone-gold) !important;
  transform: translateX(2px);
}

/* ---- HERO SLIDER IMPROVEMENTS ---- */
.main-slider {
  position: relative;
  overflow: hidden;
}

.main-slider .business-image-box {
  animation: subtleFloat 3s ease-in-out infinite;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.main-slider h1 {
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 24px;
}

/* ---- CARD SHADOWS & DEPTH ---- */

.info-box,
.feature-block,
.case-block,
.news-block {
  box-shadow: 0 8px 20px rgba(9, 27, 77, 0.08);
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-box:hover,
.feature-block:hover,
.case-block:hover,
.news-block:hover {
  box-shadow: 0 16px 40px rgba(9, 27, 77, 0.15);
  transform: translateY(-8px);
}

/* ---- TESTIMONIAL CARDS ---- */

.testimonial-block,
.testimonial-content {
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(9, 27, 77, 0.08);
}

.testimonial-block:hover,
.testimonial-content:hover {
  box-shadow: 0 16px 40px rgba(9, 27, 77, 0.15);
  transform: translateY(-8px);
}

/* ---- INPUT FIELDS ---- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 16px;
  transition: var(--transition-fast);
  font-size: 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--keystone-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.1);
  outline: none;
}

/* ---- PRELOADER MODERNIZATION ---- */
.preloader {
  background-color: #ffffff;
  animation: fadeIn 0.4s ease-in;
}

/* ---- HEADER MODERNIZATION ---- */
.main-header {
  transition: var(--transition-normal);
}

.main-header.sticky-header {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.main-menu .navigation > li > a {
  transition: var(--transition-fast);
  padding: 8px 16px;
  border-radius: 4px;
}

.main-menu .navigation > li > a:hover,
.main-menu .navigation > li.current > a {
  background: rgba(201, 162, 74, 0.08);
  color: var(--keystone-gold) !important;
}

/* ---- GALLERY & PORTFOLIO MODERNIZATION ---- */

.gallery-item,
.portfolio-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(9, 27, 77, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover,
.portfolio-item:hover {
  box-shadow: 0 16px 40px rgba(9, 27, 77, 0.15);
  transform: translateY(-8px);
}

.gallery-item img,
.portfolio-item img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img,
.portfolio-item:hover img {
  transform: scale(1.08);
}

/* ---- COUNTER SECTION ---- */

.counter-block {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.counter-block:hover {
  transform: translateY(-6px);
}

/* ---- SPACING UTILITY CLASSES ---- */
.spacer-30 { height: 30px; }
.spacer-60 { height: 60px; }
.spacer-100 { height: 100px; }

@media (max-width: 768px) {
  .spacer-100 { height: 50px; }
}

/* ---- SCROLL TO TOP MODERNIZATION ---- */
.scroll-to-top {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.scroll-to-top:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ---- SECTION TITLES ---- */
.sec-title,
.sec-title-two,
.sec-title-three {
  margin-bottom: 60px;
}

.sec-title .title,
.sec-title-two .title,
.sec-title-three .title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.sec-title h2:after {
  transition: var(--transition-fast);
}

.sec-title:hover h2:after {
  width: 60px;
  background-color: var(--keystone-gold);
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 767px) {
  .services-section,
  .about-section,
  .team-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .btn-style-fifteen,
  .btn-style-sixteen,
  .btn-style-seventeen {
    padding: 12px 24px;
    font-size: 14px;
  }

  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  h3 { font-size: 24px !important; }
}

/* ---- MODERN GRADIENT BACKGROUNDS ---- */
.gradient-bg-premium {
  background: linear-gradient(135deg, var(--keystone-navy) 0%, #0c2858 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--keystone-navy) 0%, var(--keystone-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- ENHANCED TRANSITIONS ---- */
* {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.25s;
}

button, a, input, select, textarea {
  transition-duration: 0.3s;
}

.services-block, .gallery-item, .portfolio-item, .testimonial-block {
  transition-duration: 0.4s;
}

/* END MODERN PREMIUM STYLING */

/* ---- PAGE WRAPPER OVERFLOW FIX ---- */
.page-wrapper {
  overflow-x: hidden;
  width: 100%;
}

/* ---- TRUSTED SECTION ---- */
.trusted-section {
  position: relative;
  padding: 120px 0;
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 600px;
  display: flex;
  align-items: center;
  width: 100%;
}

.trusted-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.trusted-section .auto-container {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  max-width: 1200px;
}

.trusted-section .inner-column {
  max-width: 550px;
  margin: 0;
}

/* Accent Lines */
.trusted-section .accent-line,
.trusted-section .accent-line-bottom {
  width: 65px;
  height: 3px;
  background-color: var(--keystone-gold);
  margin-bottom: 30px;
  border-radius: 2px;
}

.trusted-section .accent-line-bottom {
  margin-top: 25px;
  margin-bottom: 30px;
}

/* Title Styling */
.trusted-section .trusted-title {
  font-size: 56px;
  line-height: 1.25;
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.trusted-section .trusted-title .navy-text {
  color: var(--keystone-navy);
  display: block;
  margin-bottom: 12px;
}

.trusted-section .trusted-title .gold-text {
  color: var(--keystone-gold);
  display: block;
  font-style: italic;
}

/* Description Text */
.trusted-section .trusted-description {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  max-width: 420px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.trusted-section .trusted-description p {
  margin: 0;
}

/* ---- CTA SECTION IMPROVEMENTS ---- */
.testimonial-section.padding-top .testimonial-block .inner-box .text {
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.testimonial-section.padding-top .testimonial-block .inner-box .author .theme-btn {
  background-color: var(--keystone-gold) !important;
  color: var(--keystone-navy) !important;
  border-color: var(--keystone-gold) !important;
  padding: 16px 45px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(201, 162, 74, 0.2) !important;
}

.testimonial-section.padding-top .testimonial-block .inner-box .author .theme-btn:hover {
  background-color: #dbb450 !important;
  border-color: #dbb450 !important;
  color: var(--keystone-navy) !important;
  box-shadow: 0 12px 32px rgba(201, 162, 74, 0.4) !important;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .trusted-section {
    padding: 100px 0;
    background-position: 100% center;
    background-size: 50% auto;
    min-height: 500px;
  }

  .trusted-section .trusted-title {
    font-size: 48px;
  }

  .trusted-section .trusted-description {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .trusted-section {
    padding: 90px 0;
    background-position: 95% center;
    background-size: 55% auto;
    background-attachment: scroll;
    min-height: 500px;
  }

  .trusted-section .trusted-title {
    font-size: 44px;
  }

  .trusted-section .trusted-description {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .trusted-section {
    padding: 80px 0;
    background-position: center center;
    background-size: 100% auto;
    background-attachment: scroll;
    min-height: auto;
  }

  .trusted-section::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  }

  .trusted-section .trusted-title {
    font-size: 42px;
  }

  .testimonial-section.padding-top .testimonial-block .inner-box .text {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .trusted-section {
    padding: 60px 20px;
    background-position: center bottom;
    background-size: 120% auto;
    background-attachment: scroll;
    min-height: 400px;
    display: block;
  }

  .trusted-section::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.93) 100%);
  }

  .trusted-section .auto-container {
    padding: 0;
  }

  .trusted-section .trusted-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .trusted-section .accent-line,
  .trusted-section .accent-line-bottom {
    width: 50px;
    height: 2px;
  }

  .trusted-section .trusted-description {
    font-size: 15px;
    max-width: 100%;
    line-height: 1.6;
  }

  .trusted-section .inner-column {
    max-width: 100%;
  }

  .testimonial-section.padding-top .testimonial-block .inner-box .text {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .testimonial-section.padding-top .testimonial-block .inner-box .author .theme-btn {
    padding: 13px 32px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .trusted-section {
    padding: 40px 15px;
    background-position: center bottom;
    background-size: 150% auto;
    min-height: 350px;
  }

  .trusted-section .trusted-title {
    font-size: 26px;
  }

  .trusted-section .trusted-description {
    font-size: 14px;
  }

  .testimonial-section.padding-top .testimonial-block .inner-box .text {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .testimonial-section.padding-top .testimonial-block .inner-box .author .theme-btn {
    padding: 11px 25px !important;
    font-size: 12px !important;
  }
}
