/* The public Charm City Warehouse pages (templates/site/).
   The old site's logo, red and grays and photos, in one layout that works
   from a phone up. Fonts are served from static/site/fonts (SIL OFL), not
   from an outside service. */

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-sans-3-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-sans-3-latin-wght-italic.woff2) format("woff2");
}

:root {
  --red: #ed0038;
  --red-mid: #b30037;
  --red-dark: #820024;
  --gray-light: #cfd0d2;
  --gray: #404040;
  --ink: #262626;
  --text: #333;
  --muted: #5c5c5c;
  --paper: #f4f4f3;
  --white: #fff;
  --heading: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --width: 1100px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 18px/1.6 var(--body);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red-mid);
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: 3.4rem;
}
h2 {
  font-size: 2.1rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top banner: the old site's red band, a step less bright than it was (Daniel:
   narrower, then red again), with the logo, the menu and Customer login.
   Not flat (Daniel): darker diagonal bands over the red, and a dark slanted
   corner on the left with two thin light stripes, all drawn here in CSS. */
.site-header {
  --slant: 115deg;
  --corner: 170px;
  background:
    linear-gradient(
      var(--slant),
      transparent 0 calc(var(--corner) + 8px),
      rgba(255, 255, 255, 0.55) calc(var(--corner) + 8px) calc(var(--corner) + 10px),
      transparent calc(var(--corner) + 10px) calc(var(--corner) + 20px),
      rgba(255, 255, 255, 0.3) calc(var(--corner) + 20px) calc(var(--corner) + 21px),
      transparent calc(var(--corner) + 21px)
    ),
    linear-gradient(var(--slant), #1b1b1b 0 var(--corner), transparent var(--corner)),
    linear-gradient(var(--slant), transparent 0 var(--corner), rgba(0, 0, 0, 0.28) var(--corner) calc(var(--corner) + 110px), transparent calc(var(--corner) + 110px)),
    linear-gradient(var(--slant), transparent 0 62%, rgba(0, 0, 0, 0.14) 62% 70%, transparent 70% 86%, rgba(0, 0, 0, 0.2) 86% 91%, transparent 91%),
    linear-gradient(var(--slant), rgba(255, 255, 255, 0.07), transparent 45%),
    linear-gradient(#c8102e, #9e1230);
  border-top: 3px solid var(--ink);
  box-shadow: 0 1px 0 var(--ink);
  position: relative;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 60px;
}

.site-header .logo {
  flex: none;
  align-self: flex-start;
  margin: 6px 0 -26px;
}

.site-header .logo img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.site-nav {
  display: flex;
  gap: 8px 32px;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-nav a,
.login-link {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--white);
}

.login-link {
  flex: none;
  font-size: 0.95rem;
  padding: 4px 14px;
  border: 2px solid var(--white);
  border-radius: 999px;
}

.login-link:hover {
  background: var(--white);
  color: var(--red-dark);
}

/* A wide photo under the banner, darkened where the page title sits on it. */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--gray);
  background-size: cover;
  background-position: center 35%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.82) 0%, rgba(20, 20, 20, 0.6) 55%, rgba(20, 20, 20, 0.25) 100%);
}

/* Page banners (About Us, Contact Us, ...) kept short (Daniel). */
.hero .wrap {
  position: relative;
  padding-top: 44px;
  padding-bottom: 32px;
}

.hero h1 {
  color: var(--white);
  max-width: 760px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero .lead {
  max-width: 640px;
  font-size: 1.2rem;
  color: #eee;
}

.hero .lead a {
  color: var(--white);
}

/* "Warehousing • 3PL solutions" above the home page's heading: two, so it fits on one line on an iPhone (Daniel). */
.eyebrow {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin: 0 0 10px;
}

.eyebrow span {
  color: var(--red);
  margin: 0 6px;
}

/* "Your freight. Our infrastructure.", the service sheet's slogan, in the home page's heading. */
.slogan {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--white);
  margin: 28px 0 6px;
}

.hero-home {
  background-image: url(images/pg_bkgrnd.jpg);
}
.hero-warehousing {
  background-image: url(images/pg_bkgrnd_warehousing.jpg);
}
.hero-about {
  background-image: url(images/pg_bkgrnd_about.jpg);
}
/* Daniel: the about photo read too dark; a lighter shade over it. */
.hero-about::before {
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.55) 0%, rgba(20, 20, 20, 0.25) 60%, rgba(20, 20, 20, 0) 100%);
}
.hero-contact {
  background-image: url(images/pg_bkgrnd_contact.jpg);
  background-position: center 20%;
}

.hero-home .wrap {
  padding-top: 64px;
  padding-bottom: 88px;
}

/* The large forklifts news at the top of the home page, so it's seen without scrolling
   on a laptop (Daniel); it jumps down to the forklifts section. */
.notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 36px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.55);
  color: var(--white);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.notice:hover {
  background: var(--red-mid);
  border-color: var(--red-mid);
}

.notice .tag {
  margin: 0;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--red);
}

#large-forklifts {
  scroll-margin-top: 16px;
}

/* A plain title band, for pages without a photo (the terms). */
.title-band {
  background: var(--ink);
}

.title-band .wrap {
  padding-top: 44px;
  padding-bottom: 28px;
}

.title-band h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin: 0;
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
}

.btn:hover {
  background: var(--red-mid);
  border-color: var(--red-mid);
}

.btn.ghost {
  background: transparent;
  border-color: var(--white);
}

.btn.ghost:hover {
  background: var(--white);
  color: var(--ink);
}

/* Page sections */
.section {
  padding: 64px 0;
}

.section.white {
  background: var(--white);
}

/* Two sections that belong together (the contact page's warehouses, then its
   phone and map): less space between them (Daniel). */
.section.close-below {
  padding-bottom: 32px;
}

.section.close-above {
  padding-top: 32px;
}

.section h2 {
  margin-bottom: 0.6em;
}

.readable {
  max-width: 760px;
}

.statement {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.2;
  border-left: 6px solid var(--red);
  padding-left: 20px;
  max-width: 900px;
  margin: 0;
}

/* Four figures in a dark strip on the home page. */
.facts {
  background: var(--ink);
  color: var(--gray-light);
}

.facts ul {
  list-style: none;
  margin: 0 auto;
  padding: 28px var(--gutter);
  max-width: var(--width);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.facts strong {
  display: block;
  font-family: var(--heading);
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--white);
}

.facts span {
  font-size: 1rem;
}

/* Text beside a picture; stacks on phones. */
.split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.split img,
.aside img {
  display: block;
  border-radius: 10px;
}

/* A highlighted service with its photo (the home page's large forklifts,
   new in 2026: Daniel wanted it to stand out). */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.feature .tag {
  margin-bottom: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.quote {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}

.aside {
  background: var(--ink);
  color: var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
}

.aside img {
  width: 100%;
  border-radius: 0;
}

.aside div {
  padding: 20px 24px 8px;
}

.aside h3 {
  color: var(--white);
}

/* The "Let us help you" list on Warehousing. */
.callout {
  display: grid;
  grid-template-columns: 1fr 280px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.callout h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 28px;
  color: var(--white);
  background: linear-gradient(90deg, var(--red-dark), var(--red-mid));
  font-size: 1.4rem;
}

.callout ul {
  margin: 0;
  padding: 24px 28px 24px 52px;
  columns: 2;
  column-gap: 40px;
}

.callout li {
  break-inside: avoid;
  margin-bottom: 10px;
  color: var(--text);
}

.callout li::marker {
  color: var(--red);
}

.callout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The three warehouses, as cards. */
.locations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.locations li {
  background: var(--white);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.section.white .locations li {
  background: var(--paper);
  box-shadow: none;
}

.locations address {
  font-style: normal;
  margin-bottom: 8px;
}

/* The warehouse the contact page's map shows. */
.locations li.on-map {
  outline: 2px solid var(--red);
}

.locations strong {
  font-family: var(--heading);
  font-size: 1.4rem;
  color: var(--ink);
}

/* The service icons (templates/site/icons.html): solid, in the text colour. */
.icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Core services on Warehousing: a card each, with its icon and a short list. */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services > li {
  background: var(--white);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 20px 24px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.services .icon {
  font-size: 64px;
  color: var(--red);
  margin-bottom: 8px;
}

.services h3 {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.services ul {
  margin: 0 0 8px;
  padding-left: 20px;
  list-style: disc;
  font-size: 1rem;
}

.services ul li {
  margin-bottom: 6px;
}

.services ul li::marker {
  color: var(--red);
}

.services p {
  font-size: 1rem;
  margin: 0 0 6px;
}

/* The ports, by state. */
.ports {
  margin: 0 0 8px;
  font-size: 1rem;
}

.ports dt {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-top: 8px;
}

.ports dd {
  margin: 0;
}

/* The home page's row of core services, each a link to its card on Warehousing. */
.service-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.service-icons a {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.service-icons .icon {
  font-size: 64px;
  color: var(--red);
  margin: 0 auto 10px;
}

.service-icons strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.25rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.service-icons span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.service-icons a:hover strong {
  color: var(--red-mid);
}

.tag {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red-mid);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-list {
  margin: 0;
}

.contact-list dt {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 1rem;
}

.contact-list dd {
  margin: 0 0 16px;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.map {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 10px;
  background: var(--gray-light);
}

/* Terms: long text, so a narrow column and quieter headings. */
.terms h2 {
  font-size: 1.35rem;
  color: var(--red-dark);
  margin: 1.8em 0 0.4em;
}

.terms p {
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--gray-light);
  font-size: 1rem;
  border-top: 4px solid var(--red);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer address {
  font-style: normal;
  margin: 0 0 12px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

/* On phones the warehouse addresses (home page, footer) give way to a link
   to the Contact page, which lists them (Daniel). */
.phone-only {
  display: none;
}

/* Tablets */
@media (max-width: 900px) {
  h1 {
    font-size: 2.8rem;
  }
  .site-header .wrap {
    gap: 20px;
  }
  .site-nav {
    gap: 8px 22px;
  }
  .site-nav a {
    font-size: 1.15rem;
  }
  .facts ul,
  .locations,
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-icons {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid,
  .feature,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .aside {
    max-width: 480px;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phones: one column, the menu on its own row under the logo and login. */
@media (max-width: 700px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 2.3rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .site-header {
    --corner: 64px;
  }
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 6px 12px;
    min-height: 0;
    padding-top: 6px;
    padding-bottom: 4px;
  }
  .site-header .logo {
    align-self: center;
    margin: 0;
  }
  .site-header .logo img {
    width: 48px;
    height: 48px;
  }
  .login-link {
    margin-left: auto;
    font-size: 0.95rem;
    padding: 6px 14px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 4px 12px;
  }
  .site-nav a {
    font-size: 1.05rem;
  }
  .hero .wrap {
    padding-top: 28px;
    padding-bottom: 24px;
  }
  .hero-home .wrap {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .notice {
    margin-bottom: 24px;
    font-size: 1.05rem;
    border-radius: 18px;
  }
  .hero::before {
    background: rgba(20, 20, 20, 0.7);
  }
  .hero .lead {
    font-size: 1.1rem;
  }
  .title-band .wrap {
    padding-top: 28px;
    padding-bottom: 20px;
  }
  .title-band h1 {
    font-size: 2rem;
  }
  .section {
    padding: 40px 0;
  }
  .section.close-below {
    padding-bottom: 20px;
  }
  .section.close-above {
    padding-top: 20px;
  }
  .statement {
    font-size: 1.5rem;
  }
  .facts strong {
    font-size: 1.7rem;
  }
  .split,
  .callout,
  .locations,
  .services,
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .split img {
    max-width: 300px;
  }
  .callout ul {
    columns: 1;
    padding: 20px 20px 12px 40px;
  }
  .callout h3 {
    padding: 12px 20px;
  }
  .callout img {
    display: none;
  }
  .btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .service-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .service-icons .icon {
    font-size: 52px;
  }
  .wide-only {
    display: none;
  }
  .phone-only {
    display: block;
  }
}
