/* ============================================
 * Concrete Solutions Landing Pages - Stylesheet
 * Industrial/utilitarian with refined polish
 * ============================================ */

:root {
  /* Brand palette pulled from logo: navy, deep blue, gold accent */
  --navy: #0a2540;
  --navy-deep: #061a31;
  --blue: #2777ba;
  --blue-light: #97bbda;
  --gold: #f1ca4a;
  --gold-dark: #c69d2b;
  --ink: #1a1a1a;
  --ink-soft: #4a5568;
  --line: #e2e8f0;
  --line-strong: #cbd5e0;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-darker: #eef1f5;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container: 1180px;
  --container-narrow: 780px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--navy); }

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

.container-narrow {
  max-width: var(--container-narrow);
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 16px 32px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  height: 48px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--blue);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #143a5e 100%);
  color: white;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  max-width: 640px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 2px 4px rgba(241, 202, 74, 0.25);
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(198, 157, 43, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-block {
  width: 100%;
  padding: 18px 28px;
}

.hero-microcopy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  text-align: center;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--line-strong);
}

@media (max-width: 760px) {
  .trust-divider { display: none; }
}

/* ============ SECTIONS ============ */
.section {
  padding: 88px 0;
}

.section-dark {
  background: var(--navy-deep);
  color: white;
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(39, 119, 186, 0.18), transparent 70%);
  pointer-events: none;
}

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

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.eyebrow-light {
  color: var(--gold);
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy);
}

.section-h2-light {
  color: white;
}

/* ============ SCOPE LIST ============ */
.scope-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.scope-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.2s;
}

.scope-item:hover {
  background: white;
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.06);
}

.scope-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ============ PROCESS ============ */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  opacity: 0.95;
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: white;
  margin-bottom: 10px;
}

.step-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  list-style: none;
  transition: color 0.15s;
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--ink-soft);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-a {
  padding: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 700px;
}

/* ============ QUOTE FORM ============ */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 880px) {
  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
}

.form-lede {
  margin: 16px 0 24px;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.55;
}

.form-benefits {
  list-style: none;
  margin-bottom: 32px;
}

.form-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.form-phone {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.form-phone-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}

.form-phone-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.form-phone-link:hover { color: var(--gold-dark); }

.quote-form {
  background: white;
  color: var(--ink);
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 119, 186, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-body);
}

.form-fineprint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.hp { display: none; }

/* ============ RELATED ============ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.related-card {
  position: relative;
  display: block;
  padding: 24px 60px 24px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: all 0.2s;
}

.related-card:hover {
  background: var(--bg-soft);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  color: var(--ink);
}

.related-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 6px;
}

.related-tag {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.related-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--blue);
  transition: transform 0.2s;
}

.related-card:hover .related-arrow {
  transform: translate(4px, -50%);
}

/* ============ FOOTER ============ */
.site-footer {
  background: #050d1a;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tag {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
}

.footer-h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.65);
}

.footer-col a {
  color: rgba(255,255,255,0.85);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============ HERO RESPONSIVE ============ */
@media (max-width: 640px) {
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { padding: 14px 24px; }
  .quote-form { padding: 24px; }
}


/* ============ HAMBURGER MENU & MOBILE NAV ============ */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 12px;
  margin-left: auto;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Tablet and mobile (under 1024px) */
@media (max-width: 1023px) {
  .header-inner {
    padding: 14px 20px;
    gap: 12px;
  }

  .logo {
    height: 44px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide the desktop nav by default on mobile */
  .header-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 16px 0;
    margin: 0;
    box-shadow: 0 12px 32px rgba(10, 37, 64, 0.12);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    z-index: 99;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  /* When body has .mobile-menu-open, slide the nav into view */
  body.mobile-menu-open .header-nav {
    transform: translateY(0);
  }

  /* Hamburger animates into X when open */
  body.mobile-menu-open .mobile-menu-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.mobile-menu-open .mobile-menu-toggle .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  body.mobile-menu-open .mobile-menu-toggle .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-nav .nav-link {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
  }

  .header-nav .nav-link:last-of-type {
    border-bottom: 0;
  }

  .phone-cta {
    margin: 16px 24px 8px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Prevent body scroll when menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* Phone (under 640px) - tighter spacing */
@media (max-width: 639px) {
  .header-inner {
    padding: 12px 16px;
  }

  .logo {
    height: 38px;
  }

  .header-nav {
    top: 64px;
    max-height: calc(100vh - 64px);
  }
}
