/* =========================================================
   Template styles — all theming via CSS custom properties
   set in <head><style> by the build script.
   To restyle a site: edit the config JSON colors/fonts and
   re-run build.ps1. No CSS edits needed.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-text);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

p { color: var(--color-text-muted); }

a { color: var(--color-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--color-accent-dark); }

ul { list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; }

/* Top bar */
.topbar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar-item { white-space: nowrap; }

/* Header */
.header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1rem 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.625rem; color: #fff; font-weight: 700; }
.logo-mark {
  background: var(--color-accent);
  color: var(--color-bg);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--logo-radius, 6px);
  font-weight: 900; font-size: 1.0625rem;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
.logo-text { font-family: var(--font-heading); font-size: 1.0625rem; letter-spacing: -0.01em; }

.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:hover { color: var(--color-accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  font-family: var(--font-body);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.btn-phone {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.625rem 1.125rem;
  border-radius: 6px;
  font-weight: 700;
}
.btn-phone:hover { background: var(--color-accent-dark); color: var(--color-bg); }

/* Hero */
.hero {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--hero-gradient);
  opacity: 0.7;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 800px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-accent { color: var(--color-accent); font-weight: 600; }
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.1875rem;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust li {
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.0625rem; }

.kicker {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* Service cards */
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--color-accent);
}
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { margin-bottom: 1rem; }
.service-list { color: var(--color-text); }
.service-list li {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}
.service-list li:last-child { border-bottom: 0; }
.service-list li::before { content: "✓ "; color: var(--color-accent); font-weight: 700; }

/* Why us cards */
.why-card {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 2rem;
  border-left: 4px solid var(--color-accent);
}
.why-num {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.why-card h3 { margin-bottom: 0.5rem; }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.process-step { text-align: center; padding: 1rem; }
.process-num {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--color-accent);
  color: var(--color-bg);
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.process-step h3 { margin-bottom: 0.5rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Testimonials */
.testimonial {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid var(--color-border);
}
.stars { color: var(--color-accent); font-size: 1.125rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.testimonial blockquote {
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}
.testimonial footer { font-style: normal; font-size: 0.9375rem; }
.testimonial footer span { color: var(--color-text-muted); }

/* FAQ */
.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.25rem 1.5rem;
  margin-bottom: 0.75rem;
}
.faq-item summary {
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  padding: 1.125rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  font-size: 1.0625rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 1.25rem; }

/* Service areas */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.areas li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 500;
  transition: all .15s;
}
.areas li:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* CTA / Form */
.cta-section { background: var(--color-primary); color: #fff; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.85); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.cta-text h2 { margin-bottom: 1.25rem; }
.cta-bullets { margin: 1.5rem 0 2rem; }
.cta-bullets li { color: rgba(255,255,255,0.9); padding: 0.375rem 0; font-size: 1rem; }
.cta-contact { display: flex; flex-direction: column; gap: 0.625rem; }
.cta-phone, .cta-email {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}
.cta-phone:hover, .cta-email:hover { color: var(--color-accent); }

.cta-form {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.cta-form h3 {
  color: var(--color-text);
  margin-bottom: 1.25rem;
  font-size: 1.375rem;
}
.cta-form label {
  display: block;
  margin-bottom: 0.875rem;
}
.cta-form label span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 20%, transparent);
}
.cta-form textarea { resize: vertical; }
.cta-form button { margin-top: 0.5rem; }
.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer h4 { color: #fff; margin-bottom: 1rem; }
.footer p, .footer a { color: rgba(255,255,255,0.75); font-size: 0.9375rem; line-height: 1.7; }
.footer a:hover { color: var(--color-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-rbq {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .topbar-inner { font-size: 0.75rem; gap: 0.5rem; justify-content: center; }
  .header-inner { padding: 0.875rem 1rem; gap: 0.75rem; }
  .nav { display: none; }
  .logo-text { font-size: 0.9375rem; }
  .btn-phone { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .hero-trust { gap: 0.875rem; }
  .section { padding: 3.5rem 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
}
