/* ==========================================================================
   ServicePinas — Minimal Homepage
   Scope: only loaded on "/" (layout links this file when $isHome is true) and
   further guarded with the .page-home body class. Uses fresh `hm-` classnames
   so it never collides with the shared styles.css. Does NOT touch the shared
   header markup or the working mobile menu.
   ========================================================================== */

/* Hide the shared footer on the homepage — the homepage renders its own. */
.page-home .footer { display: none; }

/* Keep the whole homepage free of horizontal overflow. */
.page-home { overflow-x: hidden; }

/* ----------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------------- */
.home-minimal { display: block; }

.hm-hero {
  background:
    radial-gradient(1100px 520px at 100% 0%, rgba(22, 106, 91, 0.10), rgba(22, 106, 91, 0) 60%),
    linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 62%);
  padding: 72px 24px 88px;
}

.hm-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hm-hero-copy {
  max-width: 760px;
}

.hm-title {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hm-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  max-width: 620px;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------------------
   Search card
   ---------------------------------------------------------------------------- */
.hm-search {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 860px;
}

.hm-search-fields {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hm-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.hm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hm-input-icon {
  position: absolute;
  left: 14px;
  color: var(--accent);
  pointer-events: none;
}

.hm-input-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 13px 14px 13px 42px;
  color: var(--ink);
  font-size: 0.95rem;
}

.hm-input-wrap input::placeholder { color: #9aa8a2; }

.hm-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 106, 91, 0.14);
}

.hm-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hm-search-btn:hover { background: var(--accent-strong); transform: translateY(-1px); }

/* ----------------------------------------------------------------------------
   Primary CTA buttons
   ---------------------------------------------------------------------------- */
.hm-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hm-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.hm-btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 37, 28, 0.14);
}

.hm-btn-outline {
  background: #ffffff;
  border-color: var(--line);
  color: var(--accent-strong);
}

.hm-btn-outline:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------------------
   Trust / benefit badges
   ---------------------------------------------------------------------------- */
.hm-badges {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hm-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px 9px 9px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.hm-badge-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
.hm-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 56px 24px 28px;
}

.hm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}

.hm-footer-brand { max-width: 300px; }

.hm-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  margin-bottom: 12px;
}

.hm-footer-logo img { height: 30px; width: auto; }

.hm-footer-logo strong { font-size: 1.15rem; }

.hm-footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
}

.hm-footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hm-footer-col h2 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.hm-footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 5px 0;
}

.hm-footer-col a:hover { color: var(--accent-strong); }

.hm-footer-copy {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ----------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hm-footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hm-footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 820px) {
  .hm-hero { padding: 52px 18px 64px; }
  /* Search fields stack; button becomes full width. */
  .hm-search {
    flex-direction: column;
    align-items: stretch;
  }
  .hm-search-fields { grid-template-columns: 1fr; }
  .hm-search-btn { width: 100%; }
}

@media (max-width: 640px) {
  .hm-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hm-hero { padding: 40px 16px 52px; }
  /* CTA buttons stack full width. */
  .hm-cta { flex-direction: column; align-items: stretch; }
  .hm-btn { width: 100%; }
  /* Badges expand to full rows for easy tapping. */
  .hm-badge { width: 100%; }
  .hm-footer { padding: 44px 16px 24px; }
  .hm-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
