/* ============================================================
   Quality Care Residential — Shared Stylesheet
   Fonts: Lora (serif) + Source Sans 3 (sans-serif)
   Palette: Sage green · Warm cream · Terracotta accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --sage:      #6B8F71;
  --sage-lt:   #EEF3EE;
  --sage-dk:   #4a6350;
  --sage-dkr:  #344839;
  --warm:      #F7F4EF;
  --warm-dk:   #EDE9E2;
  --accent:    #C17F4A;
  --accent-lt: #FBF3EB;
  --charcoal:  #2C2C2A;
  --white:     #FFFFFF;
  --mid:       #6B6B68;
  --muted:     #9A9A97;
  --border:    #E5E2DB;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;

  --max-w:   1140px;
  --radius:  10px;
  --nav-h:   68px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

h2 em, h1 em { font-style: italic; color: var(--accent); }

p { color: var(--mid); }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section-warm { background: var(--warm); }
.section-dark {
  background: var(--sage-dkr);
  color: var(--white);
}
.section-dark p { color: rgba(255,255,255,0.55); }
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}

.nav-logo span { color: var(--sage-dk); }
.nav-logo small {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--mid);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--sage-dk); background: var(--sage-lt); }

.nav-cta a {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
}
.nav-cta a:hover { background: var(--sage-dk) !important; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--sage-dkr);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,143,113,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.page-header .eyebrow { color: rgba(255,255,255,0.35); }

.page-header h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.2;
  margin: 0.75rem 0 1.25rem;
  max-width: 700px;
}

.page-header h1 em { color: #C8A882; font-style: italic; }

.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.52);
  max-width: 560px;
  line-height: 1.8;
}

/* ── EYEBROW ── */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.section-dark .eyebrow { color: rgba(255,255,255,0.35); }

/* ── SECTION HEADING ── */
.section-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 0.6rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-sage { background: var(--sage); color: var(--white); }
.btn-sage:hover { background: var(--sage-dk); }

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage-dk);
}
.btn-outline:hover { background: var(--sage-lt); }

.btn-white { background: var(--white); color: var(--sage-dkr); }
.btn-white:hover { background: var(--warm); }

.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.65); }

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── SERVICE TAG ── */
.service-tag {
  display: inline-block;
  background: var(--sage-lt);
  color: var(--sage-dk);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ── FEATURE ROW ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-of-type { border-bottom: none; }

.feature-row.flip .feature-visual { order: -1; }

.feature-text h2 { font-size: clamp(1.6rem, 2.2vw, 2rem); margin-bottom: 1.1rem; }
.feature-text p + p { margin-top: 0.875rem; }
.feature-text .btn { margin-top: 1.5rem; }

.feature-visual {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

.card-icon {
  width: 44px; height: 44px;
  background: var(--sage-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 20px; height: 20px;
  stroke: var(--sage-dk);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.card p { font-size: 0.855rem; line-height: 1.7; }

/* ── STEPS ROW ── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.step { text-align: center; }

.step-num {
  width: 48px; height: 48px;
  background: var(--sage);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 auto 1.1rem;
}

.step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.step p { font-size: 0.855rem; line-height: 1.7; }

/* ── PHOTO PLACEHOLDER ── */
.photo-ph {
  background: var(--warm-dk);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}

.photo-ph svg {
  width: 32px; height: 32px;
  stroke: var(--muted);
  fill: none; stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── TEASER BANNER ── */
.teaser-banner {
  background: var(--sage-lt);
  border: 1px solid rgba(107,143,113,0.2);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
}

.teaser-banner h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin-bottom: 0.4rem;
}

.teaser-banner p { font-size: 0.9rem; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--sage-lt);
  border-top: 1px solid rgba(107,143,113,0.15);
  border-bottom: 1px solid rgba(107,143,113,0.15);
  text-align: center;
  padding: 0.9rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dk);
}

.trust-bar .sep { margin: 0 0.75rem; opacity: 0.4; }

/* ── FOOTER ── */
.site-footer {
  background: var(--charcoal);
  padding: 4rem 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand .nav-logo small { color: rgba(255,255,255,0.3); }
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.4); line-height: 1.8; max-width: 280px; }

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 0.4rem; }
.footer-col ul a {
  text-decoration: none;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ── ANIMATIONS ── */
.anim-1, .anim-2, .anim-3, .anim-4 {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease forwards;
}
.anim-1 { animation-delay: 0.1s; }
.anim-2 { animation-delay: 0.22s; }
.anim-3 { animation-delay: 0.34s; }
.anim-4 { animation-delay: 0.46s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 3.5rem 0; }

  .nav-links { display: none; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .feature-row.flip .feature-visual { order: 0; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .steps-row { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .teaser-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }

  .card-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }

  .steps-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.3rem; }

  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
