/* 008 Concrete — Global Styles v1.0 */

/* ─── Custom Properties ─── */
:root {
  --c-bg: #000000;
  --c-surface: #1A1A1A;
  --c-card: #222222;
  --c-text: #FFFFFF;
  --c-muted: #999999;
  --c-body-light: #666666;
  --c-accent: #E84040;
  --c-accent-hover: #CC3333;
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 0.5rem;
}

/* ─── Base Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
p { margin-bottom: 1rem; }

.label-caps {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ─── Skip to Content ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ─── Navigation ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s var(--ease-hover), box-shadow 0.3s var(--ease-hover), padding 0.3s var(--ease-hover);
}
.site-nav.scrolled {
  background: rgba(0, 0, 0, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  padding: 0.5rem 0;
}
.nav-logo { max-height: 60px; width: auto; }
.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
  transition: color 0.2s var(--ease-hover);
  position: relative;
}
.nav-link:hover, .nav-link:focus { color: var(--c-accent); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width 0.3s var(--ease-hover);
}
.nav-link:hover::after { width: 100%; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-surface);
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease-hover), visibility 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu a:hover {
  color: var(--c-text);
  background: rgba(232, 64, 64, 0.1);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-enter), visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 24px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu.open a {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.4s var(--ease-enter), transform 0.4s var(--ease-enter);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.4s; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-hover), opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .hamburger { display: flex; }
  .nav-desktop { display: none; }
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-hover), box-shadow 0.2s var(--ease-hover);
  z-index: 1;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent-hover);
  transform: translateX(-101%);
  transition: transform 0.3s var(--ease-hover);
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(232,64,64,0.3); }
.btn-primary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease-hover), color 0.2s var(--ease-hover);
}
.btn-outline:hover { background: var(--c-accent); color: #fff; }

/* ─── Section Spacing ─── */
.section { padding: 100px 0; }
.section-sm { padding: 80px 0; }
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 50px 0; }
}

/* ─── The Red Line Motif ─── */
.red-line-h {
  width: 100%;
  height: 3px;
  background: var(--c-accent);
}
.red-line-v {
  width: 3px;
  background: var(--c-accent);
  align-self: stretch;
}
.red-top-border { border-top: 3px solid var(--c-accent); }
.red-left-border { border-left: 3px solid var(--c-accent); }

/* ─── Cards ─── */
.card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s var(--ease-hover), box-shadow 0.3s var(--ease-hover);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card.red-top-border:hover { border-top-width: 4px; }

/* ─── Stats Counter ─── */
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  color: var(--c-text);
}
.stat-number.counting { color: var(--c-accent); transition: color 0.3s; }
.stat-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 0.25rem;
}

/* ─── Testimonial Carousel ─── */
.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease-enter);
}
.carousel-slide {
  flex: 0 0 100%;
  padding: 0 1rem;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #444;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active { background: var(--c-accent); transform: scale(1.3); }
.quote-mark {
  font-size: 120px;
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.15;
  font-family: Georgia, serif;
  position: absolute;
  top: -20px; left: -10px;
  pointer-events: none;
  user-select: none;
}

/* ─── Process Timeline ─── */
.process-line {
  position: absolute;
  top: 50%; left: 0;
  height: 3px;
  background: var(--c-accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.5s var(--ease-enter);
}
.process-line.drawn { transform: scaleX(1); }
.process-step-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.process-step-circle.pulse {
  animation: stepPulse 0.6s var(--ease-enter);
}
@keyframes stepPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,64,64,0.6); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(232,64,64,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,64,64,0); }
}

/* ─── Form Styles ─── */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--c-surface);
  border: 2px solid #333;
  border-radius: var(--radius);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s var(--ease-hover), box-shadow 0.2s var(--ease-hover);
}
.form-input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(232,64,64,0.15);
}
.form-input.error { border-color: #ff4444; }
.form-input.valid { border-color: #44bb44; }
.form-error {
  font-size: 13px;
  color: #ff4444;
  margin-top: 0.25rem;
  display: none;
}
.form-input.error + .form-error { display: block; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  color: var(--c-muted);
}

/* Form states */
.form-loading, .form-success, .form-error-state { display: none; }
.form-loading.active, .form-success.active, .form-error-state.active { display: flex; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--c-surface) 25%, #2a2a2a 50%, var(--c-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── FAQ Accordion ─── */
.faq-item { border-bottom: 1px solid #333; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--c-accent); }
.faq-icon {
  width: 24px; height: 24px;
  color: var(--c-accent);
  transition: transform 0.3s var(--ease-hover);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-enter), padding 0.4s;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

/* ─── Scroll Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-enter), transform 0.6s var(--ease-enter);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease-enter), transform 0.6s var(--ease-enter);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-enter), transform 0.6s var(--ease-enter);
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger-group > * { transition-delay: calc(var(--i, 0) * 120ms); }

/* ─── Hero ─── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── Concrete Texture (CTA section only) ─── */
.concrete-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Footer ─── */
.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 1.25rem;
}
.footer-link {
  display: block;
  font-size: 15px;
  color: var(--c-muted);
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--c-accent); }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .fade-left, .fade-right {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ─── Focus Visible ─── */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ─── Service Page Hero ─── */
.service-hero { min-height: 50vh; }

/* ─── Honeypot ─── */
.ohnohoney { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
