/* HWL Logistics public website — hand-written, no framework.
   Colours and fonts are taken from the previous WordPress/Elementor site. */

@font-face { font-family: "Metronic"; src: url("fonts/MetronicPro-Thin.ttf") format("truetype"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Metronic"; src: url("fonts/MetronicPro-Light.ttf") format("truetype"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Metronic"; src: url("fonts/MetronicPro-SemiBold.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Metronic"; src: url("fonts/MetronicPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --blue: #0c5484;        /* About band, footer bar, buttons */
  --blue-dark: #093f63;
  --red: #ec2d3e;         /* active menu, icons */
  --ink: #000;            /* headings */
  --text: #7a7a7a;        /* body copy */
  --line: #e2e2e2;
  --bg: #fff;
  --wrap: 1100px;
  --head: "Metronic", "Segoe UI", sans-serif;
  --body: "Roboto", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 110px; }
.logo img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav > a, .nav .dd > button {
  font: 400 16px var(--head); color: #000; text-decoration: none; padding: 10px 14px;
  background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav .dd > button:hover, .nav a.active, .nav .dd.active > button { color: var(--red); }
.dd { position: relative; }
.dd > button::after { content: ""; display: inline-block; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.dd-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  border-top: 2px solid var(--red); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px 0;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 18px; font: 400 15px var(--head); color: #000; text-decoration: none; }
.dd-menu a:hover, .dd-menu a.active { color: var(--red); background: #fafafa; }

.nav .btn-login {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; white-space: nowrap;
  font: 500 15px var(--head); color: #fff; background: var(--red); border: 1px solid var(--red);
  border-radius: 4px; padding: 10px 18px; text-decoration: none;
}
.nav .btn-login:hover { color: #fff; background: #c81f2f; border-color: #c81f2f; }
.btn-login svg { width: 18px; height: 18px; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #000; margin: 6px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 400 17px var(--head); text-decoration: none; padding: 12px 26px;
  border-radius: 2px; cursor: pointer; border: 1px solid transparent;
}
.btn-ghost { color: #fff; border-color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: #000; }
.btn-white { background: #fff; color: #000; font-weight: 500; border-radius: 4px; }
.btn-white:hover { background: #f0f0f0; }
.btn-blue { background: var(--blue); color: #fff; border-radius: 4px; }
.btn-blue:hover { background: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: #0b2f4a center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero .wrap { position: relative; }
.hero-home { min-height: 640px; display: flex; align-items: center; }
.hero-home h1 { color: #fff; font-weight: 100; font-size: 64px; max-width: 560px; }
.hero-home p { font-size: 18px; max-width: 440px; margin: 0 0 40px; color: #fff; }
.hero-page { min-height: 460px; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-page h1 { color: #fff; font-weight: 100; font-size: 96px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 28px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-title { font-weight: 100; font-size: 56px; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card { border: 1px solid var(--line); border-radius: 3px; padding: 20px; background: #fff; }
.card img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.card h3 { font-weight: 400; font-size: 28px; margin: 22px 0 12px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card p { margin: 0; }

.band { background: var(--blue); color: #fff; padding: 90px 0 110px; }
.band h2 { color: #fff; font-weight: 100; font-size: 56px; }
.band p { max-width: 1000px; margin: 0 0 50px; color: #fff; }
.band strong { font-weight: 700; }

.info { text-align: center; }
.info .card { padding: 24px 24px 28px; }
.info svg { width: 48px; height: 48px; color: var(--red); margin: 0 auto 14px; }
.info h3 { font-size: 27px; margin: 0 0 10px; }
.info p { margin: 0; }
.info a { text-decoration: none; }
.info a:hover { color: var(--red); }

/* ---------- Article (service / about / terms pages) ---------- */
.article { max-width: var(--wrap); }
.article h2 { font: 700 18px var(--body); color: #555; margin: 40px 0 12px; }
.article p, .article li { margin: 0 0 20px; }
.article strong { color: #555; }
.article ul { padding-left: 22px; }
.article ol { padding-left: 22px; }

/* ---------- Forms ---------- */
.page-title { font-weight: 100; font-size: 56px; margin: 0 0 30px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font: 500 15px var(--body); color: #333; margin-bottom: 6px; }
.form .req { color: var(--red); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 15px var(--body); color: #333; padding: 11px 12px;
  border: 1px solid #c9c9c9; border-radius: 3px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-wide { max-width: 760px; margin: 0 auto; }
.notice { border: 1px solid var(--line); border-radius: 4px; padding: 30px; }
.notice h2 { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 30px; }
.notice h2 svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.notice strong { color: #000; }
.notice a { text-decoration: none; }
.thanks { text-align: center; padding: 120px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #ddd; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; align-items: start; padding: 50px 16px; }
.footer-main .logo { align-self: center; }
.footer-main .logo img { width: 160px; }
.footer-links a { display: block; font: 400 16px var(--head); color: #000; text-decoration: none; padding: 6px 0; }
.footer-links a:hover { color: var(--red); }
.footer-qr { justify-self: end; text-align: center; }
.footer-qr img { width: 140px; }
.social { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; }
.social a:hover { background: var(--red); }
.social svg { width: 16px; height: 16px; }
.footer-bar { background: var(--blue); color: #fff; font: 400 16px var(--head); padding: 14px 0; }

.to-top {
  position: fixed; right: 30px; bottom: 30px; width: 36px; height: 36px; border-radius: 4px;
  background: var(--blue); color: #fff; display: grid; place-items: center; text-decoration: none; opacity: .85;
}
.to-top:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-header .wrap { height: 84px; gap: 16px; }
  .logo img { width: 150px; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { text-align: left; padding: 12px 0; border-bottom: 1px solid #f0f0f0; width: 100%; }
  .dd-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .nav .btn-login { margin: 14px 0 0; justify-content: center; padding: 12px 18px; border-bottom: 0; }
  .cards { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-qr { justify-self: start; }
  .hero-page h1 { font-size: 64px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero-home { min-height: 520px; }
  .hero-home h1 { font-size: 44px; }
  .hero-page { min-height: 300px; }
  .hero-page h1 { font-size: 42px; }
  .section-title, .band h2, .page-title { font-size: 40px; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid, .form { grid-template-columns: 1fr; gap: 18px; }
  .contact-grid { gap: 40px; }
  .footer-main { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 16px; }
}
