/* King Kelly Construction and Remodeling — site stylesheet */

:root {
  --navy: #16263e;
  --navy-light: #1f3654;
  --navy-lighter: #2a4568;
  --amber: #e8871e;
  --amber-dark: #c96f12;
  --bg: #f5f6f8;
  --white: #ffffff;
  --text: #232a31;
  --text-light: #5b6572;
  --border: #e1e4e8;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(22, 38, 62, 0.08);
  --shadow-lg: 0 8px 30px rgba(22, 38, 62, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text); }

section { padding: 64px 0; }

.section-alt { background: var(--bg); }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

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

.btn-block { display: block; width: 100%; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.brand {
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span { color: var(--amber); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.phone-link {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-link:hover { color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--amber); }

/* Services nav dropdown */
.nav-item-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 190px;
  background: var(--navy-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 600;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: var(--amber); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
  color: var(--white);
  padding: 72px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero p.lead { color: #d7dee7; font-size: 1.1rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.hero-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Page header (non-home hero) */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
  color: var(--white);
  padding: 56px 0;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: #d7dee7; margin: 0; max-width: 60ch; }
.breadcrumb { font-size: 0.85rem; color: #b7c1cf; margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--amber); }

/* Trust strip */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding: 28px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.trust-item .dot { color: var(--amber); font-size: 1.4rem; line-height: 0; }

/* Service grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 0.95rem; flex-grow: 1; }
.card .card-link { margin-top: 12px; font-weight: 700; color: var(--amber-dark); }
.card .card-link:hover { color: var(--navy); }

.tier1-tag {
  display: inline-block;
  background: rgba(232, 135, 30, 0.12);
  color: var(--amber-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

/* Service area teaser / list */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--navy);
}

.area-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.area-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.area-note h3 { margin-bottom: 6px; font-size: 1.05rem; }
.area-note p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial .stars { color: var(--amber); font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p.quote { font-style: italic; color: var(--text); font-size: 1.02rem; }
.testimonial .author { font-weight: 700; color: var(--navy); margin: 0; }

/* Process / signs lists */
.info-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--white);
  background: var(--amber);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step-list li {
  counter-increment: step;
  padding-left: 46px;
  position: relative;
  margin-bottom: 22px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.step-list p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

.local-note {
  background: var(--bg);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
}
.local-note p { margin: 0; color: var(--text); }

/* FAQ accordion */
.faq-list {
  border-top: 1px solid var(--border);
  max-width: 78ch;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--amber-dark);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 14px 0 0;
  color: var(--text-light);
}

.related-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.related-links a {
  font-weight: 700;
  color: var(--amber-dark);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius);
}
.related-links a:hover { background: var(--bg); }

/* Quote / contact form */
.quote-section {
  background: var(--navy);
  color: var(--white);
}
.quote-section h2 { color: var(--white); }
.quote-section p.lead { color: #d7dee7; }

.quote-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.quote-info .phone-big {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  display: block;
  margin: 8px 0 20px;
}

form.quote-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Map / service area graphic */
.map-graphic {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cfd8e3;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.footer-grid a { display: block; margin-bottom: 8px; color: #cfd8e3; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-grid p { color: #cfd8e3; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #94a1b3;
  text-align: center;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 0;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-header .container { flex-wrap: wrap; position: relative; }

  .nav-item-dropdown { position: static; width: 100%; }
  .dropdown-menu {
    display: block;
    position: static;
    margin-top: 0;
    background: rgba(0,0,0,0.15);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .dropdown-menu a { padding: 10px 0 10px 24px; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .info-columns { grid-template-columns: 1fr; gap: 24px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .quote-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .area-notes { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .header-actions .btn { padding: 10px 14px; font-size: 0.85rem; }
}
