/* Rise Care Community — responsive static website */
:root {
  --navy: #063d55;
  --navy-dark: #022f43;
  --navy-deep: #01283a;
  --green: #789777;
  --green-dark: #416b57;
  --green-pale: #eef4ea;
  --orange: #f45a0b;
  --orange-dark: #d84400;
  --orange-pale: #fff1e8;
  --ink: #0b3550;
  --body: #263e4e;
  --muted: #647682;
  --line: #dce4e7;
  --surface: #ffffff;
  --shadow: 0 14px 34px rgba(4, 49, 68, .10);
  --radius: 16px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(244,90,11,.35); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.eyebrow { color: var(--orange); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .35rem; }
.section-title, h1, h2, h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 .55rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.35rem); max-width: 720px; }
.small { font-size: .92rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { 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 { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(220,228,231,.8); backdrop-filter: blur(12px); }
.header-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo-link { flex: 0 0 auto; }
.logo { width: 235px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .96rem; color: var(--ink); padding: 12px 2px 10px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); width: 46px; height: 46px; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px auto; content: ""; transition: .2s; }
.menu-toggle.open span { opacity: 0; }
.menu-toggle.open::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open::after { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 12px 25px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(4,49,68,.15); }
.btn-orange { color: #fff; background: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.78); background: transparent; }
.btn-outline-dark { color: var(--ink); border-color: var(--ink); background: #fff; }
.btn-phone { color: #fff; background: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* Hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr); min-height: 470px; }
.hero-copy { position: relative; padding: 70px max(20px, calc((100vw - var(--container))/2 + 20px)) 64px max(20px, calc((100vw - var(--container))/2)); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(110deg, var(--navy-dark), var(--navy) 75%, #0a4d67); }
.hero-copy::after { content: ""; position: absolute; inset: 0 -110px 0 auto; width: 160px; background: linear-gradient(90deg, var(--navy) 0%, rgba(6,61,85,0) 100%); z-index: 2; pointer-events: none; }
.hero-copy > * { position: relative; z-index: 3; }
.hero h1, .hero p { color: #fff; }
.hero p { max-width: 650px; }
.hero-photo { position: relative; min-height: 470px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,61,85,.35), transparent 45%); pointer-events: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 2.1rem; }
.hero-meta-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .93rem; }
.hero-meta-item svg { width: 30px; height: 30px; color: #a8b987; flex: 0 0 auto; }

/* Generic sections */
.section { padding: 82px 0; }
.section-soft { background: #fbfcfc; }
.section-tight { padding: 52px 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 3px 12px rgba(4,49,68,.035); }
.card:hover { box-shadow: var(--shadow); }
.icon-circle { width: 66px; height: 66px; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); display: grid; place-items: center; margin-bottom: 16px; flex: 0 0 auto; }
.icon-circle svg { width: 34px; height: 34px; }
.feature-strip { border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { text-align: center; padding: 34px 24px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature svg { width: 44px; height: 44px; color: var(--green-dark); margin-bottom: 8px; }
.feature strong { display: block; color: var(--ink); line-height: 1.3; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 38px; }
.process-step { text-align: center; position: relative; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 42px; left: calc(50% + 54px); width: calc(100% - 72px); border-top: 2px dashed #71909f; }
.step-badge { position: absolute; top: -4px; left: calc(50% - 50px); width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; z-index: 2; }
.process-step .icon-circle { margin: 0 auto 16px; }
.notice { display: flex; gap: 14px; align-items: flex-start; max-width: 880px; margin: 34px auto 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.notice svg { width: 26px; height: 26px; color: var(--green-dark); flex: 0 0 auto; }
.emergency-strip { background: var(--orange-pale); border-top: 1px solid #ffd9c1; border-bottom: 1px solid #ffd9c1; color: var(--ink); }
.emergency-inner { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 0; }
.emergency-inner svg { width: 32px; height: 32px; color: var(--orange); flex: 0 0 auto; }
.emergency-inner strong { color: var(--orange-dark); }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--navy-dark), #00506d); color: #fff; }
.cta-inner { min-height: 145px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 28px; }
.cta-copy { display: flex; align-items: center; gap: 24px; }
.cta-copy svg { width: 76px; height: 76px; color: #fff; flex: 0 0 auto; }
.cta-copy h2 { color: #fff; margin: 0; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.cta-copy span { color: #a8b987; display: block; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* Footer */
.site-footer { background: #fff; }
.footer-main { padding: 48px 0 40px; display: grid; grid-template-columns: 240px 1fr 180px; gap: 44px; align-items: start; }
.footer-logo { width: 210px; }
.footer-contact { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 44px; display: grid; gap: 12px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.contact-line svg { width: 23px; height: 23px; color: var(--green-dark); flex: 0 0 auto; margin-top: 2px; }
.footer-links strong { display: block; color: var(--ink); margin-bottom: 8px; }
.footer-links a { display: block; text-decoration: none; margin: 4px 0; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { background: var(--navy-deep); color: #fff; font-size: .9rem; }
.footer-bottom-inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* About */
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -70px; position: relative; z-index: 4; }
.big-card { padding: 38px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 34px; }
.value { text-align: center; padding: 20px 28px; border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; }
.value .icon-circle { margin: 0 auto 15px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.service-card .icon-circle { width: 58px; height: 58px; margin: 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.tier { position: relative; overflow: hidden; }
.tier::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--green-dark); }
.tier:nth-child(2)::before { background: #c97800; }
.tier:nth-child(3)::before { background: #bf4a4a; }
.tier-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tier-number { width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--green-dark); display: grid; place-items: center; font-weight: 900; }
.tier:nth-child(2) .tier-number { background: #c97800; }
.tier:nth-child(3) .tier-number { background: #bf4a4a; }
.pill { display: inline-block; border-radius: 999px; padding: 5px 11px; font-size: .82rem; font-weight: 800; background: var(--green-pale); color: var(--green-dark); }
.tier:nth-child(2) .pill { background: #fff2d7; color: #a66000; }
.tier:nth-child(3) .pill { background: #ffe9e9; color: #a93e3e; }

/* Contact/referral */
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.form-card { padding: 32px; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 800; color: var(--ink); margin-bottom: 6px; font-size: .94rem; }
input, select, textarea { width: 100%; border: 1px solid #ccd8dd; border-radius: 7px; padding: 12px 13px; color: var(--body); background: #fff; }
textarea { min-height: 125px; resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: auto; margin-top: 6px; }
.checkbox label { font-weight: 500; margin: 0; }
.form-status { min-height: 24px; color: var(--green-dark); font-weight: 700; }
.contact-stack { display: grid; gap: 14px; }
.info-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.info-box .icon-circle { margin: 0; width: 58px; height: 58px; }
.info-box h3 { font-size: 1.25rem; margin-bottom: 1px; }
.info-box p, .info-box a { margin: 0; text-decoration: none; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.help-card .icon-circle { width: 55px; height: 55px; margin: 0; }

.referral-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.check-list { margin: 0; padding-left: 1.25rem; }
.check-list li { margin: .5rem 0; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 26px; }
.next-step { display: grid; grid-template-columns: auto 1fr; gap: 15px; }
.next-step svg { width: 42px; height: 42px; color: var(--green-dark); }
.callout { background: var(--green-pale); border-left: 5px solid var(--green-dark); border-radius: 10px; padding: 20px 22px; margin-top: 28px; }

/* Mobile */
@media (max-width: 980px) {
  .header-inner { min-height: 82px; }
  .logo { width: 195px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 82px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin: 14px 0 0; border: 0; text-align: center; color: #fff; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 430px; padding: 58px 30px 50px; }
  .hero-copy::after { display: none; }
  .hero-photo { min-height: 360px; }
  .card-grid, .service-grid, .tiers, .help-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2), .value:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2), .value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split-cards { margin-top: 0; padding-top: 40px; }
  .two-col { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 210px 1fr; }
  .footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline; }
  .footer-links strong { width: 100%; }
  .footer-links a { display: inline-block; }
  .footer-contact { border-right: 0; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, var(--container)); }
  .logo { width: 178px; }
  .hero-copy { min-height: auto; padding: 52px 22px 45px; }
  .hero-photo { min-height: 300px; }
  .hero-meta { display: grid; gap: 13px; }
  .section { padding: 62px 0; }
  .section-tight { padding: 42px 0; }
  .card-grid, .service-grid, .tiers, .split-cards, .help-grid, .referral-panels, .next-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-step:not(:last-child)::after { display: none; }
  .feature-grid, .values-grid { grid-template-columns: 1fr; }
  .feature, .value { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .feature:last-child, .value:last-child { border-bottom: 0; }
  .big-card { grid-template-columns: 1fr; padding: 28px; }
  .big-card .icon-circle { margin-bottom: 0; }
  .service-card { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: stretch; }
  .cta-copy { align-items: flex-start; }
  .cta-copy svg { width: 58px; height: 58px; }
  .cta-actions { justify-content: flex-start; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-contact { border: 0; padding: 0; }
  .footer-bottom-inner { min-height: auto; padding: 16px 0; flex-direction: column; text-align: center; gap: 5px; }
  .emergency-inner { align-items: flex-start; }
}

/* Website form helpers */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status.error { color: #9b2c2c; }
.form-grid button[disabled] { opacity: .7; cursor: wait; }

/* Expanded About / residential service detail */
.story-wrap { max-width: 1080px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-top: 38px; text-align: left; }
.story-grid p { margin-bottom: 1.15rem; }
.story-quote { margin: 34px auto 0; max-width: 900px; padding: 25px 30px; text-align: center; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.35; background: var(--green-pale); border-left: 5px solid var(--green-dark); border-radius: 12px; }
.mission-card { border-top: 4px solid var(--green-dark); }
.mission-card .eyebrow { margin-bottom: .4rem; }
.core-values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; text-align: left; }
.core-value { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.core-value .icon-circle { margin: 0; }
.core-value p { margin-bottom: 0; }
.tier-intro { max-width: 920px; }
.tiers-detailed .tier { padding: 30px; }
.tiers-detailed .tier h4 { color: var(--ink); margin: 22px 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.tiers-detailed .tier .check-list { font-size: .95rem; line-height: 1.48; }
.tiers-detailed .tier .check-list li { margin: .7rem 0; }
.tier-note { margin: 28px 0 0; padding: 18px 20px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
@media (max-width: 980px) { .story-grid { grid-template-columns: 1fr; gap: 0; } .core-values-grid { grid-template-columns: 1fr; } .tiers-detailed { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .core-value { grid-template-columns: 1fr; } .story-quote { padding: 22px; } }

/* About page single mission card */
.mission-only-grid { grid-template-columns: 1fr; max-width: 1050px; margin-inline: auto; }
.mission-only { grid-template-columns: auto 1fr; }
.mission-only .icon-circle { align-self: start; }
@media (max-width: 700px) {
  .mission-only { grid-template-columns: 1fr; }
}
