/* Shade America — bold/industrial design system */

:root {
  --navy: #0056a0;
  --navy-2: #004a87;
  --blue: #0056a0;
  --blue-bright: #0068bc;
  --red: #e2231a;
  --red-dark: #b81a13;
  --steel: #3c4650;
  --steel-light: #5c6670;
  --ink: #14181c;
  --gray: #5c5c5c;
  --border: #c9c9c9;
  --bg-light: #f2f3f4;
  --white: #ffffff;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;

  /* Motion: strong custom curves read as intentional; built-in CSS
     easings are too weak to feel responsive. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--red); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: top 150ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 30px;
  border: 2px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 94% 100%, 0 100%);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfd6dc;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfd6dc; }
.topbar a:hover { color: var(--red); }
.topbar .sep { margin: 0 10px; opacity: 0.4; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 1px 0 rgba(0,86,160,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  color: var(--navy);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 10px 14px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current > a { color: var(--red); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  border-top: 3px solid var(--red);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96) translateY(-4px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
}
.main-nav > ul > li:hover .dropdown,
.main-nav > ul > li.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease;
}
.dropdown li a:hover { background: var(--bg-light); color: var(--red); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.header-phone strong { color: var(--red); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--steel) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 60%;
  height: 140%;
  background: linear-gradient(100deg, transparent 40%, rgba(226,35,26,0.18) 42%, rgba(226,35,26,0.18) 46%, transparent 48%, transparent 58%, rgba(0,104,188,0.22) 60%, rgba(0,104,188,0.22) 66%, transparent 68%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: #9fd4ff;
  border-left: 3px solid var(--red);
  padding-left: 10px;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead {
  font-size: 1.15rem;
  color: #cfd8e0;
  max-width: 640px;
  margin-bottom: 28px;
}
.hero-offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.hero-offerings li {
  position: relative;
  padding-left: 22px;
}
.hero-offerings li a {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.hero-offerings li a:hover { color: #9fd4ff; }
.hero-offerings li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid var(--red);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero.hero-sm { padding: 60px 0 46px; }

.hero.hero-photo {
  background-image:
    linear-gradient(120deg, rgba(0,58,110,0.6) 0%, rgba(0,86,160,0.4) 45%, rgba(0,86,160,0.22) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center 30%;
}
.hero.hero-photo::before { opacity: 0.3; }
.hero.hero-photo .hero-eyebrow,
.hero.hero-photo h1,
.hero.hero-photo p.lead {
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

/* Ghost-text placed in a plain white/light section (not the hero) —
   sits behind the first block of real content, e.g. the intro split. */
.ghost-section { position: relative; overflow: hidden; }
.ghost-section > .container { position: relative; }
.ghost-section > .container > .ghost-heading {
  top: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  transform: translateY(-105%);
}
.ghost-section > .container > *:not(.ghost-heading) {
  position: relative;
  z-index: 1;
}

/* ---------- Split hero: text left, real photo right (no overlap) ---------- */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero-split-photo {
  position: relative;
  height: 320px;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-split-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 3px rgba(226,35,26,0.7);
  pointer-events: none;
}
@media (max-width: 860px) {
  .hero-split-grid { grid-template-columns: 1fr; }
  .hero-split-photo { height: 220px; clip-path: none; order: -1; }
}

.hero-logo-mark {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 42%;
  max-width: 560px;
  opacity: 0.5;
  filter: brightness(0);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 980px) {
  .hero-logo-mark { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { position: relative; max-width: 720px; margin-bottom: 40px; }
.ghost-heading {
  position: absolute;
  top: -0.55em;
  left: -3px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10,31,51,0.09);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}
.section-dark .ghost-heading { -webkit-text-stroke: 1px rgba(255,255,255,0.1); }
.section-head .kicker,
.section-head h2,
.section-head .accent-bar,
.section-head p {
  position: relative;
  z-index: 1;
}
.section-head .kicker {
  display: block;
  font-family: var(--font-head);
  color: var(--red);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.accent-bar {
  height: 6px;
  width: 70px;
  background: var(--red);
  margin: 18px 0 22px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.stat {
  text-align: center;
  padding: 22px 10px;
  border-left: 3px solid var(--red);
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--white);
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  font-size: 0.85rem;
  color: #b9c3cc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border-top: 4px solid var(--blue);
  box-shadow: 0 1px 2px rgba(0,86,160,0.06);
  padding: 28px 24px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0,86,160,0.14);
    border-top-color: var(--red);
  }
}
.drawing-card {
  align-items: center;
  text-align: center;
}
.drawing-card img {
  border: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 14px;
}
.drawing-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}
.card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--blue);
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 14px; }
.card .card-link {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-top: auto;
  padding-top: 6px;
}
.card a.card-link:hover { color: var(--red); }
.card.card-link-wrap { color: inherit; width: 100%; }

/* Featured/bento card: breaks the uniform 3-equal-column grid by giving
   the flagship item more room and a distinct kicker label. */
.card-featured {
  grid-column: span 2;
  background: var(--navy);
  border-top-color: var(--red);
  padding: 36px;
  justify-content: center;
}
.card-featured .icon { color: #9fd4ff; width: 54px; height: 54px; }
.card-featured h3 { color: var(--white); font-size: 1.6rem; }
.card-featured p { color: #cfd8e0; font-size: 1rem; max-width: 46ch; }
.card-featured .card-link { color: var(--white); }
.card-featured:hover .card-link,
.card-featured .card-link:hover { color: #9fd4ff; }
.card-kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 14px;
}
@media (max-width: 980px) {
  .card-featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .card-featured { grid-column: span 1; }
}
.card.card-link-wrap:hover { color: inherit; }

/* ---------- Feature split ---------- */
.split > div > p { max-width: 62ch; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split .panel {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split .panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(var(--red), var(--blue-bright));
}
.split .panel h3 { color: var(--white); }

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 30px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.spec-table th {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  width: 32%;
  background: var(--bg-light);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  gap: 12px;
}
.faq-item h3 .q-mark {
  color: var(--red);
  font-family: var(--font-head);
}
.faq-item p { color: var(--gray); margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b9c3cc;
}
.breadcrumb a { color: #b9c3cc; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: #ffe3e1; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Photo gallery ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.photo-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,86,160,0.55), transparent 50%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .photo-grid a:hover::after { opacity: 1; }
  .photo-grid a:hover img { transform: scale(1.06); }
}
.photo-grid .big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 980px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .photo-grid .big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .big { grid-column: span 1; }
}

/* ---------- Related grid (product/app cross-links) ---------- */
.related-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.related-strip a {
  flex: 0 0 auto;
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  white-space: nowrap;
}
.related-strip a:hover { background: var(--navy); color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
}
.contact-list li .k {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--red);
  width: 110px;
  flex: none;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #eef1f4;
  color: var(--gray);
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  color: var(--navy);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--gray); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--red); }
.footer-logo img { height: 60px; margin-bottom: 16px; }
.footer-tagline { font-size: 0.85rem; max-width: 260px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Icon set base ---------- */
.icon svg { width: 100%; height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0,86,160,0.12);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
  }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .dropdown { position: static; box-shadow: none; }
  .site-header.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .grid, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
}

/* ---------- Reduced motion ---------- */
/* Keep opacity/visibility fades (they aid comprehension of what changed);
   drop transform-based movement, which is what can trigger discomfort. */
@media (prefers-reduced-motion: reduce) {
  .btn:active,
  .card:hover,
  .photo-grid img,
  .photo-grid a:hover img {
    transform: none !important;
  }
  .dropdown,
  .main-nav {
    transition-property: opacity, visibility;
  }
  .dropdown,
  .main-nav,
  .main-nav > ul > li:hover .dropdown,
  .main-nav > ul > li.open .dropdown,
  .site-header.nav-open .main-nav {
    transform: none !important;
  }
}
