/*
Theme Name: Bizfire
Theme URI: https://bizfireseo.com/
Author: Bizfire Team
Author URI: https://bizfireseo.com/
Description: Clean, lightweight, unconstrained baseline theme designed specifically for Bizfire Content Editor and SEO Plugin. Follows the exact structural hierarchy of final-index.html with zero container conflicts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bizfire
Tags: full-width-template, clean, minimal, custom-header, custom-menu, featured-images, translation-ready
*/

/* ==========================================================
   DESIGN TOKENS — Single Source of Truth
   (From final-index.html)
   ========================================================== */
:root {
  /* BRAND COLORS */
  --primary: #0F766E;
  --primary-hover: #115E59;
  --primary-soft: #E6F5F2;

  /* SECONDARY COLORS */
  --secondary: #64748B;
  --secondary-hover: #475569;
  --secondary-soft: #F1F5F9;

  /* NEUTRAL COLORS */
  --dark: #18313B;
  --light: #F4FAFA;
  --white: #FFFFFF;
  --black: #000000;

  /* BODY */
  --body-color: #212529;
  --body-bg: #ffffff;
  --heading-color: #212529;
  --text-muted: #6c757d;

  /* STATUS COLORS */
  --success: #198754;
  --success-rgb: 25, 135, 84;
  --danger: #dc3545;
  --danger-rgb: 220, 53, 69;
  --warning: #ffc107;
  --warning-rgb: 255, 193, 7;
  --info: #0dcaf0;
  --info-rgb: 13, 202, 240;

  /* SURFACES */
  --surface: #ffffff;
  --surface-soft: #f8f9fa;
  --surface-hover: #f1f3f5;

  /* BORDERS */
  --border-color: #dee2e6;
  --border-color-strong: #ced4da;

  /* LINKS */
  --link-color: var(--primary);
  --link-hover-color: var(--primary-hover);

  /* FOCUS */
  --focus-ring: rgba(13, 110, 253, 0.25);

  /* BORDER RADIUS */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 18px;
  --radius-pill: 50rem;

  /* SHADOWS */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 18px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 18px 3rem rgba(0, 0, 0, 0.15);

  /* SPACING */
  --section-space: clamp(3rem, 7vw, 6.5rem);
  --content-width: 1320px;

  /* TYPOGRAPHY */
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* COMPONENT TOKENS */
  --btn-radius: var(--radius);
  --card-bg: var(--surface);
  --card-border: var(--border-color);
  --input-bg: var(--surface);
  --input-border: #ced4da;
  --input-color: var(--body-color);
}

/* ==========================================================
   RESET & BASELINE
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--body-color);
  background: var(--body-bg);
  font-family: var(--font-sans);
  font-size: 18px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Unconstrained full-width main content container */
main#main-content {
  flex: 1 0 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  outline: none;
}

/* Buttons */
.btn-primary {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
  border-radius: var(--btn-radius);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
}

.btn-outline-secondary {
  color: var(--secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
  background: var(--surface-soft);
  color: var(--dark);
  border-color: var(--border-color-strong);
}

/* Cards & Forms */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-control {
  color: var(--input-color);
  background: var(--input-bg);
  border-color: var(--input-border);
  border-radius: var(--radius);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

/* ==========================================================
   COMMON SECTION SYSTEM — Single Source of Truth
   (From final-index.html lines 305-395)
   ========================================================== */
.section {
  padding: 60px 0;
  width: 100%;
}

@media (max-width: 767.98px) {
  .section { padding: 40px 0; }
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 767.98px) {
  .section-header { margin-bottom: 32px; }
}

.section-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-subtitle {
  margin: 0 0 16px;
  color: var(--secondary);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
}

.section-description {
  margin: 0;
  color: var(--body-color);
  line-height: 1.8;
}

.section-content {
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  margin-top: 0;
}

/* Skip link (accessibility) */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 99999;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* ==========================================================
   SITE HEADER STYLING
   (From final-index.html lines 491-968)
   ========================================================== */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--surface);
  color: var(--body-color);
  width: 100%;
}

.site-header a {
  text-decoration: none;
}

/* top bar */
.header-topbar {
  min-height: 28px;
  background: var(--dark);
  color: #d8deea;
  line-height: 1.4;
}

.header-topbar .row {
  min-height: 28px;
  flex-wrap: nowrap;
}

.header-service-area,
.header-emergency {
  padding-top: 5px;
  padding-bottom: 5px;
}

.header-emergency {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #f1f4f8;
}

.header-emergency a {
  color: #fff;
  font-weight: 700;
}

.emergency-icon {
  font-size: 12px;
}

/* main row */
.header-main {
  background: var(--surface);
}

.header-main-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 28px;
}

.header-brand {
  display: flex;
  flex-direction: column;
  flex: 0 0 360px;
  margin: 0;
  padding: 0;
  color: var(--body-color);
}

.brand-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.65px;
  line-height: 1.2;
  color: var(--dark);
}

.brand-tagline {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .65px;
  line-height: 1.3;
  text-transform: uppercase;
}

/* navigation */
.header-navigation {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-link {
  display: inline-block;
  padding: 10px 6px !important;
  color: var(--body-color) !important;
  white-space: nowrap;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
}

.header-nav-link:hover,
.header-nav-link:focus {
  color: var(--primary) !important;
}

.has-chevron::after {
  display: inline-block;
  margin-left: 5px;
  vertical-align: 3px;
  content: "";
  border-top: 3px solid currentColor;
  border-right: 3px solid transparent;
  border-left: 3px solid transparent;
  opacity: .55;
  transition: transform .2s ease;
}

/* dropdown */
.header-dropdown {
  position: relative;
}

.header-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  display: none;
  min-width: 210px;
  padding: 7px 0;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.header-dropdown:hover .header-dropdown-menu,
.header-dropdown:focus-within .header-dropdown-menu {
  display: block;
}

.header-dropdown-menu .dropdown-item {
  display: block;
  padding: 9px 15px;
  color: var(--body-color);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.header-dropdown-menu .dropdown-item:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

/* actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-toggle {
  display: none;
  color: var(--body-color);
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-lines {
  display: flex;
  width: 22px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* Hide mobile-only elements on desktop */
.header-close,
.mobile-brand,
.mobile-actions,
.call {
  display: none !important;
}

/* ===== Mobile / Tablet Off-Canvas ===== */
@media (max-width: 991.98px) {
  .header-main-inner {
    position: relative;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 12px;
  }

  .header-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 12px;
    padding: 8px;
    position: relative;
    z-index: 1004;
  }

  .header-actions {
    margin-left: auto;
    display: none;
  }

  /* off-canvas panel */
  .header-navigation {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    width: min(86vw, 360px);
    max-width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 24px 24px 28px;
    overflow-y: auto;
    background: var(--surface);
    border: 0;
    box-shadow: -12px 0 35px rgba(16, 25, 44, .18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
  }

  .header-navigation.is-open {
    transform: translateX(0);
    visibility: visible;
    z-index: 1024;
  }

  .call {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--surface-soft);
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
  }

  .header-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--body-color);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    right: 15px;
  }

  .mobile-brand {
    display: block !important;
    margin-bottom: 16px;
    text-decoration: none;
  }

  .mobile-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .header-nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .header-nav-list .nav-item {
    width: 100%;
  }

  .header-nav-link {
    display: block;
    padding: 14px 4px !important;
    border-bottom: 1px solid var(--border-color);
  }

  .header-dropdown {
    position: relative;
  }

  .header-dropdown:hover .header-dropdown-menu,
  .header-dropdown:focus-within .header-dropdown-menu {
    display: none;
  }

  .header-dropdown.is-open .header-dropdown-menu {
    display: block;
  }

  .header-dropdown.is-open > .header-nav-link.has-chevron::after {
    transform: rotate(180deg);
  }

  .header-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0 0 8px 8px;
    padding: 4px 0;
    border: 0;
    border-left: 2px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    display: none;
  }

  .header-dropdown-menu .dropdown-item {
    padding: 12px 16px;
    white-space: normal;
  }

  /* overlay */
  .site-header.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(10, 18, 32, .48);
  }
}

/* Small phones */
@media (max-width: 767.98px) {
  .header-topbar .container {
    padding-inline: 12px;
  }

  .header-topbar .row {
    flex-wrap: wrap;
    row-gap: 2px;
    min-height: 0;
  }

  .header-service-area {
    flex: 1 1 100%;
    padding: 4px 0 0;
    font-size: 13px;
  }

  .header-emergency {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 0 6px;
    font-size: 13px;
    white-space: normal;
  }

  .header-main-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-block: 10px;
  }

  .header-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-name {
    font-size: 19px;
    letter-spacing: -.4px;
  }

  .brand-tagline {
    font-size: 10px;
    letter-spacing: .5px;
    white-space: normal;
    line-height: 1.25;
  }

  .header-toggle {
    order: 2;
    flex: 0 0 auto;
    margin-left: 0;
    width: 42px;
    height: 42px;
  }

  .header-main-inner > .header-actions {
    order: 3;
    flex: 1 1 100%;
    margin: 4px 0 0;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .header-topbar {
    font-size: 13px;
    text-align: center;
  }

  .header-service-area,
  .header-emergency {
    font-size: 13px;
  }

  .header-emergency {
    display: block;
    line-height: 1.45;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tagline {
    max-width: 210px;
    font-size: 10px;
    letter-spacing: .4px;
  }

  .header-phone span:first-child {
    display: none;
  }

  .header-main-inner > .header-actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-navigation {
    transition: none;
  }
}

/* ==========================================================
   SITE FOOTER STYLING
   (From final-index.html lines 3976-4192)
   ========================================================== */
.site-footer {
  color: #d8e2e6;
  background: var(--dark);
  font-size: 16px;
  width: 100%;
  margin-top: auto;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #5ee0cf;
}

/* Main Footer */
.footer-main {
  padding-block: clamp(3rem, 6vw, 5rem) !important;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
}

.footer-brand-name {
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.footer-brand-tagline {
  color: #aebfc6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-description {
  max-width: 360px;
  color: #bdcbd1;
  line-height: 1.8;
}

.footer-heading {
  margin-bottom: 1.25rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  font-size: 1.15rem;
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  color: #bdcbd1;
  line-height: 1.5;
}

.footer-links a:hover {
  color: #5ee0cf;
  transform: translateX(3px);
}

/* Contact Information */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  color: #bdcbd1;
  line-height: 1.6;
}

.footer-contact-item i {
  width: 18px;
  margin-top: 5px;
  color: #5ee0cf;
  text-align: center;
  flex-shrink: 0;
}

/* Emergency CTA */
.footer-emergency {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.footer-emergency-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-size: 20px;
}

.footer-emergency .footer-heading {
  margin-bottom: 10px;
}

.footer-emergency p {
  margin-bottom: 20px;
  color: #bdcbd1;
  font-size: 15px;
  line-height: 1.7;
}

.footer-emergency .btn-primary {
  min-height: 46px;
  gap: 10px;
  font-weight: 600;
}

.footer-emergency .btn-primary:hover {
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-copyright {
  color: #aebfc6;
  font-size: 14px;
  line-height: 1.7;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer-legal-links a {
  color: #bdcbd1;
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .footer-main {
    padding-block: 3rem !important;
  }

  .footer-brand-name {
    font-size: 23px;
  }

  .footer-emergency {
    padding: 20px;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .footer-heading {
    font-size: 16px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-description {
    font-size: 15px;
  }

  .footer-legal-links {
    gap: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a {
    transition: none;
  }

  .footer-links a:hover {
    transform: none;
  }
}
