/* =========================================
   Contractor Captive Solutions — Stylesheet
   Colors: Navy #0D1F3C | Gold #C9A227 | Gunmetal #2C2C2C | Light #F5F5F3
   ========================================= */

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

:root {
  --navy: #0D1F3C;
  --gold: #C9A227;
  --gold-dark: #A8841E;
  --gunmetal: #2C2C2C;
  --light: #F5F5F3;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --radius: 4px;
  --max-width: 1160px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

/* ---- BUTTONS ---- */

/* CA License style for visibility */
.ca-lic {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(13, 31, 60, 0.72);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: #162d54; border-color: #162d54; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.full-width { width: 100%; text-align: center; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo img {
  height: 64px;
  width: auto;
}

/* ---- ANIMATED LOGO ---- */
.animated-logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.logo-base-img {
  height: 64px;
  width: auto;
  display: block;
}
.crane-svg {
  position: absolute;
  top: 0;
  left: 0;
  height: 64px;
  width: auto;
  pointer-events: none;
}
#crane-arm {
  transform-origin: 323px 777px;
  transform-box: view-box;
  animation: crane-swing 3s ease-in-out infinite alternate;
}
@keyframes crane-swing {
  0%   { transform: rotate(-22deg); }
  100% { transform: rotate(22deg); }
}
.footer-logo-wrap {
  display: inline-block;
  position: relative;
  line-height: 0;
}
.crane-svg-footer {
  position: absolute;
  top: 0;
  left: 0;
  height: 80px;
  width: auto;
  pointer-events: none;
}
.crane-arm-footer {
  transform-origin: 323px 777px;
  transform-box: view-box;
  animation: crane-swing 3s ease-in-out infinite alternate;
}
.nav-hamburger { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gunmetal);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-links .btn { padding: 10px 24px; font-size: 14px; }

/* ---- HERO ---- */
.hero {
  margin-top: 72px;
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,31,60,0.88) 50%, rgba(13,31,60,0.4) 100%);
}
.photo-logo-wrap {
  position: absolute;
  pointer-events: none;
}
.hero-logo-wrap {
  top: 112px;
  left: clamp(24px, 6vw, 96px);
  width: clamp(240px, 24vw, 420px);
  z-index: 1;
}
.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 80px 24px;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--gunmetal);
  padding: 36px 0;
}
.trust-bar .container {
  max-width: 1360px;
  padding: 0 16px;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}
.trust-number {
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  white-space: nowrap;
}
.trust-label {
  font-size: clamp(7px, 0.62vw, 10px);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy); }

.video-section {
  padding-top: 72px;
  padding-bottom: 72px;
}
.video-section-inner {
  text-align: center;
}
.video-shell {
  max-width: 1120px;
  margin: 32px auto 0;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--gold); }

h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 20px;
}
h2.light { color: var(--white); }

p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; }
p.light-muted { color: rgba(255,255,255,0.7); }

/* ---- TWO COL ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse .col-image { order: -1; }

.col-image picture { display: block; width: 100%; }
.col-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.col-text .btn { margin-top: 8px; }

/* ---- QUALIFIER LIST ---- */
.qualifier-list {
  list-style: none;
  margin: 20px 0 28px;
}
.qualifier-list li {
  color: var(--text);
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 500;
}
.qualifier-list li:last-child { border-bottom: none; }

/* ---- STEPS GRID ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 32px 24px;
}
.step-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Merriweather', serif;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.step p { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; }

/* ---- IMAGE BREAK ---- */
.image-break {
  background-image:
    linear-gradient(rgba(13,31,60,0.75), rgba(13,31,60,0.75)),
    url('assets/images/aerial.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: auto, cover;
  background-attachment: scroll, fixed;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  text-align: center;
}
.image-break-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 88px;
}
.image-break-logo-wrap {
  top: 16px;
  left: 16px;
  width: clamp(220px, 20vw, 320px);
  z-index: 3;
}
.image-break-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}
.image-break-content h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 32px;
  line-height: 1.4;
}

/* ---- CONTACT ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-text h2 { color: var(--white); }
.contact-text p { color: rgba(255,255,255,0.7); }
.contact-portrait {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ---- FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
input, select, textarea {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition);
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
select option { background: var(--gunmetal); color: var(--white); }
textarea { resize: vertical; }

/* ---- FOOTER ---- */
.footer {
  background: var(--white);
  padding: 48px 0;
  text-align: center;
}
.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  opacity: 1;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(13,31,60,0.72);
  margin-bottom: 8px;
  font-style: italic;
}
.footer-copy {
  font-size: 12px;
  color: rgba(13,31,60,0.5);
  margin: 0;
}
.powered-by {
  width: min(100%, 420px);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(13,31,60,0.14);
}
.powered-by-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13,31,60,0.58);
}
.powered-by-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto 14px;
}
.powered-by-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.powered-by-dba {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(13,31,60,0.72);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1080px) {
  .trust-divider { display: none; }
  .trust-bar-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .trust-item {
    flex: 0 0 auto;
    min-width: 140px;
  }
}
@media (max-width: 820px) {
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 18px;
    overflow: visible;
    padding-bottom: 0;
  }
  .trust-item {
    min-width: 0;
  }
  .trust-number,
  .trust-label {
    white-space: normal;
  }
}
@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-image { order: 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 15px; }
  .hero-content { padding: 48px 16px; }
  .btn { padding: 14px 20px; font-size: 14px; }
  .trust-item span:first-child { font-size: 13px; }
  .trust-item span:last-child { font-size: 9px; }
  .section-heading { font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    min-height: 44px;
    align-items: center;
    margin-left: auto;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.2s;
  }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    gap: 16px;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open a { display: block !important; }
  .nav-links.open a { color: var(--white); }
  .nav-links.open .btn-outline { border-color: var(--white); color: var(--white); }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-logo-wrap {
    top: 80px;
    left: 16px;
    width: 144px;
  }
  .hero-logo { opacity: 0.82; }
  .hero-content {
    padding: 150px 20px 60px 52px;
  }
  .image-break {
    background-attachment: scroll, scroll;
  }
  .image-break-content {
    padding-top: 72px;
  }
  .image-break-logo-wrap {
    top: 12px;
    left: 12px;
    width: 170px;
  }
  .image-break-logo { opacity: 0.96; }
}

/* Footer flexbox layout enhancements for mobile and desktop */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 420px;
  margin: 0 auto;
}
.footer-logo-wrap {
  display: flex;
  justify-content: center;
}
.footer-tagline,
.footer-copy,
.powered-by-label,
.powered-by-name,
.powered-by-dba {
  width: 100%;
}
.powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.powered-by-logo {
  display: block;
  width: min(100%, 220px);
  max-width: 220px;
  height: auto;
  margin: 0 auto 12px;
}

@media (min-width: 900px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center; /* changed from space-between to center */
    gap: 32px; /* reduced gap to bring blocks closer */
    text-align: center; /* center text alignment */
  }
  .footer-brand {
    align-items: center; /* center align brand block */
    justify-content: center;
    text-align: center; /* center text */
    margin: 0 0 0 0;
    flex: 1 1 auto;
    max-width: 520px;
  }
  .footer-logo-wrap {
    justify-content: center; /* center logo wrap */
  }
  .powered-by {
    align-items: center; /* center align powered-by block */
    justify-content: center;
    text-align: center; /* center text */
    flex: 0 0 auto;
    margin: 0; padding-top: 0; padding-left: 0;
    border-top: none;
    border-left: none; /* remove vertical divider line and padding for desktop */
  }
  .powered-by-logo {
    margin: 0 0 12px;
  }
}

@media (max-width: 599px) {
  .footer-inner {
    gap: 24px;
  }
  .footer-brand,
  .powered-by {
    max-width: 100%;
  }
}


