/* Consistent with air freight page */
:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --text: #1f2937;
  --light-bg: #eff6ff;
  --white: #ffffff;
}

/* Festive announcement bar (temporary) */
.festive-bar {
  background: linear-gradient(90deg, #d32f2f, #ffb300);
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.festive-bar strong {
  font-weight: 600;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header - Matches air freight page */
.header {
  background-color: var(--primary);
  color: white;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.logo {
  height: 5rem;
  width: auto;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
  margin-left: 0.5rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.nav-link.active {
  font-weight: 700;
  text-decoration: underline;
}

/* Hero Section */
.oceanfreight-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 4rem 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #e0e7ff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  background-color: var(--primary-light);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Services Grid */
.services-section {
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.service-card {
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: all 0.3s ease;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
}

.service-icon {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.fcl-shipping {
  background: url('../assets/fclshipping.jpg') center/cover no-repeat;
}

.lcl-consolidation {
  background: url('../assets/iclconsolidation.jpg') center/cover no-repeat;
}

.breakbulk {
  background: url('../assets/breakbulk.jpg') center/cover no-repeat;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

/* Specializations */
.specializations {
  background-color: var(--primary);
  padding: 4rem 0;
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-light);
  margin: 1rem auto 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.spec-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-light);
  transition: all 0.3s ease;
}

.spec-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.spec-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-item i {
  color: var(--primary-light);
}

/* Vessel Types */
.vessel-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.vessel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.vessel-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.vessel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.vessel-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.vessel-content {
  padding: 1.5rem;
}

.vessel-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.vessel-features {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.vessel-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.vessel-features i {
  color: var(--primary);
  margin-right: 0.5rem;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Quote Form */
.quote-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

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

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #e0e7ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer p {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
    display: none;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-link {
    padding: 0.5rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .services-grid,
  .spec-grid,
  .vessel-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}
/* ====================== */
/* MOBILE OPTIMIZATION    */
/* ====================== */

@media (max-width: 768px) {
  /* Base Mobile Styles */
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  /* Header - Mobile Optimized */
  .header {
    padding: 1rem 0;
    position: sticky;
  }

  .header-container {
    padding: 0 1rem;
    flex-wrap: wrap;
  }

  .logo {
    height: 3rem;
    width: auto;
  }

  .company-name {
    font-size: 1.3rem;
  }

  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 0;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .main-nav.active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .nav-link {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    order: 1;
  }

  /* Hero Section - Mobile Optimized */
  .oceanfreight-hero {
    min-height: 60vh;
    padding: 2rem 1rem;
    background-attachment: scroll;
    background-position: center center;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-width: 200px;
  }

  /* Services Grid - Mobile Stack */
  .services-section {
    padding: 3rem 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .service-card {
    min-height: 250px;
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card p {
    font-size: 1rem;
  }

  /* Specializations - Mobile Layout */
  .specializations {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .spec-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .spec-item {
    padding: 1.5rem;
  }

  /* Vessel Types - Mobile */
  .vessel-section {
    padding: 3rem 1rem;
  }

  .vessel-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vessel-image {
    height: 180px;
  }

  /* Quote Form - Mobile Optimized */
  .quote-section {
    padding: 3rem 1rem;
  }

  .quote-form {
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-input {
    padding: 1rem;
    font-size: 1rem;
  }

  /* Footer - Mobile Stack */
  .footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-title {
    font-size: 1.2rem;
  }
}

/* ====================== */
/* TOUCH OPTIMIZATIONS   */
/* ====================== */

/* Ensure all interactive elements are touch-friendly */
a, button, input[type="submit"], input[type="button"], .nav-link, .btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove 300ms tap delay on touch devices */
a, button, input, label, select {
  touch-action: manipulation;
}

/* Better feedback for touch interactions */
.btn:active,
.nav-link:active,
.service-card:active,
.vessel-card:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* Prevent zoom on input focus in mobile */
input, select, textarea {
  font-size: 16px !important;
}

/* Improve form input visibility */
.form-input {
  -webkit-appearance: none;
  border-radius: 8px;
}

/* Prevent layout shifts */
img, .service-card, .vessel-card {
  max-width: 100%;
  height: auto;
}

/* Better scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .service-card:hover,
  .vessel-card:hover,
  .spec-item:hover,
  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .service-card:hover::before {
    background: rgba(0, 0, 0, 0.5);
  }

  .nav-link:hover {
    text-decoration: none;
    opacity: 1;
  }
}

/* ====================== */
/* OCEAN FREIGHT SPECIFIC */
/* ====================== */

/* Vessel card mobile adjustments */
@media (max-width: 768px) {
  .vessel-content {
    padding: 1.25rem;
  }

  .vessel-content h3 {
    font-size: 1.3rem;
  }

  .vessel-features li {
    font-size: 0.95rem;
  }
}

/* Service card backgrounds mobile optimization */
@media (max-width: 768px) {
  .fcl-shipping,
  .lcl-consolidation,
  .breakbulk {
    background-attachment: scroll;
  }
}

/* Form input mobile optimization */
@media (max-width: 768px) {
  .form-label {
    font-size: 1rem;
  }

  .form-input {
    margin-bottom: 1.25rem;
  }

  select.form-input {
    background-position: right 1rem center;
  }
}

/* Footer links mobile optimization */
@media (max-width: 768px) {
  .footer-links a {
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }
}

/* Fix footer display: solid background, white text, no border, no extra padding */
.footer, .footer *, .footer .credit a, .footer .credit a:hover {
  background: var(--primary) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  text-align: center !important;
  font-size: 1rem !important;
}
.footer {
  padding: 2rem 0 1rem 0 !important;
  margin-top: 2rem !important;
  border: none !important;
  box-shadow: none !important;
}

.footer .festive-greeting {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-style: italic;
}

.footer .festive-greeting::before {
  content: '🎄 ';
}

.footer .festive-greeting::after {
  content: ' 🎄';
}

/* Festive Cookie Banner Styling */
#cookieConsent {
  background: linear-gradient(135deg, #d32f2f 0%, #ffb300 100%) !important;
  color: #fff !important;
  padding: 1.2em !important;
  text-align: center !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
  border-top: 3px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 500 !important;
}

#cookieConsent button {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  padding: 0.6em 1.5em !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-left: 1em !important;
}

#cookieConsent button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: scale(1.05) !important;
}

/* Subtle Animated Snowflakes */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: snowfall linear infinite;
  opacity: 0.7;
}

@keyframes snowfall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 15s; animation-delay: 2.5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 10s; animation-delay: 0.8s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 1.8s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 14s; animation-delay: 0.3s; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 11s; animation-delay: 1.2s; }
.snowflake:nth-child(11) { left: 25%; animation-duration: 13s; animation-delay: 2.2s; }
.snowflake:nth-child(12) { left: 35%; animation-duration: 12s; animation-delay: 0.7s; }
.snowflake:nth-child(13) { left: 45%; animation-duration: 14s; animation-delay: 1.7s; }
.snowflake:nth-child(14) { left: 55%; animation-duration: 10s; animation-delay: 0.4s; }
.snowflake:nth-child(15) { left: 65%; animation-duration: 15s; animation-delay: 2.1s; }
.snowflake:nth-child(16) { left: 75%; animation-duration: 11s; animation-delay: 0.9s; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 13s; animation-delay: 1.9s; }
.snowflake:nth-child(18) { left: 95%; animation-duration: 12s; animation-delay: 0.6s; }
.snowflake:nth-child(19) { left: 5%; animation-duration: 14s; animation-delay: 1.6s; }
.snowflake:nth-child(20) { left: 55%; animation-duration: 11s; animation-delay: 2.3s; }