/* Open Arms Care — public website styles.
   2026 Brand Guidelines: Poppins (headings), Open Sans (body),
   Sage #88CD6A, Forest #5FA344, Periwinkle #8FB4F5, Violet #7A68D6,
   Slate #303642, Warm Cream #F5F3DE.
   Darker shades below are used wherever text sits on a color, so every
   text/background pair meets WCAG AA contrast. No inline styles anywhere:
   the Content-Security-Policy allows stylesheets from this site only. */

@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --sage: #88cd6a;
  --forest: #5fa344;
  --forest-text: #3d7a26;      /* forest darkened for text on white (5.1:1) */
  --periwinkle: #8fb4f5;
  --violet: #7a68d6;
  --violet-text: #5444b5;      /* violet darkened for text on white (7:1) */
  --slate: #303642;
  --slate-mark: #313541;       /* exact background of the dark logo image */
  --cream: #f5f3de;
  --white: #ffffff;
  --ink: #303642;
  --ink-soft: #4d5566;
  --line: #dfe3ea;
  --page: #ffffff;
  --tint: #f7f8fc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(48, 54, 66, 0.08);
  --wrap: 72rem;
  --head: "Poppins", "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--violet-text); text-underline-offset: 0.18em; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 48rem) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--slate); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate); }
.brand img { width: 30px; height: 48px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; line-height: 1.1; }
.brand-name .care { color: var(--forest-text); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a {
  display: inline-block; padding: 8px 10px; border-radius: 8px;
  font-family: var(--head); font-weight: 600; font-size: 0.95rem;
  color: var(--slate); text-decoration: none;
}
.site-nav a:hover { background: var(--tint); color: var(--violet-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, #5a49bf 0%, #5266c6 45%, #4a76c4 75%, #3f7f72 100%);
}
.hero::before {
  content: ""; position: absolute; right: -18vw; top: -30vw; width: 60vw; height: 60vw;
  max-width: 44rem; max-height: 44rem; border-radius: 50%;
  background: rgba(48, 54, 66, 0.28);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--violet), var(--periwinkle), var(--sage));
}
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 72px; }
@media (min-width: 48rem) { .hero .wrap { padding-top: 104px; padding-bottom: 112px; } }
.eyebrow {
  font-family: var(--head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero h1 { max-width: 16em; }
.hero .lead { font-size: 1.15rem; max-width: 36em; margin-bottom: 2rem; }
.hero .tagline { font-style: italic; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--sage); color: var(--slate); }
.btn-primary:hover { background: var(--cream); color: var(--slate); }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--violet-text); }
.btn-dark { background: var(--slate); color: var(--white); }
.btn-dark:hover { background: var(--violet-text); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 48rem) { .section { padding: 88px 0; } }
.section-tint { background: var(--tint); }
.section-cream { background: var(--cream); }
.section-head { max-width: 44rem; margin-bottom: 36px; }
.section-head .kicker {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest-text); margin-bottom: 0.5rem;
}
.section-head p { color: var(--ink-soft); }

.grid { display: grid; gap: 20px; }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; border-top: 5px solid var(--sage);
}
.card.violet { border-top-color: var(--violet); }
.card.periwinkle { border-top-color: var(--periwinkle); }
.card p:last-child { margin-bottom: 0; }

.statement { font-size: 1.08rem; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px;
  border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px #e3f3da;
}

.note { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Homes ---------- */
.home { padding: 22px 24px; border-left: 5px solid var(--sage); background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.home h3 { margin-bottom: 0.2em; }
.home p { margin: 0; color: var(--ink-soft); }

.gallery-title { margin-top: 48px; }
.gallery { display: grid; gap: 20px; }
@media (min-width: 40rem) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery figure { grid-column: span 2; }
  .gallery figure.wide { grid-column: span 3; }
}
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 16px; font-family: var(--head); font-weight: 600; font-size: 0.95rem; }

/* ---------- Get started ---------- */
.start-card { display: flex; flex-direction: column; align-items: flex-start; }
.start-card p { flex: 1; }

/* ---------- Team ---------- */
.team { text-align: center; }
.avatar {
  width: 128px; height: 128px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--cream);
}
.avatar-initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet-text), #4a76c4); color: var(--white);
  font-family: var(--head); font-weight: 700; font-size: 2.1rem; letter-spacing: 0.04em;
}
.role { font-style: italic; color: var(--forest-text); margin-bottom: 0.8em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 2fr; gap: 40px; } }
.contact-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list .label {
  display: block; font-family: var(--head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}

.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
@media (min-width: 48rem) { .form { padding: 32px; } }
.form-row { display: grid; gap: 18px; }
@media (min-width: 40rem) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label, .field legend {
  display: block; font-family: var(--head); font-weight: 600; font-size: 0.95rem; margin-bottom: 6px;
}
.field .hint { font-family: var(--body); font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #b9c0cc; border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus, .field textarea:focus { border-color: var(--violet); outline: 3px solid #d9d3f5; outline-offset: 0; }
.field textarea { min-height: 140px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field label.choice {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px;
  font-family: var(--body); font-weight: 400; font-size: 1rem;
}
.choice input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--violet-text); flex: none; }
.privacy-callout {
  background: var(--cream); border-left: 4px solid var(--forest); padding: 12px 16px;
  border-radius: 0 10px 10px 0; font-size: 0.95rem; margin-bottom: 20px;
}
/* Spam trap: real people never see or fill this field. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Simple pages (privacy, terms, messages) ---------- */
.page-head { background: linear-gradient(135deg, #5a49bf 0%, #4a76c4 100%); color: var(--white); }
.page-head .wrap { padding-top: 48px; padding-bottom: 48px; }
.page-head p { margin: 0; }
.page-head a { color: var(--white); }
.doc > * { max-width: 46rem; }
.doc h2 { margin-top: 1.6em; padding-top: 0.4em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.5em; }
.doc .meta { color: var(--ink-soft); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 56px 0 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-mark); color: #e7e9ee; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--sage); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 30px; height: 48px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name .care { color: var(--sage); }
.site-footer h2 {
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.8em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #c9cdd6;
}
