/*
  Paragon Contracting website styles
  Modern, high‑contrast design inspired by leading U.S. contractor sites.
*/

:root {
  --navy: #0B1C2E;
  --charcoal: #0F172A;
  --slate: #111827;
  --off: #F4F6F8;
  --red: #E11D2E;
  --amber: #FFC038;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--off);
  background: var(--charcoal);
}

/* Container utility */
.container {
  max-width: var(--container);
  padding: 0 20px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

/*
  The header logo uses a wide aspect ratio (flag + lettering). Constrain the
  logo so the full graphic is visible and doesn't overflow the header. Use
  object-fit: contain so the entire image shrinks proportionally.
*/
/*
  Constrain the logo container in the header. The anchor (.brand) has a fixed
  width and height to ensure the entire wide logo fits without being cropped.
  The image uses object-fit: contain to scale proportionally and display the
  full graphic within the allotted space.
*/
.brand {
  width: 140px;
  height: 44px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* Primary navigation */
.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.main-nav a {
  color: #C9D3E3;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-cta {
  background: var(--amber);
  color: #262626;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-outline {
  border: 1.5px solid #cbd5e1;
  color: #dbe3ef;
}

/* Hamburger for mobile */
.hamburger {
  display: none;
  background: none;
  border: 0;
  margin-left: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  margin: 5px 0;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 70vh;
  isolation: isolate;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 28, 46, 0.55), rgba(15, 23, 42, 0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 96px 0;
  display: grid;
  gap: 20px;
}

.lockup img {
  height: 58px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  margin: 8px 0;
}

.hero p {
  max-width: 750px;
  color: #E7EEF5;
}

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

/* Generic section styling */
.section {
  padding: 64px 0;
  background: var(--charcoal);
}

.section h2 {
  font-size: clamp(22px, 3.5vw, 34px);
  margin: 0 0 22px;
  color: #EAF1FA;
}

/* Markets/services grid */
.markets {
  background: #0B1325;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: #0F1B33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 {
  margin: 0 0 6px;
  color: #ffffff;
}

.card p {
  margin: 0;
  color: #C7CEDA;
}

/* Projects grid */
.projects {
  background: #0D1528;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 8px;
}

.chip {
  background: #0B1A30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #DAE3F0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.chip.is-active,
.chip:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.project-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  background: #0F1B33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.project-card .meta {
  padding: 14px;
}

.tag {
  background: #12213a;
  color: #b7c7df;
  border-radius: 6px;
  padding: 3px 8px;
  margin-right: 6px;
  font-size: 12px;
}

/* Stats section */
.stats {
  background: #0A1223;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-grid div {
  background: #0F1B33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-grid strong {
  display: block;
  font-size: 22px;
  color: #ffffff;
}

.stat-grid span {
  color: #C7CEDA;
}

/* Trio section */
.trio {
  background: #0B1325;
}

.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trio-grid article {
  background: #0F1B33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
}

.trio-grid h3 {
  margin: 0 0 6px;
}

/* Line card promo */
.linecard-promo {
  background: #0D1528;
}

.promo-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: center;
}

.promo-inner img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #ffffff;
}

/* Contact section */
.contact {
  background: linear-gradient(90deg, #0B1C2E, #0A1630);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.contact h2 {
  margin: 0;
}

/* Footer */
.site-footer {
  background: #0B0F1B;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 28px 0;
}

.f-brand img {
  height: 34px;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.f-nav a {
  display: block;
  color: #C9D3E3;
  text-decoration: none;
  margin: 6px 0;
  transition: color 0.2s ease;
}

.f-nav a:hover {
  color: var(--white);
}

.foot-note {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  padding: 10px 0;
  color: #9FB0C7;
}

/* Responsive styles */
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .main-nav.show {
    display: flex;
    position: absolute;
    right: 20px;
    top: 72px;
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 12px;
    flex-direction: column;
  }
  .hamburger {
    display: block;
  }
  .promo-inner {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-card img {
    height: 160px;
  }
}