/* ==========================================
   A1 TILE INJECTION & WATERPROOFING
   Premium Industrial Design System
   Red / Black / White
========================================== */

:root {
  --red:       #d62828;
  --red-dark:  #b01f1f;
  --red-glow:  rgba(214, 40, 40, 0.25);
  --black:     #0d0d0d;
  --dark-1:    #111111;
  --dark-2:    #141414;
  --dark-3:    #181818;
  --dark-4:    #1e1e1e;
  --border:    rgba(255,255,255,0.07);
  --text-muted:#9aa3ae;
  --text-soft: #c8cfd8;
  --white:     #ffffff;
  --nav-h:     88px;
  --radius:    12px;
  --transition: 0.3s ease;
}

/* RESET */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

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

img { max-width:100%; display:block; }
a   { text-decoration:none; color:inherit; }
ul  { list-style:none; }

.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* ==========================================
   TYPOGRAPHY HELPERS
========================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: .78rem;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-heading { max-width: 680px; margin-bottom: 64px; }

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================
   HEADER / NAV
========================================== */

.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(13,13,13,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo img { height: 50px; width: auto; }

/* fallback text logo if img missing */
.logo-fallback {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -1px;
}
.logo-fallback span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

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

/* ==========================================
   BUTTONS
========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .3px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--red-glow);
}

.btn-sm { padding: 10px 22px; font-size: .85rem; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: #111;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn-ghost:hover {
  background: var(--red);
  color: var(--white);
}

/* ==========================================
   HERO
========================================== */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to right, rgba(0,0,0,.85) 50%, rgba(0,0,0,.55)),
    url('../images/hero.jpg') center/cover no-repeat;
  padding-top: var(--nav-h);
}

/* diagonal red accent */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(214,40,40,.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 100px 0 120px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(214,40,40,.12);
  border: 1px solid rgba(214,40,40,.35);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e88;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.6; transform:scale(1.4); }
}

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  line-height: 1.03;
  letter-spacing: -3px;
  max-width: 820px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-soft);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-trust {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-muted);
}

.hero-trust-item strong {
  color: var(--red);
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================
   STATS BAR
========================================== */

.stats-bar {
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 48px 0;
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 20px;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.stat-label {
  color: var(--text-muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   SECTIONS
========================================== */

.section { padding: 110px 0; }
.section-dark { background: var(--dark-2); }
.section-darker { background: var(--black); }

/* ==========================================
   PITCH — "DON'T REPLACE. REPAIR."
========================================== */

.pitch-headline {
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 24px;
}

.pitch-headline span { color: var(--red); }

.pitch-body {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 600px;
  line-height: 1.85;
  margin-bottom: 48px;
}

.pitch-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pitch-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.pitch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
  opacity: 0;
  transition: opacity var(--transition);
}

.pitch-card:hover { border-color: var(--red); transform: translateY(-6px); }
.pitch-card:hover::before { opacity: 1; }

.pitch-card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.pitch-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pitch-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

/* ==========================================
   SERVICE CARDS
========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-card:hover {
  border-color: var(--red);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.service-icon { font-size: 2.4rem; margin-bottom: 22px; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p { color: var(--text-muted); font-size: .93rem; line-height: 1.7; flex-grow: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: .85rem;
  font-weight: 700;
  margin-top: 20px;
  transition: gap var(--transition);
}

.service-card:hover .service-link { gap: 10px; }

/* ==========================================
   ABOUT SPLIT
========================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.split-text p {
  color: var(--text-soft);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.85;
}

.split-box {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.split-box h3 {
  font-size: 1.3rem;
  margin-bottom: 28px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .95rem;
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================
   PROCESS STEPS
========================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 38px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .4;
}

.process-step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.process-num {
  width: 76px; height: 76px;
  background: var(--dark-3);
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--red);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p { color: var(--text-muted); font-size: .88rem; line-height: 1.65; }

/* ==========================================
   FAQ
========================================== */

.faq-list { max-width: 760px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--red); }

.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
  transition: all var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-answer-inner {
  color: var(--text-soft);
  font-size: .97rem;
  line-height: 1.8;
  padding-bottom: 24px;
}

/* ==========================================
   CTA PANEL
========================================== */

.cta-panel {
  background: linear-gradient(115deg, var(--dark-3) 0%, #0a0a0a 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(214,40,40,.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.cta-panel p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-panel .btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background:
    linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.9)),
    url('../images/hero.jpg') center/cover;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(214,40,40,.07) 0%, transparent 50%);
}

.page-hero-inner { position: relative; }

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 700px;
}

.page-hero p {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 580px;
  line-height: 1.75;
}

/* ==========================================
   SERVICE PAGE DETAIL
========================================== */

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

.service-detail-body h2 {
  font-size: 2.2rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.service-detail-body p {
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 20px;
}

.service-detail-body h3 {
  font-size: 1.2rem;
  margin: 32px 0 14px;
}

.sidebar-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.sidebar-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }

.service-nav {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 20px;
}

.service-nav h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .9rem;
  transition: color var(--transition);
}

.service-nav a:last-child { border-bottom: none; }
.service-nav a:hover, .service-nav a.active { color: var(--red); }
.service-nav a::before { content: '→'; color: var(--red); font-size: .8rem; }

/* ==========================================
   BREADCRUMB
========================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--text-muted); }

/* ==========================================
   PROBLEM CARDS
========================================== */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.problem-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
}

.problem-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(214,40,40,.2);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -2px;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.problem-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.65; margin-bottom: 16px; }

.problem-tag {
  color: var(--red);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
}

/* ==========================================
   FOOTER
========================================== */

footer {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.footer-brand img { height: 44px; margin-bottom: 20px; }
.footer-brand-text {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -1px;
  margin-bottom: 20px;
}
.footer-brand-text span { color: var(--red); }

.footer-brand p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--text-soft);
  font-size: .9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  color: var(--text-soft);
  font-size: .9rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item span:first-child {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p { color: var(--text-muted); font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  color: var(--text-muted);
  font-size: .82rem;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--white); }

/* ==========================================
   MOBILE HAMBURGER
========================================== */

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

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

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

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

.mobile-menu a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--red); }

.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 960px) {
  .nav-links, .nav > .btn { display: none; }
  .hamburger { display: flex; }

  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 1px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 20px; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }

  .pitch-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-grid::before { display: none; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .cta-panel { padding: 50px 24px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-trust { flex-direction: column; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
