/* ==========================================================================
   ACG Website — Design System & Styles
   Advanced Commercial Group, Inc.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --navy:       #0A1C2B;
  --blue:       #3652A3;
  --red:        #BC1F26;
  --gray-mid:   #9CA3AB;
  --gray-light: #E5E7E8;
  --gray-bg:    #F4F5F6;
  --white:      #FFFFFF;

  --font:       'Barlow', sans-serif;
  --max-width:  1200px;
  --header-h:   88px;
  --header-h-m: 72px;
  --section-py:  88px;
  --section-py-t: 72px;
  --section-py-m: 60px;
  --radius:     4px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-dark .eyebrow,
.hero .eyebrow { color: #CBD5E1; }
.hero .eyebrow { font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  line-height: 1;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  background: #a11b21;
  border-color: #a11b21;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: #CBD5E1;
  border-color: var(--navy);
  font-size: 18px;
}
.btn-navy:hover {
  background: #0d2438;
  border-color: #0d2438;
}

/* ---------- Typography ---------- */
h1 {
  font-weight: 800;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
}
h4 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: var(--navy);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.header-logo img {
  height: 52px;
  width: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-nav a {
  color: #CBD5E1;
  font-weight: 600;
  font-size: 17px;
  transition: color var(--transition);
  position: relative;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--white);
  border-bottom: 2px solid var(--white);
  padding-bottom: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-phone {
  color: #CBD5E1;
  font-weight: 700;
  font-size: 18px;
}
.header-phone a { color: #CBD5E1; }
.btn.header-cta { padding: 12px 28px; font-size: 20px; font-weight: 700; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  max-height: 900px;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-h);
}
.hero-inner { height: 100vh; min-height: 620px; max-height: 900px; }
.hero--short {
  height: 55vh;
  min-height: 400px;
  max-height: 600px;
}
.hero--short .hero-inner {
  height: 55vh;
  min-height: 400px;
  max-height: 600px;
}

/* Slide backgrounds */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }

/* Static hero background (inner pages) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg-careers {
  background-position: center 15% !important;
}
@media (min-width: 769px) {
  .hero-bg-careers {
    background-position: center 25% !important;
    background-size: 120% auto !important;
  }
}
.hero-bg-contact {
  background-position: center 25% !important;
}
@media (min-width: 769px) {
  .hero-bg-contact {
    background-position: center 15% !important;
  }
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,28,43,0.82) 0%, rgba(10,28,43,0.30) 100%);
  z-index: 1;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
  padding: 0 24px;
}
.hero-content .container { padding: 0; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content p {
  font-size: 24px;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-emergency {
  font-size: 15px;
  font-weight: 600;
  color: #CBD5E1;
}
.hero-emergency a {
  color: var(--white);
  font-weight: 700;
}
.hero-phone-btn {
  display: none;
}

/* Dot navigation */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* ==========================================================================
   CREDIBILITY BAR
   ========================================================================== */
.credibility-bar {
  background: var(--blue);
  padding: 28px 0;
}
.credibility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cred-item {
  text-align: center;
  color: var(--white);
  flex: 1;
  position: relative;
}
.cred-item + .cred-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}
.cred-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.cred-label {
  font-size: 15px;
  font-weight: 500;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: var(--section-py) 0;
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-light {
  background: var(--white);
}
.section-gray {
  background: var(--gray-bg);
}
.section-red {
  background: var(--red);
  color: var(--white);
}

.section h2 { margin-bottom: 20px; }
.section > .container > p { max-width: 720px; margin-bottom: 24px; }
.section-dark p { color: #CBD5E1; }

.section-header {
  margin-bottom: 48px;
  text-align: center;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
  color: var(--gray-mid);
}
.section-header p.eyebrow {
  font-size: 24px;
}
.section-dark .section-header p { color: #CBD5E1; }

/* ==========================================================================
   INTRO SECTION (Homepage)
   ========================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.intro-text p {
  margin-bottom: 16px;
  color: #4a5568;
}
.intro-text .btn { margin-top: 12px; }
.intro-link {
  color: var(--blue);
  font-weight: 600;
  border-bottom: 2px solid var(--blue);
  transition: color var(--transition);
}
.intro-link:hover { color: var(--red); border-color: var(--red); }

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature-card {
  background: var(--gray-bg);
  padding: 28px 24px;
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
  transition: border-color var(--transition);
}
.feature-card:hover { border-top-color: var(--red); }
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 17px;
  color: #4a5568;
  line-height: 1.7;
}

/* ==========================================================================
   INDUSTRY TILES
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.industry-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}
.industry-tile:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

/* ==========================================================================
   CUSTOMER GRID
   ========================================================================== */
.customer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  text-align: center;
}
.customer-grid span {
  font-size: 17px;
  font-weight: 500;
  color: #4A5568;
  padding: 8px 0;
}
.customer-grid span::after {
  content: '·';
  margin-left: 20px;
  color: var(--gray-light);
}
.customer-grid span:last-child::after { content: ''; margin: 0; }

.section-dark .customer-grid span { color: #CBD5E1; }
.section-dark .customer-grid span::after { color: rgba(203,213,225,0.4); }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  padding: var(--section-py) 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: #CBD5E1;
}
.cta-banner .hero-buttons { justify-content: center; }

/* ==========================================================================
   SERVICES PAGE
   ========================================================================== */
.framing-statement {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}
.framing-statement p {
  font-size: 18px;
  color: #4a5568;
  margin-bottom: 16px;
}

.services-subsection { margin-bottom: 64px; }
.services-subsection:last-child { margin-bottom: 0; }
.services-subsection h2 { margin-bottom: 40px; }

.service-item {
  margin-bottom: 36px;
}
.service-item:last-child { margin-bottom: 0; }
.service-item h3 {
  margin-bottom: 8px;
  color: var(--navy);
}
.service-item p {
  color: #4a5568;
  max-width: 760px;
}

.connector-line {
  text-align: center;
  padding: 48px 0;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--blue);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  max-width: 800px;
  margin: 0 auto;
}

/* Geographic Coverage */
.coverage-section {
  text-align: center;
}
.coverage-section p {
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto;
  color: #4a5568;
}
.coverage-section p.eyebrow {
  font-size: 24px;
}
.state-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 24px;
}
.state-list span {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

/* ==========================================================================
   WHY ACG PAGE
   ========================================================================== */
.prose-block {
  margin-bottom: 48px;
  max-width: 800px;
}
.prose-block:last-child { margin-bottom: 0; }
.prose-block .block-label {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.prose-block p {
  color: #4a5568;
  margin-bottom: 12px;
}
.prose-block p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CAREERS PAGE
   ========================================================================== */
.culture-section {
  max-width: 800px;
}
.culture-section p {
  color: #4a5568;
  margin-bottom: 16px;
}
.culture-section p:last-child { margin-bottom: 0; }

.key-quote {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--red);
  padding: 20px 0 20px 28px;
  margin: 40px 0;
  max-width: 800px;
}

/* Benefits Strip */
.benefits-strip {
  padding: var(--section-py) 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  color: #CBD5E1;
}

/* Openings */
.openings-section {
  text-align: center;
}
.openings-section p {
  margin-bottom: 24px;
  color: #4a5568;
}

/* Careers CTA */
.careers-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.careers-cta h2 { margin-bottom: 16px; }
.careers-cta p {
  color: #4a5568;
  margin-bottom: 8px;
}
.careers-cta a {
  color: var(--red);
  font-weight: 700;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  margin-bottom: 20px;
  color: var(--navy);
}
.contact-info p {
  color: #4a5568;
  margin-bottom: 16px;
}
.contact-info a {
  color: var(--red);
  font-weight: 600;
}
.contact-detail {
  margin-bottom: 20px;
}
.contact-detail strong {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.licensed-states {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
}
.licensed-states span {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-mid);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--gray-bg);
  padding: 40px;
  border-radius: var(--radius);
}
.contact-form-wrap h3 { margin-bottom: 24px; }
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 16px;
  color: var(--navy);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-group .optional {
  font-weight: 400;
  color: var(--gray-mid);
  font-size: 15px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--red);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-mid);
  margin-bottom: 16px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-brand img {
  align-self: flex-start;
  width: auto;
  height: 48px;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-brand .footer-licensed {
  margin-top: auto;
  font-size: 15px;
  color: var(--gray-mid);
}
.footer-brand p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-mid);
}
.footer-brand .tagline {
  font-style: italic;
  font-size: 18px;
  margin-bottom: 4px;
}
.footer-links a {
  display: block;
  font-size: 16px;
  color: var(--gray-mid);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p,
.footer-contact a {
  font-size: 16px;
  color: var(--gray-mid);
  display: block;
  margin-bottom: 4px;
}
.footer-contact .footer-tampa {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #1E3A52;
}
.footer-contact .footer-phone {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #1E3A52;
}
.footer-contact a:hover { color: var(--white); }
.footer-emergency {
  text-align: center;
}
.footer-emergency p {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-emergency .btn {
  width: 100%;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--gray-mid);
}
.footer-bottom a {
  color: var(--gray-mid);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   RESPONSIVE — Tablet (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --section-py: var(--section-py-t);
  }
  .header-nav,
  .header-right { display: none; }
  .hamburger { display: flex; }
  .site-header { height: var(--header-h-m); }
  .hero { margin-top: var(--header-h-m); }

  /* Mobile Nav Overlay */
  .mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h-m);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h-m));
    background: var(--navy);
    z-index: 999;
    flex-direction: column;
    padding: 40px 24px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: block;
  }
  .mobile-nav a.active { color: var(--white); }
  .mobile-nav .mobile-phone {
    margin-top: 32px;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
  }
  .mobile-nav .btn {
    margin-top: 24px;
    text-align: center;
  }

  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }

  .credibility-bar .container {
    flex-wrap: wrap;
    gap: 16px;
  }
  .cred-item { flex: 0 0 calc(50% - 8px); }
  .cred-item + .cred-item::before { display: none; }
}

/* ==========================================================================
   RESPONSIVE — Mobile (768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-m);
  }
  .feature-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { height: 70vh; min-height: 500px; }
  .hero-content h1 { max-width: 100%; font-size: clamp(30px, 5vw, 38px); }
  .hero-content p { font-size: 16px; }
  .hero--short { height: 45vh; min-height: 340px; }
  .hero-slide,
  .hero-bg { background-position: 80% center !important; }
  .hero-slide:nth-child(2) { background-position: right 60% !important; }
  .hero-slide:nth-child(4) { background-position: 85% center !important; }
  .hero-bg-careers { background-position: center 25% !important; }
  .hero-buttons { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-buttons .btn { width: auto; padding: 14px 36px; }
  .hero-emergency { display: none; }
  .hero-phone-btn { display: inline-block; }

  .customer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    justify-content: initial;
  }
  .customer-grid span {
    text-align: center;
    padding: 10px 0;
  }
  .customer-grid span::after {
    content: '';
    margin: 0;
  }

  .contact-form-wrap { padding: 28px 20px; }
}

/* ==========================================================================
   RESPONSIVE — Small Mobile (480px)
   ========================================================================== */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-buttons .btn { width: auto; padding: 14px 36px; }
  .industry-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .cred-item { flex: 0 0 100%; }
  .container { padding: 0 16px; }
}
