/* ==========================================================================
   K&B House Cleaning Services LLC
   Global Stylesheet
   ========================================================================== */

:root {
  --brick-red: #8B1E24;
  --forest-green: #3F6B2E;
  --accent-green: #7CA83D;
  --charcoal: #1A1A1A;
  --bg-cream: #FAF8F4;
  --white: #FFFFFF;
  --border-soft: #E7E1D6;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px rgba(26, 26, 26, 0.08);
  --shadow-hover: 0 16px 40px rgba(26, 26, 26, 0.14);

  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bg-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1em;
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-green);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brick-red);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4.5rem 0;
}

.section-narrow {
  padding: 3.5rem 0;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

.section-heading p {
  color: #4A4A4A;
  font-size: 1.05rem;
}

.bg-white {
  background: var(--white);
}

.bg-tint {
  background: #F2EEE3;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9em 1.9em;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brick-red);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #711318;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--forest-green);
  border-color: var(--forest-green);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--forest-green);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 500;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 56px;
  width: auto;
}

.contact-strip {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest-green);
}

.contact-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.contact-strip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 0.25em 0;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--brick-red);
  transition: width 0.2s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn):focus-visible::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--charcoal);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}

.mobile-panel.open {
  display: flex;
}

.mobile-panel a {
  font-weight: 600;
  font-size: 1.05rem;
}

.mobile-panel .contact-strip {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .contact-strip {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-panel {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-cream) 100%);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #3A3A3A;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-cta-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--forest-green);
  font-weight: 600;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--forest-green);
  padding: 2.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  text-align: center;
}

.trust-item {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.trust-item svg {
  width: 34px;
  height: 34px;
  color: var(--accent-green);
}

.trust-item strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  display: block;
}

.trust-item span {
  font-size: 0.88rem;
  opacity: 0.92;
}

@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Feature bullets (Why hosts choose us) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F2EEE3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brick-red);
}

.feature-item h3 {
  margin-bottom: 0.35em;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: #4A4A4A;
  font-size: 0.98rem;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid.five-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Card grid (services preview / services page) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card .service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #F2EEE3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--forest-green);
}

.service-card h3 {
  margin-bottom: 0;
}

.service-card p {
  color: #4A4A4A;
  margin: 0;
  flex-grow: 1;
}

.service-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brick-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.services-preview-footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stars {
  display: flex;
  gap: 0.2rem;
  color: var(--accent-green);
}

.stars svg {
  width: 18px;
  height: 18px;
}

.review-card p.quote {
  color: #3A3A3A;
  font-style: italic;
  margin: 0;
}

.review-card .reviewer {
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--charcoal);
}

/* ---------- Closing CTA banner ---------- */
.cta-banner {
  background: var(--brick-red);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--brick-red);
}

.cta-banner .btn-primary:hover,
.cta-banner .btn-primary:focus-visible {
  background: var(--bg-cream);
  color: var(--brick-red);
}

/* ---------- Page header banner (Services / Quote) ---------- */
.page-banner {
  padding: 3.5rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-cream) 100%);
}

.page-banner p {
  max-width: 640px;
  margin: 0 auto;
  color: #3A3A3A;
  font-size: 1.08rem;
}

/* ---------- Pricing line ---------- */
.pricing-box {
  max-width: 620px;
  margin: 3rem auto 0;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.25rem;
}

.pricing-box .price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--brick-red);
  display: block;
  margin-bottom: 0.5rem;
}

.pricing-box p {
  color: #4A4A4A;
  margin-bottom: 1.5rem;
}

/* ---------- Forms ---------- */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 960px) {
  .quote-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.form-row {
  margin-bottom: 1.4rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.form-row .optional {
  font-weight: 400;
  color: #7A7A7A;
  font-size: 0.85rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 1em;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-cream);
  color: var(--charcoal);
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--forest-green);
  outline: none;
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--brick-red);
}

.error-text {
  display: none;
  color: var(--brick-red);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.form-row.has-error .error-text {
  display: block;
}

.form-status {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--forest-green);
  font-weight: 600;
}

/* ---------- Sidebar info panel on quote page ---------- */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.info-card p {
  color: #4A4A4A;
  margin: 0;
}

.info-card .info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F2EEE3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-card .info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--forest-green);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.faq-question .plus {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--brick-red);
  transition: transform 0.2s ease;
}

.faq-question .plus::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-question .plus::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.open .plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 1.6rem 1.5rem;
  color: #4A4A4A;
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ---------- Service area line ---------- */
.service-area {
  text-align: center;
  font-weight: 700;
  color: var(--forest-green);
  margin-bottom: 3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #E9E6DF;
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-weight: 600;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #4A4A47;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--forest-green);
  border-color: var(--forest-green);
}

.footer-social svg {
  width: 19px;
  height: 19px;
  color: #E9E6DF;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--accent-green);
}

.footer-copyright {
  font-size: 0.85rem;
  color: #A8A69F;
}

/* ---------- Misc ---------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 2.5rem;
}
