/* --- Brand Colors & Variables --- */
:root {
  --primary-blue: #0088cc;
  --dark-navy: #0b1a2d;
  --accent-cyan: #00d4d4;
  --bg-light: #f4f7f9;
  --text-dark: #222222;
  --text-muted: #666666;
}

/* --- Base Body & Typography --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* --- Container Adjustments --- */
.container-fullwidth {
  width: 100%;
  padding: 0;
}
/*background: linear-gradient(rgba(11, 26, 45, 1), rgba(11, 26, 45, 0.75)), 
              url('/images/hero-bg.jpg') center/cover no-repeat;*/
/* --- Hero Section --- */
.hero-wrapper {
  position: relative;
  background: #0b1a2d;
  color: #ffffff;
  padding: 100px 0 120px 0;
}
.hero-tag {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
}
.hero-title span {
  color: var(--accent-cyan);
}
.hero-sub {
  font-size: 1.1rem;
  color: #d1d5db;
  max-width: 550px;
}

/* --- Custom Buttons --- */
.btn-cyan {
  background-color: var(--accent-cyan);
  color: #0b1a2d;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn-cyan:hover {
  background-color: #00b3b3;
  color: #ffffff;
}
.btn-outline-white {
  border: 1px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  background: transparent;
}
.btn-outline-white:hover {
  background: #ffffff;
  color: var(--dark-navy);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  top: 180px;
  right: 20px;
  z-index: 9999;
  background: #25d366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.whatsapp-float:hover {
  color: #fff;
  background: #20ba5a;
}

/* --- Section Titles --- */
.section-tag {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-navy);
}

/* --- Feature & Product Cards --- */
.custom-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.custom-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* --- Dark Call-to-Action Section --- */
.cta-dark-section {
  background: linear-gradient(rgba(11, 26, 45, 0.9), rgba(11, 26, 45, 0.9)), 
              url('/images/cta-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 60px 0;
}

/* --- Modern Custom Footer --- */
.site-footer-custom {
  background-color: #08121e;
  color: #a0aec0;
  padding: 60px 0 20px 0;
  font-size: 0.9rem;
}
.site-footer-custom h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
}
.site-footer-custom a {
  color: #a0aec0;
  text-decoration: none;
}
.site-footer-custom a:hover {
  color: var(--accent-cyan);
}

/* --- Full-Width Breakout Helper --- */
.full-width-breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Ensure body does not create horizontal scrollbars due to 100vw */
body {
  overflow-x: hidden;
}

/* --- Dark Call-to-Action Section --- */
.cta-dark-section {
  background: linear-gradient(rgba(11, 26, 45, 0.9), rgba(11, 26, 45, 0.9)), 
              url('/images/cta-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 60px 0;
}

/* --- Modern Custom Footer --- */
.site-footer-custom {
  background-color: #08121e;
  color: #a0aec0;
  padding: 60px 0 20px 0;
  font-size: 0.9rem;
}
.site-footer-custom h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
}
.site-footer-custom a {
  color: #a0aec0;
  text-decoration: none;
}
.site-footer-custom a:hover {
  color: var(--accent-cyan);
}

/* --- Custom Main Menu Navigation Background --- */
.header, 
.container-header,
header.header {
  background-color: #0b1a2d !important; /* Replace with your desired hex color */
  background-image: none !important;     /* Removes default Cassiopeia gradient overlay */
}

/* Optional: Adjust main menu navigation links text color for readability */
.container-header .navbar a.nav-link {
  color: black !important;
}

/* Optional: Adjust menu links color when hovering */
.container-header .navbar a.nav-link:hover,
.container-header .navbar a.nav-link:focus {
  color: black  !important; /* #00d4d4 Accent color on hover */
}

/* --- Force Cassiopeia Header Grid into an Inline Flex Layout --- */
header.header,
.container-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Force Header Inner Containers to sit inline */
header.header > .grid-child,
.container-header > div,
.container-header .navbar-brand,
.container-header .navbar {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Position Logo Brand directly on the left */
.container-header .navbar-brand {
  margin-right: 1.5rem !important; /* Spacing between logo and first menu item */
  flex-shrink: 0 !important;
}

/* Constrain Logo Image Height */
.container-header .navbar-brand img,
.brand-logo img {
  max-height: 100px !important;
  width: auto !important;
  display: block !important;
}

/* Ensure Nav Menu sits immediately next to the Logo */
.container-header .navbar-collapse,
.container-header .nav-inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

.container-header ul.mod-menu,
.container-header .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.container-header ul.mod-menu > li,
.container-header .navbar-nav > li {
  margin-right: 1rem !important;
}

/* --- WebGL Background Canvas Container --- */
#webgl-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Semi-transparent dark overlay to keep text legible */
.hero-wrapper .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 26, 45, 0.65); /* Adjust opacity if you want WebGL brighter/darker */
  z-index: 2;
}

/* Ensure Hero Text and Buttons sit on top of the WebGL canvas */
.hero-wrapper .container {
  position: relative;
  z-index: 3;
}

/* --- Photorealistic Hero Video Background --- */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  padding: 140px 0 160px 0;
  background-color: #0b1a2d; /* Fallback dark background */
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

#hero-pump-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Guarantees edge-to-edge coverage without stretching */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Light / High-Exposure Overlay to preserve crisp readability */
.hero-wrapper .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 26, 45, 0.45); /* Balanced for high video visibility and text contrast */
  z-index: 2;
}

/* Ensure Hero Text and Buttons render above video */
.hero-wrapper .container {
  position: relative;
  z-index: 3;
}

/* Hide homepage-specific module positions on single article views 
body:not(.view-featured):not(.itemid-101) .hero-wrapper,
body:not(.view-featured):not(.itemid-101) #sp-top-a,
body:not(.view-featured):not(.itemid-101) #sp-top-b {
  display: none !important;
}*/

/* --- Windows Desktop Style Submenu Branching (Flyout to the Right) --- */

/* Ensure parent menu items act as positioning anchors */
.container-header .navbar-nav li,
.container-header ul.mod-menu li {
  position: relative !important;
}

/* Base Dropdown Styling (Level 1) */
.container-header .navbar-nav ul,
.container-header ul.mod-menu ul {
  position: absolute !important;
  top: 100% !important; /* Drops straight down under top bar */
  left: 0 !important;
  min-width: 220px !important;
  background-color: grey !important; /* Dark Navy matching your header */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  padding: 6px 0 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
  list-style: none !important;
  display: none !important; /* Hidden by default */
  z-index: 1000 !important;
}

/* Open Submenu on Hover */
.container-header .navbar-nav li:hover > ul,
.container-header ul.mod-menu li:hover > ul {
  display: block !important;
}

/* --- BRANCH TO THE RIGHT (Level 2+ Submenus) --- */
.container-header .navbar-nav ul ul,
.container-header ul.mod-menu ul ul {
  top: 0 !important;        /* Align vertically with the parent item */
  left: 100% !important;     /* Branch directly out to the RIGHT */
  margin-left: 2px !important; /* Small gap matching desktop menu feel */
}

/* Add Submenu Right Arrow Indicator (Windows Desktop Feel) */
.container-header ul.mod-menu ul li.parent > a::after,
.container-header .navbar-nav ul li.dropdown-submenu > a::after {
  content: " \25B6"; /* Solid right-pointing triangle ▶ */
  font-size: 0.75rem;
  float: right;
  margin-left: 10px;
  color: #a0aec0;
}

/* Submenu Link Styling */
.container-header .navbar-nav ul a,
.container-header ul.mod-menu ul a {
  display: block !important;
  padding: 8px 16px !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect on Submenu Items (Windows Highlight Style) */
.container-header .navbar-nav ul a:hover,
.container-header ul.mod-menu ul a:hover {
  background-color: #0088cc !important; /* Primary Blue highlight */
  color: #ffffff !important;
}

/*for main menu to appear in not only landscape but also potrait in Cassiopia*/
/* --- Force Header Navigation Display in Mobile Portrait Mode --- */

/* Ensure Header Container wraps cleanly on narrow screens */
@media (max-width: 767.98px) {
  header.header,
  .container-header {
    flex-wrap: wrap !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Make logo and mobile toggle sit side by side in portrait view */
  .container-header .navbar {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Ensure Mobile Hamburger Toggle button is visible in portrait mode */
  .container-header .navbar-toggler {
    display: inline-block !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 6px 10px !important;
    background-color: transparent !important;
  }

  .container-header .navbar-toggler-icon {
    filter: invert(1); /* Ensure icon lines are white/visible on dark header */
  }

  /* Expandable Menu Container for Portrait View */
  .container-header .navbar-collapse {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .container-header .navbar-collapse.show,
  .container-header .navbar-collapse.collapsing {
    display: block !important;
    background-color: #0b1a2d !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
    border-radius: 4px !important;
  }

  /* Stack menu items vertically in mobile dropdown */
  .container-header ul.mod-menu,
  .container-header .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .container-header ul.mod-menu > li,
  .container-header .navbar-nav > li {
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* Adjust submenus to stack naturally under parent items in portrait */
  .container-header ul.mod-menu ul,
  .container-header .navbar-nav ul {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    padding-left: 15px !important;
  }
}

/*make the contact image to the left and next to the contact details.*/
/* Force contact wrapper into a clean left-to-right flex row */
.com-contact__container {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Force the image to appear first (on the far left) */
.com-contact__thumbnail {
    order: -1 !important;
    float: none !important;
    margin: 0 !important;
    flex: 0 0 auto;
    max-width: 250px; /* Adjust width as needed */
}

/* Keep contact details and address grouped to the right of the image */
.com-contact__info,
.com-contact__address {
    flex: 1 1 300px;
}

/* Make the contact form or extra tabs drop cleanly below */
.com-contact__form,
.com-contact h3,
.com-contact__miscinfo {
    flex-basis: 100%;
}

/* Hide the "Contact" subheading above/next to contact details */
.com-contact h2:first-of-type {
    display: none !important;
}
