/* ── MaPa Care — Shared Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ma:          #B85C7A;   /* warm rose — Ma */
  --pa:          #1B6E6B;   /* teal — Pa */
  --ma-light:    #F9EDF2;
  --pa-light:    #E4EEEC;
  --slate:       #1C2B2A;
  --slate-mid:   #3D5250;
  --slate-soft:  #6B8280;
  --amber:       #D4880E;
  --bg:          #F7F9F8;
  --white:       #FFFFFF;
  --border:      #D6E2E0;
  --serif:       'DM Serif Display', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,249,248,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  height: 62px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 2px; }
.nav-logo .ma { font-family: var(--serif); font-size: 1.4rem; color: var(--ma); }
.nav-logo .pa { font-family: var(--serif); font-size: 1.4rem; color: var(--pa); }
.nav-logo .care { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: var(--slate-soft); letter-spacing: 0.05em; margin-left: 4px; align-self: flex-end; margin-bottom: 3px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.875rem; color: var(--slate-mid); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--pa); }
.nav-links a.ma-link:hover { color: var(--ma); }
@media (max-width: 600px) { .nav-links { display: none; } }
.nav-cta {
  background: var(--pa); color: var(--white);
  border: none; border-radius: 8px; padding: 9px 18px;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* BUTTONS */
.btn-primary {
  display: inline-block; background: var(--pa); color: var(--white);
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 15px 32px; border-radius: 12px; text-decoration: none;
  border: none; cursor: pointer; transition: opacity 0.2s, transform 0.1s;
  text-align: center;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary.ma { background: var(--ma); }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--border); color: var(--slate);
  font-size: 0.925rem; font-weight: 500; padding: 13px 28px;
  border-radius: 12px; text-decoration: none; transition: all 0.2s; text-align: center;
}
.btn-outline:hover { border-color: var(--pa); color: var(--pa); }
.btn-ghost { color: var(--pa); font-size: 0.9rem; text-decoration: none; font-weight: 500; }
.btn-ghost:hover { text-decoration: underline; }
.btn-ghost.ma { color: var(--ma); }

/* SECTION LABELS */
.label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pa); margin-bottom: 10px;
  display: block;
}
.label.ma { color: var(--ma); }
.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--slate); line-height: 1.25; margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; color: var(--slate-mid); line-height: 1.7;
  max-width: 600px; margin-bottom: 48px;
}

/* CARDS */
.card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 28px;
}

/* FAQ */
.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 0; font-family: var(--sans); font-size: 0.95rem;
  font-weight: 600; color: var(--slate); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { color: var(--pa); }
.faq-icon { font-size: 1.2rem; color: var(--pa); flex-shrink: 0; transition: transform 0.2s; }
.faq-a { font-size: 0.9rem; color: var(--slate-mid); line-height: 1.7; padding-bottom: 18px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(28,43,42,0.7); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 20px; padding: 36px 28px;
  max-width: 460px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; font-size: 1.4rem;
  color: var(--slate-soft); cursor: pointer;
}
.modal h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--slate); margin-bottom: 6px; }
.modal > p { font-size: 0.875rem; color: var(--slate-mid); margin-bottom: 24px; line-height: 1.55; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--slate); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: var(--sans); font-size: 0.9rem;
  color: var(--slate); background: var(--bg); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--pa); }
.form-group textarea { min-height: 72px; resize: vertical; }
.form-submit {
  width: 100%; background: var(--pa); color: var(--white); border: none;
  border-radius: 10px; padding: 13px; font-family: var(--sans);
  font-size: 0.975rem; font-weight: 600; cursor: pointer; margin-top: 6px; transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.88; }
/* Netlify Forms honeypot — must stay in the DOM but never be seen */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  display: none; margin-top: 12px; padding: 10px 12px;
  border-radius: 8px; background: #FBEAEA; border: 1px solid #E4B5B5;
  font-size: 0.8rem; color: #8A3A3A; line-height: 1.5;
}
.form-error.show { display: block; }
.form-error a { color: #8A3A3A; }
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-success { display: none; text-align: center; padding: 16px 0; }
.form-success .success-icon { font-size: 2.2rem; margin-bottom: 10px; }
.form-success h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--slate); margin-bottom: 8px; }
.form-success p { font-size: 0.875rem; color: var(--slate-mid); margin-bottom: 0; }

/* FOOTER */
footer { padding: 36px 24px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: start;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.footer-logo-wrap .ma { font-family: var(--serif); font-size: 1.2rem; color: var(--ma); }
.footer-logo-wrap .pa { font-family: var(--serif); font-size: 1.2rem; color: var(--pa); }
.footer-logo-wrap .care { font-family: var(--sans); font-size: 0.75rem; color: var(--slate-soft); margin-left: 3px; align-self: flex-end; margin-bottom: 2px; }
.footer-tagline { font-size: 0.8rem; color: var(--slate-soft); margin-bottom: 12px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--slate-soft); text-decoration: none; }
.footer-links a:hover { color: var(--pa); }
.footer-right { text-align: right; }
.footer-right p { font-size: 0.78rem; color: var(--slate-soft); line-height: 1.6; }

/* SHARED JS helpers */
