/*
 * Clear Plains Construction — Custom Styles
 *
 * Tailwind utility classes are handled by the Play CDN script in header.php.
 * This file holds: CSS custom properties, component overrides, animations,
 * accessibility helpers, and print styles.
 *
 * No build step required. Upload theme folder as-is to WordPress.
 */

/* ─── Custom Properties ───────────────────────────────────────────────────── */
:root {
  --cpc-dark:     #1a2332;
  --cpc-charcoal: #111827;
  --cpc-orange:   #d95f0a;
  --cpc-radius:   0.5rem;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* Reserve space so anchor links clear the sticky header */
body {
  scroll-padding-top: 84px;
}

/* Mobile: gap for the floating bottom CTA bar */
@media (max-width: 1023px) {
  body {
    padding-bottom: 64px;
  }
}

/* Brand selection colour */
::selection {
  background-color: var(--cpc-orange);
  color: #fff;
}

/* Visible keyboard focus ring (WCAG 2.1 AA) */
:focus-visible {
  outline: 2px solid var(--cpc-orange);
  outline-offset: 2px;
}

img { display: block; height: auto; }

/* ─── Screen-reader / WCAG helpers ───────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.sr-only.focus\:not-sr-only:focus,
.focus\:not-sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ─── Line-clamp (not in all browsers natively) ───────────────────────────── */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Prose link / heading overrides ─────────────────────────────────────── */
.prose h2, .prose h3 { color: var(--cpc-dark); }
.prose a  { color: var(--cpc-orange); text-decoration: underline; }
.prose ul li::marker { color: var(--cpc-orange); }

/* ─── FAQ accordion transition ───────────────────────────────────────────── */
.faq-icon {
  transition: transform 0.2s ease;
}
.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

/* ─── Wizard progress bar ────────────────────────────────────────────────── */
#wizard-progress {
  transition: width 0.4s ease;
}

/* ─── Hero min-height (prevents CLS on first paint) ─────────────────────── */
.min-h-hero {
  min-height: calc(88vh - 80px);
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fade-in-up 0.5s ease forwards;
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
  #sticky-cta,
  .fixed,
  #estimate { display: none !important; }
  body { padding-bottom: 0 !important; }
}
