/*
Theme Name: Waterways Logistics
Theme URI: https://waterwayslog.com
Author: Alexander Seif
Description: A high-performance, global logistics portal theme for Waterways Logistics, featuring "The Scarab" persona.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.2
Text Domain: waterways-logistics
Tags: block-theme, dark-mode, aesthetics, luxury, logistics
*/
@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Lateef&display=swap");

/* Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0D1B3E;
}

::-webkit-scrollbar-thumb {
  background: #C8A84B;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3BAAD4;
}

/* Header Scroll Effect */
header.site-header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent !important;
  position: fixed !important;
  width: 100%;
  z-index: 9999;
}

header.site-header.scrolled {
  background-color: #ffffff !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Header Text Colors */
header.site-header:not(.scrolled) .wp-block-navigation-item__label,
header.site-header:not(.scrolled) .wp-block-navigation-link,
header.site-header:not(.scrolled) .wp-block-navigation-item__content {
  color: #ffffff !important;
}

/* Mobile Menu Overlay Fix */
header.site-header .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--wp--preset--color--navy-deep) !important;
}

header.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label,
header.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link,
header.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
header.site-header .wp-block-navigation__responsive-container.is-menu-open a {
  color: #ffffff !important;
}

header.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
  fill: #ffffff !important;
}

/* Hamburger Menu Button Gold Color */
.wp-block-navigation__responsive-container-open svg {
  fill: var(--wp--preset--color--brand-gold) !important;
}

header.site-header.scrolled .wp-block-navigation-item__label,
header.site-header.scrolled .wp-block-navigation-link,
header.site-header.scrolled .wp-block-navigation-item__content {
  color: #1E2D6B !important;
}

/* Ensure Logo Contrast on Deep Blue Contexts */
header.site-header:not(.scrolled) .wp-block-site-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: all 0.4s ease;
}

/* Adjust logo on scroll if needed */
header.site-header.scrolled .wp-block-site-logo img {
  max-width: 120px !important;
  filter: none;
  opacity: 1;
}

header.site-header .wp-block-site-logo img {
  transition: max-width 0.4s ease, filter 0.4s ease;
}

/* White Logo Block Style */
.is-style-white-logo img {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* Analog Clock Styles */
.analog-clock {
  width: 100px;
  height: 100px;
  border: 2px solid var(--wp--preset--color--brand-gold);
  border-radius: 50%;
  position: relative;
  margin: 0 auto 1rem;
  background: rgb(13, 27, 62);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75);
}

.analog-clock .hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  background: #fff;
  border-radius: 10px;
  transition: transform 0.05s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.analog-clock .hour {
  width: 3px;
  height: 25%;
  background: var(--wp--preset--color--brand-gold);
}

.analog-clock .minute {
  width: 2px;
  height: 35%;
  background: #fff;
}

.analog-clock .second {
  width: 1px;
  height: 40%;
  background: var(--wp--preset--color--sky-blue);
}

.analog-clock .center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--wp--preset--color--brand-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Animations */
.scarab-entrance {
  animation: scarabZoom 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.5);
}

@keyframes scarabZoom {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.pill-animate {
  animation: pillSlide 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes pillSlide {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Counter Section */
.counter-box {
  text-align: center;
  padding: 2rem;
}

.counter-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--wp--preset--color--brand-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  opacity: 0.7;
}

/* High-End Interactivity & Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Service Matrix Hover Effects */
.service-icon-box {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service-icon-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--wp--preset--color--brand-gold) !important;
  background: rgba(200, 168, 75, 0.05) !important;
}

/* Independent Floating Scarab */
.scarab-floating-block {
  position: fixed;
  top: 40vh;
  right: 2rem;
  left: auto;
  bottom: auto;
  width: 100px;
  height: 100px;
  z-index: 999999;
  pointer-events: none;
  animation: scarabFloat 4s ease-in-out infinite;
  opacity: 0.8;
  transition: top 0.8s cubic-bezier(0.2, 1, 0.3, 1), left 0.8s cubic-bezier(0.2, 1, 0.3, 1), right 0.8s cubic-bezier(0.2, 1, 0.3, 1), bottom 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  border-radius: 50%;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.scarab-floating-block a {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scarab-floating-block a img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.scarab-floating-block a:hover img {
  transform: scale(1.1);
}

[dir=rtl] .scarab-floating-block {
  right: auto;
  left: 2rem;
}

[dir=rtl] .scarab-floating-block.docked {
  right: auto;
  left: 2rem;
}

.scarab-floating-block.docked {
  top: calc(100vh - 100px);
  right: 2rem;
}

@media (min-width: 768px) {
  .scarab-floating-block {
    width: 150px;
    height: 150px;
    right: 4rem;
    top: 45vh;
  }

  .scarab-floating-block.docked {
    top: calc(100vh - 120px);
    right: 3rem;
  }

  [dir=rtl] .scarab-floating-block {
    right: auto;
    left: 4rem;
  }

  [dir=rtl] .scarab-floating-block.docked {
    right: auto;
    left: 3rem;
  }
}

@keyframes scarabFloat {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

/* Parallax Scale for Scarab Mascot */
.scarab-entrance {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* RTL Support */
[dir=rtl] {
  text-align: right;
  font-family: "Amiri", serif;
}

[dir=rtl] .wp-block-group.site-header {
  flex-direction: row-reverse;
}

[dir=rtl] .wp-block-navigation {
  flex-direction: row-reverse;
}

[dir=rtl] .value-prop {
  flex-direction: row-reverse;
  text-align: right;
}

[dir=rtl] .value-prop div:first-child {
  border-left: none;
  padding-left: 0;
  padding-right: 1.5rem;
}

[dir=rtl] .has-gold-border-left {
  border-left: none;
  border-right: 2px solid var(--wp--preset--color--brand-gold);
  padding-left: 0;
  padding-right: 1rem;
}

/* Language Switcher Styling */
.lang-switcher,
.pll-language-switcher,
.wp-block-polylang-language-switcher {
  display: flex;
  font-weight: 700;
  list-style: none;
  padding: 0;
  margin: 0;
}

header.site-header.scrolled .lang-switcher,
header.site-header.scrolled .pll-language-switcher {
  border-color: rgba(0, 0, 0, 0.1);
}

.lang-switcher a,
.pll-language-switcher a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.lang-switcher a.active,
.pll-language-switcher a,
.wp-block-polylang-language-switcher a {
  color: var(--wp--preset--color--brand-gold);
}

.lang-switcher a:not(.active),
.pll-language-switcher li:not(.current-lang) a {
  opacity: 0.5;
}

#hero.wp-block-cover,
#hero .wp-block-cover-image {
  min-height: 100vh;
}

:root :where(.wp-block-group-is-layout-flow)>*,
main {
  margin-block-start: 0;
}

.logo-grid div {
  max-width: 120px;
  height: auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}

.logo-grid div img {
  object-fit: contain;
}

.logo-grid div:hover {
  transform: scale(1.15);
  opacity: 1;
}

.calculator-col {
  flex-basis: 50%;
  background: #0D1B3E;
  padding: 4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#cbm-calculator .calc-group {
  margin-bottom: 1.5rem;
}

#cbm-calculator .calc-group label {
  display: block;
  font-size: 0.75rem;
  color: #3BAAD4;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

#cbm-calculator .calc-group input {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 1rem;
  border-radius: 5px;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s;
}

#cbm-calculator .calc-group input:focus {
  outline: none;
  border-color: #C8A84B;
  background: rgba(255, 255, 255, 0.08);
}

#cbm-calculator .result-box {
  margin-top: 3rem;
  background: rgba(200, 168, 75, 0.1);
  padding: 2rem;
  border-radius: 5px;
  border-left: 4px solid #C8A84B;
}

#cbm-calculator .result-box h4 {
  font-size: 0.75rem;
  margin: 0 0 0.5rem 0;
  opacity: 0.6;
  text-transform: uppercase;
}

#cbm-calculator .result-display {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.wp-block-accordion .wp-block-accordion-item {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  border-left: 4px solid var(--wp--preset--color--white);
}

.wp-block-accordion .wp-block-accordion-item:nth-child(2) {
  border-left-color: var(--wp--preset--color--sky-blue);
}

.wp-block-accordion .wp-block-accordion-item:last-child {
  border-left-color: var(--wp--preset--color--brand-gold);
}

.has-gold-border-left {
  border-left: 2px solid var(--wp--preset--color--brand-gold);
  padding-left: 1rem;
}

.global-quote-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.global-quote-form form p {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  width: 100%;
  position: relative;
}

.global-quote-form form p .wpcf7-form-control-wrap {
  flex: 1 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .global-quote-form form p .wpcf7-form-control-wrap {
    flex: 1 0 48%;
  }
}

.global-quote-form form input:not([type=radio]),
.global-quote-form form select {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  color: #0D1B3E;
  font-weight: 700;
}

.global-quote-form form input:not([type=radio]):disabled,
.global-quote-form form select:disabled {
  visibility: hidden;
}

.global-quote-form form {
  /* Radio Group Alignment */
}

.global-quote-form form .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item label input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item label input[type=radio]:checked {
  border-color: var(--wp--preset--color--brand-gold);
  background: var(--wp--preset--color--navy-deep);
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item label input[type=radio]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--wp--preset--color--brand-gold);
  border-radius: 50%;
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item label input[type=radio]:hover {
  border-color: var(--wp--preset--color--brand-gold);
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item.has-free-text {
  gap: 1rem;
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item.has-free-text input.wpcf7-free-text {
  flex: 1;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.5rem 1rem;
  height: auto;
  border-radius: 4px;
  font-weight: 400;
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item.has-free-text input.wpcf7-free-text:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--wp--preset--color--brand-gold);
  outline: none;
}

.global-quote-form form .wpcf7-radio .wpcf7-list-item.has-free-text input.wpcf7-free-text:disabled {
  display: none;
  visibility: hidden;
}

.global-quote-form form input[type=submit] {
  padding: 1.25rem;
  background: #0D1B3E;
  color: #fff;
  font-weight: 900;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-grow: 0;
}

.global-quote-form form .wpcf7-spinner {
  position: absolute;
}

[dir=rtl] .global-quote-form form p,
[dir=rtl] input.wpcf7-form-control.wpcf7-tel.wpcf7-validates-as-required.wpcf7-text.wpcf7-validates-as-tel {
  direction: rtl;
}

html {
  scroll-behavior: smooth;
}

#request-service {
  scroll-margin-top: 190px;
}

/* Services Page Custom Matrix Layout */
.service-row {
  margin-bottom: 3rem;
}

@media (min-width: 782px) {
  .service-row {
    margin-bottom: 5rem;
  }
}

@media (min-width: 782px) {
  .wp-block-columns.service-row.reverse-on-desktop {
    flex-direction: row-reverse;
  }
}

.service-cover {
  aspect-ratio: 16/9 !important;
  min-height: auto !important;
  width: 100%;
}

@media (min-width: 782px) {
  .service-cover {
    aspect-ratio: 2/3 !important;
  }
}

.hidden {
  display: none !important;
}

/*# sourceMappingURL=style.css.map */