/* RockyRest Recovery — site styles */

:root {
  --green: #6ca455;
  --green-dark: #326952;
  --green-deep: #21473a;
  --green-tint: #eef5ea;
  --sand: #f7f5ef;
  --ink: #1f2a26;
  --muted: #55625c;
  --line: #dde4dc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(33, 71, 58, 0.08);
  --max: 1120px;
  --font-head: "Raleway", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-dark); }
a:hover { color: var(--green-deep); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--green-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-deep); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-outline { border-color: var(--green-dark); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--green-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--green-deep); }
.btn-light:hover { background: var(--green-tint); color: var(--green-deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  color: var(--green-deep); letter-spacing: 0.02em;
}
.brand-sub {
  font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.42em;
  color: var(--green-dark); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  color: var(--ink); text-decoration: none;
}
.nav a:hover { color: var(--green-dark); }
.nav .btn { color: var(--white); padding: 10px 20px; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-deep);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(108, 164, 85, 0.16), transparent 45%),
    linear-gradient(180deg, var(--green-tint) 0%, var(--white) 100%);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--green-dark);
  border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 340px); opacity: 0.95; }

@media (max-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 140px; }
}

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--sand); }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
  margin-bottom: 10px;
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-quote {
  background: var(--green-deep); color: var(--white);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow);
}
.about-quote p { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; margin: 0; }
.about-quote .mark { width: 54px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.9; }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-tint); color: var(--green-dark);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Homes */
.homes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.home-card {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.home-photo {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(50, 105, 82, 0.92), rgba(108, 164, 85, 0.85));
  display: grid; place-items: center; color: var(--white);
  font-family: var(--font-head); font-weight: 600; text-align: center; padding: 20px;
}
.home-photo img.mark { width: 64px; filter: brightness(0) invert(1); opacity: 0.85; margin: 0 auto 10px; }
.home-body { padding: 24px 26px 28px; }
.home-body p { color: var(--muted); margin: 0; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 0.98rem; color: var(--ink);
}
.status svg { width: 18px; height: 18px; color: var(--green); flex: none; }
@media (max-width: 760px) { .homes-grid { grid-template-columns: 1fr; } }

/* Who we serve */
.serve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 36px; margin-bottom: 14px;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23326952' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.referral-box {
  background: var(--green-tint); border-radius: var(--radius); padding: 34px;
}
.referral-box .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.tag {
  background: var(--white); border-radius: 999px; padding: 6px 14px;
  font-size: 0.95rem; color: var(--green-deep); font-weight: 600;
}
@media (max-width: 880px) { .serve-grid { grid-template-columns: 1fr; gap: 36px; } }

/* CTA band */
.cta-band {
  background: var(--green-deep); color: var(--white); padding: 72px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; max-width: 40em; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--green-deep); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-list .card-icon { margin: 0; flex: none; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--green-deep); }
.contact-list a { font-size: 1.15rem; text-decoration: none; font-weight: 600; }
.contact-note { color: var(--muted); font-size: 1rem; }
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}
label, legend {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--green-deep); margin-bottom: 6px;
}
.req { color: #b0412e; }
.hint { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid #c8d2c9; border-radius: 10px;
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(108, 164, 85, 0.25);
}
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choice { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.choice input { width: 18px; height: 18px; accent-color: var(--green-dark); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--green-dark); }
.form-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--green-deep);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 18px 0 4px;
}
.form-section-title:first-child { margin-top: 0; }
.hidden-field { display: none; }

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--green-tint), var(--white));
  padding: 64px 0 40px;
}
.page-hero p { color: var(--muted); font-size: 1.2rem; max-width: 40em; }
.notice {
  background: var(--sand); border-left: 4px solid var(--green);
  border-radius: 8px; padding: 16px 20px; color: var(--muted); font-size: 1rem; margin-bottom: 28px;
}

/* Footer */
.site-footer { background: #17332a; color: rgba(255, 255, 255, 0.78); padding: 60px 0 28px; font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer-grid h3 { color: var(--white); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand img { width: 220px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.92rem;
}
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 22px; height: 22px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Simple centered pages */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.center-page img { width: 110px; margin: 0 auto 24px; }
.center-page p { color: var(--muted); max-width: 34em; margin-left: auto; margin-right: auto; }
