/* ============================================================
   SeaTrans Shipping — Company Page Styles
   ============================================================ */
/* ── Reset & Base ── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-label {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header .section-title {
  margin-bottom: 0.75rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
  max-width: 700px;
}

/* ── Stats Row ── */
.stats-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Promise Grid ── */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.promise-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--medium-gray);
  transition: all 0.3s var(--ease-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.promise-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--sea-green);
}

.promise-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.promise-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.promise-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

/* ── Culture Grid ── */
.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.culture-item {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
}

.culture-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.culture-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.culture-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0;
}

.culture-item:last-child {
  grid-column: span 2;
}

/* ── Timeline ── */
.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.timeline-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--sea-green) 0%, var(--golden-yellow) 50%, var(--coral-red) 100%);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sea-green);
  box-shadow: 0 0 0 3px rgba(30, 155, 110, 0.2);
  border: 3px solid var(--white);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--sea-green);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

.journey-visual {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--dark-navy);
}

.journey-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.journey-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  animation: journey-image-fade 12s infinite;
}

.journey-image:nth-child(1) { animation-delay: 0s; }
.journey-image:nth-child(2) { animation-delay: 4s; }
.journey-image:nth-child(3) { animation-delay: 8s; }

.journey-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(10,22,40,0.12) 0%, rgba(10,22,40,0.7) 100%);
}

.journey-badge {
  align-self: flex-start;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-caption {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 280px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

@keyframes journey-image-fade {
  0%, 100% { opacity: 0; transform: scale(1.02); }
  8%, 30% { opacity: 1; transform: scale(1); }
  38%, 62% { opacity: 1; transform: scale(1); }
  70%, 92% { opacity: 0; transform: scale(1.02); }
}

/* ── Strategy Grid ── */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.strategy-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--medium-gray);
  transition: all 0.3s var(--ease-smooth);
  text-align: center;
}

.strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sea-green);
}

.strategy-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

.strategy-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.strategy-card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Energy Metrics ── */
.energy-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.energy-metric {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--sea-green);
  text-align: center;
}

.energy-metric-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.energy-metric p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0;
}

/* ── Services Overview Grid ── */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-overview-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--medium-gray);
  transition: all 0.3s var(--ease-smooth);
  cursor: default;
  text-align: center;
}

.service-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sea-green);
}

.service-overview-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-overview-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Safety Grid ── */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.safety-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.safety-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.safety-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.safety-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ── Community Items ── */
.community-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--radius-md);
}

.community-item i {
  font-size: 1.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.community-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

.community-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── IMG Zoom Container ── */
.img-zoom-container {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  height: 500px;
}

.img-zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.img-zoom-container:hover img {
  transform: scale(1.04);
}

/* ── Hero Actions ── */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── Text Center ── */
.text-center {
  text-align: center;
}

/* ── CTA Actions ── */
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* ── Button Overrides for Consistency ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s var(--ease-smooth);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.grid-2,
.grid-3,
.grid-4,
.promise-grid,
.strategy-grid,
.services-overview-grid,
.safety-grid,
.culture-grid,
.energy-metrics,
.journey-layout {
  min-width: 0;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.promise-grid > *,
.strategy-grid > *,
.services-overview-grid > *,
.safety-grid > *,
.culture-grid > *,
.energy-metrics > *,
.journey-layout > * {
  min-width: 0;
}

.promise-card,
.strategy-card,
.service-overview-card,
.safety-card,
.timeline-item,
.community-item {
  overflow-wrap: anywhere;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* ── Tablet (1024px and below) ── */
@media (max-width: 1024px) {
  .page-hero-content {
    text-align: center;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }

  .page-hero-breadcrumb {
    justify-content: center;
  }

  .page-hero-title,
  .page-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .grid-2 > div:first-child {
    text-align: center;
  }

  .grid-2 > div:first-child .section-label {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .grid-2 .stats-row {
    justify-content: center;
  }

  .grid-2 .img-zoom-container {
    max-width: 620px;
    margin: 0 auto;
    height: 420px !important;
  }

  .promise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .promise-grid .promise-card:last-child {
    grid-column: span 2;
  }

  .grid-3 .promise-card:last-child,
  .grid-3 .safety-card:last-child {
    grid-column: span 2;
  }

  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .services-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }

  .safety-grid .safety-card:last-child {
    grid-column: span 2;
  }

  .energy-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .culture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .journey-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .journey-visual {
    min-height: 360px;
  }

  .journey-image-frame {
    min-height: 360px;
  }
}

/* ── Mobile (768px and below) ── */
@media (max-width: 768px) {
  .page-hero-content {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .page-hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: min(100%, 320px);
    justify-content: center;
  }

  .grid-2 .img-zoom-container {
    height: 320px !important;
  }

  .grid-2 [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  .promise-grid .promise-card:last-child {
    grid-column: span 1;
  }

  .grid-3 .promise-card:last-child,
  .grid-3 .safety-card:last-child {
    grid-column: span 1;
  }

  .strategy-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .services-overview-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px;
    margin: 0 auto;
  }

  .safety-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .safety-grid .safety-card:last-child {
    grid-column: span 1;
  }

  .energy-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .culture-grid {
    grid-template-columns: 1fr !important;
  }

  .culture-grid .culture-item:last-child,
  .culture-grid > div:last-child {
    grid-column: span 1 !important;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .journey-visual {
    min-height: 300px;
  }

  .journey-image-frame {
    min-height: 300px;
  }

  .timeline-item {
    padding-left: 0.75rem;
  }

  .timeline-dot {
    left: -1.5rem;
    width: 12px;
    height: 12px;
  }

  .timeline::before {
    left: -1px;
  }

  .stats-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .stats-row > div {
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: min(100%, 320px);
    justify-content: center;
  }
}

/* ── Small Mobile (480px and below) ── */
@media (max-width: 480px) {
  .page-hero-content {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  .page-hero-subtitle {
    font-size: 0.95rem;
  }

  .grid-2 .img-zoom-container {
    height: 260px !important;
    border-radius: var(--radius-lg) !important;
  }

  .grid-2 [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .promise-card {
    padding: 1.5rem;
  }

  .strategy-card {
    padding: 1.25rem;
  }

  .service-overview-card {
    padding: 1.25rem;
  }

  .safety-card {
    padding: 1.5rem;
  }

  .energy-metrics {
    grid-template-columns: 1fr;
  }

  .energy-metric {
    padding: 1.25rem;
  }

  .community-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .community-item i {
    margin-top: 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .culture-item {
    padding: 1rem;
  }

  .culture-item i {
    font-size: 1.5rem;
  }

  .timeline-title {
    font-size: 1rem;
  }

  .timeline-text {
    font-size: 0.85rem;
  }

  /* ── HERO BUTTON FIXES ── */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset;
    margin: 0 !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }

  .hero-actions .btn i {
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* Hide arrow icon on very small screens for cleaner look */
  .hero-actions .btn .fa-arrow-right {
    display: none;
  }

  /* ── CTA BUTTON FIXES ── */
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }

  .cta-actions .btn i {
    flex-shrink: 0;
  }

  /* ── Fix any other buttons ── */
  .btn-lg {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }

  .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  /* ── Hero wave fix ── */
  .hero-wave svg {
    height: 60px;
  }
}

/* ── Extra Small (380px and below) ── */
@media (max-width: 380px) {
  .page-hero-title {
    font-size: 1.5rem;
  }

  .hero-actions .btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }

  .hero-actions .btn i {
    font-size: 0.8rem;
  }

  .cta-actions .btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }

  .hero-actions .btn .fa-arrow-right {
    display: none;
  }

  .btn-lg {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}

/* ── Landscape Mobile Fix ── */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero-content {
    padding-top: 4rem;
    padding-bottom: 1.5rem;
  }

  .page-hero-title {
    font-size: 1.5rem;
  }

  .page-hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 140px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero-wave svg {
    height: 40px;
  }
}
