/* =========================================================
   iRise Horizon Logistics (IHL) - single page site
   Edit colours, fonts and spacing in the :root block below.
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Urbanist"; src: url("fonts/Urbanist-Medium.ttf")   format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("fonts/Urbanist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("fonts/Urbanist-Bold.ttf")     format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter";    src: url("fonts/Inter_18pt-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter";    src: url("fonts/Inter_18pt-Bold.ttf")    format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --navy:        #071E4C;   /* IHL brand navy (logo)            */
  --navy-deep:   #001e42;   /* "Talk to sales" button           */
  --ink:         #161616;   /* headings                         */
  --ink-2:       #191919;   /* dark buttons                     */
  --text:        #5e5e5e;   /* body copy                        */
  --text-light:  #ababab;
  --text-lighter:#d8d8d8;
  --white:       #ffffff;
  --cream:       #f9f6ef;   /* quote card                       */
  --stroke:      #e8e8e8;
  --card-dark:   #000d1f;   /* credentials card                 */

  --font-head: "Urbanist", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --wide: 1170px;           /* "wide" content width             */
  --header-h: 65px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
section[id], #top { scroll-margin-top: var(--header-h); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: #000; padding: 8px 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  padding: calc(1em + 2px) calc(1.5em + 2px);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
/* arrow icon */
.btn--header::after, .btn--dark::after, .btn--navy::after {
  content: "";
  width: 18px; height: 18px; margin-left: 10px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z'/%3E%3C/svg%3E") center / cover no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z'/%3E%3C/svg%3E") center / cover no-repeat;
  transition: transform .2s;
}
.btn--header:hover::after, .btn--dark:hover::after, .btn--navy:hover::after { transform: translateX(6px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #212121; color: #fffffffc; }
.btn--sm { font-size: .75rem; }

.btn--header {
  background: #fff; color: var(--ink);
  font-size: 14px; padding: 8px 14px; border-radius: 8px;
}
.btn--header:hover { background: #f0f0f0; }

.btn--light {
  font-family: var(--font-head); font-size: 1.125rem; font-weight: 600;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink);
  padding: 13px 25px; line-height: 1.6; border-radius: 10px;
}
.btn--light:hover { background: #f0f0f0; }

.btn--navy {
  background: var(--navy-deep); color: #fff;
  font-size: .875rem; padding: 13px 2.6rem; border-radius: 20px;
}
.btn--navy:hover { background: #00305f; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 9px 4%;
  background: transparent;
  border-bottom: 1px solid var(--text-light);
  transition: background-color .3s, backdrop-filter .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(4, 22, 54, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom-color: rgba(255,255,255,.2);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 46px;
}
.logo { justify-self: start; padding-top: 7px; }
.logo img { width: 95px; height: auto; }

.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem; line-height: 32px; letter-spacing: 1px;
  color: #fffffffc;
  transition: opacity .2s;
}
.main-nav a:hover { opacity: .75; }
.nav-toggle, .nav-close { display: none; }

.btn--header { justify-self: end; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 806px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 49% 0%;
}
.hero-dim { position: absolute; inset: 0; z-index: -1; background: #000; opacity: .3; }
.hero-content {
  width: 100%; max-width: 720px;
  padding: 0 24px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 1rem; line-height: 1.2; letter-spacing: 5px; text-transform: uppercase;
  color: #fffffffc;
}
.hero-title {
  margin: 24px 0 2.25rem;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.15;
  color: #fffffffc;
}
.hero-title strong { font-weight: inherit; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }

/* =========================================================
   Stats bar
   ========================================================= */
.stats {
  display: flex;
  padding: 25px 0 26px;
  background: linear-gradient(135deg, rgb(0,64,143) 0%, rgb(0,0,0) 100%);
}
.stat { flex: 1 1 0; display: flex; justify-content: center; align-items: center; min-width: 0; }
.stat-inner { text-align: left; }
.stat-num {
  font-family: var(--font-head); font-weight: 600;
  font-size: 2rem; line-height: 58px; color: #fffffffc;
}
.stat-label { font-size: .875rem; line-height: 20px; margin-top: -8px; color: var(--text-lighter); }

/* =========================================================
   About
   ========================================================= */
.about { padding: 45px 24px; }
.about-grid { display: flex; align-items: stretch; gap: 56px; max-width: 1400px; margin: 0 auto; }
/* card column stretches to the height of the text, so both columns end together */
.about-card-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.about-text { flex: 0 0 54%; max-width: 720px; }

.credentials {
  width: 100%; flex: 1; display: flex; flex-direction: column;
  background: var(--card-dark);
  border-radius: 14px;
  padding: 60px 0 50px;
  box-shadow: 6px 6px 9px rgba(0,0,0,.2);
  color: #fffffffc;
}
.credentials-head { display: flex; justify-content: center; align-items: center; gap: 1.5rem; }
.credentials-head h3 { font-size: 2.2rem; line-height: 1.2; color: #fffffffc; }
.pill-verified {
  font-size: 13px; line-height: 1.6; letter-spacing: 2px; text-transform: uppercase;
  color: #fffffffc; background: #001733;
  border: 1px solid #fffffffc; border-radius: 999px;
  padding: 6px 17px;
}
.credentials-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(97px, 1fr));
  gap: 16px;
  padding: 2.69rem 3.5rem 0 3.5rem;
}
.cell { position: relative; padding-top: 20px; font-family: var(--font-head); }
.cell::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 1px; background: rgba(255,255,255,.5);
}
.cell-label {
  font-size: 1.125rem; line-height: 22px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-lighter); margin-top: -12px;
}
.cell-value {
  margin-top: 24px; font-size: 1.125rem; line-height: 1.4; font-weight: 700;
  color: #fffffffc; overflow-wrap: anywhere;
}

.eyebrow { line-height: 0; letter-spacing: 2px; color: var(--text); }
.about-title { font-size: 2.5rem; line-height: 1.15; margin: 1.25rem 0 1.5rem; }
.about-text p:not(.eyebrow):not(.pill) { font-size: 1.0625rem; line-height: 1.55; margin-bottom: 1.1rem; }
.about-text .about-closing {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.35;
  color: var(--ink); border-left: 3px solid var(--navy); padding-left: 18px; margin: 1.6rem 0 0;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.7; margin-top: 28px; }
.pill {
  font-size: .75rem; font-weight: 600; letter-spacing: 1px; color: var(--ink);
  border: 2px solid var(--text-light); border-radius: 14px;
  padding: 4px 10px; margin: 0;
}

/* Vision + Mission */
.vm-grid {
  max-width: 1400px; margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.vm-card {
  position: relative; background: var(--card-dark); color: #fffffffc;
  border-radius: 14px; padding: 44px 48px 48px;
  box-shadow: 6px 6px 9px rgba(0,0,0,.2);
}
.vm-card::before {
  content: ""; position: absolute; top: 0; left: 48px;
  width: 64px; height: 3px; background: #2f6fd0; border-radius: 0 0 3px 3px;
}
.vm-label { font-family: var(--font-head); font-size: .875rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-lighter); }
.vm-card h3 { font-size: 1.75rem; line-height: 1.2; color: #fffffffc; margin: 14px 0 16px; }
.vm-card p:not(.vm-label) { font-size: 1.0625rem; line-height: 1.6; color: var(--text-lighter); }

/* =========================================================
   Services
   ========================================================= */
.services {
  padding: 70px 24px 45px;
  background: linear-gradient(135deg, rgb(0,44,97) 0%, rgb(0,0,0) 100%);
}
.section-head { text-align: center; margin-bottom: 3.38rem; }
.section-head h2 { font-size: 3rem; line-height: 1.2; color: #fffffffc; }
.section-head p { font-family: var(--font-head); font-size: 1.2rem; color: var(--text-light); }

.service-cards {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card { display: flex; flex-direction: column; }
.service-card img {
  width: 100%; aspect-ratio: 826 / 466; object-fit: cover;   /* native photo ratio: no cropping */
  border-radius: 10px 10px 0 0;
}
.service-body {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border-radius: 0 0 10px 10px;
  padding: 2rem 2.5rem;
}
.service-body h3 { font-size: 1.5rem; line-height: 1.15; }
.service-body p { margin: 14.4px 0 16px; flex: 1; }

.services-note {
  max-width: 1100px; margin: 24px auto 0; text-align: center;
  font-family: var(--font-head); font-size: 1.2rem; color: var(--text-lighter);
}
.services-cta { margin-top: 42px; text-align: center; }

/* =========================================================
   Why IHL
   ========================================================= */
.why {
  padding: 40px 24px 25px;
  border-top: 1px solid #00152e;
  background: linear-gradient(235deg, rgb(0,0,0) 0%, rgb(0,44,97) 100%);
  color: #fffffffc;
}
.why > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.why-eyebrow { font-size: .875rem; letter-spacing: 2px; }
.why h2 { font-size: 2.5rem; line-height: 1; margin-top: 24px; margin-bottom: 0; color: #fffffffc; }
.why-list {
  margin-top: 21.3px; margin-bottom: 21.3px;
  display: grid; gap: 24px;
}
.why-card {
  background: rgba(255,255,255,.06);
  border-radius: 8px; padding: 2rem 30px;
}
.why-card h3 { font-size: 1.5rem; line-height: 1.15; color: #fffffffc; }
.why-card p { margin-top: .67rem; }
.why-card--cta { background: #fff; color: var(--text); }
.why-card--cta h3 { color: var(--ink); }
.why-card--cta .btn { margin-top: .67rem; }

/* =========================================================
   Contact + quote form
   ========================================================= */
.contact {
  background: #000; color: #fffffffc;
  padding: 45px 24px 64px; margin-bottom: 12px;
  letter-spacing: 2px; line-height: 1.6;
}
.contact-inner { max-width: var(--wide); margin: 0 auto; }
.contact h2 { font-size: 50px; line-height: 1; letter-spacing: 0; margin: 7px 0 35px; color: #fffffffc; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; padding: 0 12px; }
.contact-item img { margin-top: 0; flex: none; }
.contact-item p { font-family: var(--font-head); font-size: 1rem; line-height: 1.3; font-weight: 500; }
.contact-item .contact-title { font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }

.quote-card {
  margin-top: 53px;
  background: var(--cream); color: #000;
  border-radius: 22px; padding: 30px 35px 35px;
  letter-spacing: 2px; line-height: 1.6;
}
.quote-card h3 { font-size: 50px; line-height: 1.2; letter-spacing: 0; color: var(--ink); }
.quote-sub { font-family: var(--font-head); font-size: 17px; line-height: 1.4; letter-spacing: 0; margin-top: -5px; }
.quote-form { max-width: 500px; margin-top: 24px; }
.hp { position: absolute; left: -9999px; }

.field { padding-bottom: 4px; margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-head);
  font-size: 12px; line-height: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: #5A6B80; margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  display: block; width: 100%;
  height: 48px; padding: 0 16px;
  font-family: var(--font-body); font-size: 15px; letter-spacing: 0; color: #111;
  background: #fff; border: 1px solid #E5E0D6; border-radius: 14px;
  box-shadow: none; appearance: none; -webkit-appearance: none;
}
.field textarea { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.4; }
.field select {
  background: #EDEDED; text-transform: uppercase; letter-spacing: 1px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23595959' d='M12 13.2 17 8.2l1.4 1.4L12 16 5.6 9.6 7 8.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field input::placeholder, .field textarea::placeholder { color: #757575; letter-spacing: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #0B1F3A; outline: none; }
.field input:invalid:not(:placeholder-shown) { border-color: #c0392b; }

.submit {
  display: block; width: 100%; height: 56px; margin-top: 8px;
  background: #0B1F3A; color: #fff; border: 0; border-radius: 999px;
  font-family: var(--font-head); font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: background-color .2s;
}
.submit::after { content: " \2197"; }
.submit:hover { background: #16335C; }
.submit[disabled] { opacity: .6; cursor: progress; }
.quote-fine { font-family: var(--font-head); letter-spacing: 0; line-height: 1.4; margin: 13px 0 -10px; max-width: 500px; }
.form-status { font-family: var(--font-body); letter-spacing: 0; font-size: 15px; margin-top: 14px; }
.form-status.ok { color: #1b6e3c; }
.form-status.err { color: #b3261e; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #fffffffc; }
.footer-main { padding: 35px 24px 1px; }
.footer-inner { max-width: var(--wide); margin: 0 auto; display: flex; gap: 24px; }
.footer-col { flex: 0 0 calc(33.333% - 0px); max-width: 390px; padding-bottom: 10px; }
.footer-logo { width: 170px; height: auto; }
.footer-tag {
  font-family: var(--font-head); font-size: 32px; line-height: 1; font-weight: 600;
  color: #191919; margin-top: 24px;
}
.footer-address { margin-top: 24px; padding-right: 20%; font-family: var(--font-head); }
.addr-1 { font-size: 21px; line-height: 1.1; }
.addr-2 { font-size: 1.125rem; line-height: 1.3; margin-top: 24px; }
.footer-col h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.footer-links { margin-top: 22px; font-family: var(--font-head); font-size: 1.125rem; line-height: 1.3; }
.footer-links li + li { margin-top: 5.9px; }
.footer-links a:hover, .contact a:hover { opacity: .75; }

.footer-bar { background: var(--stroke); padding: 10px 24px; line-height: 1; }
.footer-bar-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.copyright { font-size: .75rem; color: var(--ink); }
.social { display: flex; justify-content: center; }
.social a { display: block; padding: 0 8px; color: #000; }
.social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.legal { display: flex; justify-content: flex-end; gap: 20px; font-size: .75rem; color: var(--ink); }
.legal a:hover { opacity: .7; }

/* =========================================================
   Tablet / mobile  (<= 781px)
   ========================================================= */
@media (max-width: 781px) {
  .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* header: logo | hamburger | Get Quote (far right) */
  .site-header { padding: 9px 24px; }
  .header-inner { display: flex; align-items: center; gap: 35px; }
  .logo { margin-right: auto; }
  .nav-toggle {
    display: block; order: 2; padding: 0; width: 24px; height: 24px;
    background: none; border: 0; color: #fffffffc; cursor: pointer;
  }
  .nav-toggle svg, .nav-close svg { fill: currentColor; display: block; }
  .btn--header { order: 3; }

  /* full screen menu */
  .main-nav {
    position: fixed; inset: 0; z-index: 300;
    width: 100%; height: 100vh; height: 100dvh; justify-self: stretch;
    display: none; align-items: center; justify-content: center;
    background: var(--navy);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 20px; }
  .main-nav a { font-size: 1.75rem; }
  .nav-close {
    display: block; position: absolute; top: 18px; right: 22px;
    background: none; border: 0; color: #fff; padding: 4px; cursor: pointer;
  }
  .nav-close svg { width: 28px; height: 28px; }
  body.menu-open { overflow: hidden; }

  .hero-content { padding: 0 16px; }
  .hero-eyebrow { font-size: 1rem; }
  .hero-title { font-size: 40px; line-height: 1.15; }

  /* stats stay in one row */
  .stat-num { font-size: 1.875rem; }

  /* about stacks */
  .about-grid { flex-direction: column; align-items: stretch; gap: 0; max-width: none; }
  .about-card-col { flex: none; margin: 1rem 0 1.5rem; }
  .about-text { flex: none; max-width: none; }
  .credentials { max-width: none; padding: 60px 0 50px; }
  .credentials-head { gap: 1.5rem; padding: 0 16px; }
  .credentials-head h3 { font-size: 2.2rem; }
  .credentials-grid {
    grid-template-columns: 1fr; grid-template-rows: 81px 97px 93px 93px;
    gap: 16px; padding: 2.69rem 16px 0 54px;
  }
  .cell::before { width: 168px; }
  .credentials { display: block; }
  .cell { padding-bottom: 16px; }
  .cell:first-child { padding-bottom: 0; }
  .about-title { font-size: 1.9rem; }
  .vm-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .vm-card { padding: 40px 28px 36px; }
  .vm-card::before { left: 28px; }

  /* services stack */
  .service-cards { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 2rem; }
  .services-note { font-size: 1.1rem; }

  .why h2 { font-size: 1.75rem; }

  /* contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-item { padding: 0 8px; }
  .contact-item .contact-title { font-size: 1.05rem; letter-spacing: 1px; }
  .quote-card { padding: 30px 35px 35px; }
  .quote-form, .quote-fine { max-width: none; }

  /* footer */
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-col { flex: none; max-width: none; }
  .footer-bar-inner { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .legal { justify-content: center; }
}

@media (min-width: 782px) and (max-width: 1100px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .about-text { flex-basis: 50%; }
  .vm-card { padding: 40px 32px 40px; }
  .vm-card::before { left: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
