/*
Theme Name: Senior and Solo
Theme URI: https://SeniorAndSolo.com
Author: Senior and Solo
Description: Warm, accessible WordPress theme for practical independent-living guidance after 60.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: senior-and-solo
*/

:root {
  --cream: #fff8ee;
  --cream-deep: #f5eadb;
  --terracotta: #c86f52;
  --terracotta-dark: #9f4f38;
  --amber: #d6a84b;
  --sage: #7d9273;
  --teal: #245f61;
  --cocoa: #493a34;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(73, 58, 52, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cocoa);
  background: var(--cream);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: var(--teal); }
a:hover, a:focus { color: var(--terracotta-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--cocoa); color: white; padding: 10px; z-index: 999; }
.skip-link:focus { left: 8px; }

.site-header { background: rgba(255,248,238,.96); border-bottom: 1px solid #e7d8c7; position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { text-decoration: none; color: var(--cocoa); }
.site-title { display: block; font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; line-height: 1.05; }
.site-tagline { display: block; font-size: .78rem; color: #6f5c53; letter-spacing: .04em; margin-top: 6px; }
.primary-menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: var(--cocoa); text-decoration: none; font-weight: 650; font-size: .9rem; }

.hero { background: linear-gradient(135deg, var(--cream) 0%, #f7dfcc 58%, #e4e8dc 100%); padding: 76px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 64px; }
.eyebrow { color: var(--terracotta-dark); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .8rem; }
h1, h2, h3 { font-family: Georgia, serif; color: var(--cocoa); line-height: 1.15; }
h1 { font-size: clamp(2.55rem, 6vw, 4.9rem); margin: 14px 0 22px; max-width: 800px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 18px; }
h3 { font-size: 1.35rem; }
.hero-copy { font-size: 1.18rem; max-width: 700px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-block; border-radius: 999px; padding: 13px 23px; font-weight: 750; text-decoration: none; border: 2px solid var(--terracotta); }
.button-primary { background: var(--terracotta); color: white; }
.button-primary:hover, .button-primary:focus { background: var(--terracotta-dark); color: white; }
.button-secondary { color: var(--cocoa); background: rgba(255,255,255,.55); }
.hero-portrait { background: var(--white); border-radius: 50% 50% 42% 42%; padding: 16px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-portrait img { display: block; border-radius: inherit; }

.section { padding: 78px 0; }
.section-alt { background: var(--white); }
.section-intro { max-width: 740px; margin-bottom: 38px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: white; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 7px solid var(--sage); }
.section-alt .card { background: var(--cream); }
.card:nth-child(2n) { border-top-color: var(--terracotta); }
.card:nth-child(3n) { border-top-color: var(--amber); }
.card a { font-weight: 750; }
.checkup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; background: var(--teal); color: white; border-radius: 30px; padding: 48px; }
.checkup h2 { color: white; }
.checkup .eyebrow { color: #ffdca0; }
.checkup-list { columns: 2; padding-left: 22px; }
.quote { background: #f3d5c3; border-left: 8px solid var(--terracotta); border-radius: 0 var(--radius) var(--radius) 0; padding: 34px; font-family: Georgia, serif; font-size: 1.45rem; }
.latest-video { aspect-ratio: 16/9; background: #2c2522; border-radius: var(--radius); display: grid; place-items: center; color: white; box-shadow: var(--shadow); padding: 24px; text-align: center; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 50px; }
.site-main { min-height: 55vh; }
.page-header { background: var(--cream-deep); padding: 58px 0 42px; }
.page-content { padding: 58px 0 82px; }
.page-content > * { max-width: 820px; }
.notice { background: #fff1d4; border: 1px solid #dfbd76; border-radius: 14px; padding: 18px 20px; font-size: .92rem; }

.site-footer { background: var(--cocoa); color: #f7eee6; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 42px; }
.site-footer h2, .site-footer h3 { color: white; }
.site-footer a { color: #ffdca0; }
.fine-print { border-top: 1px solid rgba(255,255,255,.18); margin-top: 34px; padding-top: 24px; font-size: .8rem; }

@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .hero-grid, .checkup, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 420px; margin-inline: auto; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .container { width: min(100% - 28px, 1120px); }
  .hero, .section { padding: 52px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .checkup { padding: 30px 24px; }
  .checkup-list { columns: 1; }
}

.promise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.promise span { background: rgba(255,255,255,.72); border-radius: 999px; font-size: .78rem; font-weight: 750; padding: 5px 11px; }
.topic-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; background: var(--cocoa); color: white; padding: 18px 5%; font-size: .82rem; font-weight: 750; }
.topic-strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.four-cards { grid-template-columns: repeat(4, 1fr); }
.video-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 58px; }
.video-grid video { display: block; width: 100%; background: #172f31; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-grid blockquote { border-left: 6px solid var(--terracotta); font-family: Georgia, serif; font-size: 1.2rem; margin: 28px 0 0; padding: 14px 0 14px 20px; }
.upcoming-section { background: #f5eadb; }
.week-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.week-card { background: white; border: 1px solid #e3d2c1; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.week-card.current { border-top: 7px solid var(--terracotta); }
.week-card > span { color: var(--terracotta-dark); font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.product-note { background: var(--teal); color: white; border-radius: 16px; margin: 28px 0 0; padding: 18px 22px; }
.checkup-band { background: var(--teal); }
.checkup-band .checkup { padding-block: 20px; }
.button-light { background: var(--cream); border-color: var(--cream); color: var(--teal); cursor: pointer; }
.subscribe-box { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.form-placeholder { display: grid; gap: 6px; background: white; border: 2px dashed var(--terracotta); border-radius: 18px; padding: 28px; }
.form-placeholder span { font-size: .9rem; }
.about-grid { display: grid; grid-template-columns: .45fr 1.55fr; gap: 52px; align-items: start; }
.about-number { color: var(--terracotta); font-family: Georgia, serif; font-size: clamp(6rem, 15vw, 12rem); line-height: .8; }
.about-number span { font-size: .35em; vertical-align: top; }
.disclosure { border-top: 1px solid #d9c8b7; color: #6d5b53; font-size: .82rem; margin-top: 28px; padding-top: 18px; }
dialog { width: min(720px, calc(100% - 32px)); max-height: 90vh; border: 0; border-radius: 26px; padding: 32px; background: var(--cream); color: var(--cocoa); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(23,72,74,.68); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dialog-head button { border: 0; border-radius: 50%; background: var(--cocoa); color: white; cursor: pointer; width: 40px; height: 40px; font-size: 1.5rem; }
.progress { height: 10px; background: #e5d8c9; border-radius: 99px; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--teal); transition: width .25s; }
.interactive-checklist { display: grid; gap: 10px; margin: 24px 0; }
.check-item { display: flex; gap: 12px; align-items: flex-start; background: white; border-radius: 12px; padding: 13px 16px; }
.check-item input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--teal); }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.text-button { border: 0; background: transparent; color: var(--terracotta-dark); cursor: pointer; text-decoration: underline; }
@media (max-width: 1000px) { .four-cards { grid-template-columns: 1fr 1fr; } .video-grid, .subscribe-box, .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .week-grid, .four-cards { grid-template-columns: 1fr; } .topic-strip { justify-content: flex-start; } .dialog-actions { align-items: stretch; flex-direction: column; } }
@media print { body > *:not(dialog) { display: none; } dialog { display: block !important; position: static; box-shadow: none; max-height: none; width: 100%; } .dialog-head button, .dialog-actions, .progress { display: none; } .check-item { border: 1px solid #ccc; } }
