/* Maersk-Inspired Color Palette */
:root {
  --maersk-blue-dark: #004f71;
  /* Primary Maersk blue, very dark */
  --maersk-blue-medium: #006798;
  /* Medium blue for accents */
  --maersk-blue-light: #e0f2f7;
  /* Very light blue for subtle backgrounds */
  --maersk-gray-dark: #333333;
  /* Dark text */
  --maersk-gray-medium: #666666;
  /* Muted text */
  --maersk-gray-light: #f0f2f5;
  /* Light background sections */
  --maersk-white: #ffffff;
  /* Pure white */
  --maersk-accent-orange: #ff8c00;
  /* Subtle accent for highlights */
  --navbar-height: 80px; 
  /* Adjusted for logo height */
  --shadow-subtle: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.2);
}

/* --- STICKY FOOTER CORE --- */
html {
  height: 100%;
}

body {
  padding-top: var(--navbar-height);
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, var(--maersk-blue-light) 0%, var(--maersk-white) 100%);
  color: var(--maersk-gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
  
  /* These 3 lines solve the footer issue without changing layout */
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}

/* This grows to fill empty space */
main {
  flex: 1 0 auto;
}

/* This stays at the bottom */
footer {
  flex-shrink: 0;
}
/* --- END STICKY FOOTER CORE --- */

/* Navbar Customization */
.navbar {
  background-color: var(--maersk-white) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px var(--shadow-subtle);
  padding: 0.5rem 0;
}

.navbar-brand img {
  height: 65px; /* Size for the header logo */
  width: auto;
  object-fit: contain;
  margin-top: -12px; /* Pulls image up to trim white space */
  margin-bottom: -12px; /* Pulls image up to trim white space */
}

.navbar-brand .company-name-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--maersk-gray-dark);
  margin-left: 0.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--maersk-gray-dark) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background-color: var(--maersk-blue-medium);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--maersk-blue-medium) !important;
}

/* Hero Section */
.hero-section {
  background: url('images/heroimage_1024x576.webp') no-repeat center center;
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maersk-white);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-section h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-section p.lead {
  font-size: 1.4rem;
  font-weight: 300;
  margin-top: 1.5rem;
}

/* Animations for Hero Section */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Custom Buttons (Maersk Style) */
.btn-primary-maersk {
  background-color: var(--maersk-blue-medium);
  border-color: var(--maersk-blue-medium);
  color: var(--maersk-white);
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 103, 152, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary-maersk:hover {
  background-color: var(--maersk-blue-dark);
  border-color: var(--maersk-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 103, 152, 0.3);
}

.btn-outline-maersk {
  border: 2px solid var(--maersk-blue-medium);
  color: var(--maersk-blue-medium);
  background-color: transparent;
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-outline-maersk:hover {
  background-color: var(--maersk-blue-medium);
  color: var(--maersk-white);
  box-shadow: 0 4px 12px rgba(0, 103, 152, 0.2);
}

/* Section Titles (Maersk Style) */
.section-title-maersk {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--maersk-blue-dark);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 3.5rem !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-title-maersk::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--maersk-blue-medium);
  border-radius: 2px;
}

.section-title-maersk-light {
  color: var(--maersk-white);
}

.section-title-maersk-light::after {
  background-color: var(--maersk-accent-orange);
}

/* Section Backgrounds */
.bg-white-section { background-color: var(--maersk-white) !important; }
.bg-light-section { background-color: var(--maersk-blue-light) !important; }

/* About Us Section */
.about-card {
  background-color: var(--maersk-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.about-card:hover {
  box-shadow: 0 8px 20px var(--shadow-medium);
  transform: translateY(-5px);
}

.about-card i {
  color: var(--maersk-blue-medium);
  margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
  background-color: var(--maersk-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px var(--shadow-subtle);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  box-shadow: 0 8px 25px var(--shadow-medium);
  transform: translateY(-8px);
  border-color: var(--maersk-blue-medium);
}

.service-card i {
  color: var(--maersk-blue-medium);
  margin-bottom: 1rem;
}

.service-card h5 {
  color: var(--maersk-blue-dark);
  font-weight: 600;
}

.service-card p {
  color: var(--maersk-gray-medium);
}

/* Client Testimonials Carousel */
.bg-primary-maersk {
  background-color: var(--maersk-blue-dark) !important;
  background-image: linear-gradient(to right, var(--maersk-blue-dark), #003a7a);
}

.testimonial-card-maersk {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem;
  border-radius: 0.75rem;
  max-width: 800px;
  margin: auto;
  color: var(--maersk-white);
}

.testimonial-card-maersk .lead {
  font-size: 1.2rem;
  font-style: italic;
}

.testimonial-card-maersk h5 {
  color: var(--maersk-accent-orange);
  font-weight: 700;
}

.testimonial-card-maersk .text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.testimonial-card-maersk i.fa-quote-left {
  color: var(--maersk-accent-orange);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--maersk-blue-medium);
  border-radius: 50%;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover { opacity: 1; }

.carousel-indicators button {
  background-color: var(--maersk-accent-orange) !important;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.carousel-indicators button.active { opacity: 1; }

/* Partner Logos (Maersk Style) */
.partner-logo-maersk {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo-maersk:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Contact Form */
.form-control {
  border-radius: 0.3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--maersk-blue-medium);
  box-shadow: 0 0 0 0.25rem rgba(0, 103, 152, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--maersk-gray-medium);
  margin-bottom: 0.4rem;
}

textarea.form-control {
  border-radius: 0.3rem;
  padding: 1rem 1rem;
}

/* Footer Styling */
.bg-dark-maersk { background-color: var(--maersk-blue-dark) !important; }

.footer .text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.3s ease;
}

.footer a:hover { color: var(--maersk-accent-orange) !important; }

.footer .social-icons a { font-size: 1.2rem; }

/* Offcanvas Specific Styling */
.offcanvas-start {
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  width: 280px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
  font-weight: 700;
  color: var(--maersk-white);
  display: flex;
  align-items: center;
}

.offcanvas-title img {
  height: 50px; /* Adjusted for offcanvas */
  margin-right: 0.5rem;
  margin-top: -10px;
  margin-bottom: -10px;
}

.btn-close-white { filter: invert(1); }

.offcanvas-body { padding: 1.5rem 1rem; }

.offcanvas-link-button {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--maersk-white) !important;
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.offcanvas-link-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--maersk-accent-orange);
  color: var(--maersk-accent-orange) !important;
}

/* FAQ Accordion Styling */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem !important;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--shadow-subtle);
  transition: all 0.3s ease;
}

.accordion-item:hover { box-shadow: 0 5px 15px var(--shadow-medium); }

.accordion-button {
  background-color: var(--maersk-white) !important;
  color: var(--maersk-blue-dark) !important;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 0.75rem !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: var(--maersk-blue-light) !important;
  color: var(--maersk-blue-dark) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.accordion-button::after {
  background-image: none !important;
  content: '\002B';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--maersk-blue-medium);
  margin-left: auto;
}

.accordion-button:not(.collapsed)::after { content: '\2212'; }

.accordion-body {
  padding: 1.5rem;
  background-color: var(--maersk-white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  color: var(--maersk-gray-medium);
}

/* Media Queries */
@media (max-width: 991.98px) {
  .hero-section h1 { font-size: 3rem; }
  .section-title-maersk { font-size: 2.2rem; }
}

@media (max-width: 767.98px) {
  .navbar-brand .company-name-text { font-size: 0.9rem; }
  .navbar-brand img { height: 50px; }
  .hero-section h1 { font-size: 2rem; }
  .section-title-maersk { font-size: 1.8rem; }
  .partner-logo-maersk { height: 60px; filter: grayscale(0%); opacity: 1; }
}
/* Helper Classes for the layout */
.text-primary-maersk { color: var(--maersk-blue-medium) !important; }
.bg-primary-maersk { background-color: var(--maersk-blue-dark) !important; }

/* Ensure section titles aren't always centered if needed */
.section-title-maersk { text-align: center; }
.section-title-maersk::after { left: 50%; transform: translateX(-50%); }