/*
Theme Name: Noble Health Care
Theme URI: https://www.nobleinhomecare.com
Author: Noble Health Care Services
Description: Custom theme for Noble Health Care Services, home care in Laurel, MD. Pages: Home, About, Services, Contact.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: noble
*/

:root {
  --green: #01972c;
  --green-dark: #02581b;
  --lime: #7eb01d;
  --red: #e8161c;
  --navy: #1b4b7a;
  --ink: #17231b;
  --muted: #55645a;
  --paper: #ffffff;
  --mist: #f2f7f3;
  --line: #d9e4db;
  --radius: 6px;
  --wrap: 1120px;
  --font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b80f14; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-line { border-color: var(--green-dark); color: var(--green-dark); background: transparent; }
.btn-line:hover { background: var(--green-dark); color: #fff; }

/* ---------- Header ---------- */
.topbar { background: var(--green-dark); color: #fff; font-family: var(--font-head); font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .45rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { width: 62px; height: 62px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.1; color: var(--red); }
.brand-name small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: .2rem; }

.nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; align-items: center; }
.nav a {
  font-family: var(--font-head);
  font-size: .98rem;
  text-decoration: none;
  color: var(--ink);
  padding: .55rem .9rem;
  border-radius: var(--radius);
  display: block;
}
.nav a:hover { background: var(--mist); color: var(--green-dark); }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .nav-cta a { background: var(--red); color: #fff; margin-left: .5rem; }
.nav .nav-cta a:hover { background: #b80f14; color: #fff; }

.menu-toggle { display: none; background: none; border: 2px solid var(--green-dark); border-radius: var(--radius); padding: .5rem .8rem; font-family: var(--font-head); color: var(--green-dark); cursor: pointer; }

/* ---------- Hero (diagonal stripes from the flyer) ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero .stripes { position: absolute; inset: 0 auto 0 0; width: 46%; pointer-events: none; }
.hero .stripes span { position: absolute; top: 0; bottom: 0; transform: skewX(-24deg); transform-origin: top left; }
.hero .stripes .s1 { left: -8%; width: 22%; background: var(--green); }
.hero .stripes .s2 { left: 12%; width: 12%; background: var(--lime); }
.hero .stripes .s3 { left: 22%; width: 10%; background: var(--red); }
.hero .stripes .s4 { left: 30%; width: 2.2%; background: var(--navy); }
.hero .wrap { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; padding-block: clamp(3rem, 8vw, 6rem); align-items: center; }
.hero-logo { justify-self: center; }
.hero-logo img { width: min(260px, 60vw); border-radius: 50%; border: 10px solid var(--red); background: #fff; box-shadow: 0 0 0 6px #fff; }
.hero h1 { color: var(--red); text-transform: uppercase; font-weight: 700; margin-bottom: .3em; }
.hero .tagline { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 600; line-height: 1.35; margin-bottom: 1.2rem; }
.hero-phone { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); color: var(--red); text-decoration: none; display: inline-block; line-height: 1; margin-bottom: 1.4rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.mist { background: var(--mist); }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* services list: rows, not cards */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: 4px 1fr; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.service-list li::before { content: ""; background: var(--green); border-radius: 2px; }
.service-list li:nth-child(3n+2)::before { background: var(--red); }
.service-list li:nth-child(3n)::before { background: var(--navy); }
.service-list h3 { margin-bottom: .25em; }
.service-list p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { padding-left: 1.9rem; position: relative; margin-bottom: .8rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .95rem; height: .5rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.values div { border-top: 4px solid var(--green); padding-top: 1rem; }
.values div:nth-child(2) { border-color: var(--red); }
.values div:nth-child(3) { border-color: var(--navy); }

/* CTA band */
.cta-band { background: var(--green-dark); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 220px; background: linear-gradient(90deg, var(--red) 0 55%, var(--navy) 55% 62%, var(--lime) 62% 100%); transform: skewX(-24deg); opacity: .95; }
.cta-band .wrap { position: relative; z-index: 1; padding-block: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; }
.cta-band .btn { margin-right: 220px; }

/* page header */
.page-head { background: var(--green-dark); color: #fff; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: 8%; top: 0; bottom: 0; width: 70px; background: var(--red); transform: skewX(-24deg); box-shadow: 40px 0 0 var(--lime), 70px 0 0 var(--navy); }
.page-head .wrap { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { color: #fff; margin: 0 0 .3em; }
.page-head p { margin: 0; font-size: 1.15rem; max-width: 52ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--muted); }
.contact-list a, .contact-list span { font-size: 1.1rem; }
.map-note { background: var(--mist); border-left: 4px solid var(--green); padding: 1rem 1.2rem; border-radius: var(--radius); }

.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .95rem; margin-bottom: .35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(1,151,44,.2); }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-family: var(--font-head); font-size: .98rem; }
.notice.ok { background: #e6f5ea; border-left: 4px solid var(--green); }
.notice.err { background: #fdeaea; border-left: 4px solid var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #0f1f15; color: #d6e2d9; padding-top: 3.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3b5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand span { font-family: var(--font-head); font-weight: 600; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; font-size: .88rem; color: #9db1a3; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
  .hero .stripes { width: 100%; opacity: .12; }
  .hero .wrap, .split, .contact-grid, .footer-grid, .values { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .cta-band::after { display: none; }
  .cta-band .btn { margin-right: 0; }
  .page-head::after { right: -10px; width: 40px; box-shadow: 24px 0 0 var(--lime); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
