/**
 * File: site.css
 * Purpose: Site theme for columbusremodelcost.com — iSpec palette bridged onto
 *          Bootstrap 5 CSS variables, plus purpose-named component classes
 * Author: iSpec LLC
 * Created: 2026-08-04
 * Last Modified: 2026-09-27 — brand lockup rules (.site-logo-mark /
 *   -wordmark, .footer-logo-mark / -wordmark) for the owner house mark +
 *   Mallanna wordmark SVGs in images/brand/; the teal <span> word rules
 *   went with the text lockup
 * 2026-09-26 — added the .glossary-link rules for the
 *   render-time glossary first-use deep links (see the block at the end of
 *   this file and App\Helpers\GlossaryDeepLinker)
 * 2026-08-11 — added .page-hero sub-page header photo band
 *   (hero-bg.jpg + white veil on blog/contact/glossary/estimator/guides
 *   headers, replacing bg-body-tertiary); earlier same day removed
 *   process-step and trust-bar rule families (de-sell round)
 * Loads after assets/vendor/bootstrap/bootstrap.min.css (5.3.8).
 * Fonts: self-hosted Inter (Regular / Medium / SemiBold).
 */

/* ── SELF-HOSTED FONTS ───────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

/* ── PALETTE TOKENS → BOOTSTRAP BRIDGE ───────────────── */
:root {
  /* iSpec palette carried over from the original style.css */
  --crc-teal: #57c1b6;
  --crc-teal-dark: #3da89e;
  --crc-teal-tint: #eef9f8;
  --crc-ink: #1c1c1e;
  --crc-ink-mid: #374151;
  --crc-muted: #6b7280;
  --crc-border: #e5e7eb;
  --crc-surface: #f9fafb;
  /* AA-passing muted text on the dark ink background (replaces #444/#555/#666/#888) */
  --crc-on-ink-muted: #9ca3af;
  /* Hairline divider on the dark ink background */
  --crc-on-ink-border: #2a2a2c;

  /* Bridge onto Bootstrap tokens */
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--crc-ink-mid);
  --bs-body-bg: #ffffff;
  --bs-body-line-height: 1.7;
  --bs-heading-color: var(--crc-ink);
  --bs-border-color: var(--crc-border);
  --bs-tertiary-bg: var(--crc-surface);
  --bs-link-color: var(--crc-teal);
  --bs-link-hover-color: var(--crc-teal-dark);
  --bs-link-color-rgb: 87, 193, 182;
  --bs-link-hover-color-rgb: 61, 168, 158;
  --bs-primary: var(--crc-teal);
  --bs-primary-rgb: 87, 193, 182;
  --bs-secondary-color: var(--crc-muted);
}

html { scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* Teal primary button (header CTA + form submit) */
.btn-primary {
  --bs-btn-bg: var(--crc-teal);
  --bs-btn-border-color: var(--crc-teal);
  --bs-btn-hover-bg: var(--crc-teal-dark);
  --bs-btn-hover-border-color: var(--crc-teal-dark);
  --bs-btn-active-bg: var(--crc-teal-dark);
  --bs-btn-active-border-color: var(--crc-teal-dark);
  --bs-btn-disabled-bg: var(--crc-border);
  --bs-btn-disabled-border-color: var(--crc-border);
  --bs-btn-disabled-color: var(--crc-muted);
  --bs-btn-font-weight: 600;
}

/* ── JS STATE HOOK ───────────────────────────────────── */
/* Scripts toggle data-state attributes, never element.style */
[data-state="hidden"] { display: none !important; }

/* Spam honeypot — must stay invisible and out of the tab/AT order */
.honeypot-field { display: none; }

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--crc-border);
  padding: 1rem 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
/* Brand lockup: owner house mark (images/brand/crc-mark.svg) beside the
   Mallanna wordmark SVG, tagline under the wordmark. Heights are the
   only sizing — the SVGs carry their own aspect via width/height attrs. */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--crc-ink);
  line-height: 1.2;
  text-decoration: none;
}
.site-logo-mark { height: 3rem; width: auto; flex: none; }
.site-logo-text { display: block; }
.site-logo-wordmark { display: block; height: 1.375rem; width: auto; }
.site-logo small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--crc-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-logo:hover { color: var(--crc-ink); text-decoration: none; }
@media (max-width: 575.98px) {
  .site-logo { gap: 0.6rem; }
  .site-logo-mark { height: 2.5rem; }
  .site-logo-wordmark { height: 1.125rem; }
}

/* ── PRIMARY NAV ─────────────────────────────────────── */
/* Desktop: inline link row between logo and CTA. Mobile: Bootstrap
   collapse (hamburger toggle) that drops below the header row. */
.site-nav { gap: 1.5rem; align-items: center; }
.site-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--crc-ink-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav-link:hover { color: var(--crc-teal); }
.site-nav-toggle {
  background: none;
  border: 1px solid var(--crc-border);
  border-radius: 0.375rem;
  color: var(--crc-ink);
  padding: 0.4rem 0.65rem;
  font-size: 1rem;
  line-height: 1;
}
.site-nav-toggle:hover { border-color: var(--crc-teal); color: var(--crc-teal); }
@media (max-width: 991.98px) {
  .site-nav {
    width: 100%;
    border-top: 1px solid var(--crc-border);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
  }
  .site-nav-link { display: block; padding: 0.5rem 0; }
}

/* ── HERO ────────────────────────────────────────────── */
.hero-section {
  padding: 4.5rem 0;
  position: relative;
  background: url("../images/hero-bg.jpg") center center / cover no-repeat;
}
/* Light veil so the hero's dark-on-light text stays readable on the photo */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
}
.hero-section > .container { position: relative; }
/* Sub-page header photo band — same hero-bg.jpg + 0.80 white veil as
   .hero-section, so every page opens on the site's hero image (owner
   call 2026-08-11). Applied alongside the existing .guide-header/
   .blog-header classes on blog, contact, glossary, estimator, and the
   guides hub/sources pages (replacing their bg-body-tertiary). */
.page-hero {
  position: relative;
  background: url("../images/hero-bg.jpg") center center / cover no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
}
.page-hero > .container { position: relative; }
.hero-section h1 { margin-bottom: 1.25rem; }
.hero-section h1 em { color: var(--crc-teal); font-style: normal; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crc-teal);
  margin-bottom: 1.125rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--crc-teal);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--crc-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-proof-num {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--crc-teal);
  line-height: 1;
}
.hero-proof-label {
  font-size: 0.75rem;
  color: var(--crc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* ── LEAD FORM CARD ──────────────────────────────────── */
.hero-form-card {
  background: var(--crc-surface);
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.hero-form-card .card-body { padding: 2rem; }
.hero-form-card h3 { font-size: 1.2rem; margin-bottom: 0.375rem; }
.form-intro {
  font-size: 0.8125rem;
  color: var(--crc-muted);
  margin-bottom: 1.5rem;
}
.hero-form-card .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crc-muted);
  margin-bottom: 0.3rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--crc-teal);
  box-shadow: 0 0 0 3px rgba(87, 193, 182, 0.12);
}
.form-check-input:checked {
  background-color: var(--crc-teal);
  border-color: var(--crc-teal);
}
.form-check-input:focus {
  border-color: var(--crc-teal);
  box-shadow: 0 0 0 3px rgba(87, 193, 182, 0.12);
}
.consent-check {
  font-size: 0.75rem;
  color: var(--crc-muted);
  margin: 0.75rem 0 1rem;
}
.form-error { font-size: 0.8125rem; }
.form-note {
  font-size: 0.6875rem;
  color: var(--crc-muted);
  text-align: center;
  margin: 0.625rem 0 0;
}
.form-success { padding: 1.25rem 0; }
.form-success .success-icon {
  font-size: 2.5rem;
  color: var(--crc-teal);
  margin-bottom: 0.625rem;
}
.form-success p {
  font-size: 0.875rem;
  color: var(--crc-muted);
  margin: 0.375rem 0 0;
}

/* ── SECTION FURNITURE ───────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crc-teal);
  margin-bottom: 0.625rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--crc-teal);
}
.section-lede {
  color: var(--crc-muted);
  max-width: 560px;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.section-note {
  font-size: 0.875rem;
  color: var(--crc-muted);
  margin-top: 1.75rem;
  margin-bottom: 0;
}

/* ── GUIDE PROSE ─────────────────────────────────────── */
/* Text-heavy educational blocks on the guide pages (permits, budgeting,
   due diligence). Constrained measure + list rhythm for readability. */
.guide-prose { max-width: 720px; }
.guide-prose p { margin-bottom: 1rem; }
.guide-prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.guide-prose li { margin-bottom: 0.5rem; }
.guide-prose li::marker { color: var(--crc-teal); }
.guide-subheading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--crc-ink);
  margin: 1.75rem 0 0.625rem;
}
.guide-prose > .guide-subheading:first-child { margin-top: 0; }

/* ── PROJECT CARDS ───────────────────────────────────── */
.project-card {
  color: var(--crc-ink-mid);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
}
.project-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  color: var(--crc-ink-mid);
}
.project-card-img {
  height: 180px;
  background: var(--crc-teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--crc-border);
}
.project-card-tag {
  background: var(--crc-teal-tint);
  color: var(--crc-teal-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.project-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--crc-ink);
  margin-bottom: 0.375rem;
}
.project-card-desc {
  font-size: 0.875rem;
  color: var(--crc-muted);
  margin-bottom: 0;
}

/* ── FEATURE CARDS ───────────────────────────────────── */
.feature-card { border-top: 3px solid var(--crc-teal); }
.feature-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--crc-ink);
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--crc-muted);
  margin-bottom: 0;
}

/* ── BREADCRUMB BAR (subpages) ───────────────────────── */
.breadcrumb-bar {
  background: var(--crc-surface);
  font-size: 0.8125rem;
}
.breadcrumb-bar .breadcrumb {
  --bs-breadcrumb-divider: '\203A';
  --bs-breadcrumb-divider-color: var(--crc-border);
  --bs-breadcrumb-item-active-color: var(--crc-teal);
  margin-bottom: 0;
}
.breadcrumb-bar .breadcrumb a {
  color: var(--crc-muted);
  text-decoration: none;
}
.breadcrumb-bar .breadcrumb a:hover { color: var(--crc-teal); }
.breadcrumb-bar .breadcrumb-item.active { font-weight: 500; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--crc-ink);
  color: var(--crc-on-ink-muted);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.footer-logo-mark { height: 2.75rem; width: auto; flex: none; }
.footer-logo-wordmark { display: block; height: 1.125rem; width: auto; }
.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 0;
}
.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crc-on-ink-muted);
  margin-bottom: 0.875rem;
}
.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: var(--crc-on-ink-muted);
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--crc-teal); }
.footer-bottom {
  border-top: 1px solid var(--crc-on-ink-border);
  font-size: 0.6875rem;
  color: var(--crc-on-ink-muted);
}

/* ── GLOSSARY FIRST-USE DEEP LINKS ───────────────────── */
/* Minted at render time by App\Helpers\GlossaryDeepLinker on the first use
   of each glossary term in a guide or blog-post body. Styled as a quiet
   reference link — a dotted underline rather than the solid brand underline
   used for editorial links, so a definition lookup reads differently from
   a link the author chose to place. */
.glossary-link {
  color: inherit;
  text-decoration: underline dotted var(--crc-teal);
  text-underline-offset: 0.18em;
}
.glossary-link:hover,
.glossary-link:focus-visible {
  color: var(--crc-teal-dark);
  text-decoration: underline solid var(--crc-teal-dark);
}
