/* =========================================
   Kassel Cleaning — Landing Page Styles
   Navy: #1e3a8a   Orange: #f97316
   Mobile-first responsive design
   ========================================= */

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

:root {
  --navy: #1e3a8a;
  --navy-dark: #172554;
  --navy-light: #2d4ea8;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fb923c;
  --text: #1f2937;
  --text-light: #4b5563;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-soft: #f3f4f6;
  --border: #e5e7eb;
  --success: #10b981;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --container: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px; /* space for sticky mobile CTA */
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1em; }

ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--orange);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: #fff;
  color: var(--navy);
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
}

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

/* ---------- Top Bar ---------- */
.topbar {
  background-color: var(--navy-dark);
  color: #fff;
  padding: 8px 0;
  font-size: 0.875rem;
}

.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}

.topbar a {
  color: #fff;
  font-weight: 600;
}

.topbar a:hover {
  color: var(--orange-light);
}

/* ---------- Header / Nav ---------- */
.header {
  background-color: #fff;
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1.125rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.125rem;
  color: var(--navy);
}

.logo-text span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.header-phone {
  display: none;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.header-phone:hover {
  color: var(--orange);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-image: linear-gradient(rgba(23, 37, 84, 0.75), rgba(30, 58, 138, 0.75)), url('../images/hero-carpet.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 70px 0 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background-color: rgba(249, 115, 22, 0.95);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.25rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subhead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.hero-phone-note {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-phone-note strong {
  color: #fff;
  font-size: 1.125rem;
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  background-color: var(--bg-alt);
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

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

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border-radius: 50%;
  font-size: 1.25rem;
}

.trust-item strong {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: 60px 0;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2 {
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

.section-cta .btn {
  min-width: 260px;
}

.section-cta-note {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--text-light);
}

.section-cta-note a {
  color: var(--navy);
  font-weight: 700;
}

.section-cta-note a:hover {
  color: var(--orange);
}

/* On dark backgrounds */
.section-cta-note.on-dark {
  color: rgba(255, 255, 255, 0.9);
}

.section-cta-note.on-dark a {
  color: #fff;
}

.section-cta-note.on-dark a:hover {
  color: var(--orange-light);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

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

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-soft);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  background-color: var(--orange);
  color: #fff;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}

.service-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.service-body p {
  color: var(--text-light);
  margin-bottom: 16px;
  flex: 1;
}

.service-pricing {
  display: inline-block;
  background-color: rgba(30, 58, 138, 0.08);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- Service Area ---------- */
.service-area {
  text-align: center;
}

.service-area p {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--text-light);
  font-size: 1.0625rem;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.area-tag {
  background-color: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.map-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 30px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background-color: var(--bg-soft);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card {
  background-color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background-color: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.why-card h3 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.125rem;
}

.why-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial {
  background-color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.125rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  color: var(--text);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.65;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9375rem;
}

.testimonial-location {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---------- Final CTA / Form ---------- */
.final-cta {
  background-image: linear-gradient(135deg, rgba(23, 37, 84, 0.92), rgba(30, 58, 138, 0.92)), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #fff;
  padding: 60px 0;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.final-cta-info {
  color: #fff;
}

.final-cta-info .section-eyebrow {
  color: var(--orange-light);
}

.final-cta-info h2 {
  color: #fff;
  font-size: 1.875rem;
  margin-bottom: 16px;
}

.final-cta-info > p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.cta-contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #fff;
}

.cta-contact-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.cta-contact-item strong {
  display: block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 2px;
}

.cta-contact-item a,
.cta-contact-item span {
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
}

.cta-contact-item a:hover {
  color: var(--orange-light);
}

/* ---------- Form ---------- */
.form-wrapper {
  background-color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-xl);
  color: var(--text);
}

.form-wrapper h3 {
  color: var(--navy);
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.form-wrapper > p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.field-error {
  display: none;
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 4px;
  font-weight: 500;
}

.form-group.has-error .field-error {
  display: block;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
}

.cta-button {
  background-color: var(--orange);
  color: #fff;
  padding: 16px 24px;
  font-size: 1.0625rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 8px;
  box-shadow: var(--shadow);
}

.cta-button:hover:not(:disabled) {
  background-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  text-align: center;
  display: none;
}

.form-status.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

.form-status.success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9375rem;
}

.footer a {
  color: #fff;
  font-weight: 600;
}

.footer a:hover {
  color: var(--orange-light);
}

.footer p {
  margin-bottom: 0;
}

/* ---------- Sticky Mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  line-height: 1.2;
}

.mobile-cta .mobile-call {
  background-color: var(--navy);
  color: #fff;
}

.mobile-cta .mobile-call:hover {
  background-color: var(--navy-light);
  color: #fff;
}

.mobile-cta .mobile-quote {
  background-color: var(--orange);
  color: #fff;
}

.mobile-cta .mobile-quote:hover {
  background-color: var(--orange-dark);
  color: #fff;
}

/* ---------- Thank You Page ---------- */
.thank-you {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background-color: var(--bg-alt);
}

.thank-you-card {
  max-width: 640px;
  background-color: #fff;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--orange);
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.thank-you h1 {
  color: var(--navy);
  font-size: 1.875rem;
  margin-bottom: 12px;
}

.thank-you p {
  color: var(--text-light);
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.thank-you-contact {
  background-color: var(--bg-soft);
  padding: 20px;
  border-radius: var(--radius);
  margin: 24px 0;
}

.thank-you-contact strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.thank-you-contact a {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
}

.thank-you-contact a:hover {
  color: var(--orange);
}

/* =========================================
   Breakpoints
   ========================================= */

/* Small phones+ */
@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
  }
}

/* Tablets */
@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero { padding: 90px 0 100px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-subhead { font-size: 1.25rem; }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop */
@media (min-width: 900px) {
  body { padding-bottom: 0; }

  .header-phone { display: inline-flex; }

  .hero { padding: 110px 0 120px; }
  .hero h1 { font-size: 3.25rem; }

  .section { padding: 80px 0; }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
  }

  .final-cta-info h2 {
    font-size: 2.25rem;
  }

  .form-wrapper {
    padding: 40px;
  }

  .mobile-cta { display: none; }
}

/* Large desktop */
@media (min-width: 1100px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
