/*
Theme Name: Healthmax Care
Theme URI: https://healthmaxcare.in
Author: Healthmax Care
Description: A clean business theme for Healthmax Care, Specialists in Prosthetics, Orthotics & Rehabilitation, Ludhiana. Services-led front page and a Social Service page.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthmax-care
*/

:root {
  --hm-blue: #1a5c9e;
  --hm-navy: #103e6e;
  --hm-blue-tint: #e8f0f8;
  --hm-ink: #1c2733;
  --hm-muted: #556372;
  --hm-line: #d7dfe7;
  --hm-paper: #f6f8fa;
  --hm-white: #ffffff;
  --hm-radius: 6px;
  --hm-max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--hm-paper);
  color: var(--hm-ink);
  font-family: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--hm-blue); }
a:hover { color: var(--hm-navy); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--hm-blue);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: "Zilla Slab", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hm-ink);
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.hm-wrap {
  max-width: var(--hm-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hm-eyebrow {
  display: block;
  font-family: "Public Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hm-blue);
  margin-bottom: 0.75rem;
}

/* ---------- Header ---------- */

.hm-topbar {
  background: var(--hm-navy);
  color: #d4e2f0;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.hm-topbar .hm-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: flex-end;
}
.hm-topbar a { color: #ffffff; text-decoration: none; }
.hm-topbar a:hover { text-decoration: underline; color: #ffffff; }

.hm-header {
  background: var(--hm-white);
  border-bottom: 1px solid var(--hm-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hm-header .hm-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}
.hm-brand { text-decoration: none; }
.hm-brand-name {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hm-blue);
  line-height: 1.1;
  display: block;
}
.hm-brand-tag {
  display: block;
  font-size: 0.78rem;
  color: var(--hm-muted);
  letter-spacing: 0.02em;
}

.hm-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
}
.hm-nav a {
  text-decoration: none;
  color: var(--hm-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.hm-nav a:hover,
.hm-nav .current-menu-item a,
.hm-nav .current_page_item a {
  color: var(--hm-blue);
  border-bottom-color: var(--hm-blue);
}

/* ---------- Buttons ---------- */

.hm-btn {
  display: inline-block;
  background: var(--hm-blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--hm-radius);
  border: 2px solid var(--hm-blue);
}
.hm-btn:hover { background: var(--hm-navy); border-color: var(--hm-navy); color: #ffffff; }

.hm-btn--ghost {
  background: transparent;
  color: var(--hm-blue);
}
.hm-btn--ghost:hover { background: var(--hm-blue-tint); color: var(--hm-navy); }

.hm-btn--light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--hm-navy);
}
.hm-btn--light:hover { background: var(--hm-blue-tint); border-color: var(--hm-blue-tint); color: var(--hm-navy); }

/* ---------- Hero ---------- */

.hm-hero {
  background: var(--hm-white);
  border-bottom: 1px solid var(--hm-line);
}
.hm-hero .hm-wrap {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hm-hero h1 { max-width: 16em; }
.hm-hero p.hm-lead {
  font-size: 1.15rem;
  color: var(--hm-muted);
  max-width: 34em;
}
.hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hm-contact-card {
  background: var(--hm-blue-tint);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  padding: 1.5rem;
}
.hm-contact-card h3 { margin-top: 0; }
.hm-contact-card ul { list-style: none; margin: 0; padding: 0; }
.hm-contact-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hm-line);
  font-size: 0.95rem;
}
.hm-contact-card li:last-child { border-bottom: none; }
.hm-contact-card strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hm-navy);
}
.hm-contact-card a { text-decoration: none; font-weight: 600; }

/* ---------- Sections ---------- */

.hm-section { padding: 4rem 0; }
.hm-section--alt {
  background: var(--hm-white);
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
}
.hm-section-head { max-width: 44em; margin-bottom: 2.5rem; }
.hm-section-head p { color: var(--hm-muted); }

.hm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hm-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-top: 4px solid var(--hm-blue);
  border-radius: var(--hm-radius);
  padding: 1.75rem;
}
.hm-section--alt .hm-card { background: var(--hm-paper); }
.hm-card h3 { margin-top: 0; }
.hm-card p { color: var(--hm-muted); font-size: 0.97rem; }
.hm-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--hm-muted);
  font-size: 0.95rem;
}
.hm-card li { margin-bottom: 0.35rem; }

/* ---------- Process steps ---------- */

.hm-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: hm-step;
}
.hm-steps > div {
  background: var(--hm-paper);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  padding: 1.5rem;
  counter-increment: hm-step;
}
.hm-steps > div::before {
  content: counter(hm-step, decimal-leading-zero);
  display: block;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--hm-blue);
  margin-bottom: 0.5rem;
}
.hm-steps h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.hm-steps p { color: var(--hm-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Social service band ---------- */

.hm-band {
  background: var(--hm-navy);
  color: #dce8f4;
}
.hm-band .hm-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.hm-band h2 { color: #ffffff; margin-bottom: 0.4rem; }
.hm-band p { margin: 0; max-width: 38em; color: #b9cfe5; }
.hm-band .hm-eyebrow { color: #8fb5da; }

/* ---------- Page content ---------- */

.hm-page-title {
  background: var(--hm-white);
  border-bottom: 1px solid var(--hm-line);
  padding: 3rem 0 2.5rem;
}
.hm-page-title p { color: var(--hm-muted); max-width: 44em; margin: 0; font-size: 1.1rem; }

.hm-content { padding: 3rem 0 4rem; }
.hm-content .hm-prose { max-width: 44em; }
.hm-prose h2 { margin-top: 2rem; }
.hm-prose ul { padding-left: 1.2rem; }
.hm-prose li { margin-bottom: 0.4rem; }

/* Two-column card layout inside pages */
.hm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

/* ---------- Contact section ---------- */

.hm-contact-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hm-contact-bottom .hm-section-head { margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */

.hm-footer {
  background: var(--hm-navy);
  color: #b9cfe5;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.hm-footer .hm-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.hm-footer a { color: #ffffff; text-decoration: none; }
.hm-footer a:hover { text-decoration: underline; }
.hm-footer-brand {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- WordPress core alignment ---------- */

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hm-hero .hm-wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hm-grid-3, .hm-grid-2, .hm-contact-bottom { grid-template-columns: 1fr; }
  .hm-contact-bottom { gap: 2rem; }
  .hm-steps { grid-template-columns: 1fr 1fr; }
  .hm-section { padding: 2.75rem 0; }
  .hm-topbar .hm-wrap { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .hm-steps { grid-template-columns: 1fr; }
  .hm-header .hm-wrap { flex-direction: column; align-items: flex-start; }
}
