/* Devoted Home Care — main stylesheet
   Palette matched to live devotedhc.com: brand blue, ice mint, gold */

:root {
  --navy: #2A5DC6;
  --navy-deep: #1E4494;
  --navy-soft: #3D74D4;
  --cream: #EFF7F7;
  --cream-dark: #E2F0F0;
  --warm: #FFA92E;
  --warm-hover: #E8941A;
  --gold: #F9B73F;
  --text: #2D2929;
  --text-muted: #5A5A5A;
  --border: #D5E3E3;
  --white: #FFFFFF;
  --success: #5FB284;
  --focus: #2A5DC6;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(42, 93, 198, 0.10);
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--warm); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.65rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--navy); color: var(--white); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.45rem 0;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; align-items: center;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-notice { opacity: 0.9; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.site-branding a { display: inline-flex; align-items: center; text-decoration: none; }
.site-branding img { height: 48px; width: auto; }
.site-branding .wordmark {
  font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy); font-weight: 600;
}
.site-branding .tag {
  display: block; font-size: 0.68rem; letter-spacing: 0.08em; color: var(--warm);
  text-transform: uppercase; font-family: var(--font-sans); margin-top: 2px;
}

.nav-toggle {
  display: none; background: var(--navy); color: var(--white);
  border: 0; border-radius: 6px; padding: 0.55rem 0.85rem; cursor: pointer; font: inherit;
}
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.1rem; align-items: center;
}
.primary-nav a {
  display: block; padding: 0.55rem 0.7rem; color: var(--navy);
  text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: 6px;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a {
  background: var(--cream); color: var(--warm);
}
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.4rem; z-index: 100;
  flex-direction: column;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}
.header-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--warm); color: var(--white) !important; text-decoration: none !important;
  padding: 0.65rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: 0.92rem;
  white-space: nowrap;
}
.header-cta:hover { background: var(--warm-hover); color: var(--white) !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.35rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
  text-decoration: none !important; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--warm); color: var(--white) !important; }
.btn-primary:hover { background: var(--warm-hover); color: var(--white) !important; }
.btn-secondary { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white) !important; }
.btn-ghost { background: transparent; color: var(--cream) !important; border-color: rgba(247,243,235,.45); }
.btn-ghost:hover { background: rgba(247,243,235,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  color: var(--text); padding: 3.5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -20%; width: 45%; height: 140%;
  background: radial-gradient(circle, rgba(42,93,198,0.10), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.25fr 0.9fr; align-items: center; }
}
.hero-eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--success); font-weight: 600; margin-bottom: 0.75rem;
}
.hero h1 { color: var(--navy); margin-bottom: 0.75rem; }
.hero .lede { font-size: 1.15rem; color: var(--text-muted); max-width: 36rem; }
.hero-card {
  background: var(--cream); color: var(--text); border-radius: 14px;
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li {
  padding: 0.45rem 0 0.45rem 1.5rem; position: relative; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 0.98rem;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before {
  content: ""; position: absolute; left: 0; top: 0.85rem; width: 0.55rem; height: 0.55rem;
  background: var(--warm); border-radius: 50%;
}
.disambiguation {
  margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-muted);
  border-left: 3px solid var(--gold); padding-left: 0.85rem;
}
.hero .btn-ghost {
  color: var(--navy) !important;
  border-color: var(--navy);
}
.hero .btn-ghost:hover { background: var(--navy); color: var(--white) !important; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head .eyebrow {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warm); font-weight: 600; margin-bottom: 0.5rem;
}

/* Cards grid */
.grid-2 { display: grid; gap: 1.25rem; }
.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.35rem; box-shadow: 0 2px 8px rgba(27,42,74,0.04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--warm); }
.card p { color: var(--text-muted); font-size: 0.98rem; flex: 1; }
.card .card-link {
  margin-top: 0.75rem; font-weight: 600; color: var(--warm); text-decoration: none; font-size: 0.95rem;
}
.card .card-link:hover { text-decoration: underline; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.85rem;
  color: var(--navy); font-weight: 700; font-size: 0.85rem;
}

/* Trust strip */
.trust-strip {
  display: grid; gap: 1rem; padding: 1.5rem 0;
}
@media (min-width: 700px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  text-align: center; padding: 0.75rem;
}
.trust-item strong {
  display: block; font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); margin-bottom: 0.25rem;
}
.trust-item span { font-size: 0.9rem; color: var(--text-muted); }

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  color: var(--text); padding: 2.5rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--navy); }
.page-hero .lede { color: var(--text-muted); max-width: 40rem; font-size: 1.1rem; }
.breadcrumbs {
  font-size: 0.85rem; margin-bottom: 0.85rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--navy); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Content */
.content-area { padding: 2.75rem 0 3.5rem; }
.content-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 900px) {
  .content-grid.has-sidebar { grid-template-columns: 1fr 300px; }
}
.prose :where(h2) { margin-top: 1.75em; }
.prose :where(h3) { margin-top: 1.35em; }
.prose a { font-weight: 500; }
.callout {
  background: var(--cream-dark); border-left: 4px solid var(--warm);
  padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.callout.navy {
  background: var(--navy); color: var(--cream); border-left-color: var(--gold);
}
.callout.navy a { color: var(--gold); }

.sidebar-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem; position: sticky; top: calc(var(--header-h) + 1rem);
}
.sidebar-card h2 { font-size: 1.15rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.sidebar-card li { border-bottom: 1px solid var(--border); }
.sidebar-card a {
  display: block; padding: 0.55rem 0; text-decoration: none; color: var(--navy); font-weight: 500;
}
.sidebar-card a:hover { color: var(--warm); }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--warm); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.2rem 1.15rem; color: var(--text-muted); }

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--navy);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; background: var(--cream); color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--focus); outline-offset: 1px; background: var(--white);
}
.form-row .hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-notice {
  padding: 0.9rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 500;
}
.form-notice.success { background: #E6F2EE; color: var(--success); }
.form-notice.error { background: #F8E8E4; color: #8B3A2A; }
.form-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

/* Testimonials */
.quote-card {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem;
  border: 1px solid var(--border); height: 100%;
}
.quote-card blockquote {
  margin: 0 0 1rem; font-family: var(--font-serif); font-size: 1.05rem;
  color: var(--text); quotes: "“" "”";
}
.quote-card cite {
  font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.95rem;
}

/* Areas */
.area-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.area-pill {
  background: var(--cream); border: 1px solid var(--border); padding: 0.4rem 0.85rem;
  border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: 0.9rem;
}
.area-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
  color: var(--white); padding: 2.75rem 0; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(247,243,235,0.88); max-width: 36rem; margin-inline: auto; }

/* Footer */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.88); padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid; gap: 2rem; margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h2, .site-footer h3 {
  color: var(--white); font-size: 1rem; font-family: var(--font-sans);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.nap strong { color: var(--white); display: block; margin-bottom: 0.25rem; }
.footer-bottom {
  border-top: 1px solid rgba(247,243,235,0.12); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: rgba(247,243,235,0.65);
}
.footer-legal a { margin-right: 1rem; }

/* Admin notice styling not needed in front */

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1.25rem; box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav .sub-menu {
    position: static; display: none; box-shadow: none; border: 0;
    padding-left: 0.75rem; min-width: 0;
  }
  .primary-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }
  .header-cta.desktop-only { display: none; }
}
@media (min-width: 961px) {
  .header-cta.mobile-only { display: none; }
}

/* Focus visible */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Print */
@media print {
  .topbar, .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
}
