/* ============================================
   Heart to Home Services - POC Stylesheet

   IMAGE RECOMMENDATIONS FOR PRODUCTION:
   - Hero image: 1920x600px JPEG, optimized to ~150KB
   - Logo: 524x80px PNG with transparent background
   - Service icons: 200x200px PNG with transparent background
   - All images should be 2x resolution for retina displays
   ============================================ */

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

:root {
  --color-primary: #E8843C;
  --color-primary-dark: #d4722e;
  --color-navy: #2C5F7C;
  --color-navy-dark: #1e4a62;
  --color-cream: #FDF6EE;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0d5c8;
  --font-main: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --header-height: 70px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-cream);
}

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

a {
  color: var(--color-navy);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-main);
  color: var(--color-navy);
  line-height: 1.3;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-cream);
  border-top: 3px solid var(--color-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo img {
  height: 36px;
  width: auto;
}

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav ul a {
  display: block;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.main-nav ul a:hover {
  color: var(--color-primary);
}

.main-nav ul a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-cta {
  padding: 8px 20px;
  font-size: 0.9rem;
  margin-left: 8px;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  margin-top: var(--header-height);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  background: var(--color-cream);
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  display: none; /* not needed with grid layout */
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 24px 48px 24px;
}

.hero-content h1 {
  font-size: 2.25rem;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-content h1 strong {
  font-weight: 700;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ============================================
   ABOUT US
   ============================================ */
.about {
  background: var(--color-cream);
  padding: 64px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--color-cream);
  padding: 0 0 64px;
}

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

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial-card footer {
  font-weight: 600;
  color: var(--color-text);
  font-style: normal;
}

.references-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--color-cream);
  padding: 24px 0 32px;
  text-align: center;
}

.services h2 {
  margin-bottom: 20px;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: stretch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.services-photo {
  width: 240px;
  flex-shrink: 0;
}

.services-photo img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.service-card-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.service-card-label {
  padding: 12px 8px 16px;
  background: var(--color-white);
}

.service-card h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
}

/* ============================================
   CONTACT US
   ============================================ */
.contact {
  background: var(--color-cream);
  padding: 24px 0 40px;
  text-align: center;
}

.contact h2 {
  margin-bottom: 32px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  text-align: left;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--color-navy);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--color-primary);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  display: none;
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal.active {
  display: block;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-right: 32px;
}

.modal p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.modal p:last-child {
  margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE: Tablet (< 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    gap: 32px;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-photo {
    display: none;
  }

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

  .hero-content h1 {
    font-size: 1.85rem;
  }
}

/* ============================================
   RESPONSIVE: Mobile (< 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-cream);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 16px 24px;
    gap: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-bg {
    max-height: 220px;
    order: -1;
  }

  .hero-content {
    padding: 32px 24px;
    margin-left: 0;
    max-width: none;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  /* About */
  .about {
    padding: 48px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Services */
  .services {
    padding: 48px 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 12px 20px;
  }

  /* Contact */
  .contact {
    padding: 48px 0;
  }
}

/* ============================================
   RESPONSIVE: Small Mobile (< 480px)
   ============================================ */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }
}
