/*
Theme Name: Wilkinson Comfort
Theme URI: https://wilkinsoncomfort.com/
Author: Wilkinson Comfort
Author URI: https://wilkinsoncomfort.com/
Description: A warm, family-owned home-care theme for Wilkinson Comfort — Cincinnati's 24/7 in-home care service. Features a custom homepage, About, Services, Testimonials and Contact page templates with a clean teal/navy/cream palette and Instrument Serif + Geist typography.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wilkinson-comfort
Tags: business, healthcare, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ========================================================================
   Wilkinson Comfort — Theme Styles
   (Identical to design handoff styles.css, ported into WordPress theme)
   ======================================================================== */

/* Wilkinson Comfort — shared styles */

:root {
  --teal: #31A3A1;
  --teal-deep: #258F8D;
  --teal-soft: #D6EEED;
  --teal-tint: #EDF7F6;
  --navy: #223B5E;
  --navy-deep: #14283D;
  --navy-soft: #4A6485;
  --cream: #FAF7F2;
  --cream-deep: #F1ECE2;
  --ink: #14283D;
  --muted: #6C7689;
  --line: #E6E1D6;
  --white: #FFFFFF;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 61, 0.04), 0 2px 6px rgba(20, 40, 61, 0.04);
  --shadow: 0 4px 16px rgba(20, 40, 61, 0.06), 0 1px 3px rgba(20, 40, 61, 0.04);
  --shadow-lg: 0 24px 60px rgba(20, 40, 61, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}

h1 { font-size: clamp(44px, 6vw, 84px); }
h2 { font-size: clamp(34px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 20px; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--teal-deep);
}

.italic-accent { font-style: italic; color: var(--teal); }

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(20, 40, 61, 0.06);
}
.site-header.on-hero {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Instrument Serif", serif;
  color: var(--navy);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.brand-name {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-family: "Geist", sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 500;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--teal-deep); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--teal);
  color: white;
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(34, 59, 94, 0.2);
}
.btn-ghost:hover { background: rgba(34, 59, 94, 0.05); }
.btn-white {
  background: white;
  color: var(--navy);
}
.btn-white:hover { background: var(--cream); }
.btn-arrow::after {
  content: "→";
  font-size: 16px;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: white;
  margin: 0 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 40, 61, 0.30) 0%, rgba(20, 40, 61, 0.50) 55%, rgba(20, 40, 61, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 40, 61, 0.92) 0%, rgba(20, 40, 61, 0.65) 35%, rgba(20, 40, 61, 0.25) 65%, rgba(20, 40, 61, 0) 90%);
}
.hero-inner {
  position: relative;
  padding: 140px 0 80px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 24px;
  white-space: nowrap;
  width: auto;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6FE3B7;
  box-shadow: 0 0 0 4px rgba(111, 227, 183, 0.25);
}
.hero h1 {
  color: white;
  max-width: 18ch;
  margin-bottom: 22px;
}
.hero h1 em { color: #8FD8D6; font-style: italic; }
.hero-sub {
  font-size: 19px;
  max-width: 52ch;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badges span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───────── Page header (non-home) ───────── */
.page-header {
  background: var(--cream);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-header .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.page-header .breadcrumb a:hover { color: var(--teal-deep); }
.page-header h1 {
  max-width: 22ch;
  margin: 14px 0 22px;
  line-height: 1.04;
  padding-bottom: 8px;
}
.page-header h1 .italic-accent { display: inline-block; }
.page-header .lead {
  font-size: 19px;
  color: var(--navy-soft);
  max-width: 60ch;
}
.page-header .badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ───────── Section base ───────── */
section {
  padding: 96px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head .head-left h2 { margin-top: 12px; max-width: 14ch; }
.section-head .head-right { color: var(--navy-soft); font-size: 16px; max-width: 48ch; }
.section-head.center {
  display: block;
  text-align: center;
  margin-bottom: 56px;
}
.section-head.center h2 { max-width: 22ch; margin: 16px auto 0; }

.bg-cream { background: var(--cream); }
.bg-white { background: white; }
.bg-navy { background: var(--navy); color: white; }
.bg-navy h2, .bg-navy h3 { color: white; }

/* ───────── Cards ───────── */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
}
.card-image {
  width: 100%;
  height: 180px;
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}

/* Why us 3-card row */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.why-card.featured {
  background: var(--teal);
  color: white;
  border-color: transparent;
}
.why-card.featured h3 { color: white; }
.why-card.featured p { color: rgba(255,255,255,0.9); }
.why-card h3 { font-size: 26px; line-height: 1.1; }
.why-card p { font-size: 15px; color: var(--navy-soft); }
.why-card .photo {
  height: 180px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}

/* ───────── Footer ───────── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-brand .brand { color: white; }
.footer-brand .brand-name { color: white; }
.footer-brand p {
  font-size: 14px;
  margin-top: 18px;
  max-width: 30ch;
  color: rgba(255,255,255,0.7);
}
.footer-trust {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  max-width: 28ch;
  letter-spacing: 0.04em;
}
.footer-col h5 {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--teal); }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0 32px;
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.55);
}
.footer-grid {
  border-bottom: none;
}
.footer-wordmark {
  font-family: "Instrument Serif", serif;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.08);
  white-space: nowrap;
  overflow: hidden;
  padding: 24px 0 12px;
  user-select: none;
}

/* ───────── CTA banner ───────── */
.cta-banner {
  margin: 0 16px 16px;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,163,161,0.45) 0%, transparent 70%);
}
.cta-banner-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-banner .eyebrow { color: var(--teal); }
.cta-banner .eyebrow::before { background: var(--teal); }
.cta-banner h2 { color: white; margin: 14px 0 14px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 17px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: "Instrument Serif", serif;
  font-size: 44px;
  color: var(--navy);
  line-height: 1;
}
.stat .lbl {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ───────── Mobile nav (hamburger) ───────── */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  position: relative;
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: var(--cream);
  z-index: 49;
  padding: 32px 24px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px;
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link.active { color: var(--teal-deep); }
.mobile-menu a.m-link::after {
  content: "→";
  font-family: "Geist", sans-serif;
  font-size: 18px;
  color: var(--muted);
}
.mobile-menu .m-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu .m-cta .btn { justify-content: center; width: 100%; padding: 16px; }
.mobile-menu .m-info {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--navy-soft);
  line-height: 1.7;
}
.mobile-menu .m-info strong { color: var(--navy); display: block; font-family: "Instrument Serif", serif; font-size: 18px; font-weight: 400; margin-bottom: 4px; }
body.menu-open { overflow: hidden; }

/* ───────── Tablet (≤1024) ───────── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  section { padding: 80px 0; }
  h1 { font-size: clamp(40px, 7vw, 64px); }
  h2 { font-size: clamp(30px, 5vw, 44px); }
  .nav { gap: 22px; }
  .nav a { font-size: 13px; }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .hero-inner { min-height: 560px; padding: 120px 0 64px; }
  .hero h1 { font-size: clamp(40px, 7vw, 64px); }
  .hero-sub { font-size: 17px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat .num { font-size: 36px; }
  .cta-banner { padding: 64px 32px; }
  .insurance-band { padding: 40px; }
}

/* ───────── Mobile (≤768) ───────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  h1 { font-size: clamp(34px, 9vw, 48px); }
  h2 { font-size: clamp(28px, 7vw, 38px); }
  h3 { font-size: 22px; }
  body { font-size: 15px; }

  /* nav swap */
  .nav { display: none; }
  .header-inner > .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: flex; }
  .site-header { background: var(--cream); }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 8.5px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-inner { padding: 14px 0; gap: 12px; }

  /* hero */
  .hero { margin: 0 8px; border-radius: 0 0 20px 20px; }
  .hero-inner { min-height: 520px; padding: 80px 0 48px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); margin-bottom: 16px; }
  .hero-sub { font-size: 16px; margin-bottom: 22px; }
  .hero-eyebrow { font-size: 11px; padding: 6px 12px; }
  .hero-badges { gap: 10px 14px; font-size: 12px; margin-bottom: 22px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* sections */
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .section-head .head-left h2 { max-width: 100%; }
  .section-head .head-right { font-size: 15px; }
  .services-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .value { min-height: 0; padding: 22px 18px; }
  .value h4 { font-size: 22px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* stats */
  .stats { grid-template-columns: 1fr 1fr; margin-top: -28px; }
  .stat { padding: 20px 16px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .stat .num { font-size: 32px; }
  .stat .lbl { font-size: 12px; }

  /* split blocks */
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .image { height: 320px; }
  .insurance-band { padding: 28px 22px; gap: 24px; }
  .coverage-list { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* CTA banner */
  .cta-banner { margin: 0 8px 8px; padding: 48px 22px; border-radius: 20px; }
  .cta-banner h2 { font-size: clamp(30px, 8vw, 42px); }
  .cta-banner p { font-size: 15px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* page header */
  .page-header { padding: 36px 0 44px; }
  .page-header h1 { max-width: 100%; }
  .page-header .lead { font-size: 16px; }
  .badge-row { gap: 6px; }
  .badge { font-size: 12px; padding: 6px 10px; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-col:last-child { grid-column: auto; }
  .site-footer { padding: 56px 0 0; }
  .footer-trust { max-width: 100%; }
  .footer-bottom { padding: 20px 0 28px; font-size: 11px; }
}

/* ───────── Small phones (≤420) ───────── */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero { margin: 0; border-radius: 0 0 16px 16px; }
  .cta-banner { margin: 0; border-radius: 0; }
  .values { grid-template-columns: 1fr; }
  .coverage-list { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; }
  .stat:not(:last-child) { border-bottom: 1px solid var(--line); }
}
