/* ===========================
   ABG Builders — Global Styles
   =========================== */

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

:root {
  --black: #0F0F0F;
  --off-white: #F5F2EE;
  --concrete: #8A8A8A;
  --amber: #E8A020;
  --amber-light: #f5b030;
  --slate: #1C2B3A;
  --light-grey: #ECECEA;
  --mid-grey: #D4D4D0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--black);
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 900;
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.92;
  color: var(--off-white);
  margin-bottom: 28px;
}

h1 em { font-style: normal; color: var(--amber); display: block; }

h2 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

h3 {
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
}

/* ---- NAVIGATION ---- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 52px;
  background: rgba(15,15,15,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,160,32,0.15);
  transition: padding 0.3s;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--off-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo span { color: var(--amber); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--concrete);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--amber);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--off-white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--off-white); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--amber) !important;
  color: var(--black) !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--amber-light) !important; color: var(--black) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: rgba(15,15,15,0.98);
  backdrop-filter: blur(12px);
  padding: 24px 28px 32px;
  z-index: 999;
  border-bottom: 1px solid rgba(232,160,32,0.15);
  flex-direction: column;
  gap: 0;
}

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

.mobile-menu a {
  text-decoration: none;
  color: var(--concrete);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--amber); }
.mobile-menu a.active { color: var(--amber); }
.mobile-menu a.mobile-cta {
  margin-top: 16px;
  background: var(--amber);
  color: var(--black) !important;
  text-align: center;
  padding: 14px;
  border: none;
  font-weight: 700;
}

/* ---- TICKER ---- */

.ticker {
  background: var(--amber);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0 36px;
}

.ticker-track span.dot { padding: 0; color: rgba(0,0,0,0.28); font-size: 0.75rem; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- SECTIONS ---- */

.section { padding: 100px 52px; }
.section-sm { padding: 72px 52px; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--amber);
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--black);
  padding: 15px 34px;
}

.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }

.btn-outline-dark {
  border: 1.5px solid rgba(245,242,238,0.22);
  color: var(--off-white);
  padding: 15px 34px;
}

.btn-outline-dark:hover { border-color: var(--amber); color: var(--amber); }

.btn-outline-light {
  border: 1.5px solid rgba(15,15,15,0.25);
  color: var(--black);
  padding: 15px 34px;
}

.btn-outline-light:hover { border-color: var(--black); background: var(--black); color: var(--off-white); }

/* ---- SERVICE CARDS ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--mid-grey);
}

.service-card {
  background: var(--off-white);
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover { background: var(--black); }
.service-card:hover .service-name { color: var(--off-white); }
.service-card:hover .service-desc { color: var(--concrete); }
.service-card:hover .service-icon { color: var(--amber); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  font-size: 1.7rem;
  margin-bottom: 18px;
  color: var(--amber);
  display: block;
  transition: color 0.25s;
}

.service-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  transition: color 0.25s;
}

.service-desc {
  font-size: 0.87rem;
  color: #666;
  line-height: 1.65;
  transition: color 0.25s;
}

/* ---- STATS BAR ---- */

.stats-bar {
  background: var(--slate);
  padding: 56px 52px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: 'ABG';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 240px;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  white-space: nowrap;
}

.stat-item { position: relative; z-index: 1; }

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  color: var(--off-white);
  line-height: 1;
}

.stat-num sup { color: var(--amber); font-size: 1.4rem; vertical-align: super; }
.stat-num span { color: var(--amber); }

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--concrete);
  margin-top: 6px;
}

/* ---- FOOTER ---- */

footer {
  background: #080808;
  padding: 48px 52px 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand {}

.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--concrete);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo span { color: var(--amber); }

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(138,138,138,0.55);
  line-height: 1.6;
  max-width: 220px;
}

.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.84rem;
  color: rgba(138,138,138,0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--amber); }

.footer-contact p {
  font-size: 0.84rem;
  color: rgba(138,138,138,0.6);
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer-contact a {
  color: rgba(138,138,138,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.73rem;
  color: rgba(138,138,138,0.35);
  letter-spacing: 0.04em;
}

/* ---- PAGE HERO (inner pages) ---- */

.page-hero {
  padding: 160px 52px 80px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,160,32,0.08) 0%, transparent 60%);
}

.page-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--amber);
}

.page-hero h1 {
  font-size: clamp(44px, 7vw, 90px);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: var(--concrete);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.7;
  position: relative;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 24px; }
  .section-sm { padding: 52px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  .stats-bar { padding: 48px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  footer { padding: 40px 24px 20px; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
