/* style.css */
:root {
  --primary-blue: #003366;
  --secondary-blue: #00509e;
  --accent-color: #f78536;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Roboto', sans-serif;
}

body {
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

/* Topbar */
.topbar {
  background-color: var(--primary-blue);
  color: #fff;
  padding: 10px 0;
  font-size: 0.9rem;
}

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.topbar-left {
  display: flex;
  gap: 20px;
}

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ddd;
}

.topbar-left i {
  color: var(--accent-color);
}

.topbar-right a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.topbar-right a:hover {
  color: var(--accent-color);
}

/* Header */
.main-header {
  background-color: var(--bg-white);
  padding: 15px 5%;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav ul li a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--accent-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 5px;
}

/* Header Contact */
.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-contact-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.header-contact-text {
  display: flex;
  flex-direction: column;
}

.call-text {
  font-size: 0.8rem;
  color: #666;
}

.call-number {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 1.1rem;
}

/* Hero Section with Video */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  padding: 80px 5%;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, transparent 0%, #003B49 100%);
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  color: #4a6a75;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background-color: #f2f6f8; /* Changed from transparent */
  border: 1px solid #c9d8e0;
  padding: 8px 24px;
  border-radius: 50px;
}

.hero-subtitle::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  margin-right: 10px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
}

.hero-content h1 span {
  color: var(--accent-color);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #e0e0e0;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--text-light);
  color: var(--primary-blue);
}

.hero-play-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s;
}

.hero-play-btn::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 1px solid rgba(0, 123, 255, 0.5);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hero-play-btn:hover {
  transform: scale(1.05);
  color: white;
}

@media (max-width: 991px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
}


/* About Us Section */
.section-padding {
  padding: 5rem 5%;
}

.about-us {
  background-color: var(--bg-white);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-title-row {
  display: flex;
  margin-bottom: 4rem;
  gap: 30px;
}

.about-subtitle-box {
  flex: 0 0 25%;
}

.about-subtitle-box .hero-subtitle {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-title-box {
  flex: 1;
}

.about-title-box h2 {
  font-size: 2.2rem;
  color: var(--primary-blue);
  line-height: 1.3;
  font-weight: 700;
}

.about-content-row {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-images {
  flex: 1;
  display: flex;
  gap: 20px;
  position: relative;
}

.about-img-box {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.about-img-box img {
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-img-box:hover img {
  transform: scale(1.05);
}

.img-offset {
  margin-top: 50px;
}

.about-content {
  flex: 1;
}

.about-content p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 3rem;
}

.counter-item {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border-left: 3px solid var(--accent-color);
}

.counter-item h3 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 5px;
}

.counter-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  font-weight: 600;
}

.about-footer {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
}

@media (max-width: 991px) {
  .about-title-row {
    flex-direction: column;
  }
  .about-content-row {
    flex-direction: column;
  }
  .img-offset {
    margin-top: 0;
  }
}

/* Features Grid (Replaces old Services Grid) */
.features-section-prime {
  background-color: var(--bg-light);
}

.features-grid-prime {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.features-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-box-prime {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.feature-box-prime:hover {
  transform: translateY(-5px);
}

.feature-box-prime h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 700;
}

.feature-box-prime p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
}

.tall-box {
  height: 100%;
  justify-content: flex-start;
}

@media (max-width: 991px) {
  .features-grid-prime {
    grid-template-columns: 1fr;
  }
}

/* Our Contract CTA Section */
.our-contract {
  padding: 8rem 5%;
  background-image: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('../images/ocean_freight_1.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.our-cta-box {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.our-contract-title {
  flex: 1;
}

.our-contract-title h2 {
  font-size: 3rem;
  color: var(--text-light);
  line-height: 1.2;
  font-weight: 700;
}

.our-contract-body {
  flex: 1;
}

.our-contract-body p {
  color: #e0e0e0;
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .our-cta-box {
    flex-direction: column;
    text-align: center;
  }
}


/* FAQ Section */
.faq-section {
  padding: 6rem 5%;
  background-color: var(--bg-white);
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.faq-content, .faq-accordion {
  flex: 1;
}

.faq-content h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  line-height: 1.25;
  margin-bottom: 25px;
  font-weight: 700;
}

.faq-content p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* HTML5 Accordion Customization */
.faq-accordion details {
  background-color: #f8f9fa;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.faq-accordion details[open] {
  background-color: var(--bg-white);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-accordion summary {
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-blue);
  cursor: pointer;
  list-style-type: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-accordion summary::webkit-details-marker {
  display: none; /* Hide default arrow in Safari */
}

.faq-accordion summary::after {
  content: '\f067'; /* FontAwesome Plus Icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent-color);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-accordion details[open] summary::after {
  content: '\f068'; /* FontAwesome Minus Icon */
  transform: rotate(180deg);
}

.faq-accordion .faq-body {
  padding: 0 25px 20px 25px;
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
  border-top: 1px solid transparent;
}

.faq-accordion details[open] .faq-body {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

@media (max-width: 991px) {
  .faq-container {
    flex-direction: column;
  }
}

/* --- Contact Us Page Styles (Carvox Replica) --- */

.page-header {
  padding: 8rem 5% 5rem;
  background-image: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('../images/ocean_freight_2.png');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 1.1rem;
  font-weight: 500;
  color: #c9d8e0;
}

.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
}

/* Contact Main Section */
.page-contact-us {
  padding: 6rem 5%;
  background-color: var(--bg-white);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.contact-main-title h2 {
  font-size: 2.8rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 50px;
  line-height: 1.25;
}

.contact-form-layout {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
  align-items: flex-start;
}

/* Form Left Side */
.contact-us-form-block {
  flex: 1.5;
  background: #fff;
  border-radius: 8px;
  padding: 0;
}

.contact-us-form-block h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f8f9fa;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(247, 133, 54, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.policy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
}

.policy-checkbox label {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

.submit-btn {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--primary-blue);
}

/* Sidebar Right Side */
.contact-us-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-image-box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.contact-sidebar-content {
  background-color: var(--primary-blue);
  color: #fff;
  padding: 40px;
  border-radius: 0 0 8px 8px;
}

.contact-sidebar-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.opening-hours h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.opening-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opening-hours ul li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  font-size: 1.05rem;
  color: #c9d8e0;
}

.opening-hours ul li:last-child {
  border-bottom: none;
}

.opening-hours ul li span {
  font-weight: 700;
  color: #fff;
}

/* 3 Horizontal Cards Layout */
.contact-info-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-info-card {
  background-color: #f8f9fa;
  padding: 35px 25px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info-card .icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .icon i {
  color: #fff;
  font-size: 1.5rem;
}

.contact-info-card .text h4 {
  font-size: 1.3rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-info-card .text p {
  color: #666;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

/* Google Map */
.google-map-section {
  padding: 0 5% 6rem;
  background-color: var(--bg-white);
}

.google-map-section h2 {
  font-size: 2.8rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 40px;
}

.google-map-iframe iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 8px;
}

@media (max-width: 991px) {
  .contact-form-layout {
    flex-direction: column;
  }
  .contact-info-cards-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Footer Top Ticker */
.footer-top-ticker {
  background-color: var(--primary-blue);
  padding: 16px 0;
  overflow: hidden;
  color: #c9d8e0;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.ticker-item i {
  color: var(--accent-color);
  font-size: 1.15rem;
}

@media (max-width: 1200px) {
  .ticker-wrapper {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .ticker-wrapper {
    justify-content: flex-start;
    gap: 15px 30px;
  }
}

/* Footer */
footer {
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #ccc;
}

/* =========================================
   Global Mobile Responsiveness
   ========================================= */

@media (max-width: 991px) {
  /* Main Navbar Logic */
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 20px 0;
    z-index: 999;
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .header-contact {
    display: none; /* Hide prominent header CTA on small mobiles to save space */
  }

  .header-container {
    position: relative; /* Anchor for absolute mobile menu */
    padding: 15px 5%;
  }

  /* Topbar Collapse */
  .topbar-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 10px 5%;
  }
  
  .topbar-left {
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
  }

  /* Typography / Hero Rescaling */
  .hero {
    padding: 100px 5% 80px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  /* About Section Grid Collapse */
  .about-content-row {
    flex-direction: column;
  }
  .about-images {
    width: 100%;
    margin-bottom: 40px;
  }
  .about-content {
    width: 100%;
    padding-left: 0;
  }
  
  /* Services & Feature Grids Collapse */
  .services-grid, 
  .features-grid, 
  .faq-container,
  .footer-content {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  
  /* CTA Collapse */
  .cta-section .container {
    flex-direction: column;
    text-align: left;
    gap: 30px;
  }
  .cta-content {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .about-counters {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
