@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
--brand-blue: #003a5d;
--brand-green: #a6ce39;
--text-gray: #666666;
--bg-gray: #eef2f5;
}

html,
body {
margin: 0;
padding: 0;
height: 100%;
font-family: 'Montserrat', sans-serif;
box-sizing: border-box;
}

*,
*::before,
*::after {
box-sizing: inherit;
}

/* New Header Styles */
.mobile-only-link { display: none; }
.mobile-only-icon { display: none; }

.site-header {
  width: 100%;
  position: relative;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vw 4vw;
  background-color: #ffffff;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 45px;
  width: auto;
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #ffffff;
  width: 45vw;
  height: 45px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header-search:focus-within {
  box-shadow: 0 4px 15px rgba(0, 58, 93, 0.08);
  border-color: #cbd5e1;
}

.search-category-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1vw;
  background-color: #f8fafc;
  border-radius: 8px 0 0 8px;
  transition: background-color 0.3s ease;
}

.search-category-wrapper:hover {
  background-color: #f1f5f9;
}

.custom-dropdown-container {
  cursor: pointer;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.85vw;
}

.custom-select-trigger .dropdown-icon {
  color: var(--brand-blue);
  transition: transform 0.3s ease;
}

.custom-dropdown-container.open .dropdown-icon {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 58, 93, 0.15);
  border-radius: 12px;
  list-style: none;
  padding: 10px;
  margin: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  opacity: 0;
  visibility: hidden;
  transition: clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 1005;
}

.custom-dropdown-container.open .custom-select-options {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 1;
  visibility: visible;
}

.custom-option {
  padding: 12px 16px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-option:hover {
  background-color: #f8fafc;
  color: var(--brand-blue);
}

.custom-option.selected {
  color: var(--brand-blue);
  background-color: #f1f5f9;
}

.search-divider {
  width: 1px;
  height: 25px;
  background-color: #e2e8f0;
}

.search-input {
  flex-grow: 1;
  border: none;
  padding: 0 1.5vw;
  outline: none;
  font-size: 0.9vw;
  background-color: transparent;
  color: #334155;
  font-family: inherit;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.search-btn {
  background-color: var(--brand-blue);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-btn:hover {
  background-color: var(--brand-green);
  transform: scale(0.95);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1vw;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--brand-blue);
  transition: all 0.3s ease;
}

.icon-wrapper:hover {
  background-color: #f1f5f9;
  color: var(--brand-green);
  transform: translateY(-2px);
}

.hamburger-wrapper {
  position: relative;
}

.header-hamburger-toggle {
  display: none;
}

.hamburger-icon {
  cursor: pointer;
  margin: 0;
}

/* Animated Hamburger to Cross */
.animated-hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.animated-hamburger .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--brand-blue);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform-origin: center;
}

.header-hamburger-toggle:checked ~ .hamburger-icon .animated-hamburger .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.header-hamburger-toggle:checked ~ .hamburger-icon .animated-hamburger .bar-2 {
  opacity: 0;
}

.header-hamburger-toggle:checked ~ .hamburger-icon .animated-hamburger .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

.hamburger-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  min-width: 240px;
  background-color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 58, 93, 0.15);
  border-radius: 12px;
  list-style: none;
  padding: 12px;
  margin: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  opacity: 0;
  visibility: hidden;
  transition: clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 1002;
}

.header-hamburger-toggle:checked ~ .hamburger-dropdown {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 1;
  visibility: visible;
}

.hamburger-dropdown li {
  width: 100%;
}

.hamburger-dropdown li:not(:last-child) {
  margin-bottom: 4px;
}

.hamburger-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #334155;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.hamburger-dropdown a:hover {
  background-color: #f8fafc;
  color: var(--brand-blue);
  padding-left: 16px;
}

.header-bottom {
  background-color: var(--brand-blue);
  padding: 0;
}

.bottom-nav {
  display: flex;
  justify-content: center; /* Center the navigation links */
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  width: 100%;
  max-width: 900px; /* Perfect spacing across a defined max-width */
  justify-content: space-between;
}

.nav-links li {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links > li > a {
  text-decoration: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  height: 100%;
  letter-spacing: 0.5px;
}

.nav-links > li > a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--brand-green);
}

.nav-arrow {
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.nav-links .dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.separator {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: auto 0;
}

/* Dropdown styling for bottom nav */
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 15px);
  min-width: 340px;
  background-color: #ffffff;
  box-shadow: 0 15px 50px rgba(0, 58, 93, 0.2);
  list-style: none;
  margin: 0;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1002;
  border-radius: 12px;
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-links .dropdown-menu li {
  width: 100%;
  display: block;
}

.nav-links .dropdown-menu li:not(:last-child) {
  margin-bottom: 4px;
}

.nav-links .dropdown-menu a {
  color: #334155;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  background-color: transparent;
  transition: all 0.3s ease;
  border-radius: 8px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.nav-links .dropdown-menu a:hover {
  background-color: #f8fafc;
  color: var(--brand-blue);
  padding-left: 16px;
}

/* Overlay for when dropdowns are open */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  pointer-events: none;
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

body:has(#header-hamburger-toggle:checked)::after,
body:has(.nav-links .dropdown:hover)::after {
  opacity: 1;
  visibility: visible;
}

/* Footer Styles */
.site-footer {
background: linear-gradient(90deg, #ffffff 0%, #ffffff 15%, #cde0ec 50%, #e8f3cb 100%);
/* Starts with white on the left for the logo, then blends brand blue and brand green */
color: #334155;
position: relative;
width: 100%;
border-top: 0.1vw solid rgba(0, 0, 0, 0.05);
/* Subtle separator from section above */
}

.footer-top {
display: grid;
grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
/* Exact proportions for perfect gapping */
padding: 3vw 6vw;
/* Reduced from 5vw */
gap: 4vw;
}

.footer-logo-box {
background-color: transparent;
/* No need for white box on white bg */
padding: 0;
display: inline-block;
margin-bottom: 4vw;
}

.footer-logo-box img {
max-width: 15vw;
/* Increased slightly to fill the missing padding */
height: auto;
display: block;
}

.brand-col {
display: flex;
justify-content: center;
align-items: center;
}

.brand-col p {
font-size: 1.05vw;
line-height: 1.8;
margin: 0;
color: #475569;
/* Slate grey text */
}

.links-col h3,
.contact-col h3 {
font-size: 1.2vw;
font-weight: 800;
margin: 0 0 1.5vw 0;
text-transform: uppercase;
letter-spacing: 0.05vw;
color: var(--brand-blue);
/* Brand blue headings */
}

.links-col ul {
list-style: none;
padding: 0;
margin: 0;
}

.links-col ul li {
margin-bottom: 1.2vw;
}

.links-col ul li a {
color: #475569;
text-decoration: none;
font-size: 1vw;
transition: color 0.3s ease;
text-transform: uppercase;
font-weight: 600;
}

.links-col ul li a:hover {
color: var(--brand-green);
}

.contact-info {
list-style: none;
padding: 0;
margin: 0;
}

.contact-info li {
display: flex;
align-items: flex-start;
margin-bottom: 1.5vw;
gap: 1vw;
}

.contact-info .icon {
flex-shrink: 0;
margin-top: 0.2vw;
}

.contact-info .icon svg {
width: 1.2vw;
height: 1.2vw;
fill: var(--brand-blue);
/* Blue icons */
}

.contact-info .text {
font-size: 1vw;
line-height: 1.6;
color: #475569;
}

.footer-bottom {
background-color: var(--brand-blue);
/* Changed from black to brand blue */
padding: 1.2vw 6vw;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}

.footer-bottom p {
margin: 0;
font-size: 0.95vw;
color: #f1f5f9;
letter-spacing: 0.05vw;
}

.designer-link {
color: var(--brand-green);
text-decoration: none;
font-weight: 600;
transition: opacity 0.3s ease;
}

.designer-link:hover {
opacity: 0.8;
}

.contact-link {
color: inherit;
text-decoration: none;
transition: color 0.3s ease;
}

.contact-link:hover {
color: var(--brand-blue);
}

.back-to-top {
position: absolute;
right: 6vw;
bottom: 4vw;
background-color: var(--brand-green);
color: #ffffff;
width: clamp(45px, 4vw, 70px);
height: clamp(45px, 4vw, 70px);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
font-size: clamp(22px, 2vw, 32px);
font-weight: bold;
box-shadow: 0 0.5vw 1.5vw rgba(166, 206, 57, 0.4);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 100;
}

.back-to-top:hover {
background-color: var(--brand-blue);
transform: translateY(-0.5vw) scale(1.1);
box-shadow: 0 1vw 2.5vw rgba(0, 58, 93, 0.3);
}

/* =========================================
BREADCRUMB BANNER (GLOBAL)
========================================= */
.breadcrumb-banner {
height: 25vh;
min-height: 180px;
background: linear-gradient(rgba(0, 58, 93, 0.85), rgba(0, 58, 93, 0.85)), url('../assets/images/our-capabilities-2.png') center/cover no-repeat;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}

.breadcrumb-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 1vw;
}

.breadcrumb-content h1 {
color: #ffffff;
font-size: 2.8vw;
margin: 0;
text-transform: uppercase;
letter-spacing: 0.15vw;
font-weight: 800;
}

.breadcrumb-pill {
background-color: var(--brand-green);
padding: 0.6vw 1.5vw;
border-radius: 0.4vw;
/* Reduced border radius as requested */
font-size: 0.8vw;
font-weight: 700;
color: var(--brand-blue);
display: flex;
align-items: center;
gap: 0.5vw;
box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.1);
}

.breadcrumb-pill a {
color: var(--brand-blue);
text-decoration: none;
transition: color 0.3s ease;
}

.breadcrumb-pill a:hover {
color: #ffffff;
text-decoration: underline;
}

.breadcrumb-pill .divider {
color: rgba(0, 58, 93, 0.4);
margin: 0 0.2vw;
}

/* =========================================
RESPONSIVE DESIGN (GLOBAL)
========================================= */

/* Default Hamburger state (Hidden on Desktop) */
.menu-checkbox {
display: none;
}

.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 0.4vw;
z-index: 1100;
}

.hamburger span {
width: 2.5vw;
height: 0.3vw;
background-color: var(--brand-blue);
border-radius: 0.2vw;
transition: all 0.3s ease;
}

/* TABLET (720px - 1020px) */
@media (max-width: 1020px) {
header {
padding: 2vw 4vw;
}

.logo-container img {
width: 25vw;
}

.hamburger {
display: flex;
gap: 0.8vw;
}

.hamburger span {
width: 4vw;
height: 0.5vw;
}

/* Nav Links retain desktop horizontal style, just adapt padding for tablet */
.nav-links > li > a {
  padding: 16px 20px;
}

/* Dropdown Tablet/Mobile Collapsible */
.nav-links .dropdown-menu {
position: static;
opacity: 1;
visibility: visible;
transform: none;
box-shadow: none;
padding-left: 0;
width: 100%;
background-color: #f8fafc;
display: none;
}

.nav-links .dropdown:hover .dropdown-menu {
display: flex;
flex-direction: column;
}

.nav-links .dropdown-menu a {
font-size: 1.8vw;
padding: 1.5vw 8vw;
}

/* Full screen overlay when menu is open */
body:has(.menu-checkbox:checked)::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.6);
z-index: 900;
}

/* Footer Tablet */
.footer-top {
grid-template-columns: 1fr 1fr;
gap: 6vw;
padding: 6vw;
}

.brand-col p {
font-size: 1.8vw;
}

.footer-logo-box img {
max-width: 25vw;
}

.links-col h3,
.contact-col h3 {
font-size: 2vw;
}

.links-col ul li a {
font-size: 1.8vw;
}

.contact-info .text {
font-size: 1.8vw;
}

.contact-info .icon svg {
width: 2vw;
height: 2vw;
}

.footer-bottom p {
font-size: 1.5vw;
}

.back-to-top {
bottom: 4vw;
}

/* Breadcrumb Tablet */
.breadcrumb-content h1 {
font-size: 4vw;
}

.breadcrumb-pill {
font-size: 1.6vw;
padding: 1vw 2.5vw;
}
}

/* MOBILE (320px - 719px) */
@media (max-width: 720px) {
header {
padding: 0;
}

.header-top {
padding: 4vw 6vw;
}

/* Show Bottom Nav & Show in Hamburger */
.header-bottom { display: block; }
.mobile-only-link { display: block; }

/* Make search just an icon */
.header-search {
  display: none; /* Hide main search bar entirely on mobile */
}

/* Style the mobile-only search icon & group them perfectly */
.mobile-only-icon {
  display: flex;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 0; /* User requested 0 gap between icons */
}

/* Hamburger Dropdown details styling */
.mobile-dropdown-menu {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 1.1vw;
  transition: all 0.3s ease;
  padding: 1vw 2vw; /* Standard desktop padding */
}
@media (max-width: 720px) {
  details > summary {
    font-size: 4vw;
    padding: 3vw 5vw;
  }
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] > summary svg {
  transform: rotate(180deg);
}
details > summary svg {
  transition: transform 0.3s ease;
}
.mobile-dropdown-menu li a {
  padding-left: 8vw !important;
  font-size: 3.5vw !important;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid #f1f5f9;
}

.logo-container img {
width: 40vw;
}

.hamburger {
gap: 1.2vw;
}

.hamburger span {
width: 6vw;
height: 0.8vw;
}

.nav-links {
  justify-content: space-evenly;
  width: 100%;
}
.nav-links > li > a {
  font-size: 14.5px !important; /* Increased font size for readability */
  padding: 12px 4px; /* Reduced padding to fit perfectly without scroll */
}

/* Dropdown Mobile */
.nav-links .dropdown-menu {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  display: block;
}
.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-links .dropdown-menu a {
  font-size: 14px;
  padding: 12px 16px;
}

/* Footer Mobile */
.footer-top {
grid-template-columns: 1fr;
gap: 8vw;
padding: 8vw 6vw;
text-align: left;
}

.footer-logo-box {
margin-bottom: 4vw;
}

.footer-logo-box img {
max-width: 40vw;
}

.brand-col p {
font-size: 3.5vw;
}

.links-col h3,
.contact-col h3 {
font-size: 4vw;
margin-bottom: 3vw;
}

.links-col ul li {
margin-bottom: 2.5vw;
}

.links-col ul li a {
font-size: 3.5vw;
}

.contact-info li {
justify-content: flex-start;
gap: 3vw;
margin-bottom: 4vw;
flex-direction: row;
align-items: flex-start;
}

.contact-info .icon svg {
width: 5vw;
height: 5vw;
margin-top: 0.5vw;
}

.contact-info .text {
font-size: 3.5vw;
line-height: 1.5;
}

.footer-bottom {
padding: 4vw 6vw;
}

.footer-bottom p {
font-size: 3.5vw;
text-align: left;
line-height: 1.6;
}

.designed-by {
display: block;
margin-top: 1vw;
}

.back-to-top {
width: clamp(45px, 12vw, 60px);
height: clamp(45px, 12vw, 60px);
font-size: clamp(24px, 6vw, 32px);
right: 4vw;
bottom: 6vw;
}

/* Breadcrumb Mobile */
.breadcrumb-banner {
height: 20vh;
min-height: 150px;
}

.breadcrumb-content h1 {
font-size: 6vw;
}

.breadcrumb-pill {
font-size: 3vw;
padding: 1.5vw 3.5vw;
}
.bottom-nav {
  overflow-x: hidden;
}
.footer-bottom{
  justify-content: start;
}
}

/* =========================================
GLOBAL LOADER
========================================= */
.loader-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #ffffff;
z-index: 99999;
display: flex;
justify-content: center;
align-items: center;
transition: opacity 0.5s ease;
}

.loader-spinner {
position: relative;
width: 40px;
height: 60px;
border: 4px solid var(--brand-blue);
border-top: none;
border-radius: 0 0 10px 10px;
background: transparent;
animation: beaker-bounce 2s ease-in-out infinite;
}

/* Beaker Lip */
.loader-spinner::before {
content: '';
position: absolute;
top: -4px;
left: -12px;
right: -12px;
height: 4px;
background-color: var(--brand-blue);
border-radius: 4px;
}

/* Chemistry Liquid */
.loader-spinner::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background-color: var(--brand-green);
border-radius: 0 0 5px 5px;
animation: liquid-fill 1.5s ease-in-out infinite alternate;
}

@keyframes beaker-bounce {

0%,
100% {
transform: translateY(0) rotate(0deg);
}

25% {
transform: translateY(-5px) rotate(8deg);
}

75% {
transform: translateY(-5px) rotate(-8deg);
}
}

@keyframes liquid-fill {
0% {
height: 15%;
opacity: 0.8;
}

100% {
height: 85%;
opacity: 1;
}

}