/* ============================================================
   FORT WORTH COMPACTORS — MASTER STYLESHEET
   Industrial-refined design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --navy:        #0E2240;
  --navy-dark:   #08172e;
  --navy-mid:    #173357;
  --amber:       #D4820A;
  --amber-light: #F5A623;
  --amber-pale:  #FDF3DC;
  --slate:       #4A5568;
  --slate-light: #718096;
  --steel:       #E2E8F0;
  --steel-dark:  #CBD5E0;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --cream:       #FAF6EE;
  --text:        #1A202C;
  --text-mid:    #4A5568;
  --success:     #2F855A;
  --danger:      #C53030;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;
  --font-serif:   'Source Serif 4', Georgia, serif;

  --radius:    6px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow:    0 4px 24px rgba(14,34,64,0.10);
  --shadow-lg: 0 12px 48px rgba(14,34,64,0.16);
  --shadow-xl: 0 24px 72px rgba(14,34,64,0.22);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1200px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-light); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-bottom: 0.5em; }
h4 { font-size: 1.25rem; margin-bottom: 0.5em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 0.75em;
}
.section--dark .eyebrow,
.section--navy-mid .eyebrow { color: var(--amber-light); }

.lede {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-mid);
  font-style: italic;
}

/* CONTAINERS */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* SECTIONS */
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 112px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--navy-mid { background: var(--navy-mid); color: var(--white); }
.section--off { background: var(--off-white); }
.section--cream { background: var(--cream); }
.section--amber { background: var(--amber); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--navy-mid h1, .section--navy-mid h2, .section--navy-mid h3, .section--navy-mid h4 { color: var(--white); }
.section--amber h1, .section--amber h2, .section--amber h3 { color: var(--white); }

/* HEADER & NAV */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--steel);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.site-header__logo img { height: 48px; width: auto; }
.site-header__nav {
  display: flex; align-items: center; gap: 8px;
}
.site-header__nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.site-header__nav a:hover { background: var(--off-white); color: var(--amber); }
.site-header__nav a.active { color: var(--amber); }

.site-header__cta {
  display: flex; align-items: center; gap: 12px;
}
.site-header__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--amber); }

.menu-toggle { display: none; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: all var(--transition); }

@media (max-width: 980px) {
  .site-header__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 16px; box-shadow: var(--shadow); border-top: 1px solid var(--steel); }
  .site-header__nav.open { display: flex; }
  .site-header__nav a { padding: 14px 16px; }
  .menu-toggle { display: block; }
  .site-header__phone { font-size: 0.95rem; }
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 96px 0 112px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(212,130,10,0.04) 40px, rgba(212,130,10,0.04) 41px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 50%; height: 70%;
  background: radial-gradient(circle at 70% 70%, rgba(212,130,10,0.18), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 em { font-style: normal; color: var(--amber-light); }
.hero__sub {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 1.5em 0 2em;
  line-height: 1.6;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--amber-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero__trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__trust-item span,
.hero__trust-item div:not(:has(strong)) {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.hero--compact { padding: 64px 0 72px; }
.hero--compact h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--primary { background: var(--amber); color: var(--white); }
.btn--primary:hover { background: var(--amber-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--off-white); color: var(--amber); }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* CARDS */
.card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--amber); transform: translateY(-4px); }
.card h3 { margin-bottom: 12px; }
.card__icon {
  width: 56px; height: 56px;
  background: var(--amber-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--amber);
}
.card--dark { background: var(--navy-mid); border-color: var(--navy-mid); color: rgba(255,255,255,0.9); }
.card--dark h3 { color: var(--white); }
.card--dark:hover { border-color: var(--amber); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* PRODUCT/PAGE LAYOUTS */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; } .split--reverse > :first-child { order: 0; } }

.spec-list {
  list-style: none;
  margin: 1.5em 0;
}
.spec-list li {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--steel);
  gap: 16px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: 10px;
}
.spec-list strong { display: block; color: var(--navy); margin-bottom: 2px; }

/* FEATURE LIST (checkmark) */
.feature-list {
  list-style: none;
  margin: 1em 0;
}
.feature-list li {
  position: relative;
  padding: 8px 0 8px 32px;
}
.feature-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px;
  background: var(--amber);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.section--dark .feature-list li::before { background: var(--amber-light); }

/* PILLAR / CALLOUT */
.callout {
  background: var(--cream);
  border-left: 4px solid var(--amber);
  padding: 28px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}
.callout--navy {
  background: var(--navy);
  color: var(--white);
  border-left-color: var(--amber-light);
}
.callout--navy h3 { color: var(--white); }
.callout p:last-child { margin-bottom: 0; }

/* TABLE */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--steel);
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.compare-table tr:nth-child(even) td { background: var(--off-white); }
.compare-table tbody tr:hover td { background: var(--amber-pale); }

/* FAQ ACCORDION */
.faq-item {
  border-bottom: 1px solid var(--steel);
  padding: 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}
.faq-question::after {
  content: '+';
  font-size: 1.75rem;
  color: var(--amber);
  font-weight: 400;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 800px;
  padding-bottom: 24px;
}
.faq-answer p { color: var(--text-mid); line-height: 1.7; }

/* FOOTER */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo img { height: 56px; margin-bottom: 16px; }
.site-footer p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1em; }
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 700;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.site-footer ul a:hover { color: var(--amber-light); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.site-footer__contact {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.site-footer__contact a {
  color: var(--amber-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.site-footer__contact strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

/* CTA STRIP */
.cta-strip {
  background: linear-gradient(135deg, var(--amber) 0%, #B86F08 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,0.04) 30px, rgba(255,255,255,0.04) 31px);
}
.cta-strip > .container { position: relative; z-index: 2; }
.cta-strip h2 { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 12px; }
.cta-strip p { font-family: var(--font-serif); font-size: 1.2rem; max-width: 680px; margin: 0 auto 28px; }
.cta-strip .btn--outline { border-color: var(--white); color: var(--white); }
.cta-strip .btn--outline:hover { background: var(--white); color: var(--amber); }
.cta-strip .btn--primary { background: var(--navy); }
.cta-strip .btn--primary:hover { background: var(--navy-dark); }

/* SERVICE AREA / CITIES */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 32px 0;
}
.cities-grid a {
  display: block;
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}
.cities-grid a:hover {
  border-color: var(--amber);
  background: var(--amber-pale);
  color: var(--navy);
  transform: translateY(-2px);
}
.section--dark .cities-grid a {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}
.section--dark .cities-grid a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--slate-light);
  background: var(--off-white);
  border-bottom: 1px solid var(--steel);
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { margin: 0 8px; color: var(--steel-dark); }

/* PRICE PILL */
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber-pale);
  border: 1px solid var(--amber);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 8px 0;
}
.price-pill strong { color: var(--amber); }

/* BLOG */
.blog-meta {
  display: flex; gap: 16px;
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-meta span::before { content: '· '; margin-right: 8px; color: var(--amber); }
.blog-meta span:first-child::before { display: none; }

article.post p, article.post ul, article.post ol {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
}
article.post h2 {
  margin-top: 2em;
  padding-top: 0.5em;
}
article.post h3 { margin-top: 1.6em; }
article.post ul, article.post ol { padding-left: 1.5em; margin-bottom: 1em; }
article.post li { margin-bottom: 0.5em; }
article.post blockquote {
  border-left: 4px solid var(--amber);
  background: var(--cream);
  padding: 24px 28px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ANIMATIONS */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }
.animate-in--delay-4 { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* UTILITIES */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 32px; }
.no-wrap { white-space: nowrap; }
