/* ==========================================================================
   HIDO LOGISTICS AND SUPPLY CO. — shared stylesheet (mobile-first)
   ========================================================================== */

:root {
  --blue: #2865b0;
  --blue-dark: #1f4f8f;
  --orange: #e8754d;
  --orange-dark: #d0603a;
  --white: #ffffff;
  --navy: #142b49;
  --grey: #f5f7fa;
  --line: #e1e6ee;
  --text: #34455d;
  --muted: #5f6f86;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 43, 73, 0.08);
  --shadow-md: 0 14px 34px rgba(20, 43, 73, 0.14);
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 6px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #cdd8e8; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--orange); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 6px; border: 2px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 8px 20px rgba(232,117,77,.35); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--outline-dark { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline-dark:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Top bar */
.topbar { display: none; background: var(--navy); color: #c3d0e3; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #c3d0e3; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--orange); margin-right: 8px; }
.topbar__group { display: flex; gap: 26px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.nav-toggle {
  background: none; border: 0; width: 46px; height: 46px; cursor: pointer; color: var(--navy);
  font-size: 1.5rem; border-radius: 6px;
}
.main-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff;
  padding: 24px 20px; transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s; overflow-y: auto;
}
.main-nav.is-open { transform: none; visibility: visible; }
.main-nav ul { display: flex; flex-direction: column; }
.main-nav a.nav-link {
  display: block; padding: 16px 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--navy); border-bottom: 1px solid var(--line);
}
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { color: var(--orange); }
.main-nav .btn { margin-top: 24px; width: 100%; }
body.nav-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative; color: #fff; display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  background: var(--navy) center/cover no-repeat; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,43,73,.94) 0%, rgba(20,43,73,.78) 55%, rgba(20,43,73,.4) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 580px; font-size: 1.12rem; color: #dbe5f2; margin-bottom: 30px; }
.hero__serve { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: #c3d0e3; }
.hero__serve span::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--orange); margin-right: 8px; }

/* Page banner (inner pages) */
.page-banner { position: relative; color: #fff; background: var(--navy); overflow: hidden; padding: 84px 0 70px; }
.page-banner img.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--blue) 70%, var(--orange) 70%); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: 14px; }
.page-banner p { max-width: 640px; color: #dbe5f2; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: #aebfd6; margin-bottom: 18px; }
.breadcrumb a { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* Split layout */
.split { display: grid; gap: 36px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media--accent::before {
  content: ""; position: absolute; left: -12px; bottom: -12px; width: 55%; height: 55%;
  border-left: 5px solid var(--orange); border-bottom: 5px solid var(--orange); border-radius: 0 0 0 var(--radius); z-index: -1;
}
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: .65rem; background: var(--orange); color: #fff; border-radius: 50%; }
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.audience li { background: var(--grey); border: 1px solid var(--line); padding: 8px 16px; border-radius: 30px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.audience li i { color: var(--blue); margin-right: 8px; }

/* Cards (home services) */
.card-grid { display: grid; gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__img { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--navy); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__icon {
  position: absolute; left: 24px; top: -26px; width: 52px; height: 52px; border-radius: 10px;
  background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(232,117,77,.45); z-index: 2;
}
.card__img--icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: rgba(255,255,255,.9); font-size: 3.6rem; }
.card__body { position: relative; padding: 40px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: .95rem; }
.card__link { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }
.card__link i { transition: transform .25s; }
.card:hover .card__link i { transform: translateX(5px); }

/* Why choose */
.feature-grid { display: grid; gap: 22px; }
.feature { padding: 28px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); transition: background .3s, transform .3s; }
.feature:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.feature i { font-size: 1.6rem; color: var(--orange); margin-bottom: 16px; display: block; }
.feature p { margin: 0; font-size: .95rem; color: #b9c8dc; }
.feature--light { background: #fff; border: 1px solid var(--line); }
.feature--light:hover { background: #fff; box-shadow: var(--shadow-md); }
.feature--light h3 { color: var(--navy); }
.feature--light p { color: var(--muted); }

/* Team */
.team-grid { display: grid; gap: 20px; }
.team-main img, .team-side img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.team-main { position: relative; }
.team-main img { aspect-ratio: 16/9; box-shadow: var(--shadow-md); }
.team-side { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.team-side img { aspect-ratio: 4/3; }

/* CTA */
.cta { position: relative; background: var(--blue); color: #fff; padding: 72px 0; text-align: center; overflow: hidden; }
.cta img.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; mix-blend-mode: luminosity; }
.cta .container { position: relative; z-index: 2; }
.cta h2 { color: #fff; }
.cta p { max-width: 560px; margin: 0 auto 28px; color: #e3ecf8; font-size: 1.08rem; }
.cta .btn-row { justify-content: center; }

/* About */
.mv-grid { display: grid; gap: 24px; }
.mv-card { padding: 36px 30px; border-radius: var(--radius); background: #fff; border-top: 5px solid var(--blue); box-shadow: var(--shadow-sm); }
.mv-card--vision { border-top-color: var(--orange); }
.mv-card i { font-size: 1.8rem; color: var(--blue); margin-bottom: 14px; display: block; }
.mv-card--vision i { color: var(--orange); }
.mv-card p { margin: 0; }
.value-grid { display: grid; gap: 20px; }
.value { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(40,101,176,.1); color: var(--blue); font-size: 1.3rem; margin-bottom: 16px; }
.value p { margin: 0; font-size: .95rem; color: var(--muted); }
.route-figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.route-figure figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* Services page */
.service-row { display: grid; gap: 28px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; background: var(--navy); box-shadow: var(--shadow-sm); }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-row:hover .service-row__media img { transform: scale(1.05); }
.service-row__media--icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: rgba(255,255,255,.92); font-size: 5rem; }
.service-row__num { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 800; padding: 6px 14px; border-radius: 6px; font-size: .95rem; }
.service-row h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); display: flex; align-items: center; gap: 14px; }
.service-row h2 i { color: var(--orange); font-size: 1.3rem; }
.benefits { margin: 18px 0 0; padding: 20px 22px; background: var(--grey); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.benefits h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.service-nav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 30px; font-size: .88rem; font-weight: 600; color: var(--navy); background: #fff; transition: all .25s; }
.service-nav a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
.info-list { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, transform .3s; }
.info-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.info-item__icon { flex: none; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1.1rem; }
.info-item h3 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-item p { margin: 0; color: var(--navy); font-weight: 600; word-break: break-word; }
.placeholder { color: #b04a24; background: #fff3ee; border: 1px dashed var(--orange); border-radius: 4px; padding: 2px 8px; font-weight: 600; font-size: .9rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px 22px; }
.form-grid { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--orange); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--navy); padding: 13px 14px; border: 1.5px solid #c9d2df; border-radius: 6px;
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,101,176,.15); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; background: #fff8f7; }
.field .error-msg { display: none; color: #c0392b; font-size: .84rem; margin-top: 6px; }
.field.has-error .error-msg { display: block; }
.form-alert { display: none; padding: 16px 18px; border-radius: 6px; margin-bottom: 20px; font-weight: 500; }
.form-alert.is-visible { display: flex; gap: 12px; align-items: flex-start; }
.form-alert--success { background: #eaf7ee; color: #1d6a38; border: 1px solid #b6e0c4; }
.form-alert--error { background: #fdeceb; color: #9c2a1e; border: 1px solid #f2bdb7; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.map-wrap { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }
.map-wrap__bar { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--grey); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b3c2d8; padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.footer-logo img { height: 42px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer h3::after { content: ""; display: block; width: 32px; height: 3px; background: var(--orange); margin-top: 8px; border-radius: 2px; }
.site-footer a { color: #b3c2d8; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer-links a::before { content: "\203A"; color: var(--orange); margin-right: 8px; font-weight: 700; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { color: var(--orange); margin-top: 6px; width: 16px; text-align: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .85rem; text-align: center; }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; z-index: 90; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================ Tablet ============================ */
@media (min-width: 640px) {
  .card-grid, .feature-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-card { padding: 38px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================ Desktop ============================ */
@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .section { padding: 96px 0; }
  .topbar { display: block; }
  .nav-toggle { display: none; }
  .brand img { height: 54px; }
  .main-nav { position: static; transform: none; visibility: visible; padding: 0; display: flex; align-items: center; gap: 36px; background: none; overflow: visible; }
  .main-nav ul { flex-direction: row; gap: 6px; }
  .main-nav a.nav-link { border: 0; padding: 10px 16px; font-size: .95rem; position: relative; }
  .main-nav a.nav-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s; border-radius: 2px; }
  .main-nav a.nav-link:hover::after, .main-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav .btn { margin: 0; width: auto; padding: 12px 24px; }
  .hero { min-height: 640px; max-height: 820px; }
  .page-banner { padding: 110px 0 90px; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--reverse .split__media { order: 2; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--3 .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; }
  .card-grid--3 .card:last-child:nth-child(3n+1) .card__img { flex: 0 0 50%; aspect-ratio: auto; min-height: 280px; }
  .card-grid--3 .card:last-child:nth-child(3n+1) .card__body { justify-content: center; padding: 40px 44px; }
  .card-grid--3 .card:last-child:nth-child(3n+1) .card__link { margin-top: 12px; }
  .feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid--5 { grid-template-columns: repeat(6, 1fr); }
  .value-grid--5 .value { grid-column: span 2; }
  .value-grid--5 .value:nth-child(4) { grid-column: 2 / span 2; }
  .mv-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1.7fr 1fr; align-items: stretch; }
  .team-main img { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .team-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .team-side img { aspect-ratio: auto; }
  .service-row { grid-template-columns: 1fr 1.1fr; gap: 64px; padding: 56px 0; }
  .service-row--reverse .service-row__media { order: 2; }
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr; gap: 48px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
}

@media (min-width: 960px) {
  .card-grid--3 .card:last-child:nth-child(3n+1) .card__icon { position: static; margin-bottom: 16px; }
  .card-grid--3 .card:last-child:nth-child(3n+1) .card__body { padding-top: 40px; }
}
