/* Saint Paul Commercial Cleaning Services — Theme A: Direct & Operational */
/* Colors */
:root {
  --primary: #0d2b45;
  --accent: #e85c2a;
  --accent-light: #fdf0eb;
  --bg: #f8f8f6;
  --text: #1e1e1e;
  --text-muted: #555555;
  --border: #d0ccc4;
  --white: #ffffff;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Typography */
h1, h2, h3, h4 {
  font-family: "Arial Black", Arial, sans-serif;
  color: var(--primary);
  line-height: 1.2;
}
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* Layout */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--primary); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Header */
.site-header {
  background: #1e1e1e;
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
  gap: 1rem;
}
.header-brand {
  display: flex;
  flex-direction: column;
}
.header-brand .brand-name {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.2;
  text-decoration: none;
}
.header-brand .brand-name:hover { text-decoration: none; color: #e0e0e0; }
.header-brand .brand-strapline {
  font-size: 0.72rem;
  color: #aaaaaa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.header-phone {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: #ff7a4d; text-decoration: none; }
.header-hours { font-size: 0.72rem; color: #aaaaaa; }

/* Nav */
.site-nav {
  background: var(--primary);
}
.site-nav .container {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: #c8d8e8;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--accent);
  color: var(--white);
}

/* Hero */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.hero h1 { color: var(--white); }
.hero .hero-sub {
  font-size: 1.1rem;
  color: #b8cfe0;
  margin-bottom: 1.5rem;
  max-width: 620px;
}
.hero-years {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Quote Form */
.quote-form-card {
  background: var(--white);
  padding: 1.75rem;
  border-top: 4px solid var(--accent);
}
.quote-form-card h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 0.9rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select { cursor: pointer; }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232,92,42,0.2);
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s;
  width: 100%;
}
.btn:hover { background: #c94a1e; color: var(--white); text-decoration: none; }
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--secondary:hover { background: var(--accent); color: var(--white); }
.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* Trust bar */
.trust-bar {
  background: var(--accent-light);
  border-top: 1px solid #f0d0c0;
  border-bottom: 1px solid #f0d0c0;
  padding: 0.9rem 0;
}
.trust-bar-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.trust-item {
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-item::before {
  content: "✓";
  color: var(--accent);
  font-size: 0.9rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.service-card {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
}
.service-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }
.service-card a { display: inline-block; margin-top: 0.75rem; font-size: 0.85rem; font-weight: bold; }

/* Areas grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.area-card a { color: var(--primary); font-weight: bold; font-size: 0.9rem; }
.area-card a:hover { color: var(--accent); }

/* CTA section */
.cta-section {
  background: var(--accent);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { margin-bottom: 1.25rem; color: rgba(255,255,255,0.9); }
.btn--white {
  background: var(--white);
  color: var(--accent);
  font-family: "Arial Black", Arial, sans-serif;
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s;
}
.btn--white:hover { background: #fdf0eb; text-decoration: none; color: var(--accent); }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--primary);
  color: var(--white);
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.data-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.data-table tr:nth-child(even) td { background: var(--bg); }
.data-table tr:last-child td { border-bottom: none; }

/* Process steps */
.process-steps { margin: 1.5rem 0; }
.process-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1rem;
}
.step-content h3 { margin-bottom: 0.35rem; }
.step-content p { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: var(--primary); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9rem; color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb {
  background: var(--primary);
  padding: 0.5rem 0;
}
.breadcrumb nav {
  font-size: 0.78rem;
  color: #b8cfe0;
}
.breadcrumb a { color: #b8cfe0; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--white); }

/* Page hero (non-home) */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: #b8cfe0; font-size: 0.95rem; }

/* Content layout */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .content-wrap { grid-template-columns: 1fr; }
}
.sidebar-card {
  background: var(--white);
  border-top: 4px solid var(--accent);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.sidebar-card h3 { color: var(--primary); margin-bottom: 0.75rem; }
.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { border-bottom: 1px solid var(--border); padding: 0.5rem 0; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: 0.85rem; color: var(--primary); }
.sidebar-links a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  background: #1e1e1e;
  color: #c8c8c8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand-name-footer {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.footer-contact-item {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.footer-contact-item a { color: #c8c8c8; }
.footer-contact-item a:hover { color: var(--accent); }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.82rem; color: #c8c8c8; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Resource article */
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.callout strong { color: var(--primary); }

/* Responsive */
@media (max-width: 600px) {
  .hero-grid { grid-template-columns: 1fr; }
  .site-nav a { padding: 0.5rem 0.7rem; font-size: 0.78rem; }
  .header-inner { flex-wrap: wrap; }
  .header-contact { align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Blog */
.blog-list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.blog-list-item h2 { margin-bottom: 0.35rem; }
.blog-list-item h2 a { color: var(--primary); text-decoration: none; }
.blog-list-item h2 a:hover { text-decoration: underline; }
.blog-meta { color: #64748b; font-size: 0.85rem; margin-bottom: 0.5rem; }
.blog-post-body { max-width: 720px; line-height: 1.7; }
.blog-post-body h2 { margin-top: 2rem; }
.blog-post-body img { max-width: 100%; height: auto; border-radius: 6px; }

/* Quote wizard */
.wiz-wrap { margin-top: 2.5rem; }
.wiz-card { max-width: 720px; width: 100%; padding: 2rem; }
.wiz-card h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }

.wiz-progress { margin-bottom: 1.5rem; }
.wiz-progress-bar {
  display: block;
  height: 6px;
  background: var(--border);
  overflow: hidden;
}
.wiz-progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}
.wiz-progress-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wiz-fieldset { border: none; }
.wiz-legend {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding: 0;
}
.wiz-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

.wiz-options { display: flex; flex-direction: column; gap: 0.6rem; }
.wiz-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wiz-option:hover { border-color: var(--accent); }
.wiz-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-light);
}
.wiz-option-input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.wiz-option-label { font-size: 0.92rem; }

.wiz-slot {
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
}
.wiz-slot-title { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.75rem; }
.wiz-slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .wiz-slot-grid { grid-template-columns: 1fr; }
}

.wiz-review-heading { font-size: 1.15rem; color: var(--primary); margin-bottom: 1rem; }
.wiz-review-card {
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.wiz-review-card h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.6rem; }
.wiz-review-list { display: grid; grid-template-columns: 1fr; gap: 0.35rem; }
.wiz-review-list dt { font-size: 0.78rem; color: var(--text-muted); font-weight: bold; margin-top: 0.5rem; }
.wiz-review-list dd { font-size: 0.9rem; }

.wiz-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin: 1rem 0;
  cursor: pointer;
}
.wiz-terms input { margin-top: 0.2rem; accent-color: var(--accent); cursor: pointer; }

.wiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.wiz-nav-btn { width: auto; padding: 0.75rem 2rem; flex: 0 0 auto; }
.wiz-nav:has([data-wizard-back][hidden]) { justify-content: flex-end; }

.wiz-done { text-align: center; padding: 2rem 0; }
.wiz-done h2 { color: var(--primary); margin-bottom: 0.75rem; }
.wiz-done-list { list-style: none; margin: 1.25rem 0; text-align: left; }
.wiz-done-list li {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-status-message { min-height: 1.2rem; }
.form-status-error { color: #b3261e; font-size: 0.85rem; margin-top: 0.5rem; }
.form-status-success { color: var(--primary); font-size: 0.85rem; margin-top: 0.5rem; }
