/* ===================================================
   FILIPINO HOMECARE — Professional Stylesheet
   Brand: Pink (#ff04e8) + Warm Gold (#C5943A)
   =================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2d2d2d;
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: #ff04e8; text-decoration: none; transition: color 0.2s; }
a:hover { color: #C5943A; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: #c003a8; line-height: 1.3; }
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; font-size: 1rem; }

/* === LAYOUT === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 4, 232, 0.1);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1200px; margin: 0 auto;
}
.header-logo img { height: 110px; width: auto; }
.header-logo-text { flex: 1; display: flex; justify-content: center; align-items: center; }
.header-logo-text img { max-height: 110px; width: auto; }
.header-contact { text-align: right; font-size: 0.9rem; }
.header-contact a { color: #ff04e8; font-weight: 600; font-size: 1.1rem; }
.header-contact .bbb-badge { height: 50px; margin-top: 4px; }

/* === NAVIGATION === */
.main-nav {
  background: #ff04e8;
  padding: 0 24px;
}
.main-nav ul {
  display: flex; list-style: none; justify-content: center;
  flex-wrap: wrap; gap: 0; padding: 0; margin: 0;
  max-width: 1200px; margin: 0 auto;
}
.main-nav li { position: relative; }
.main-nav a {
  color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 14px 16px; display: block; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.15); color: #f5d78e;
}
.main-nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px; min-width: 220px; z-index: 100;
  border-top: 3px solid #C5943A;
}
.main-nav .has-dropdown:hover .dropdown { display: block; }
.main-nav .dropdown a {
  color: #c003a8; font-size: 13px; padding: 10px 18px;
}
.main-nav .dropdown a:hover { background: #fff0fc; color: #ff04e8; }
.mobile-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 28px; cursor: pointer; padding: 10px;
}

/* === HERO === */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-bg {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 500px;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: #fff; padding: 40px 24px; max-width: 800px;
  margin: 0 auto;
}
.hero-content h1 { color: #fff; font-size: 2.8rem; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero-content p { color: #ffffff; font-size: 1.3rem; font-weight: 600; opacity: 1; margin-bottom: 24px; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.hero-small .hero-img { min-height: 200px; max-height: 320px; }
.hero-small .hero-content h1 { font-size: 2.2rem; }

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; text-align: center;
  transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary {
  background: #ff04e8; color: #fff;
  box-shadow: 0 4px 12px rgba(255, 4, 232, 0.3);
}
.btn-primary:hover { background: #c003a8; color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: #ff04e8; color: #fff;
  border: 2px solid #ff04e8;
}
.btn-secondary:hover { background: #c003a8; color: #fff; border-color: #c003a8; }
.btn-outline {
  background: transparent; color: #ff04e8;
  border: 2px solid #ff04e8;
}
.btn-outline:hover { background: #ff04e8; color: #fff; }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === CONTENT SECTIONS === */
.section { padding: 60px 0; }
.section-alt { background: #fff5fd; }
.section-purple { background: #ff04e8; color: #fff; }
.section-purple h2, .section-purple h3 { color: #f5d78e; }
.section-purple a { color: #f5d78e; }
.text-center { text-align: center; }

/* === SERVICE CARDS === */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; margin-top: 32px;
}
.card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(255,4,232,0.15); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 a { color: #c003a8; }
.card-body h3 a:hover { color: #C5943A; }
.card-body p { color: #555; font-size: 0.95rem; }

/* === FEATURE BOXES === */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 32px;
}
.feature-box {
  background: #fff; border-radius: 10px; padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 4px solid #C5943A;
}
.feature-box h3 { color: #ff04e8; font-family: 'Inter', sans-serif; font-size: 1.1rem; }
.feature-box p { color: #555; font-size: 0.95rem; margin-bottom: 0; }

/* === TESTIMONIALS === */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 32px;
}
.testimonial {
  background: #fff; border-radius: 12px; padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 3px solid #ff04e8;
}
.testimonial .stars { color: #C5943A; font-size: 1.2rem; margin-bottom: 12px; }
.testimonial blockquote { font-style: italic; color: #444; margin-bottom: 12px; }
.testimonial .author { font-weight: 600; color: #ff04e8; }

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, #ff04e8, #ff5ef0);
  color: #fff; text-align: center; padding: 50px 24px;
  border-radius: 12px; margin: 40px 0;
}
.cta-section h2, .cta-section h3 { color: #f5d78e; }
.cta-section p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 24px; }

/* === TWO-COLUMN LAYOUT === */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.two-col-img { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.two-col-img img { width: 100%; height: 100%; object-fit: cover; }

/* === SERVICE LIST (for service detail pages) === */
.service-includes {
  list-style: none; padding: 0; margin: 24px 0;
}
.service-includes li {
  padding: 12px 0 12px 32px; position: relative;
  border-bottom: 1px solid #f5e0f2; font-size: 1rem;
}
.service-includes li::before {
  content: '✓'; position: absolute; left: 0; top: 12px;
  color: #C5943A; font-weight: 700; font-size: 1.2rem;
}

/* === FOOTER === */
.site-footer {
  background: #4a0842; color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px; margin-bottom: 40px;
}
.footer-section h3 { color: #f5d78e; font-size: 1rem; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: #f5d78e; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center; font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* === BREADCRUMB === */
.breadcrumb {
  background: #fff0fc; padding: 10px 24px;
  font-size: 13px; border-bottom: 1px solid #f0d0ea;
}
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap;
  align-items: center; gap: 4px; padding: 0; margin: 0;
  max-width: 1200px; margin: 0 auto;
}
.breadcrumb a { color: #ff04e8; }
.breadcrumb .sep { color: #e090d0; margin: 0 4px; }
.breadcrumb .current { color: #555; }

/* === RESPONSIVE === */

/* --- Tablet landscape & small desktop --- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr !important; }
  .cards-grid { grid-template-columns: 1fr !important; max-width: 500px; margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: 1fr !important; max-width: 500px; margin-left: auto; margin-right: auto; }
  h1 { font-size: 2rem; }
  .hero-content h1 { font-size: 2rem; }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
  /* Nav: hamburger menu */
  .main-nav ul { display: none; flex-direction: column; align-items: stretch; }
  .main-nav ul.open { display: flex; }
  .main-nav a { text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; }
  .mobile-toggle { display: block; }
  .main-nav .dropdown { position: static; box-shadow: none; border-radius: 0; border-top: none; }
  .main-nav .dropdown a { padding-left: 32px; background: rgba(255,255,255,0.05); }

  /* Header: rearrange for mobile — logo left, text center, contact right */
  .header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 8px;
    padding: 8px 12px;
  }
  .header-logo { grid-column: 1; grid-row: 1 / 3; }
  .header-logo img { height: 60px; }
  .header-logo-text { grid-column: 2; grid-row: 1 / 3; justify-content: center; }
  .header-logo-text img { max-height: 60px; }
  .header-contact {
    grid-column: 3; grid-row: 1 / 3;
    text-align: right; font-size: 0.75rem;
  }
  .header-contact a { font-size: 0.8rem; }
  .header-contact .bbb-badge { height: 30px; }
  .header-contact .header-bbb { margin-top: 2px; }

  /* Hero: responsive image and text */
  .hero-img { min-height: 250px; max-height: 400px; }
  .hero-content { padding: 24px 16px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1.05rem; }
  .hero-small .hero-img { min-height: 180px; max-height: 300px; }
  .hero-small .hero-content h1 { font-size: 1.6rem; }

  /* Grids: force single column on tablet */
  .features-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Sections: tighter padding */
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }

  /* Two-col images: constrain height */
  .two-col-img { max-height: 350px; }
  .two-col-img img { max-height: 350px; }

  /* CTA section */
  .cta-section { padding: 36px 16px; margin: 24px 0; }

  /* Multi-column text (about-us services list) */
  [style*="columns:2"] { columns: 1 !important; }
}

/* --- Mobile phones --- */
@media (max-width: 480px) {
  /* Header: compact */
  .header-top { gap: 0 6px; padding: 6px 8px; }
  .header-logo img { height: 45px; }
  .header-logo-text img { max-height: 45px; }
  .header-contact a { font-size: 0.7rem; }
  .header-contact .bbb-badge { height: 24px; }

  /* Hero: mobile-optimized */
  .hero-img { min-height: 200px; max-height: 300px; }
  .hero-content { padding: 20px 12px; }
  .hero-content h1 { font-size: 1.3rem; margin-bottom: 8px; }
  .hero-content p { font-size: 0.9rem; margin-bottom: 12px; }
  .hero-small .hero-img { min-height: 150px; max-height: 220px; }
  .hero-small .hero-content h1 { font-size: 1.15rem; }

  /* Buttons: side by side on mobile */
  .btn { padding: 10px 16px; font-size: 0.85rem; }
  .btn-group { flex-direction: row; justify-content: center; gap: 8px; }
  .btn-outline { width: auto; }

  /* Cards: smaller padding and images */
  .card-img { height: 180px; }
  .card-body { padding: 16px; }
  .card-body h3 { font-size: 1.1rem; }
  .card-body p { font-size: 0.9rem; }

  /* Feature boxes */
  .feature-box { padding: 20px; }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 36px 0 0; }

  /* Typography: scale down */
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
  p { font-size: 0.95rem; }

  /* Breadcrumb */
  .breadcrumb { padding: 8px 12px; font-size: 12px; }

  /* Testimonials */
  .testimonial { padding: 20px; }

  /* Service includes list */
  .service-includes li { font-size: 0.95rem; padding: 10px 0 10px 28px; }
}
