/* ============================================
   Home Street Carpet Care - Brand Stylesheet
   Colors from HSSA Branding Guide
   Primary: #dd513f (red), #232323 (charcoal), #111111 (black)
   Secondary: #f7f1f0 (cream), #a2c5ed (blue)
   Fonts: Open Sans (headers), Montserrat (body)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #dd513f;
  --red-dark: #c4402f;
  --charcoal: #232323;
  --black: #111111;
  --cream: #f7f1f0;
  --blue: #a2c5ed;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #e0e0e0;
  --gray-text: #555555;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

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

.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--red); color: var(--white); padding: 8px 16px;
  z-index: 1000; font-size: 0.875rem;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 900;
  border-bottom: 1px solid var(--gray-mid);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

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

.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; fill: var(--red);
}
.logo-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300; font-size: 1.15rem; letter-spacing: 0.15em;
  color: var(--charcoal); text-transform: uppercase; line-height: 1.2;
}
.logo-text span { display: block; font-size: 0.6rem; letter-spacing: 0.25em; color: var(--gray-text); }

.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600; color: var(--charcoal);
  text-transform: uppercase; letter-spacing: 0.05em;
  position: relative; padding: 0.25rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0;
  height: 2px; background: var(--red); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-book {
  display: inline-block; background: var(--red); color: var(--white) !important;
  padding: 0.6rem 1.5rem; border-radius: var(--radius); font-weight: 700;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition);
  border: none; cursor: pointer;
}
.btn-book:hover { background: var(--red-dark); transform: translateY(-1px); color: var(--white) !important; }

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--charcoal); transition: var(--transition); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px;
    height: 100vh; background: var(--white);
    flex-direction: column; padding: 5rem 2rem 2rem; gap: 1.5rem;
    box-shadow: var(--shadow-lg); transition: right var(--transition);
  }
  .nav-links.open { right: 0; }
  .nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 800;
  }
  .nav-overlay.open { display: block; }
}

/* --- Hero Section --- */
.hero {
  margin-top: 70px; padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--blue) 150%);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-content h1 { margin-bottom: 1rem; }
.hero-content h1 .highlight { color: var(--red); }
.hero-content p { font-size: 1.1rem; color: var(--gray-text); margin-bottom: 2rem; max-width: 520px; }

.hero-badges { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--white); border: 1px solid var(--gray-mid);
  padding: 0.4rem 0.85rem; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; color: var(--charcoal);
}
.badge svg { width: 16px; height: 16px; fill: var(--red); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-outline {
  display: inline-block; border: 2px solid var(--red); color: var(--red);
  padding: 0.6rem 1.5rem; border-radius: var(--radius); font-weight: 700;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all var(--transition); background: transparent;
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-image-placeholder {
  width: 100%; max-width: 480px; aspect-ratio: 4/3;
  background: var(--cream); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.hero-image-placeholder svg { width: 80px; height: 80px; opacity: 0.3; }

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image-placeholder { max-width: 360px; }
}

/* --- Sections --- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.8); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header p { color: var(--gray-text); margin-top: 0.75rem; font-size: 1.05rem; }
.section-header .divider {
  display: block; width: 60px; height: 3px;
  background: var(--red); margin: 1rem auto 0; border-radius: 2px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  background: var(--cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.service-card .icon svg { width: 28px; height: 28px; stroke: var(--red); fill: none; stroke-width: 2; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; color: var(--gray-text); }

/* --- Why Choose Us --- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature-item { text-align: center; padding: 1.5rem; }
.feature-item .icon-circle {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  background: rgba(221,81,63,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.feature-item .icon-circle svg { width: 32px; height: 32px; stroke: var(--red); fill: none; stroke-width: 2; }
.feature-item h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-item p { font-size: 0.9rem; color: var(--gray-text); }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--white); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative;
}
.testimonial-card .stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-card blockquote { font-style: italic; color: var(--gray-text); margin-bottom: 1rem; font-size: 0.95rem; }
.testimonial-card .author { font-weight: 700; font-size: 0.9rem; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-mid); padding: 1.25rem 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; background: none; border: none; width: 100%;
  text-align: left; font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem; font-weight: 600; color: var(--charcoal);
  padding: 0;
}
.faq-question svg {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: var(--red); fill: none; stroke-width: 2;
  transition: transform var(--transition);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--gray-text); font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 400px; padding-top: 0.75rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--red); color: var(--white); text-align: center;
  padding: 3.5rem 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; font-size: 1.05rem; }
.btn-white {
  display: inline-block; background: var(--white); color: var(--red);
  padding: 0.75rem 2rem; border-radius: var(--radius); font-weight: 700;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all var(--transition);
}
.btn-white:hover { background: var(--cream); color: var(--red-dark); transform: translateY(-2px); }

/* --- Contact Form --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.85rem;
  margin-bottom: 0.4rem; color: var(--charcoal);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-mid);
  border-radius: var(--radius); font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem; transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
  background: var(--cream); padding: 2rem; border-radius: var(--radius);
}
.contact-info-card h3 { margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-info-item svg { width: 24px; height: 24px; stroke: var(--red); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
.contact-info-item p { color: var(--gray-text); font-size: 0.95rem; margin: 0; }

/* --- Page Header (inner pages) --- */
.page-header {
  margin-top: 70px; padding: 3.5rem 0;
  background: var(--cream); text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--gray-text); font-size: 1.05rem; }
.breadcrumbs {
  font-size: 0.8rem; color: var(--gray-text); margin-top: 0.75rem;
}
.breadcrumbs a { color: var(--red); }

/* --- Footer --- */
.site-footer {
  background: var(--black); color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; max-width: 360px; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; text-align: center; font-size: 0.8rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- About page --- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-story p { margin-bottom: 1rem; color: var(--gray-text); }
.about-image-placeholder {
  width: 100%; aspect-ratio: 4/3; background: var(--cream);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center;
}
@media (max-width: 768px) { .about-story { grid-template-columns: 1fr; } }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.value-card { text-align: center; padding: 1.5rem; }
.value-card .icon-circle {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  background: var(--cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.value-card .icon-circle svg { width: 28px; height: 28px; stroke: var(--red); fill: none; stroke-width: 2; }
.value-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--gray-text); }

/* --- Service area / Map placeholder --- */
.map-placeholder {
  width: 100%; height: 300px; background: var(--cream);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: var(--gray-text);
  font-size: 0.9rem; border: 2px dashed var(--gray-mid);
}

/* --- Pricing table --- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); text-align: center;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.pricing-card.featured { border-color: var(--red); }
.pricing-card .badge-popular {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 1rem;
}
.pricing-card h3 { margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 1.5rem; font-weight: 700; color: var(--red); margin-bottom: 1rem; }
.pricing-card .price small { font-size: 0.8rem; color: var(--gray-text); font-weight: 400; }
.pricing-card ul { list-style: none; margin-bottom: 1.5rem; text-align: left; }
.pricing-card li {
  padding: 0.4rem 0; font-size: 0.9rem; color: var(--gray-text);
  display: flex; align-items: center; gap: 0.5rem;
}
.pricing-card li svg { width: 16px; height: 16px; stroke: var(--red); fill: none; stroke-width: 2; flex-shrink: 0; }
