/* ============================================================
   Wingocean — Global Logistics Website
   Design tokens & global styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #374151;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- Design Tokens ---------- */
:root {
  --navy:   #0A2540;
  --blue:   #0066FF;
  --blue-d: #0052cc;
  --gray-bg:#F5F7FA;
  --gray-text:#6B7280;
  --white:  #ffffff;
  --max-w:  1280px;
  --r-lg:   0.5rem;
  --r-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);
  --transition: all .3s ease;
}

/* ---------- Typography Helpers ---------- */
.text-navy  { color: var(--navy); }
.text-blue  { color: var(--blue); }
.text-gray  { color: var(--gray-text); }
.text-white { color: #fff; }

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px){ .container { padding: 0 2.5rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-d);
  transform: scale(1.03);
}
.btn-outline {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid #fff;
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
  background: transparent;
}
#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-logo img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: .25rem;
}
/* Logo image */
.nav-logo-icon {
  width: auto;
  height: 2.5rem;
  background: transparent;
  border-radius: .375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: .6rem 1.5rem;
  border-radius: var(--r-lg);
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-cta:hover {
  background: var(--blue-d) !important;
  transform: scale(1.04);
  color: #fff !important;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  color: #fff;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  transition: var(--transition);
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
}
#mobile-menu.open { display: block; }
#mobile-menu a {
  display: block;
  padding: .75rem 1.5rem;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 500;
  border-radius: .375rem;
  margin: .25rem 1rem;
  transition: background .2s;
}
#mobile-menu a:hover { background: rgba(255,255,255,.08); }
#mobile-menu a.active { background: var(--blue); color: #fff; }
.mobile-cta {
  display: block;
  margin: .75rem 1rem 1rem;
  padding: .75rem;
  background: var(--blue);
  color: #fff !important;
  text-align: center;
  border-radius: var(--r-lg);
  font-weight: 600;
}
.mobile-cta:hover { background: var(--blue-d) !important; }

/* ---------- Section Helpers ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-navy { background: var(--navy); }
.section-gray  { background: var(--gray-bg); }
.section-white { background: #fff; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-title.white { color: #fff; }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-text);
  max-width: 42rem;
  margin: 0 auto;
}
.section-subtitle.white { color: rgba(255,255,255,.75); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img { transform: scale(1.07); }
.card-img-wrap { overflow: hidden; position: relative; }

.card-body { padding: 1.5rem; }

.tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--blue);
  color: #fff;
  padding: .25rem .875rem;
  border-radius: var(--r-full);
  font-size: .8125rem;
  font-weight: 600;
}

/* ---------- Value / Feature Cards ---------- */
.value-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.value-card .icon { font-size: 2.25rem; margin-bottom: 1.5rem; color: var(--blue); }
.value-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: .75rem; }
.value-card p { color: var(--gray-text); line-height: 1.7; }

/* ---------- Grid Helpers ---------- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px)  {
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(4,1fr); }
}

/* ---------- Link-arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--blue);
  font-weight: 500;
  transition: color .2s;
}
.link-arrow:hover { color: var(--blue-d); }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Check list ---------- */
.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
  color: #374151;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1.125rem; height: 1.125rem;
  margin-top: .125rem;
  background: var(--blue);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 7rem 0 5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}
.page-hero p { font-size: 1.25rem; color: rgba(255,255,255,.75); max-width: 48rem; margin: 0 auto; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3.5rem 0 2rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p { color: rgba(255,255,255,.6); font-size: .9375rem; line-height: 1.7; margin-top: 1rem; }
.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-socials a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  color: rgba(255,255,255,.7);
}
.footer-socials a:hover { background: var(--blue); color: #fff; }

.footer-col h3 {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul li + li { margin-top: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.6); font-size: .9375rem; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  text-align: center;
  color: rgba(255,255,255,.45);
  font-size: .875rem;
}

/* ---------- Stat Bar ---------- */
.stat-bar { background: #fff; padding: 3rem 0; }
.stat-bar .grid-4 { text-align: center; }
.stat-bar .stat-val { font-size: 2.5rem; font-weight: 700; color: var(--navy); }
.stat-bar .stat-label { color: var(--gray-text); margin-top: .375rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.875rem,4vw,2.5rem); font-weight: 700; margin-bottom: 1.25rem; }
.cta-banner p  { color: rgba(255,255,255,.75); font-size: 1.25rem; margin-bottom: 2.5rem; }

/* ---------- Form Styles ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 480px) { .form-row { grid-template-columns: repeat(2,1fr); } }

label { display: block; font-size: .9375rem; font-weight: 500; color: #374151; margin-bottom: .5rem; }
input, select, textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: var(--r-lg);
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,.15);
}
textarea { resize: none; }

.form-box {
  background: var(--gray-bg);
  border-radius: .75rem;
  padding: 2.5rem;
}

.btn-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  padding: 1rem;
  border-radius: var(--r-lg);
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn-submit:hover { background: var(--blue-d); }
.btn-submit:disabled { background: #9CA3AF; cursor: not-allowed; }

.success-msg {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg);
  margin-bottom: 1.5rem;
}
.success-msg strong { display: block; margin-bottom: .25rem; }

/* ---------- Contact Info Block ---------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  background: rgba(0,102,255,.08);
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1.125rem;
}
.contact-info-item h3 { font-size: 1.0625rem; font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.contact-info-item p  { color: var(--gray-text); line-height: 1.7; font-size: .9375rem; }

.map-placeholder {
  margin-top: 2.5rem;
  height: 20rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #e5e7eb;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Services Page – alternating image layout ---------- */
.service-section {
  padding: 5rem 0;
  background: #fff;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row.reversed .service-img  { order: 2; }
  .service-row.reversed .service-body { order: 1; }
}
.service-img img {
  width: 100%;
  height: 31.25rem;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.service-body h2 { font-size: 2.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.service-body > p { font-size: 1.0625rem; color: var(--gray-text); margin-bottom: 2rem; line-height: 1.75; }
.service-body h3 { font-size: 1.125rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; margin-bottom: 2rem; }

/* ---------- Cases filter tabs ---------- */
.filter-bar {
  padding: 3rem 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.filter-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.filter-btn {
  padding: .5rem 1.5rem;
  border-radius: var(--r-full);
  font-size: .9375rem;
  font-weight: 500;
  background: var(--gray-bg);
  color: #374151;
  transition: background .2s, color .2s;
}
.filter-btn:hover { background: #e5e7eb; }
.filter-btn.active { background: var(--blue); color: #fff; }

/* ---------- About page ---------- */
.advantage-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.advantage-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.advantage-card .icon { font-size: 3rem; color: var(--blue); margin-bottom: 1rem; }
.advantage-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: .75rem; }
.advantage-card p  { color: var(--gray-text); line-height: 1.7; }

.partner-tile {
  background: var(--gray-bg);
  border-radius: var(--r-lg);
  height: 6rem;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  text-align: center;
  transition: box-shadow .2s;
}
.partner-tile:hover { box-shadow: var(--shadow-sm); }
.partner-tile p { color: #374151; font-size: .875rem; font-weight: 500; }

/* ---------- About Mission Section ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .mission-grid { grid-template-columns: 1fr 1fr; } }
.mission-grid img { width: 100%; height: 31.25rem; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.mission-body h2 { font-size: 2.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.mission-body p { font-size: 1.0625rem; color: var(--gray-text); line-height: 1.75; margin-bottom: 1.25rem; }

/* ---------- Stats (About dark section) ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .impact-grid { grid-template-columns: repeat(4,1fr); } }
.impact-val { font-size: 3.25rem; font-weight: 700; color: var(--blue); margin-bottom: .5rem; }
.impact-label { color: rgba(255,255,255,.65); }

/* ---------- Partners grid ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) { .partners-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px){ .partners-grid { grid-template-columns: repeat(5,1fr); } }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Spinner ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 1.25rem; height: 1.25rem;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
