/* ============================================================
   King Water Heaters — Lead Generation Site
   Design: Clean, fast, mobile-first, conversion-focused
   Colors: Navy #1a2332, Charcoal #2d3748, Amber #f6ad55, Green #48bb78
   Font: Inter (system fallback stack)
   ============================================================ */

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

:root {
  --navy:    #1a2332;
  --charcoal:#2d3748;
  --dark:    #0f1923;
  --amber:   #f6ad55;
  --amber-d: #e08a1e;
  --green:   #48bb78;
  --green-d: #2f855a;
  --light:   #f7f8fa;
  --gray:    #edf2f7;
  --text:    #1a202c;
  --muted:   #718096;
  --white:   #ffffff;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  /* Bottom padding for sticky mobile CTA */
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--amber-d); }
.btn-primary:active { transform: scale(0.97); }

.btn-lg  { font-size: 1.15rem; padding: 16px 36px; }
.btn-xl  { font-size: 1.25rem; padding: 18px 44px; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.logo-crown {
  font-size: 1.6rem;
  color: var(--amber);
  line-height: 1;
}
.logo strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.7rem;
  color: #a0aec0;
  letter-spacing: 0.06em;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.header-phone:hover { background: var(--amber-d); }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 72px;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(246,173,85,0.15);
  border: 1px solid rgba(246,173,85,0.4);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1 span { color: var(--amber); }
.hero-sub {
  font-size: 1.1rem;
  color: #a0aec0;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #718096;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
}
.trust-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a0aec0;
}
.trust-item::before { color: var(--amber); }

/* ── Section base ── */
.section { padding: 72px 0; }
.section-light { background: var(--white); }
.section-dark  { background: var(--charcoal); color: var(--white); }
.section-gray  { background: var(--gray); }
.section-cta   { background: var(--dark); color: var(--white); text-align: center; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.section-label-amber { color: var(--amber); }

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-dark h2 { color: var(--white); }
.section-cta h2  { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.section-dark .section-sub { color: #a0aec0; }
.section-cta p { color: #a0aec0; max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-note { margin-top: 16px; font-size: 0.85rem; color: #718096; }

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--light);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.service-card-accent {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.service-card-accent h3 { color: var(--amber); }
.service-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.service-card-accent p { color: #a0aec0; }
.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--amber-d);
  transition: color 0.15s;
}
.card-link:hover { color: var(--navy); }
.card-link-light { color: var(--amber); }
.card-link-light:hover { color: var(--white); }

/* ── Why Grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}
.why-item { }
.why-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--amber);
}
.why-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}
.why-item p { font-size: 0.95rem; color: #a0aec0; line-height: 1.65; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
}
.stat { text-align: center; padding: 16px 8px; }
.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat span { font-size: 0.85rem; color: #a0aec0; }

/* ── Signs Grid ── */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}
.sign-item {
  border-left: 3px solid var(--amber);
  padding-left: 20px;
}
.sign-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sign-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}
.sign-item p { font-size: 0.93rem; color: var(--muted); line-height: 1.65; }
.signs-cta { text-align: center; }
.signs-cta p { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 20px; }

/* ── Cities Grid ── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.city-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}
.city-pin { color: var(--amber); font-size: 1rem; }
.area-note {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.area-note a { color: var(--amber-d); font-weight: 600; }
.area-note a:hover { text-decoration: underline; }

/* ── FAQ ── */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--amber);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: 20px;
}

/* ── CTA Section ── */
.cta-inner { max-width: 640px; margin: 0 auto; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: #a0aec0;
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 12px;
}
.footer-col p { font-size: 0.9rem; line-height: 1.65; }
.footer-col strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: #a0aec0;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-bottom p { font-size: 0.8rem; color: #4a5568; }

/* ── Sticky Mobile CTA ── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0;
}
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 20px;
  border-radius: 0;
  transition: background 0.15s;
}
.sticky-cta-btn:active { background: var(--amber-d); }

/* Show sticky CTA only on mobile */
@media (max-width: 767px) {
  .sticky-cta { display: block; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 1.9rem; }
  .header-phone { font-size: 0.85rem; padding: 9px 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .signs-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .btn-xl { font-size: 1.1rem; padding: 16px 32px; }
}

@media (max-width: 400px) {
  .trust-row { gap: 10px 16px; }
  .cities-grid { grid-template-columns: 1fr; }
}
