/* KC Basement Waterproofing — custom styles */
/* Design language: burgundy + sand, boxed cards, soil-strata textures. */
/* Class names are unique to this site (kc- prefix) and share nothing with other builds. */

:root {
  --kc-burgundy: #6d2230;
  --kc-burgundy-deep: #521a25;
  --kc-burgundy-ink: #3d131b;
  --kc-sand: #c9a86a;
  --kc-sand-soft: #e7d3a7;
  --kc-paper: #f2efe9;
  --kc-charcoal: #2b2622;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

h1, h2, h3, h4, h5, .kc-display {
  font-family: 'Libre Franklin', system-ui, sans-serif;
}

/* ---- Utility top bar ---- */
.kc-utilitybar {
  background: linear-gradient(100deg, var(--kc-burgundy-ink) 0%, var(--kc-burgundy) 100%);
}

/* ---- Sticky header shadow when scrolled ---- */
.kc-stuck {
  box-shadow: 0 2px 18px rgba(61, 19, 27, 0.12);
  background-color: rgba(255, 255, 255, 0.98) !important;
}

/* ---- Soil-strata band used behind hero + banners ---- */
.kc-strata {
  background-color: var(--kc-paper);
  background-image:
    linear-gradient(180deg, rgba(109, 34, 48, 0.05) 0%, transparent 22%),
    repeating-linear-gradient(
      180deg,
      rgba(109, 34, 48, 0.035) 0px,
      rgba(109, 34, 48, 0.035) 1px,
      transparent 1px,
      transparent 46px
    );
}

.kc-strata-dark {
  background-color: var(--kc-burgundy-deep);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(201, 168, 106, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(201, 168, 106, 0.10) 0%, transparent 40%);
}

/* ---- Boxed hero card ---- */
.kc-herocard {
  background: #ffffff;
  border: 1px solid #e4ddd0;
  border-top: 5px solid var(--kc-sand);
  box-shadow: 0 24px 60px rgba(61, 19, 27, 0.14);
}

/* ---- Primary + secondary buttons ---- */
.kc-btn-solid {
  background: var(--kc-burgundy);
  color: #fff;
  transition: background-color .2s ease, transform .2s ease;
}
.kc-btn-solid:hover { background: var(--kc-burgundy-deep); transform: translateY(-2px); }

.kc-btn-line {
  border: 1.5px solid currentColor;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.kc-btn-sand {
  background: var(--kc-sand);
  color: var(--kc-burgundy-ink);
  transition: background-color .2s ease, transform .2s ease;
}
.kc-btn-sand:hover { background: #d8bd86; transform: translateY(-2px); }

/* ---- Stacked service rows with left border accent ---- */
.kc-servicerow {
  border-left: 4px solid var(--kc-burgundy);
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.kc-servicerow:hover {
  border-left-color: var(--kc-sand);
  box-shadow: 0 14px 40px rgba(61, 19, 27, 0.10);
  transform: translateX(4px);
}

/* ---- Numbered process step ---- */
.kc-step {
  width: 46px; height: 46px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  flex-shrink: 0;
}
.kc-stepline { position: relative; }
.kc-stepline::before {
  content: '';
  position: absolute;
  left: 22px; top: 46px;
  width: 2px; height: calc(100% - 34px);
  background: linear-gradient(to bottom, var(--kc-sand), transparent);
}
.kc-stepline:last-child::before { display: none; }

/* ---- Reveal on scroll ---- */
.kc-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.kc-reveal.kc-shown { opacity: 1; transform: translateY(0); }

/* ---- FAQ accordion ---- */
.kc-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.kc-faq-panel.kc-open { max-height: 640px; }
.kc-faq-sign { transition: transform .3s ease; }
.kc-faq-trigger[aria-expanded="true"] .kc-faq-sign { transform: rotate(45deg); }

/* ---- Mobile drawer ---- */
.kc-drawer {
  transform: translateX(100%);
  transition: transform .3s ease;
}
.kc-drawer.is-open { transform: translateX(0); }

/* ---- Area / card link hover ---- */
.kc-card {
  background: #fff;
  border: 1px solid #e4ddd0;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.kc-card:hover {
  border-color: var(--kc-sand);
  box-shadow: 0 12px 34px rgba(61, 19, 27, 0.10);
  transform: translateY(-3px);
}

/* ---- Dropdown menu ---- */
.kc-dropwrap:hover .kc-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.kc-drop {
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

/* ---- Form controls ---- */
.kc-field {
  border: 1px solid #cfc6b8;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kc-field:focus {
  outline: none;
  border-color: var(--kc-burgundy);
  box-shadow: 0 0 0 3px rgba(109, 34, 48, 0.14);
}

/* ---- Skip link ---- */
.kc-skip {
  position: absolute;
  left: 0; top: -120%;
  background: var(--kc-burgundy-ink);
  color: #fff;
  padding: .6rem 1.1rem;
  z-index: 200;
  transition: top .2s ease;
}
.kc-skip:focus { top: 0; }

/* ---- Pull quote / honesty callout ---- */
.kc-callout {
  border-left: 4px solid var(--kc-sand);
  background: #fff;
}

@media print {
  header, footer, .kc-drawer, .kc-utilitybar { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
