/* ============================================================
   AMEX Construction LLC — style.css
   Palette: steel (#1e2b3c), red (#c0392b), cream (#f4f3ee)
   Fonts: Barlow Condensed (headings) + Inter (body)
   ============================================================ */

:root {
  --steel:   #1e2b3c;
  --steel-d: #131c28;
  --red:     #c0392b;
  --red-d:   #a0301f;
  --cream:   #f4f3ee;
  --white:   #ffffff;
  --dark:    #111111;
  --mid:     #5a6475;
  --border:  rgba(255,255,255,.12);
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  letter-spacing: .01em;
}

img { max-width: 100%; height: auto; }

/* ---- UTILITY ---- */
.bg-cream   { background: var(--cream); }
.bg-steel   { background: var(--steel); }
.bg-white   { background: var(--white); }
.text-red   { color: var(--red); }

.section-pad { padding: 80px 0; }
@media (max-width: 767px) { .section-pad { padding: 60px 0; } }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.lead-text { font-size: 1.1rem; line-height: 1.7; color: #2a2a2a; }

/* ---- BTN ---- */
.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-red:hover, .btn-red:focus {
  background: var(--red-d);
  border-color: var(--red-d);
  color: #fff;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: var(--steel-d);
  padding: .75rem 0;
  transition: box-shadow .2s, padding .2s;
  z-index: 1040;
}
#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  padding: .5rem 0;
}

.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  text-transform: uppercase;
}

#mainNav .nav-link {
  color: rgba(255,255,255,.8);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem .75rem;
  transition: color .15s;
}
#mainNav .nav-link:hover { color: #fff; }

#mainNav .navbar-toggler { color: #fff; }
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.30) 0%, rgba(0,0,0,.10) 45%, rgba(0,0,0,.50) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 2rem 1.5rem;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 4px;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.8);
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,.95), 0 0 60px rgba(0,0,0,.8);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,.95), 0 0 40px rgba(0,0,0,.85);
  margin-bottom: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border-top: 4px solid var(--red);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }

.service-icon {
  font-size: 2rem;
  color: var(--red);
  margin-bottom: .75rem;
  line-height: 1;
}

.service-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: .6rem;
}

.service-desc {
  color: var(--mid);
  font-size: .93rem;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .88rem;
  color: var(--dark);
}
.service-list li {
  padding: .3rem 0;
  border-top: 1px solid #eee;
}
.service-list li:first-child { border-top: none; }

/* ============================================================
   WHO WE HELP
   ============================================================ */
.client-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 100%;
  transition: background .2s, border-color .2s;
}
.client-card:hover { background: rgba(255,255,255,.06); border-color: var(--red); }
.client-card--cta { background: rgba(192,57,43,.12); border-color: rgba(192,57,43,.4); }

.client-icon {
  font-size: 2rem;
  color: var(--red);
  display: block;
  margin-bottom: .75rem;
}

.client-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
  letter-spacing: .03em;
}

.client-desc { color: rgba(255,255,255,.7); font-size: .92rem; margin-bottom: 1rem; }

.client-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .15s;
}
.client-link:hover { color: #e84c3d; }

/* ============================================================
   CAREERS
   ============================================================ */
.job-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 100%;
  transition: background .2s, border-color .2s;
}
.job-card:hover { background: rgba(255,255,255,.06); border-color: var(--red); }

.job-meta {
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  margin-bottom: 1rem;
}

.job-reqs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
.job-reqs li {
  padding: .3rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.job-reqs li:first-child { border-top: none; }
.job-reqs li::before { content: "✓ "; color: var(--red); font-weight: 700; }

/* ============================================================
   WHY AMEX (ABOUT)
   ============================================================ */
.about-img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  max-height: 520px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.stat-box {
  background: var(--cream);
  border-left: 5px solid var(--red);
  border-radius: 0 4px 4px 0;
  padding: 1.25rem 1.5rem;
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: .25rem;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .3s;
  opacity: .9;
}
.gallery-item:hover img { transform: scale(1.06); opacity: 1; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.review-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 2rem;
  border-left: 5px solid var(--red);
}

.stars {
  color: var(--red);
  font-size: 1.1rem;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}

.review-card blockquote {
  font-style: italic;
  font-size: .97rem;
  color: #2a2a2a;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  quotes: "\201C" "\201D";
}

.review-card cite {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
  font-style: normal;
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.form-section { background: var(--steel); }

.form-intro { color: rgba(255,255,255,.68); font-size: .97rem; }

.form-block {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.form-block-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  border-radius: 2px;
  flex-shrink: 0;
}

.form-hint { color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: .75rem; }

.form-label { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }
.form-label.req::after { content: ' *'; color: var(--red); }

.form-control, .form-select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  color: #fff;
  font-size: .95rem;
}
.form-control::placeholder { color: rgba(255,255,255,.35); }
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.25);
  color: #fff;
  outline: none;
}
.form-select option { background: var(--steel-d); color: #fff; }

/* checkboxes */
.check-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  cursor: pointer;
  padding: .45rem .6rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  transition: background .15s, border-color .15s;
  user-select: none;
}
.check-row:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}

/* file drop */
.file-drop {
  border: 2px dashed rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: rgba(255,255,255,.6);
}
.file-drop:hover, .file-drop.dragging { border-color: var(--red); background: rgba(192,57,43,.08); }

.file-drop-icon { font-size: 2.2rem; color: rgba(255,255,255,.35); display: block; margin-bottom: .5rem; }
.file-drop p { margin: 0; font-size: .92rem; }
.file-drop-hint { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: .25rem !important; }
.file-link { color: var(--red); text-decoration: underline; cursor: pointer; }

/* success */
.form-success {
  padding: 3rem 2rem;
  text-align: center;
}
.success-icon { font-size: 4rem; color: #2ecc71; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid #ddd;
  font-size: .97rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-icon { color: var(--red); font-size: 1.1rem; flex-shrink: 0; }
.contact-list a { color: var(--dark); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--red); }

.service-towns { padding: 1rem; background: #fff; border-radius: 4px; border-left: 4px solid var(--red); }
.towns-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); margin-bottom: .35rem; }
.towns-list { font-size: .85rem; color: #444; margin: 0; line-height: 1.6; }

.map-frame { border-radius: 4px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.map-frame iframe { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--steel-d);
  color: rgba(255,255,255,.7);
  padding: 3rem 0;
  font-size: .9rem;
}

.footer-logo { filter: brightness(0) invert(1); max-width: 160px; }

.footer-tagline { color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.5; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
.footer-nav a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .88rem; transition: color .15s; }
.footer-nav a:hover { color: #fff; }

.footer-social-row { display: flex; justify-content: center; gap: .75rem; }
.footer-social-row a { color: rgba(255,255,255,.55); font-size: 1.2rem; transition: color .15s; }
.footer-social-row a:hover { color: var(--red); }

.footer-copy { color: rgba(255,255,255,.5); line-height: 1.6; margin: 0; }

.powered-by { font-size: .8rem; color: rgba(255,255,255,.35); }
.powered-by a { color: rgba(255,255,255,.6); text-decoration: none; font-weight: 600; }
.powered-by a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 991px) {
  #navMenu {
    background: var(--steel-d);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: .5rem;
  }
  #navMenu .nav-link { padding: .5rem 0; }
  #navMenu .btn-red { margin-top: .5rem; display: inline-block; }
}

@media (max-width: 575px) {
  .form-block { padding: 1.25rem; }
  .hero-content { padding: 1.5rem 1rem; }
}

/* ============================================================
   BLOG — active class on nav link
   ============================================================ */
#mainNav .nav-link.active { color: #fff; }

/* ============================================================
   BLOG — INDEX HERO BANNER
   ============================================================ */
.blog-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('blog/img/amex-jobsite.webp') center / cover no-repeat;
  overflow: hidden;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,.40) 0%, rgba(0,0,0,.08) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.55) 100%);
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem 1.5rem;
  background: rgba(0,0,0,.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 4px;
}
.blog-hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: .75rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.8);
}
.blog-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,.95), 0 0 60px rgba(0,0,0,.8);
  margin-bottom: 1rem;
}
.blog-hero-subtitle {
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,.95), 0 0 40px rgba(0,0,0,.85);
  margin-bottom: 0;
}

/* ============================================================
   BLOG — CARD GRID
   ============================================================ */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--cream);
  border-radius: 4px;
  border-top: 4px solid var(--red);
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); color: var(--dark); }
.blog-card-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.blog-card-date i { margin-right: .35rem; }
.blog-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.blog-card-excerpt { color: var(--mid); font-size: .92rem; flex-grow: 1; margin-bottom: 1rem; }
.blog-read-more {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
}
.blog-read-more i { margin-left: .3rem; transition: transform .15s; }
.blog-card:hover .blog-read-more i { transform: translateX(3px); }

/* ============================================================
   BLOG — ARTICLE PAGE
   ============================================================ */
.blog-article-header {
  background: var(--steel-d);
  padding: 3rem 0 2.5rem;
  border-bottom: 5px solid var(--red);
}
.blog-back-link {
  display: inline-block;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .15s;
}
.blog-back-link:hover { color: #fff; }
.blog-back-link i { margin-right: .35rem; }
.blog-article-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}
.blog-article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  max-width: 900px;
  margin-bottom: 1rem;
}
.blog-article-date { color: rgba(255,255,255,.55); font-size: .9rem; margin: 0; }
.blog-article-date i { margin-right: .35rem; color: var(--red); }

.blog-article-body { padding: 3rem 0 1rem; font-size: 1.02rem; line-height: 1.75; color: #2a2a2a; }
.blog-article-body p { margin-bottom: 1.25rem; }
.blog-body-h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--steel);
  margin: 2rem 0 1rem;
}
.blog-body-list { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.blog-body-list li { padding: .2rem 0; }

.blog-cta {
  background: var(--cream);
  border-left: 5px solid var(--red);
  border-radius: 0 4px 4px 0;
  padding: 2rem;
  margin: 1rem 0 2.5rem;
}
.blog-cta h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.blog-cta p { color: var(--mid); margin-bottom: 1.25rem; }

.blog-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}
.blog-pager-link {
  display: flex;
  flex-direction: column;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  max-width: 280px;
}
.blog-pager-link span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dark);
  margin-top: .25rem;
}
.blog-pager-next { margin-left: auto; text-align: right; align-items: flex-end; }

@media (max-width: 767px) {
  .blog-hero { min-height: 38vh; }
  .blog-article-header { padding: 2.25rem 0 2rem; }
}
