/* Utility class for visually hidden elements */
.hidden {
  display: none !important;
}
/* Home Page Carousel - Overlaps with logo */
.home-carousel {
  position: relative;
  z-index: 5;
  margin-top: -32px; /* Matches logo margin-bottom to create overlap */
}

.home-carousel .carousel-container {
  border-radius: 0 0 12px 12px; /* Match logo's rounded bottom corners */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .home-carousel .carousel-slide {
    height: 350px;
  }
}

/* Keep the logo shadow visible over carousel */
.logo {
  box-shadow: 0 6px 20px var(--shadow);
}

/* CTA row below trust bar */
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem auto 3rem auto;
  flex-wrap: wrap;
}
.cta-secondary {
  display: inline-block;
  padding: 0.7em 2em;
  background: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05em;
  border: 2px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border 0.15s, box-shadow 0.15s;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--shadow);
  margin-bottom: 0.5rem;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow);
}

/* Hero Split Section */
.hero-split {
  display: flex;
  min-height: 400px;
  background: url('/carousel/unicarriers_lineup.jpg') top center/cover no-repeat;
  align-items: stretch;
  position: relative;
}
.hero-split .container.text-block {
  position: relative;
  z-index: 2;
  background-color: var(--bg-tl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  padding: 2rem;
  max-width: 580px;
  margin: 2rem 2rem auto auto;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;

  p {
    margin-top: 1rem;
  }
}

body.dark .hero-split .container.text-block {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
body.light .hero-split .container.text-block {
  color: var(--text);
}

.cta-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75em 2em;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  border: 2px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border 0.15s;
  cursor: pointer;
  outline: none;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: #003e99;
  color: #fff;
  border-color: #003e99;
  box-shadow: 0 4px 20px var(--shadow);
}
/* Carousel Styles */
.carousel-caption {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30%;
  height: fit-content;
  z-index: 2;
  background-color: var(--bg-tl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  padding: 2rem;
  max-width: 580px;
  margin: auto;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;

  h2 {
      margin: 0 0 0.5rem 0;
      color: white;
      font-size: 1.8rem;
  }

  p {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 1.4rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-caption {
    width: 50%;
  }
}



/* CSS-only Carousel Component */
.carousel-container {
  position: relative;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 400px;
  overflow: hidden;
  background: var(--bg-alt);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: -35px;
  padding: 0 2rem;
  width: 100%;
}

.carousel-nav-btn {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 44px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  font-weight: bold;
}

.carousel-nav-btn:hover,
.carousel-nav-btn:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: inline-flex;
  gap: 0.5rem;
  background: var(--bg-tl);
  padding: 0.5rem;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
}

.carousel-dot {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0;
  line-height: 0;
}

.carousel-dot[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.carousel-dot:hover,
.carousel-dot:focus {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .carousel-slide {
    height: 300px;
  }

  .carousel-caption h2 {
    font-size: 1.2rem;
  }

  .carousel-caption p {
    font-size: .8rem;
  }

  .carousel-nav {
    padding: 0 1rem;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }
}

/* Keyboard navigation support */
.carousel-slide:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Add after the existing CTA primary styles */
.hero-split .image-block {
  flex: 1;
}
@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    background-position: top center;
  }
  .hero-split .container.text-block {
    margin: 2rem auto;
    padding: 1rem;
    max-width: 95%;
  }
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  min-height: calc(100vh - 72px - 100px); /* Adjust header/footer height as needed */
  display: block;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-alt);
  color: var(--text);
  padding: 1.5rem;
}

.footer-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 90%;
}

.company-info {
  text-align: left;
}

.company-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.company-info a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  border: 1px solid var(--border);
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .company-info {
    text-align: center;
  }
}
.mega h4 {
  color: var(--accent);
  font-size: 1em;
  font-weight: 700;
  margin: 0.75em 0 0.25em 0;
  padding-bottom: 0.1em;
  border-bottom: 2px solid var(--accent);
  letter-spacing: 0.02em;
}
.mega a {
  display: block;
  width: 100%;
  margin-bottom: 0.5em;
  text-decoration: none;
  color: inherit;
  white-space: normal;
  padding: 0.25em 0.5em;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.mega a:last-child {
  margin-bottom: 0;
}
.mega a:hover, .mega a:focus {
  background: var(--accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .mega {
    color: var(--text);
    background: var(--bg) !important;
  }
}

.has-mega > button {
  position: relative;
  padding-left: 1.2em;
  background: none !important;
  border: none;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text) !important;
}

@media (max-width: 768px) {
  .has-mega > button {
    padding-left: 0;
    background: none !important;
    color: var(--text) !important;
  }
}
@media (prefers-color-scheme: dark) {
  .has-mega > button {
    color: var(--text) !important;
    background: none !important;
  }
}

@media (max-width: 768px) {
  .has-mega > button {
    padding-left: 0;
  }
}
@media (prefers-color-scheme: dark) {
  .has-mega > button {
    color: var(--text);
  }
}

.has-mega > button::after {
  content: "\25BC"; /* ▼ caret */
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.8em;
  vertical-align: middle;
}
/* =========================
   CSS VARIABLES & DARK MODE
   ========================= */

/* Default (light) theme */
:root,
body.light {
  --bg: #dce2de;
  --bg-tl: rgba(220, 226, 222, 0.75);
  --bg-alt: #e6f4eb;
  --text: #1a2e20;
  --muted: #4a6b52;
  --accent: #003314;
  --border: #c8e6d0;
  --shadow: rgba(13, 45, 23, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d2d17;
    --bg-tl: rgba(13, 45, 23, 0.75);
    --bg-alt: #00110a;
    --text: #e5f0e9;
    --muted: #8fb89a;
    --accent: #22c55e;
    --border: #0d3d1f;
    --shadow: rgba(220, 226, 222, 0.2);
  }
}

body.dark {
  --bg: #0d2d17;
  --bg-tl: rgba(13, 45, 23, 0.75);
  --bg-alt: #00110a;
  --text: #e5f0e9;
  --muted: #8fb89a;
  --accent: #22c55e;
  --border: #0d3d1f;
  --shadow: rgba(255, 255, 255, 0.2);
}

/* =========================
   GLOBAL
   ========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section.container {
  padding-top: 2rem;
}

/* =========================
   HEADER & NAV
   ========================= */

.main-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* Mega menu hidden by default */
.mega {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 4px 16px var(--shadow);
  z-index: 100;
  min-width: 240px;
  padding: 1.5rem 2rem;
}

/* Accordion style mega menu on mobile */
@media (max-width: 768px) {
  .mega {
    display: none;
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 1rem 0 1rem 1.5rem;
    margin: 0.5rem 0;
    border-left: 2px solid var(--border);
    background: var(--bg);
  }
  .mega.open {
    display: block;
  }
}

/* Show mega menu on hover (desktop) */
@media (min-width: 769px) {
  .has-mega {
    position: relative;
  }
  .has-mega:hover > .mega {
    display: block;
  }
  .mega {
    display: none;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}


.logo {
  width: 264px;
  height: 96px;
  background-color: var(--bg);
  position: relative;
  z-index: 10;
  margin-bottom: -32px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px var(--shadow);
  border-radius: 0 0 10px 10px;
}

.logo-link {
  display: block;
  width: 100%;
  height: 100%;
  background: url('/logo.gif') no-repeat center center/contain;
  text-decoration: none;
}

.logo-text {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
}

body.dark .logo-link {
  background-image: url('/logo_dark.gif');
}

body.dark .logo {
  box-shadow: 0 6px 20px var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .logo-link {
    background-image: url('/logo_dark.gif');
  }
  .logo {
    box-shadow: 0 6px 20px var(--shadow);
  }
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* Horizontal nav and remove list dots */
.nav-level-1 {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

/* Hamburger menu styles */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100vw;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .nav-level-1 {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
  .main-nav {
    display: flex !important;
    position: static;
    background: none;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
    padding: 0;
  }
  .nav-level-1 {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.nav-level-1 > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-cta {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.services.container p {
  max-width: 700px;
  margin: 1rem auto 2rem auto;
  text-align: center;
}
/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.08em;
  font-weight: 600;
  padding: 1.1rem 0.5rem;
  margin: 1rem auto 2.5rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  max-width: 1100px;
}

.trust-bar span {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 0.5em;
}

.trust-bar span:last-child {
  border-right: none;
}

@media (max-width: 700px) {
  .trust-bar {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1em;
    padding: 1rem 0.5rem;
  }

  .trust-bar span {
    border: none;
    padding: 0.2em 0;
  }
}

/* Quick Tiles Section */
.quick-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  justify-content: center;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 2rem 1rem 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: box-shadow 0.15s, background 0.15s, color 0.15s, transform 0.12s;
  border: 2px solid transparent;
  min-height: 170px;
}

.tile:hover,
.tile:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px var(--shadow);
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.03);
}

.tile-icon {
  font-size: 2.5em;
  margin-bottom: 0.7em;
  display: block;
}

.tile-title small {
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.85;
}

@media (prefers-color-scheme: dark) {
  .hero-split .container.text-block {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* matches --bg in dark mode */
    color: var(--text);
  }

  /* Dark mode form inputs */
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea {
    background: #1e293b;
    border-color: #334155;
    color: var(--text);
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: var(--muted);
  }
}

/* =========================
   CONTACT PAGE
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0 4rem;
}

.contact-info h2,
.contact-form-container h2 {
  margin-top: 0;
}

.contact-details {
  margin: 2rem 0;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.contact-item p {
  margin: 0;
  line-height: 1.6;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 2rem;
}

.social-links h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-block;
  transition: opacity 0.2s;
}

.social-icons a:hover {
  opacity: 0.8;
}

.contact-form {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

textarea {
  resize: vertical;
}

.map-container {
  margin: 4rem 0;
}

.map-container h2 {
  margin-bottom: 1rem;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}