/**
 * Template Name: Logis (customized for Horizon Connex)
 * Updated: Jun 2025 (fixed Services image‐box heights)
 * Author: BootstrapMade.com (modified)
 */

/*==============================================================================
  1) GLOBAL VARIABLES (fonts, colors, themes)
==============================================================================*/
:root {
  /*── Font Stacks ─────────────────────────────────────────────────────────────*/
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
                  "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Poppins", sans-serif;
  --nav-font:     "Poppins", sans-serif;

  /*── Global Colors ───────────────────────────────────────────────────────────*/
  --background-color:       #ffffff;  /* Page background */
  --default-color:          #212529;  /* Body text */
  --heading-color:          #001973;  /* Headings */
  --accent-color:           #0d42ff;  /* Links, buttons, accents */
  --surface-color:          #ffffff;  /* Cards, boxed elements */
  --contrast-color:         #ffffff;  /* Text on accent backgrounds */

  /*── Navigation Colors ──────────────────────────────────────────────────────*/
  --nav-color:                    rgba(255, 255, 255, 0.6); /* Default nav link */
  --nav-hover-color:              #ffffff;                 /* Hover/active nav link */
  --nav-mobile-background-color:  #ffffff;                 /* Mobile menu background */
  --nav-dropdown-background-color:#ffffff;                 /* Dropdown background */
  --nav-dropdown-color:           #212529;                 /* Dropdown link color */
  --nav-dropdown-hover-color:     #0d42ff;                 /* Dropdown link hover */

  /*── Header Heights ─────────────────────────────────────────────────────────*/
  --header-height:           120px;
  --header-height-scrolled:  70px;

  /*── Scroll Behavior ─────────────────────────────────────────────────────────*/
  scroll-behavior: smooth;
}

/*── Light / Dark Section Overrides ──────────────────────────────────────────*/
.light-background {
  --background-color: #f7f9fc;
  --surface-color:    #ffffff;
}
.dark-background {
  --background-color: #0e1d34;
  --default-color:    #ffffff;
  --heading-color:    #ffffff;
  --surface-color:    #19335c;
  --contrast-color:   #ffffff;
}

/*── Auto / Forced Dark & Light Themes ───────────────────────────────────────*/
/* 1) Auto Dark when system preference is dark (unless user forced light) */
@media (prefers-color-scheme: dark) {
  html:not(.light-mode) {
    --background-color:             #0e1d34;
    --default-color:                #e0e6f3;
    --heading-color:                #ffffff;
    --accent-color:                 #0d42ff;
    --surface-color:                #19335c;
    --contrast-color:               #ffffff;
    --nav-color:                    rgba(224,230,243,0.7);
    --nav-hover-color:              #ffffff;
    --nav-mobile-background-color:  #0e1d34;
    --nav-dropdown-background-color:#19335c;
    --nav-dropdown-color:           #e0e6f3;
    --nav-dropdown-hover-color:     #3ea2ff;
  }
}
/* 2) Force Dark when html.dark-mode is present */
html.dark-mode {
  --background-color:             #0e1d34;
  --default-color:                #e0e6f3;
  --heading-color:                #ffffff;
  --accent-color:                 #0d42ff;
  --surface-color:                #19335c;
  --contrast-color:               #ffffff;
  --nav-color:                    rgba(224,230,243,0.7);
  --nav-hover-color:              #ffffff;
  --nav-mobile-background-color:  #0e1d34;
  --nav-dropdown-background-color:#19335c;
  --nav-dropdown-color:           #e0e6f3;
  --nav-dropdown-hover-color:     #3ea2ff;
}
/* 3) Force Light when html.light-mode is present */
html.light-mode {
  --background-color:             #ffffff;
  --default-color:                #212529;
  --heading-color:                #001973;
  --accent-color:                 #0d42ff;
  --surface-color:                #ffffff;
  --contrast-color:               #ffffff;
  --nav-color:                    rgba(255,255,255,0.6);
  --nav-hover-color:              #ffffff;
  --nav-mobile-background-color:  #ffffff;
  --nav-dropdown-background-color:#ffffff;
  --nav-dropdown-color:           #212529;
  --nav-dropdown-hover-color:     #0d42ff;
}

/*==============================================================================
  2) RESET & SHARED STYLES
==============================================================================*/
body {
  color:            var(--default-color);
  background-color: var(--background-color);
  font-family:      var(--default-font);
}
a {
  color:            var(--accent-color);
  text-decoration:  none;
  transition:       color 0.3s;
}
a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}
h1, h2, h3, h4, h5, h6 {
  color:       var(--heading-color);
  font-family: var(--heading-font);
}

/* Disable AOS animation delay on small screens */
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*==============================================================================
  3) PULSATING PLAY BUTTON
==============================================================================*/
.pulsating-play-btn {
  width:        94px;
  height:       94px;
  background:   radial-gradient(
                  var(--accent-color) 50%,
                  color-mix(in srgb, var(--accent-color), transparent 75%) 52%
                );
  border-radius: 50%;
  display:       block;
  position:      relative;
  overflow:      hidden;
}
.pulsating-play-btn:before {
  content:       "";
  position:      absolute;
  width:         120px;
  height:        120px;
  top:           -15%;
  left:          -15%;
  border-radius: 50%;
  border:        5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  background:    rgba(198,16,0,0);
  animation:     pulsate-play-btn 2s steps infinite forwards;
  opacity:       1;
}
.pulsating-play-btn:after {
  content:       "";
  position:      absolute;
  left:          50%;
  top:           50%;
  transform:     translate(-40%, -50%);
  width:         0;
  height:        0;
  border-top:    10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left:   15px solid #fff;
  z-index:       100;
  transition:    all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.pulsating-play-btn:hover:before {
  animation: none;
  border:    none;
}
.pulsating-play-btn:hover:after {
  border-left-color: var(--accent-color);
  transform:         scale(20);
}
@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6);
    opacity:   1;
  }
  100% {
    transform: scale(1);
    opacity:   0;
  }
}

/*==============================================================================
  4) HEADER & NAVIGATION
==============================================================================*/
/*── Base Header ───────────────────────────────────────────────────────────────*/
/* Always transparent by default; scrolled state overrides height & padding */
.header {
  height:           var(--header-height);
  background-color: transparent;
  padding:          20px 0;
  transition:       height 0.5s, padding 0.5s;
  z-index:          997;
  display:          flex;
  align-items:      center;
  white-space:      nowrap; /* Prevent overflow */
}

/*── Shrink‐on‐Scroll: reduce header height & padding, add shadow ──────────────*/
.scrolled .header {
  height:           var(--header-height-scrolled);
  padding:          10px 0;
  box-shadow:       0 0 18px rgba(0,0,0,0.1);
  background-color: rgba(14,29,52,0.9) !important;
}

/*── Logo ──────────────────────────────────────────────────────────────────────*/
/* Base rule: animates only height, not width */
.header .logo img {
  max-height:      calc(var(--header-height) * 1.0);
  max-width:       100%;
  min-width:       170px;      /* Prevent shrinking below 170px */
  margin-right:    8px;
  user-select:     none;
  -webkit-user-drag:none;
  transition:      max-height 0.5s; /* Only height transition */
}
/* Scroll-shrink: animate height to smaller header */
.scrolled .header .logo img {
  max-height: calc(var(--header-height-scrolled) * 1.0);
}

/* New helper class: applies width transition only when we add it */
.logo-transition {
  transition: width 0.5s ease;
}

/*── Contact Button in Header ─────────────────────────────────────────────────*/
.header .btn-getstarted,
.header .btn-getstarted:focus {
  color:          var(--contrast-color);
  background:     var(--accent-color);
  font-size:      14px;
  padding:        8px 25px;
  margin-left:    30px;
  border-radius:  4px;
  transition:     0.3s;
}
.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  color:      var(--contrast-color);
}

/*── Theme Toggle Button (☼/☾) ─────────────────────────────────────────────────*/
.header .btn-theme {
  background:    transparent;
  border:        none;
  padding:       0;
  margin-left:   5px;
  font-size:     1.5rem;
  line-height:   1;
  cursor:        pointer;
  color:         var(--contrast-color);
  transition:    background 0.3s;
}

/*── Language Selector ─────────────────────────────────────────────────────────*/
.lang-selector {
  position: relative;
  margin-left: 1px;
}
.header .btn-lang {
  background:  transparent;
  border:      none;
  padding:     0;
  margin-left: 1px;
  font-size:   1.5rem; /* flag size */
  line-height: 1;
  cursor:      pointer;
  color:       var(--contrast-color);
  transition:  background 0.3s;
}
.flag {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
  font-size:   1.5rem;
  line-height: 1;
  display:     inline-block;
}

/*── Desktop Navmenu (≥1200px) ─────────────────────────────────────────────────*/
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }
  .navmenu ul {
    display:       flex;
    list-style:    none;
    margin:        0;
    padding:       0;
    align-items:   center;
  }
  .navmenu li {
    position: relative;
  }
  .navmenu a,
  .navmenu a:focus {
    color:            var(--nav-color);
    padding:          18px 15px;
    font-size:        16px;
    font-family:      var(--nav-font);
    font-weight:      400;
    display:          flex;
    align-items:      center;
    justify-content:  space-between;
    white-space:      nowrap;
    transition:       0.3s;
  }
  .navmenu a i,
  .navmenu a:focus i {
    font-size:   12px;
    line-height: 0;
    margin-left: 5px;
    transition:  0.3s;
  }
  .navmenu li:last-child a {
    padding-right: 0;
  }
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  /*── Dropdown Menu (Desktop) ─────────────────────────────────────────────────*/
  .navmenu .dropdown ul {
    position:    absolute;
    top:         130%;
    left:        14px;
    background:  var(--nav-dropdown-background-color);
    padding:     10px 0;
    margin:      0;
    display:     block;
    visibility:  hidden;
    opacity:     0;
    transition:  0.3s;
    border-radius: 4px;
    z-index:     99;
    box-shadow:  0 0 30px rgba(0,0,0,0.1);
  }
  .navmenu .dropdown ul li {
    min-width: 200px;
  }
  .navmenu .dropdown ul a {
    padding:       10px 20px;
    font-size:     15px;
    color:         var(--nav-dropdown-color);
    text-transform:none;
  }
  .navmenu .dropdown ul a i {
    font-size: 12px;
  }
  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }
  .navmenu .dropdown:hover > ul {
    top:         100%;
    visibility:  visible;
    opacity:     1;
  }

  /*── Nested Dropdown (Desktop) ────────────────────────────────────────────────*/
  .navmenu .dropdown .dropdown ul {
    top:        0;
    left:       -90%;
    visibility: hidden;
  }
  .navmenu .dropdown .dropdown:hover > ul {
    top:        0;
    left:       -100%;
    visibility: visible;
    opacity:    1;
  }
}

/*── Mobile Navmenu (<1200px) ─────────────────────────────────────────────────*/
/* NOTE: We override only the color/font here so that nav links keep the desktop style */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color:       var(--nav-color);
    font-size:   28px;
    line-height: 0;
    margin-right:10px;
    cursor:      pointer;
    transition:  color 0.3s;
  }
  .navmenu {
    padding: 0;
    z-index: 9997;
  }
  .navmenu ul {
    display:          none;
    position:         absolute;
    inset:            60px 20px 20px 20px;
    padding:          10px 0;
    margin:           0;
    list-style:       none;
    border-radius:    6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y:       auto;
    box-shadow:       0 0 30px rgba(0,0,0,0.1);
    transition:       0.3s;
    z-index:          9998;
  }

  /*── Keep nav links identical to desktop styling ──────────────────────────────*/
  .navmenu a,
  .navmenu a:focus {
    color:            var(--nav-color);
    font-family:      var(--nav-font);
    font-size:        16px;
    font-weight:      400;
    padding:          18px 15px; /* same as desktop */
    display:          flex;
    align-items:      center;
    justify-content:  space-between;
    white-space:      nowrap;
    transition:       0.3s;
  }
  .navmenu a i,
  .navmenu a:focus i {
    font-size:         12px;
    line-height:       0;
    margin-left:       5px;
    width:             30px;
    height:            30px;
    display:           flex;
    align-items:       center;
    justify-content:   center;
    border-radius:     50%;
    background-color:  color-mix(in srgb, var(--accent-color), transparent 90%);
    transition:        0.3s;
  }
  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color:            var(--contrast-color);
  }
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color:            var(--contrast-color);
    transform:        rotate(180deg);
  }

  /*── Mobile Dropdown Submenus ─────────────────────────────────────────────────*/
  .navmenu .dropdown ul {
    position:         static;
    display:          none;
    z-index:          99;
    padding:          10px 0;
    margin:           10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border:           1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow:       none;
    transition:       all 0.5s ease-in-out;
  }
  .navmenu .dropdown ul ul {
    background-color: rgba(33,37,41,0.1);
  }
  .navmenu .dropdown > .dropdown-active {
    display:          block;
    background-color: rgba(33,37,41,0.03);
  }

  /*── Mobile Nav Active State ─────────────────────────────────────────────────*/
  .mobile-nav-active {
    overflow: hidden;
  }
  .mobile-nav-active .mobile-nav-toggle {
    color:      #fff;
    position:   absolute;
    font-size:  32px;
    top:        15px;
    right:      15px;
    z-index:    9999;
  }
  .mobile-nav-active .navmenu {
    position:         fixed;
    inset:            0;
    background:       rgba(33,37,41,0.8);
    overflow:         hidden;
    transition:       0.3s;
  }
  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}

/*── RTL Layout Adjustments ───────────────────────────────────────────────────*/
html.rtl {
  direction: rtl;
}
html.rtl .header .logo {
  margin-left: 1rem;
  margin-right: 0;
}
html.rtl .btn-getstarted {
  margin-left: 0 !important;
  margin-right: 30px !important;
}
html.rtl .lang-selector {
  margin-left: 0;
  margin-right: 30px;
}
html.rtl .navmenu ul {
  flex-direction: row-reverse;
}
/* Ensure header remains LTR even if html.dir=rtl */
html.rtl #header {
  direction: ltr !important;
}
html.rtl #header .container-xl,
html.rtl #header .container-fluid {
  flex-direction: row !important;
}

/*==============================================================================
  5) FOOTER
==============================================================================*/
.footer {
  background-color: var(--background-color);
  color:            var(--default-color);
  font-size:        14px;
  position:         relative;
}
.footer .footer-top {
  padding-top: 50px;
  border-top:  1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}
.footer .footer-about .logo {
  line-height:   1;
  margin-bottom: 25px;
}
.footer .footer-about .logo img {
  max-height:   40px;
  margin-right: 6px;
}
.footer .footer-about .logo span {
  color:          var(--heading-color);
  font-size:      30px;
  font-weight:    700;
  letter-spacing: 1px;
  font-family:    var(--heading-font);
}
.footer .footer-about p {
  font-size:    14px;
  font-family:  var(--heading-font);
}
.footer .social-links a {
  display:        flex;
  align-items:    center;
  justify-content:center;
  width:         40px;
  height:        40px;
  border-radius: 50%;
  border:        1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size:     16px;
  color:         color-mix(in srgb, var(--default-color), transparent 50%);
  margin-right:  10px;
  transition:    0.3s;
}
.footer .social-links a:hover {
  color:        var(--default-color);
  border-color: var(--default-color);
}
.footer h4 {
  font-size:       16px;
  font-weight:     bold;
  position:        relative;
  padding-bottom:  12px;
}
.footer .footer-links {
  margin-bottom: 30px;
}
.footer .footer-links ul {
  list-style: none;
  padding:    0;
  margin:     0;
}
.footer .footer-links ul i {
  padding-right: 2px;
  font-size:     12px;
  line-height:   0;
}
.footer .footer-links ul li {
  display:       flex;
  align-items:   center;
  padding:       10px 0;
}
.footer .footer-links ul li:first-child {
  padding-top: 0;
}
.footer .footer-links ul a {
  color:         color-mix(in srgb, var(--default-color), transparent 40%);
  display:       inline-block;
  line-height:   1;
}
.footer .footer-links ul a:hover {
  color: var(--default-color);
}
.footer .footer-contact p {
  margin-bottom: 5px;
}
.footer .copyright {
  padding-top:    30px;
  padding-bottom: 30px;
  border-top:     1px solid color-mix(in srgb, var(--heading-color), transparent 90%);
}
.footer .copyright p {
  margin-bottom: 0;
}
.footer .credits {
  margin-top: 4px;
  font-size:  13px;
}
.footer .credits a {
  color: var(--default-color);
}

/*==============================================================================
  6) SCROLL-TOP BUTTON
==============================================================================*/
.scroll-top {
  position:         fixed;
  visibility:       hidden;
  opacity:          0;
  right:            15px;
  bottom:           15px;
  z-index:          99999;
  background-color: var(--accent-color);
  width:            40px;
  height:           40px;
  border-radius:    4px;
  transition:       all 0.4s;
}
.scroll-top i {
  font-size:    24px;
  color:        var(--contrast-color);
  line-height:  0;
}
.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}
.scroll-top.active {
  visibility: visible;
  opacity:    1;
}

/*==============================================================================
  7) PAGE TITLES & BREADCRUMBS
==============================================================================*/
.page-title {
  color:            var(--default-color);
  background-color: var(--background-color);
  background-size:  cover;
  background-position: center;
  background-repeat: no-repeat;
  padding:          160px 0 80px 0;
  text-align:       center;
  position:         relative;
}
.page-title:before {
  content:       "";
  background-color: color-mix(in srgb, var(--background-color), transparent 30%);
  position:      absolute;
  inset:         0;
}
.page-title h1 {
  font-size:      42px;
  font-weight:    700;
  margin-bottom:  10px;
}
.page-title .breadcrumbs ol {
  display:         flex;
  flex-wrap:       wrap;
  list-style:      none;
  justify-content: center;
  padding:         0;
  margin:          0;
  font-size:       16px;
  font-weight:     400;
}
.page-title .breadcrumbs ol a {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}
.page-title .breadcrumbs ol a:hover {
  color: var(--contrast-color);
}
.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}
.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*==============================================================================
  8) SECTIONS & SECTION TITLES
==============================================================================*/
section,
.section {
  color:            var(--default-color);
  background-color: var(--background-color);
  padding:          60px 0;
  scroll-margin-top:100px;
  overflow:         clip;
}
@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*── Section Title ────────────────────────────────────────────────────────────*/
.section-title {
  text-align:    center;
  padding:       30px 0;
  margin-bottom: 30px;
  position:      relative;
}
.section-title h2 {
  font-size:      32px;
  font-weight:    700;
  text-transform: uppercase;
  margin-bottom:  20px;
  position:       relative;
  z-index:        2;
}
.section-title span {
  position:       absolute;
  top:            4px;
  color:          color-mix(in srgb, var(--heading-color), transparent 95%);
  left:           0;
  right:          0;
  z-index:        1;
  font-weight:    700;
  font-size:      52px;
  text-transform: uppercase;
  line-height:    1;
}
.section-title p {
  margin-bottom: 0;
  position:      relative;
  z-index:       2;
}
@media (max-width: 575px) {
  .section-title h2 {
    font-size:     28px;
    margin-bottom: 15px;
  }
  .section-title span {
    font-size:     38px;
  }
}

/*==============================================================================
  9) HERO SECTION
==============================================================================*/
.hero {
  width:       100%;
  min-height:  50vh;
  position:    relative;
  padding:     120px 0 60px 0;
}
.hero .hero-bg {
  position:      absolute;
  inset:         0;
  width:         100%;
  height:        100%;
  object-fit:    cover;
  z-index:       1;
}
.hero .container {
  position:      relative;
  z-index:       3;
}
.hero h2 {
  margin-bottom: 20px;
  font-size:     40px;
  font-weight:   700;
}
@media (max-width: 575px) {
  .hero h2 {
    font-size: 30px;
  }
}
.hero p {
  font-size:     15px;
  font-weight:   400;
  margin-bottom: 40px;
}
.hero form {
  background:   color-mix(in srgb, var(--default-color) 5%, white 90%);
  padding:      10px;
  border-radius:10px;
  display:      flex;
  flex-wrap:    wrap;
}
.hero form .form-control {
  padding:       18px 20px;
  border:        none !important;
  background:    none !important;
  margin-right:  10px;
}
.hero form .form-control:hover,
.hero form .form-control:focus {
  outline:     none;
  box-shadow:  none;
}
.hero form .btn-primary {
  color:            var(--contrast-color);
  background-color: var(--accent-color);
  flex-shrink:      0;
  padding:          0 25px;
}
.hero form .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}
.hero .stats-item {
  padding:  30px;
  width:    100%;
}
.hero .stats-item span {
  font-size:      32px;
  display:        block;
  font-weight:    700;
  margin-bottom: 15px;
  padding-bottom:15px;
  position:       relative;
}
.hero .stats-item span:after {
  content:       "";
  position:      absolute;
  bottom:        0;
  left:          0;
  right:         0;
  width:         20px;
  height:        3px;
  background:    var(--accent-color);
  margin:        auto;
}
.hero .stats-item p {
  margin:     0;
  padding:    0;
  font-family: var(--heading-font);
  font-size:  15px;
  font-weight:600;
}

/*==============================================================================
 10) FEATURED SERVICES
==============================================================================*/
.featured-services .service-item {
  position:       relative;
  height:         100%;
  margin-bottom:  30px;
}
.featured-services .service-item .icon {
  margin-right: 20px;
}
.featured-services .service-item .icon i {
  color:     var(--accent-color);
  font-size: 40px;
  transition:0.3s;
}
.featured-services .service-item:hover .icon i {
  color: var(--accent-color);
}
.featured-services .service-item .title {
  color:       var(--heading-color);
  font-weight: 700;
  margin-bottom: 10px;
  font-size:   20px;
  transition:  0.3s;
}
.featured-services .service-item .description {
  font-size:    15px;
  color:        color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom:10px;
}
.featured-services .service-item .readmore {
  display:       flex;
  align-items:   center;
  color:         color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight:   700;
  font-size:     14px;
  transition:    0.3s;
}
.featured-services .service-item .readmore i {
  margin-left: 8px;
}
.featured-services .service-item:hover .title,
.featured-services .service-item:hover .readmore,
.featured-services .service-item:hover .icon i {
  color: var(--accent-color);
}

/*==============================================================================
 11) ABOUT SECTION
==============================================================================*/
.about .content h3 {
  font-size:    2rem;
  font-weight:  700;
}
.about .content ul {
  list-style: none;
  padding:    0;
}
.about .content ul li {
  display:       flex;
  align-items:   flex-start;
  margin-top:    40px;
}
.about .content ul i {
  flex-shrink:  0;
  font-size:    48px;
  color:        var(--accent-color);
  margin-right: 20px;
  line-height:  0;
}
.about .content ul h5 {
  font-size:   18px;
  font-weight: 700;
}
.about .content ul p {
  font-size: 15px;
}
.about .content p:last-child {
  margin-bottom: 0;
}
.about .pulsating-play-btn {
  position: absolute;
  left:     calc(50% - 47px);
  top:      calc(50% - 47px);
}

/*==============================================================================
 12) SERVICES SECTION (fixed box heights for consistent text alignment)
==============================================================================*/
/* Ensure each card uses a flex column layout so content stacks predictably */
.services .card {
  display:         flex;
  flex-direction:  column;
  background-color: var(--surface-color);
  color:            var(--default-color);
  border:           1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  position:         relative;
  border-radius:    0;
  height:           100%;
  /* Allow consistent spacing below image: */
  justify-content:  flex-start;
}

/* Fixed-height container for images so every card’s image box is identical */
.services .card .card-img {
  height:             200px;       /* same fixed height for all cards */
  overflow:           hidden;
  margin-bottom:      15px;
  display:            flex;
  align-items:        center;
  justify-content:    center;
}

/* Images fill the 200px container but preserve their aspect ratio */
.services .card .card-img img {
  max-width:          100%;
  max-height:         100%;
  object-fit:         contain;     /* preserve aspect, center within */
  transition:         transform 0.3s ease-in-out; /* maintain hover scale */
}

/* Title immediately below the fixed image box, consistent across cards */
.services .card h3 {
  font-weight: 700;
  font-size:   18px;
  margin-bottom: 5px;
  padding:      10px 30px;
  text-transform: uppercase;
}

/* Link color for title text */
.services .card a {
  color:      var(--heading-color);
  transition: 0.3s;
}
.services .card a:hover {
  color: var(--accent-color);
}

/* Paragraph text below the title */
.services .card p {
  padding:      0 30px;
  margin-bottom:30px;
  color:        color-mix(in srgb, var(--default-color), transparent 40%);
  font-size:    15px;
  /* Allow it to push footer/spacer if needed */
  flex-grow:    1;
}

/* Hover effect: slightly scale the image */
.services .card:hover .card-img img {
  transform: scale(1.1);
}

/*==============================================================================
 13) CALL TO ACTION
==============================================================================*/
.call-to-action {
  padding: 80px 0;
  position: relative;
  clip-path: inset(0);
}
.call-to-action img {
  position:   fixed;
  top:        0;
  left:       0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  z-index:    1;
}
.call-to-action:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 20%);
  position: absolute;
  inset:    0;
  z-index:  2;
}
.call-to-action .container {
  position: relative;
  z-index:  3;
}
.call-to-action h3 {
  font-size:    28px;
  font-weight:  700;
  color:        var(--default-color);
}
.call-to-action p {
  color: var(--default-color);
}
.call-to-action .cta-btn {
  font-family:    var(--heading-font);
  font-weight:    500;
  font-size:      16px;
  letter-spacing: 1px;
  display:        inline-block;
  padding:        12px 40px;
  border-radius:  5px;
  margin:         10px;
  transition:     0.5s;
  border:         2px solid var(--contrast-color);
  color:          var(--contrast-color);
  background:     transparent;
}
.call-to-action .cta-btn:hover {
  background: var(--accent-color);
  border:     2px solid var(--accent-color);
}

/*==============================================================================
 14) FEATURES SECTION
==============================================================================*/
.features .features-item {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}
.features .features-item + .features-item {
  margin-top: 100px;
}
@media (max-width: 640px) {
  .features .features-item + .features-item {
    margin-top: 40px;
  }
}
.features .features-item h3 {
  font-weight: 700;
  font-size:   26px;
}
.features .features-item ul {
  list-style: none;
  padding:    0;
}
.features .features-item ul li {
  padding-bottom: 10px;
  display:        flex;
  align-items:    center;
}
.features .features-item ul li:last-child {
  padding-bottom: 0;
}
.features .features-item ul i {
  font-size:     20px;
  padding-right: 4px;
  color:         var(--accent-color);
}
.features .features-item p:last-child {
  margin-bottom: 0;
}

/*==============================================================================
 15) CONTACT SECTION
==============================================================================*/
.contact .info-item + .info-item {
  margin-top: 40px;
}
.contact .info-item i {
  color:            var(--contrast-color);
  background:       var(--accent-color);
  font-size:        20px;
  width:            44px;
  height:           44px;
  display:          flex;
  justify-content:  center;
  align-items:      center;
  border-radius:    4px;
  transition:       all 0.3s ease-in-out;
  margin-right:     15px;
}
.contact .info-item h3 {
  font-size:    18px;
  font-weight:  700;
  margin-bottom:5px;
}
.contact .info-item p {
  font-size:    14px;
  margin-bottom:0;
}
/* Targeting the form directly */
.contact form {
  height: 100%;
}
.contact form input[type=text],
.contact form input[type=email],
.contact form textarea {
  font-size:       14px;
  padding:         10px 15px;
  box-shadow:      none;
  border-radius:   0;
  color:           var(--default-color);
  background-color:color-mix(in srgb, var(--background-color), transparent 50%);
  border-color:    color-mix(in srgb, var(--default-color), transparent 80%);
}
.contact form input[type=text]:focus,
.contact form input[type=email]:focus,
.contact form textarea:focus {
  border-color: var(--accent-color);
}
.contact form input[type=text]::placeholder,
.contact form input[type=email]::placeholder,
.contact form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}
.contact form button[type=submit] {
  color:      var(--contrast-color);
  background: var(--accent-color);
  border:     0;
  padding:    10px 30px;
  transition: 0.4s;
  border-radius: 4px;
}
.contact form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*==============================================================================
 16) ALWAYS-LOGIS HEADER OVERRIDES (ignore dark/light)
==============================================================================*/
.header {
  background: transparent !important;
}
/* (The height‐shrink on scroll is handled above under .scrolled .header) */

/*==============================================================================
 17) LANGUAGE SELECTOR MENU
==============================================================================*/
.lang-menu {
  display:       none;
  position:      absolute;
  top:           100%;
  right:         0;
  margin-top:    4px;
  padding:       4px 0;
  background:    var(--surface-color);
  color:         var(--default-color);
  list-style:    none;
  border-radius: 4px;
  box-shadow:    0 4px 12px rgba(0,0,0,0.1);
  z-index:       1000;
}
.lang-menu li {
  display:       flex;
  align-items:   center;
  padding:       6px 12px;
  cursor:        pointer;
  white-space:   nowrap;
  transition:    background 0.3s;
}
.lang-menu li:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
}

/*==============================================================================
 18) RTL LAYOUT ADJUSTMENTS
==============================================================================*/
/* (Already covered under html.rtl earlier) */

/*==============================================================================
 19) HEADER ORDERING (mobile <1200px)
==============================================================================*/
@media (max-width: 1200px) {
  .header .logo           { order: 1; }
  .header .btn-getstarted { order: 2; }
  .header .navmenu        { order: 3; }
  .header .lang-selector  { order: 4; }
  .header .btn-theme      { order: 5; }
}

/*==============================================================================
 20) CUSTOM OVERRIDES & HEADER‐COLLAPSE STYLES (A–H)
==============================================================================*/
/* A) Override Logis’s mobile nav so top‐level <ul> stays flex/visible */
@media (max-width: 1199px) {
  #navmenu > ul {
    display:            flex !important;
    position:           static !important;
    background-color:   transparent !important;
    box-shadow:         none !important;
    inset:              auto !important;
    overflow:           visible !important;
  }
}
/* B) Hide any <li> flagged with .hide-item */
.nav-item.hide-item {
  display: none !important;
}
/* C) Style custom dropdown (hamburger) */
#header-dropdown {
  position: relative;
}
#header-dropdown > a.header-dropdown-toggle {
  display:          flex;
  align-items:      center;
  justify-content:  center;
  color:            var(--nav-color);
  font-size:        24px;
  padding:          0 12px;
  cursor:           pointer;
  transition:       color 0.3s;
}
#header-dropdown > a.header-dropdown-toggle i {
  font-size: 1.2rem;
}
#header-dropdown > a.header-dropdown-toggle:hover i {
  color: var(--nav-hover-color);
}
/* D) Full‐screen overlay for collapsed menu */
#header-dropdown .dropdown-menu {
  position:   fixed;
  top:        var(--header-height);
  left:       0;
  width:      100%;
  height:     calc(100vh - var(--header-height));
  background: var(--nav-mobile-background-color);
  overflow-y: auto;
  display:    none;      /* shown when .dropdown-open */
  list-style: none;
  padding:    20px 0;
  margin:     0;
  z-index:    999;
}
/* E) Restore original Logis link colors inside overlay */
#header-dropdown .dropdown-menu li a {
  display:          block;
  width:            100%;
  padding:          12px 24px;
  color:            var(--nav-dropdown-color);
  font-family:      var(--nav-font);
  font-size:        16px;
  text-decoration:  none;
  transition:       background 0.2s, color 0.2s;
}
#header-dropdown .dropdown-menu li a:hover {
  background: var(--nav-dropdown-hover-color);
  color:      var(--nav-dropdown-background-color);
}
/* F) Show overlay when .dropdown-open added */
#header-dropdown.dropdown-open .dropdown-menu {
  display: block;
}
/* G) & H) Specific tweaks when header collapses to “small” (<576px) */
.header.small-collapsed .container-xl {
  display:          flex;
  justify-content:  space-between;
  align-items:      center;
  padding-left:     12px;
  padding-right:    12px;
}
.header.small-collapsed #navmenu {
  order: 1; /* hamburger on left */
}
.header.small-collapsed #logo-link {
  order: 2;
  margin: 0 auto; /* center logo */
}
.header.small-collapsed .lang-selector,
.header.small-collapsed #theme-toggle {
  order: 3; /* remain on right */
}
@media (max-width: 575px) {
  #header-dropdown {
    display: block !important; /* always show hamburger at smallest widths */
  }
}
