/* =========================================================
   KEA OSHEN CARGO – Stylesheet
   Brand colours: navy, white, red (matches business card)
   ========================================================= */

:root {
  --navy: #0b1f4b;
  --navy-dark: #07142f;
  --navy-light: #16337a;
  --red: #d62828;
  --red-dark: #b01e1e;
  --white: #ffffff;
  --bg-alt: #f3f6fb;
  --text: #1c2536;
  --muted: #5b667a;
  --line: #e1e7f0;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 75, .10);
  --shadow-lg: 0 20px 50px rgba(11, 31, 75, .18);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: "Montserrat", "Noto Sans SC", sans-serif; line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.accent { color: var(--red); }
.placeholder { color: var(--red); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.05rem; font-size: .85rem; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(214, 40, 40, .35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-whatsapp { background: var(--wa); color: var(--white); }
.btn-whatsapp:hover { background: var(--wa-dark); box-shadow: 0 8px 20px rgba(31, 168, 85, .35); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(7, 20, 47, .55); backdrop-filter: blur(8px);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand-logo { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--white); border: 2px solid rgba(255,255,255,.9); }
.brand-name { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; color: var(--white); }
.brand-name em { font-style: normal; color: #ff5a5a; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
  position: relative; color: rgba(255,255,255,.88); font-weight: 500; font-size: .95rem; padding: .4rem 0;
  transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--white); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem; color: var(--white); overflow: hidden; background: var(--navy-dark);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,20,47,.92) 0%, rgba(11,31,75,.78) 45%, rgba(11,31,75,.35) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1180px; }
.eyebrow {
  display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase; color: #ffd0d0;
  padding: .4rem .9rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.08);
}
.eyebrow .dot { color: var(--red); font-size: .6em; vertical-align: middle; margin: 0 .3em; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; margin: 1.2rem 0 1rem; max-width: 820px; }
.hero h1 .accent { color: #ff5a5a; }
.hero-text { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 620px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-points li::before { content: "✓"; color: #ff5a5a; font-weight: 700; margin-right: .5rem; }
.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.7); border-radius: 20px;
}
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--white); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .8rem;
}
.section-tag::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--red); vertical-align: middle; margin-right: .6rem; }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-copy p { color: var(--muted); }
.check-list { margin: 1.4rem 0 2rem; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: .8rem; display: grid; place-items: center;
}
.route-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.route-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(214,40,40,.25); }
.route-card h3 { color: var(--white); margin-bottom: 1.6rem; }
.route { position: relative; z-index: 1; }
.route-stop { display: flex; align-items: center; gap: 1rem; }
.route-stop strong { display: block; font-family: "Montserrat", sans-serif; }
.route-stop small { color: rgba(255,255,255,.75); }
.route-pin { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--navy); font-weight: 800; display: grid; place-items: center; }
.route-pin.red { background: var(--red); color: var(--white); }
.route-line { width: 2px; height: 34px; margin: 4px 0 4px 20px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.7) 0 6px, transparent 6px 12px); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem; border: 1px solid var(--line);
  border-top: 4px solid var(--navy); box-shadow: 0 4px 14px rgba(11,31,75,.05);
  transition: transform .3s ease, box-shadow .3s ease, border-top-color .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-top-color: var(--red); }
.service-icon { width: 62px; height: 62px; border-radius: 16px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 1.2rem; transition: background .3s ease; }
.service-icon svg { width: 30px; height: 30px; fill: var(--navy); transition: fill .3s ease; }
.service-card:hover .service-icon { background: var(--red); }
.service-card:hover .service-icon svg { fill: var(--white); }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- Warehouses ---------- */
.wh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.wh-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 2rem; border-left: 6px solid var(--navy); }
.wh-china { border-left-color: var(--red); }
.wh-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.wh-head h3 { margin: 0; font-size: 1.2rem; }
.wh-head small { color: var(--muted); }
.flag { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--white); font-family: "Montserrat", sans-serif; font-weight: 800; display: grid; place-items: center; letter-spacing: .05em; }
.flag.red { background: var(--red); }
.wh-address { background: var(--bg-alt); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; color: var(--text); font-size: .95rem; }
.wh-address strong { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 0; border-top: 1px solid var(--line); }
.contact-info strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.phone { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.phone:hover { color: var(--red); }
.contact-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.mark-box {
  margin-top: 1.8rem; display: flex; gap: 1.5rem; align-items: center;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white);
  border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: var(--shadow-lg); border-bottom: 5px solid var(--red);
}
.mark-icon { flex: none; width: 70px; height: 70px; border-radius: 18px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.mark-icon svg { width: 38px; height: 38px; fill: var(--white); }
.mark-body h3 { color: var(--white); margin-bottom: .4rem; }
.mark-body p { color: rgba(255,255,255,.85); margin-bottom: .8rem; }
.mark-format {
  display: block; font-family: "Montserrat", "Noto Sans SC", sans-serif; font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.5rem);
  background: var(--white); color: var(--navy); border-radius: 10px; padding: .8rem 1.2rem; margin-bottom: 1rem; border: 2px dashed var(--red);
  overflow-wrap: anywhere;
}
.mark-format .cn { color: var(--red); }
.copy-status { margin-left: .8rem; font-size: .9rem; color: #bff0cf; }

/* ---------- Gallery ---------- */
.gallery { columns: 2 340px; column-gap: 1.4rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1.4rem; }
.gallery-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); box-shadow: 0 6px 18px rgba(11,31,75,.12); transition: box-shadow .3s ease, transform .3s ease;
}
.gallery-btn img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s ease; }
.gallery-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,75,.65), transparent 55%); opacity: 0; transition: opacity .3s ease; }
.gallery-btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gallery-btn:hover img { transform: scale(1.06); }
.gallery-btn:hover::after, .gallery-btn:focus-visible::after { opacity: 1; }
.gallery-btn .zoom {
  position: absolute; z-index: 1; right: 1rem; bottom: 1rem; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .3s ease;
}
.gallery-btn:hover .zoom, .gallery-btn:focus-visible .zoom { opacity: 1; transform: scale(1); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-copy > p { color: var(--muted); }
.contact-list { margin: 1.6rem 0 2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 1.1rem; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--navy); }
.contact-list a:hover { color: var(--red); }
.card-panel { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-panel h3 { margin-bottom: 1.2rem; }
.card-btn { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .3s ease; }
.card-btn:hover { transform: scale(1.02) rotate(-.4deg); }
.card-btn img { width: 100%; height: auto; }
.card-note { margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; gap: 2.2rem; padding: 4rem 0 3rem; }
.footer-brand p { margin: 1.2rem 0; font-size: .95rem; }
.footer-col h4 { color: var(--white); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; position: relative; padding-bottom: .7rem; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--red); }
.footer-col li { margin-bottom: .45rem; }
.footer-col p { font-size: .92rem; }
.footer-col a:hover { color: #ff7a7a; }
.social { display: flex; gap: .7rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.social a:hover { background: var(--red); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; text-align: center; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.3); transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.1); }
.float-wa svg { width: 30px; height: 30px; fill: var(--white); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 10, 26, .94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; animation: fadeIn .25s ease; }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-figure figcaption { color: rgba(255,255,255,.75); margin-top: .8rem; font-size: .9rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.4rem; display: grid; place-items: center; transition: background .2s ease; }
.lb-close:hover, .lb-nav:hover { background: var(--red); }
.lb-close { top: 1rem; right: 1rem; font-size: 2rem; line-height: 1; }
.lb-nav[hidden] { display: none; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { gap: 1.1rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 1rem 5% 1.6rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .35s ease, opacity .35s ease, visibility .35s;
    box-shadow: 0 20px 30px rgba(0,0,0,.3);
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-link::after { display: none; }
  .nav-cta-item { margin-top: 1rem; }
  .nav-cta-item .btn { width: 100%; }
  .about-grid, .contact-grid, .wh-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1rem; }
}

@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 3rem 0 2rem; }
  .hero { padding-bottom: 4rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .mark-box { flex-direction: column; text-align: center; padding: 1.6rem 1.2rem; }
  .wh-card { padding: 1.4rem; }
  .lightbox { padding: 4rem 1rem 3rem; }
  .lb-nav { top: auto; bottom: 1rem; transform: none; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
