/* ==========================================================================
   CPT Houston, Inc. — design system
   Palette taken from the original site:
   logo royal blue #211D9C · nav #263841 · slate #485F6C / #526C7B
   steel accent #679ACE · text #191919 / #282828 · light #E0E0E0/#EFEFEF
   ========================================================================== */

:root {
  --brand: #211d9c;
  --brand-bright: #2e35c4;
  --ink: #16242c;
  --slate-800: #263841;
  --slate-600: #485f6c;
  --slate-500: #526c7b;
  --steel: #679ace;
  --steel-soft: #a8c6e4;
  --mist: #e8eef4;
  --paper: #f6f8fb;
  --white: #ffffff;
  --text: #282828;
  --text-soft: #51606b;
  --line: #dde5ec;
  --shadow-sm: 0 1px 2px rgba(22, 36, 44, 0.06), 0 2px 8px rgba(22, 36, 44, 0.06);
  --shadow-md: 0 4px 14px rgba(22, 36, 44, 0.1), 0 12px 32px rgba(22, 36, 44, 0.1);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1140px;
  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

a { color: var(--brand); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--brand-bright); }

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

.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--ink); color: var(--mist); }
.section.dark h2, .section.dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section.dark .eyebrow,
.hero .eyebrow { color: var(--steel-soft); }

.lead {
  font-size: 1.16rem;
  color: var(--text-soft);
  max-width: 46em;
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: var(--steel-soft);
  font-size: 0.84rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
}

.topbar a { color: var(--mist); }
.topbar a:hover { color: var(--white); }
.topbar .tag { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.76rem; }
.topbar .links { display: flex; gap: 22px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark { width: 46px; height: 46px; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--brand);
  white-space: nowrap;
}

.logo-text .inc { font-weight: 600; opacity: 0.75; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-800);
}

.main-nav a:hover { background: var(--mist); color: var(--brand); }

.main-nav li.active a {
  background: var(--brand);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--slate-800);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 17, 48, 0.92) 0%,
    rgba(33, 29, 156, 0.62) 48%,
    rgba(38, 56, 65, 0.45) 100%
  );
}

.hero .container { position: relative; z-index: 1; }

.hero-home { min-height: min(78vh, 720px); padding: 120px 0; }

.hero-home .hero-inner { max-width: 720px; }

.hero h1 { color: var(--white); margin-bottom: 0.4em; }

.hero .sub {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 38em;
  margin-bottom: 2em;
}

.hero-page { min-height: 320px; padding: 90px 0 70px; }
.hero-page h1 { margin-bottom: 0.2em; }
.hero-page .sub { margin-bottom: 0; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(33, 29, 156, 0.35);
}

.btn-primary:hover {
  background: var(--brand-bright);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline {
  border: 1.5px solid var(--brand);
  color: var(--brand);
}

.btn-outline:hover { background: var(--brand); color: var(--white); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card-grid.cols-4 .card-body { padding: 22px 24px 26px; }
.card-grid.cols-4 .card-body h3 { font-size: 1.08rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-media { aspect-ratio: 16 / 10; overflow: hidden; }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 26px 28px 30px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-soft); font-size: 0.96rem; margin: 0; }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--steel);
  display: block;
  line-height: 1.1;
}

.stat .label {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-soft);
  margin-top: 8px;
  display: block;
}

/* --------------------------------------------------------------------------
   Split layout / About
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.split .visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.callout {
  border-left: 4px solid var(--steel);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 26px;
  font-style: italic;
  color: var(--slate-800);
  margin: 28px 0 0;
}

/* areas-of-operation list */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.area-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.97rem;
  color: var(--slate-800);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.area-grid li:hover { transform: translateY(-3px); border-color: var(--steel); }

.area-grid .dot {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--steel) 120%);
  display: grid;
  place-items: center;
  color: var(--white);
}

.area-grid .dot svg { width: 20px; height: 20px; }

/* brand chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-800);
  box-shadow: var(--shadow-sm);
}

.chip.more {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.photo-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

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

/* --------------------------------------------------------------------------
   Suppliers directory
   -------------------------------------------------------------------------- */

.supplier-tools {
  position: sticky;
  top: 78px;
  z-index: 50;
  background: rgba(246, 248, 251, 0.95);
  backdrop-filter: blur(8px);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.supplier-tools .container {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--slate-500);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(33, 29, 156, 0.12);
}

.az-nav { display: flex; flex-wrap: wrap; gap: 4px; }

.az-nav a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--slate-800);
}

.az-nav a:hover { background: var(--brand); color: var(--white); }

.letter-block { padding-top: 24px; margin-top: 24px; scroll-margin-top: 170px; }

.letter-block h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.7rem;
  color: var(--brand);
}

.letter-block h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.letter-block ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  columns: 3;
  column-gap: 28px;
}

.letter-block li {
  break-inside: avoid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  color: var(--slate-800);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.letter-block li:hover { border-color: var(--steel); transform: translateX(3px); }

.no-results {
  display: none;
  text-align: center;
  padding: 64px 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.contact-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--steel) 130%);
  display: grid;
  place-items: center;
  color: var(--white);
  margin-bottom: 20px;
}

.contact-card .icon svg { width: 24px; height: 24px; }

.contact-card .role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}

.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--text-soft); margin: 0 0 4px; font-size: 0.97rem; }
.contact-card a { font-weight: 600; }

.map-wrap {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-link {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  margin-top: 10px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Sitemap
   -------------------------------------------------------------------------- */

.sitemap-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.sitemap-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--slate-800);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sitemap-list a:hover { transform: translateX(6px); border-color: var(--brand); color: var(--brand); }

.sitemap-list .sub-page { margin-left: 40px; }

.sitemap-list .arrow { color: var(--steel); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background:
    linear-gradient(110deg, rgba(13, 17, 48, 0.95) 10%, rgba(33, 29, 156, 0.85) 100%),
    var(--slate-800);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0; }
.cta-band .address { font-size: 1.02rem; line-height: 1.8; }
.cta-band .address a { color: var(--steel-soft); font-weight: 600; }
.cta-band .address a:hover { color: var(--white); }
.cta-band .action { text-align: right; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--steel-soft);
  padding: 72px 0 0;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

.site-footer .logo-text { color: var(--white); }
.site-footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--steel-soft); }
.site-footer a:hover { color: var(--white); }
.site-footer .blurb { margin-top: 18px; max-width: 30em; color: var(--slate-500); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 0.84rem;
  color: var(--slate-500);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .card-grid, .card-grid.cols-4, .contact-grid, .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .letter-block ul { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 36px; }
  .cta-band .action { text-align: left; }
}

@media (max-width: 720px) {
  .topbar .tag { display: none; }
  .topbar .container { justify-content: center; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 18px 20px; }
  .main-nav a { padding: 14px 16px; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 60px 0; }
  .hero-home { padding: 90px 0; min-height: 0; }
  .card-grid, .card-grid.cols-4, .contact-grid, .photo-strip, .area-grid { grid-template-columns: 1fr; }
  .letter-block ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .supplier-tools { position: static; }
  .letter-block { scroll-margin-top: 90px; }
}
