/* ============ IO Tech Logistics — one-page site ============
   Brand system taken from ioresource.com:
   - Headings: Manrope 800, ink #181c1e, accent blue #003f87
   - Body: Inter, on #f7fafc / white
   - Primary buttons: linear-gradient(135deg, #003f87, #0056b3), 8px radius
   - Badge pills: bg #d2e4fb, slate text, uppercase
*/

:root {
  --blue: #003f87;
  --blue-2: #0056b3;
  --blue-grad: linear-gradient(135deg, #003f87 0%, #0056b3 100%);
  --navy-deep: #002a5c;
  --ink: #181c1e;
  --body: #38485a;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --badge-bg: #d2e4fb;
  --badge-ink: #38485a;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 63, 135, 0.10);
  --font-head: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.75rem; letter-spacing: -0.01em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 780px; }

section { padding: 4.5rem 0; }

.section-sub { margin-bottom: 2rem; max-width: 44rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  font-size: 1rem;
  padding: 0.75rem 1.4rem;
  justify-content: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.15); }
.btn-large { font-size: 1.05rem; padding: 0.9rem 1.7rem; }
.btn-small { font-size: 0.9rem; padding: 0.5rem 1rem; }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark {
  background: var(--blue-grad);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 9px;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); color: var(--blue); font-weight: 800; font-size: 1.02rem; }
.brand-text small { color: var(--body); font-size: 0.72rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--blue-2); }
.nav-links .btn { color: #fff; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(0, 86, 179, 0.12), transparent 60%),
    var(--bg-soft);
  padding: 4.5rem 0 5rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
}
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.hero-media-badge {
  position: absolute;
  left: -1rem;
  bottom: 1.2rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 42, 92, 0.18);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-media-badge .badge-check {
  background: var(--blue-grad);
  color: #fff;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.hero-media-badge span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.hero-media-badge small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--body);
}
.hero-media-badge strong { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--badge-ink);
  background: var(--badge-bg);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--blue); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 38rem; margin-bottom: 1rem; }
.hero-facts { margin-bottom: 2.2rem; }
.hero-facts strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ============ Trust strip ============ */
.trust {
  background: var(--navy-deep);
  padding: 1.8rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.trust-item { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-item strong {
  font-family: var(--font-head);
  font-weight: 800;
  color: #ffffff;
  font-size: 1.02rem;
}
.trust-item span { color: #a9c6e8; font-size: 0.85rem; line-height: 1.45; }

/* ============ Positioning ============ */
.positioning { background: var(--bg); padding-bottom: 1rem; }
.positioning p { font-size: 1.12rem; max-width: 46rem; }

/* ============ Services ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  color: var(--blue);
  background: var(--badge-bg);
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }

/* ============ Backed by IO Resource ============ */
.about { background: var(--bg-soft); }
.about-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: center;
}
.about-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.about .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--badge-ink);
  background: var(--badge-bg);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
}
.about-copy p { max-width: 40rem; }
.about-list {
  list-style: none;
  margin: 1.3rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.about-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-2);
  font-weight: 800;
}
.about-link {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.about-link:hover { color: var(--blue-2); text-decoration: underline; }

/* ============ Inside the warehouse ============ */
.inside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.inside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.inside-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.inside-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.inside-card figcaption { padding: 1.3rem 1.4rem 1.5rem; }
.inside-card h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.inside-card p { font-size: 0.95rem; }

/* ============ Who ============ */
.who { background: var(--bg-soft); }
.who-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 1.5rem;
}
.who-grid li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1.1rem 0.85rem 2.6rem;
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.who-grid li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--blue-2);
  font-weight: 800;
}

/* ============ How ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}
.step { position: relative; padding-top: 0.4rem; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--blue-grad);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.95rem; }

/* ============ FAQ ============ */
.faq { background: var(--bg-soft); }
.faq h2 { margin-bottom: 1.6rem; }
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-right: 2.6rem;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-2);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1.1rem; }

/* ============ Estimate form ============ */
.estimate {
  background:
    radial-gradient(800px 400px at 12% -10%, rgba(0, 86, 179, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--blue) 100%);
  color: #c9dcf2;
}
.estimate h2 { color: #ffffff; }
.estimate .section-sub { color: #a9c6e8; }

#estimate-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
#estimate-form label, #estimate-form legend { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.field { margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
fieldset.field { border: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

#estimate-form input[type="text"],
#estimate-form input[type="email"],
#estimate-form input[type="tel"],
#estimate-form input[type="number"],
#estimate-form select {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
#estimate-form input:focus, #estimate-form select:focus {
  outline: 2px solid var(--blue-2);
  outline-offset: 1px;
  border-color: var(--blue-2);
}
#estimate-form input.invalid { border-color: #dc2626; }

.checks { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.3rem; }
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 500 !important;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checks label:has(input:checked) {
  border-color: var(--blue-2);
  background: var(--badge-bg);
  color: var(--blue);
}
.checks input { accent-color: var(--blue-2); }

.estimate-result {
  background: var(--bg-soft);
  border: 1px dashed var(--blue-2);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.4rem;
  text-align: center;
}
.estimate-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-2);
}
.estimate-figure { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.estimate-note { font-size: 0.85rem; }

.reassure { text-align: center; margin-top: 0.9rem; color: var(--blue-2); font-weight: 600; font-size: 0.95rem; }
.form-status { text-align: center; margin-top: 0.5rem; font-size: 0.92rem; color: var(--ink); min-height: 1.4em; }

/* ============ Footer ============ */
.footer { background: var(--navy-deep); color: #a9c6e8; padding: 2.6rem 0; font-size: 0.92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.brand-foot { color: #fff; margin-bottom: 0.4rem; font-family: var(--font-head); }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.footer-contact a { color: #a9c6e8; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-4, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .hero-media img { height: 300px; }
  .about-media img { min-height: 0; height: 280px; }
  .about-media { order: 2; }
}
@media (max-width: 640px) {
  section { padding: 3.2rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .nav-links a:not(.btn) { display: none; }
  .grid-4, .grid-3, .who-grid, .form-row, .trust-grid, .inside-grid { grid-template-columns: 1fr; }
  #estimate-form { padding: 1.4rem 1.1rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-media-badge { left: 0.8rem; }
}
