/* ============================================================================
   NTK Works master template stylesheet - mobile-first
   Brand colors are set at runtime from site-config.js (CSS variables below
   are defaults only). Layout, spacing, and components live here.
   ============================================================================ */

:root {
  --primary: #14406b;
  --primary-dark: #0d2c4d;
  --accent: #e0722a;
  --accent-dark: #b95a1d;
  --light: #f3f6f8;
  --text: #22303a;
  --muted: #5d6f7a;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(13, 44, 77, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

/* Extra bottom space on mobile so the sticky call bar never covers content */
@media (max-width: 767px) {
  body.has-callbar { padding-bottom: 76px; }
}

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

h1, h2, h3 { line-height: 1.25; color: var(--primary-dark); margin-top: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }

p { margin-top: 0; }

a { color: var(--primary); }
a:hover { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding: 56px 0; }
.section.light { background: var(--light); }

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ================= Header / nav ================= */

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e2e8ee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 12px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
}
.brand-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: 2px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  color: var(--primary-dark);
}
.nav-toggle svg { width: 24px; height: 24px; }

.main-nav { display: none; }
.main-nav.open { display: block; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid #eef1f4;
}
.main-nav a[aria-current="page"] { color: var(--accent-dark); }

.header-call { display: none; }

/* ================= Buttons ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--light); color: var(--primary-dark); }

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

.btn-block { display: flex; width: 100%; }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ================= Hero ================= */

.hero {
  background: var(--primary-dark);
  color: #fff;
  padding: 64px 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.15rem; color: #d7e2ec; max-width: 640px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: 0.95rem; color: #aebfd0; }

/* ================= Trust signals ================= */

.trust-bar { background: var(--white); border-bottom: 1px solid #e2e8ee; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px 0;
}
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { width: 28px; height: 28px; color: var(--accent-dark); flex-shrink: 0; margin-top: 2px; }
.trust-item strong { display: block; color: var(--primary-dark); font-size: 1rem; }
.trust-item span { font-size: 0.9rem; color: var(--muted); }

/* ================= Cards / grids ================= */

.grid { display: grid; gap: 20px; }
.grid.services-grid, .grid.reviews-grid { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid #e2e8ee;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--primary); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--text); }
.card li { margin-bottom: 6px; }

/* Service detail rows on the Services page */
.service-detail {
  display: grid;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid #e2e8ee;
}
.service-detail:last-child { border-bottom: none; }
.service-detail h3 { margin-bottom: 6px; }
.service-detail ul { margin: 10px 0 0; padding-left: 20px; }

/* ================= Reviews ================= */

.stars { color: var(--accent-dark); font-size: 1.15rem; letter-spacing: 2px; }
.review-card p.quote { font-style: italic; color: var(--text); }
.review-card .reviewer { margin-top: 14px; font-weight: 700; color: var(--primary-dark); font-size: 0.95rem; }
.rating-summary { text-align: center; margin-bottom: 30px; }
.rating-summary .big { font-size: 3rem; font-weight: 800; color: var(--primary-dark); }

/* ================= CTA band ================= */

.cta-band { background: var(--primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e2ec; max-width: 600px; margin: 0 auto 24px; }
.cta-band .btn-row { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ================= Footer ================= */

.site-footer { background: var(--primary-dark); color: #c6d4e1; }
.footer-grid {
  display: grid; gap: 28px;
  padding: 48px 0 28px;
  grid-template-columns: 1fr;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer a { color: #c6d4e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: #9fb2c5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  font-size: 0.85rem;
  color: #9fb2c5;
  display: flex; flex-direction: column; gap: 6px;
}

/* ================= Sticky mobile call bar ================= */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  background: var(--white);
  border-top: 1px solid #e2e8ee;
  box-shadow: 0 -2px 12px rgba(13, 44, 77, 0.12);
}
.callbar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}
.callbar .callbar-call { background: var(--accent); color: #fff; }
.callbar .callbar-estimate { background: var(--primary-dark); color: #fff; }
.callbar svg { width: 22px; height: 22px; }

/* ================= Forms ================= */

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--primary-dark); }
.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid #cfd9e1;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
  outline: 3px solid rgba(224, 114, 42, 0.35);
  border-color: var(--accent);
}
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.success { display: block; background: #e6f4ea; color: #1c6b32; border: 1px solid #a9d8b6; }
.form-status.error { display: block; background: #fdecea; color: #9c2b2b; border: 1px solid #f3b8b3; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ================= Contact page ================= */

.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.contact-card { background: var(--light); border-radius: var(--radius); padding: 26px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 4px; border-bottom: 1px solid #e2e8ee; }
.hours-table th { color: var(--primary-dark); }
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li {
  background: var(--white);
  border: 1px solid #d7e0e7;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.map-placeholder {
  background: var(--light);
  border: 2px dashed #b9c7d2;
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.map-embed iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }
.emergency-box {
  background: #fdf3ec;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
}
.emergency-box strong { color: var(--accent-dark); }

/* ================= About page ================= */

.photo-placeholder {
  background: var(--light);
  border: 2px dashed #b9c7d2;
  border-radius: var(--radius);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}
.about-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
.owner-card { text-align: center; }
.owner-card .photo-placeholder { border-radius: 50%; width: 200px; height: 200px; min-height: 0; margin: 0 auto 14px; }

/* ================= Pricing page ================= */

.price-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured { border-color: var(--accent); }
.price-flag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 3rem; font-weight: 800; color: var(--primary-dark); }
.price span { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.check-list { list-style: none; margin: 20px 0; padding: 0; }
.check-list li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--accent-dark); flex-shrink: 0; margin-top: 3px; }
.guarantee-box {
  background: var(--light);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px;
  margin: 32px 0;
}
.process-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.process-steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid #e2e8ee;
  border-radius: var(--radius);
  padding: 20px 20px 20px 76px;
  position: relative;
  box-shadow: var(--shadow);
}
.process-steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 18px;
  width: 40px; height: 40px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.faq details {
  background: var(--white);
  border: 1px solid #e2e8ee;
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 18px 20px;
}
.faq summary { font-weight: 700; color: var(--primary-dark); cursor: pointer; font-size: 1.05rem; }
.faq summary:focus-visible { outline: 3px solid rgba(224, 114, 42, 0.5); border-radius: 6px; }
.faq details p { margin: 12px 0 0; color: var(--text); }

/* ================= Desktop ================= */

@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  .hero h1 { font-size: 3rem; }
  .hero { padding: 96px 0; }
  .hero-ctas { flex-direction: row; }

  .nav-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav ul { flex-direction: row; gap: 4px; padding: 0; align-items: center; }
  .main-nav a { border-bottom: none; padding: 10px 14px; border-radius: 8px; }
  .main-nav a:hover { background: var(--light); }
  .header-call {
    display: inline-flex;
    align-items: center; gap: 8px;
    background: var(--accent); color: #fff;
    font-weight: 800; text-decoration: none;
    padding: 12px 22px; border-radius: var(--radius);
    min-height: 48px;
  }
  .header-call:hover { background: var(--accent-dark); color: #fff; }
  .header-call svg { width: 20px; height: 20px; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .grid.services-grid { grid-template-columns: repeat(3, 1fr); }
  .grid.reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .grid.two-col { grid-template-columns: 1fr 1fr; }

  .service-detail { grid-template-columns: 80px 1fr; }
  .service-detail .card-icon { margin-bottom: 0; }

  .cta-band .btn-row { flex-direction: row; justify-content: center; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .contact-grid { grid-template-columns: 1.1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 320px; }

  .callbar { display: none; }
  body.has-callbar { padding-bottom: 0; }

  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .process-steps li { padding: 76px 18px 22px; }
  .process-steps li::before { left: 18px; top: 18px; }
}

/* NTK Works company site: logo in header */
.brand-logo { height: 46px; width: auto; display: block; }
