/* Knoxville Spray Foam Pros - Stylesheet */

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

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a202c;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}

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

a { color: #1a365d; text-decoration: underline; }
a:hover { color: #d69e2e; }

h1, h2, h3, h4 {
  color: #1a365d;
  line-height: 1.25;
  margin: 0 0 16px 0;
  font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.phone-cta {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1a365d;
  line-height: 1.1;
}
.phone-cta strong { font-size: 1.25rem; font-weight: 700; }
.phone-cta span { font-size: 0.75rem; color: #4a5568; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  color: #1a202c;
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
}
nav a:hover { background: #f7fafc; color: #1a365d; }

.cta-button {
  background: #d69e2e;
  color: #1a365d;
  text-decoration: none;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 4px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.cta-button:hover { background: #b7791f; color: #ffffff; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #1a365d;
  font-size: 1.5rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  color: #1a365d;
  font-weight: 700;
}

/* HERO */
.hero {
  background: #f7fafc;
  padding: 40px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}
.hero .subhead {
  font-size: 1.125rem;
  color: #4a5568;
  margin-bottom: 24px;
}
.trust-strip {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a365d;
}

/* FORM CARD */
.form-card {
  background: #ffffff;
  border: 2px solid #1a365d;
  border-radius: 8px;
  padding: 24px;
}
.form-card h2 {
  margin-top: 0;
  font-size: 1.375rem;
  color: #1a365d;
}
.form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: inherit;
}
.form-card textarea { min-height: 80px; resize: vertical; }
.form-card button {
  width: 100%;
  background: #d69e2e;
  color: #1a365d;
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-height: 48px;
}
.form-card button:hover { background: #b7791f; color: #ffffff; }
.form-card .or-call {
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
}
.form-card .or-call a { color: #1a365d; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* SECTIONS */
section {
  padding: 40px 0;
}
section.alt { background: #f7fafc; }

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* CARDS */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
}
.card h3 { margin-top: 12px; }
.card img { border-radius: 4px; }
.card a.learn-more {
  font-weight: 700;
  color: #1a365d;
  text-decoration: none;
}
.card a.learn-more:hover { color: #d69e2e; }

/* USPs */
.usp {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px;
}
.usp .icon { font-size: 2rem; margin-bottom: 8px; }

/* TESTIMONIALS */
.testimonial {
  background: #ffffff;
  border-left: 4px solid #d69e2e;
  padding: 20px;
  border-radius: 4px;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.testimonial cite {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  font-style: normal;
  color: #1a365d;
}

/* PROCESS STEPS */
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}
.process-step .num {
  background: #1a365d;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.process-step h3 { margin-top: 8px; }

/* SERVICE AREA LIST */
.area-list { list-style: none; padding: 0; }
.area-list li { padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.area-list a {
  text-decoration: none;
  color: #1a365d;
  font-weight: 600;
}
.area-list a:hover { color: #d69e2e; }

.map-embed iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

/* FAQ ACCORDION */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #ffffff;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  color: #1a365d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: #d69e2e;
  font-weight: 700;
}
.faq-question[aria-expanded="true"]::after {
  content: "−";
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
}
.faq-answer[aria-hidden="false"] {
  max-height: 800px;
  padding: 0 20px 18px 20px;
}

/* FINAL CTA */
.final-cta {
  background: #1a365d;
  color: #ffffff;
  padding: 50px 0;
  text-align: center;
}
.final-cta h2 { color: #ffffff; }
.final-cta a { color: #d69e2e; }
.final-cta .cta-button { font-size: 1.125rem; padding: 16px 28px; }

/* DISCLOSURE */
.disclosure {
  background: #f7fafc;
  padding: 16px 0;
  font-size: 0.8125rem;
  color: #4a5568;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

/* FOOTER */
footer {
  background: #1a202c;
  color: #cbd5e0;
  padding: 40px 0 24px 0;
  font-size: 0.95rem;
}
footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
footer a {
  color: #d69e2e;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-disclosure {
  border-top: 1px solid #4a5568;
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.8125rem;
  text-align: center;
}
.footer-bottom-links {
  margin: 12px 0;
  text-align: center;
}
.footer-bottom-links a { margin: 0 8px; }

/* MOBILE STICKY CALL BAR */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #d69e2e;
  color: #1a365d;
  text-align: center;
  padding: 14px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  z-index: 99;
  display: block;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

/* BREADCRUMBS */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.875rem;
  color: #4a5568;
}
.breadcrumbs a { color: #1a365d; }

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
th, td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
}
th { background: #f7fafc; color: #1a365d; }

/* LISTS */
ul.benefit-list {
  list-style: none;
  padding: 0;
}
ul.benefit-list li {
  padding: 8px 0 8px 28px;
  position: relative;
}
ul.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d69e2e;
  font-weight: 700;
  font-size: 1.125rem;
}

/* DESKTOP LAYOUT */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-call-bar { display: none; }
  .hero-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .form-card.sticky-form { position: sticky; top: 90px; }
  .hero h1 { font-size: 2.625rem; }
  h2 { font-size: 2rem; }
  section { padding: 60px 0; }
  .map-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
}

/* MOBILE NAV */
@media (max-width: 1023px) {
  .menu-toggle { display: block; order: 3; }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 4;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
  }
  nav.open { display: flex; }
  nav a {
    width: 100%;
    padding: 12px;
    border-bottom: 1px solid #f7fafc;
  }
  .cta-button.header-cta { display: none; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 1.625rem; }
  .hero h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .header-inner { padding: 10px 16px; }
  .phone-cta strong { font-size: 1.0625rem; }
  .container { padding: 0 16px; }
}
