/* ============================================================
   Fulshear Epoxy Flooring — design tokens & shared utilities
   ============================================================ */

:root {
  --charcoal:      #1C2331;
  --charcoal-2:    #2A3447;
  --charcoal-3:    #3A475E;
  --accent:        #D4540A;
  --accent-dark:   #B0440A;
  --accent-tint:   #FBE9DC;
  --bg:            #F8F8F6;
  --bg-2:          #EFEFEA;
  --ink:           #222222;
  --ink-2:         #4A4A4A;
  --muted:         #6B7280;
  --hair:          #E5E5E0;
  --hair-2:        #D9D9D2;
  --white:         #FFFFFF;
  --good:          #1F7A4D;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: 'Barlow Condensed', 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

.ab {
  width: 1280px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow: hidden;
  position: relative;
}

.ab img, .ab svg { display: block; max-width: 100%; }

/* ---------- placeholder image ---------- */
.ph {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #d9d9d2 0 14px,
    #cfcfc6 14px 28px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #2a3447;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ph.dark {
  background: repeating-linear-gradient(
    135deg,
    #1f2937 0 14px,
    #161e2b 14px 28px
  );
  color: #cbd5e1;
}
.ph .ph-caption {
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border: 1px solid #cfcfc6;
  border-radius: 2px;
  max-width: 80%;
  text-align: center;
  white-space: pre-line;
}
.ph.dark .ph-caption {
  background: rgba(20,28,42,0.8);
  border-color: #2a3447;
  color: #e7eaf0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost.on-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-dark {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}
.btn-block { width: 100%; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* ---------- type ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-3);
  font-weight: 600;
}
/* Kicker on dark/charcoal backgrounds keeps a warm tone */
.hero .kicker, .page-hero .kicker, .quote-section .kicker,
[style*="background: var(--charcoal)"] .kicker,
[style*="background:var(--charcoal)"] .kicker { color: #F39361; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.muted { color: var(--muted); }

/* ---------- forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}
.field input, .field textarea, .field select {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,84,10,0.15);
}
.field textarea { resize: vertical; min-height: 80px; }

/* ---------- chips & misc ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--bg-2);
  color: var(--charcoal);
  border: 1px solid var(--hair);
}
.chip.dark { background: rgba(255,255,255,0.08); color: #e7eaf0; border-color: rgba(255,255,255,0.12); }
.chip.accent { background: var(--accent-tint); color: var(--accent-dark); border-color: rgba(212,84,10,0.3); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,122,77,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(31,122,77,0); }
}

/* ---------- comparison table ---------- */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 6px;
  overflow: hidden;
}
.cmp-table th, .cmp-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hair);
}
.cmp-table thead th {
  background: var(--bg-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 18px;
  color: var(--charcoal);
}
.faq-q .plus {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal-3);
  font-weight: 700;
  transition: transform 0.2s, background 0.15s, color 0.15s;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  display: none;
  max-width: 78ch;
}
.faq-item.open .faq-a { display: block; }

/* ---------- reviews ---------- */
.stars { color: #F5A623; letter-spacing: 2px; font-size: 14px; }

/* ---------- focus-mode tweak: artboards stay readable ---------- */
.ab a { color: inherit; }

/* ---------- sticky bar (within artboard) ---------- */
.sticky-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 50;
  border-top: 2px solid var(--accent);
}

/* ---------- variation header inside artboards ---------- */
.site-header {
  position: relative;
  z-index: 10;
}

/* ---------- utility ---------- */
.section { padding: 80px 64px; }
.section-tight { padding: 56px 64px; }
.container { max-width: 1152px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stack-2 { display: flex; flex-direction: column; gap: 8px; }
.stack-3 { display: flex; flex-direction: column; gap: 12px; }
.stack-4 { display: flex; flex-direction: column; gap: 16px; }
.stack-6 { display: flex; flex-direction: column; gap: 24px; }
.stack-8 { display: flex; flex-direction: column; gap: 32px; }

/* ---------- mobile sticky CTA bar ---------- */
.mobile-cta-bar { display: none; }
@media (max-width: 899px) {
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    border-top: 2px solid var(--accent);
  }
  .mobile-cta-call {
    background: var(--charcoal);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .mobile-cta-quote {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-footer { padding-bottom: calc(24px + 56px); }
}
.row { display: flex; gap: 16px; align-items: center; }

/* ---------- hamburger nav ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--charcoal);
  border-radius: 4px;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg-2); }
@media (max-width: 899px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-header.nav-open { flex-wrap: wrap; }
  .site-header.nav-open .main-nav {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--hair);
    padding: 8px 0 12px;
    gap: 0;
  }
  .site-header.nav-open .main-nav > a,
  .site-header.nav-open .main-nav .nav-dropdown-toggle {
    padding: 11px 20px;
    font-size: 15px;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .site-header.nav-open .nav-dropdown { width: 100%; }
  .site-header.nav-open .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent-tint);
    border-radius: 0;
    padding: 4px 0;
    margin: 0 0 4px 20px;
    display: block;
    min-width: unset;
  }
  .site-header.nav-open .nav-dropdown-menu a { padding: 9px 16px; font-size: 14px; }
}

/* ---------- hover effects ---------- */
.service-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(28,35,49,0.12); }
.review-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.review-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(28,35,49,0.1); }
.blog-card { transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.blog-card:hover { border-color: var(--accent) !important; box-shadow: 0 4px 20px rgba(28,35,49,0.1); }
.ba-photo-wrap { overflow: hidden; border-radius: 4px; }
.ba-photo-wrap img { transition: transform 0.3s ease; display: block; width: 100%; }
.ba-photo-wrap:hover img { transform: scale(1.03); }

/* ---------- hero texture ---------- */
/* CSS-only overlay — no images, no content affected, zero SEO risk */
.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.018) 20px,
    rgba(255,255,255,0.018) 21px
  );
  pointer-events: none;
  z-index: 0;
}
/* Make hero children stack above texture */
.hero > *, .page-hero > * { position: relative; z-index: 1; }
/* Ensure hero itself is positioned */
.hero { position: relative; }
.page-hero { position: relative; }

/* ---------- scroll-reveal ---------- */
/* Content is ALWAYS in the DOM — only presentation changes after JS runs */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
