/* ===========================================================
   My Sweet Home Care — Shared Stylesheet
   =========================================================== */

:root {
  --color-primary: #1B6E6E;
  --color-primary-dark: #124F4F;
  --color-primary-light: #E4F1F0;
  --color-navy: #1E3A5F;
  --color-accent: #E08E45;
  --color-accent-dark: #C4732C;
  --color-bg: #FBFAF7;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F1F5F4;
  --color-text: #23313C;
  --color-text-muted: #55666F;
  --color-border: #E3E8E6;
  --shadow-sm: 0 1px 3px rgba(20, 40, 40, 0.08);
  --shadow-md: 0 6px 20px rgba(20, 40, 40, 0.10);
  --shadow-lg: 0 16px 40px rgba(20, 40, 40, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

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

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

img, svg { max-width: 100%; display: block; }

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

ul { padding-left: 1.2em; color: var(--color-text-muted); }
li { margin-bottom: 0.4em; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--color-navy);
  color: #EAF2F1;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #EAF2F1; }
.topbar a:hover { color: var(--color-accent); }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-links span { white-space: nowrap; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
}
.brand .logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.brand span.tagline-mini {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.96rem;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn-light:hover { background: var(--color-primary-light); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #FBFAF7 60%);
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-art {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
}
.hero-stat span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--color-surface-alt); }
.section-head {
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head .eyebrow {
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 8px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge.accent { background: #FBEADA; }

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Why choose us / features ---------- */
.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.feature-row .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.feature-row h3 { margin-bottom: 6px; font-size: 1.1rem; }
.feature-row p { margin-bottom: 0; font-size: 0.94rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-navy), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { color: #D9E7E5; margin-bottom: 0; }

/* ---------- Funding categories ---------- */
.funding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.funding-card {
  border-radius: var(--radius);
  padding: 26px;
  color: #fff;
}
.funding-card h3 { color: #fff; }
.funding-card p { color: rgba(255,255,255,0.88); font-size: 0.92rem; }
.funding-card.clinical { background: linear-gradient(160deg, #1B6E6E, #124F4F); }
.funding-card.independence { background: linear-gradient(160deg, #2C5C8A, #1E3A5F); }
.funding-card.everyday { background: linear-gradient(160deg, #E0954D, #C4732C); }

/* ---------- Service area list ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.area-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.area-card .icon-badge { margin: 0 auto 14px; }

.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 34px;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-item { text-align: center; padding: 10px; }
.value-item .icon-badge { margin: 0 auto 14px; }

/* ---------- Timeline / steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-left: 4px; }
.step .step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--font-heading);
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial p.quote {
  font-size: 1.05rem;
  color: var(--color-text);
  font-style: italic;
}
.testimonial .who { font-weight: 600; color: var(--color-navy); font-size: 0.9rem; }

/* ---------- Forms ---------- */
form.enquiry {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.field .required { color: var(--color-accent-dark); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: #fff;
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg {
  display: none;
  color: #B3261E;
  font-size: 0.82rem;
  margin-top: 6px;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #B3261E; }
.field.invalid .error-msg { display: block; }

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.form-status.success {
  display: block;
  background: #E5F4EC;
  color: #1E6B3E;
  border: 1px solid #BFE5CE;
}
.form-status.error {
  display: block;
  background: #FBEAEA;
  color: #B3261E;
  border: 1px solid #F3C6C6;
}

/* ---------- Contact info cards ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.contact-info-card .icon-badge { margin: 0 auto 12px; }
.contact-info-card a { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--color-navy);
  color: #C9D9D6;
  padding: 56px 0 24px;
  margin-top: 40px;
}
footer.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer.site-footer a { color: #C9D9D6; }
footer.site-footer a:hover { color: var(--color-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand strong { color: #fff; font-family: var(--font-heading); font-size: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #9FB4B0;
}
.placeholder-note {
  font-size: 0.78rem;
  color: #9FB4B0;
  margin-top: 6px;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy), var(--color-primary-dark));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #D9E7E5; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: #B9D2CF; margin-bottom: 14px; }
.breadcrumb a { color: #B9D2CF; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge-pill {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .funding-grid, .area-list, .values-grid, .steps, .grid-3, .contact-info-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 10px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; }
  .nav-cta { display: none; }
  .form-row, .funding-grid, .area-list, .values-grid, .steps, .grid-3, .grid-2, .contact-info-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner { flex-direction: column; text-align: center; }
  section { padding: 52px 0; }
  .hero { padding: 52px 0 60px; }
}
