/* ==========================================================================
   Remember Me Senior Care — Design System
   Restyle only. Copy is verbatim from the live site.
   ========================================================================== */

:root {
  /* Brand colors — kept from existing RMSC logo/site, not rebranded */
  --navy: #1e394a;
  --navy-dark: #142834;
  --teal: #4f8f8a;
  --teal-light: #dcebe9;
  --sage: #7ba098;
  --cream: #faf6ef;
  --cream-deep: #f2ead9;
  --white: #ffffff;
  --ink: #2a2c2a;
  --ink-soft: #55605c;
  --gold: #c99a4b;
  --line: #e7ddc9;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 40px -12px rgba(30, 57, 74, 0.18);
  --shadow-card: 0 4px 24px -6px rgba(30, 57, 74, 0.12);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 500; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

em, .italic { font-style: italic; }

p { margin: 0 0 var(--space-2); color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-4) 0; }
.bg-cream-deep { background: var(--cream-deep); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.78); }
.bg-white { background: var(--white); }

.center { text-align: center; }
.max-w-text { max-width: 700px; margin-left: auto; margin-right: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #3f7a76; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 48px; width: auto; }
.brand-word { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav ul { list-style: none; display: flex; gap: 1.3rem; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--teal); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--teal);
}
.header-cta { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.header-phone { font-weight: 600; font-size: 0.85rem; color: var(--navy); display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-contact-mobile { display: none; }

/* Header layout guards — keep everything on one line, never let nav
   items or the phone number wrap mid-word */
.header-inner { flex-wrap: nowrap; }
.brand { flex-shrink: 0; }
.brand img { height: 42px; }
.main-nav { min-width: 0; }
.main-nav ul { flex-wrap: nowrap; }
.main-nav a { white-space: nowrap; }

@media (max-width: 1240px) {
  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: 0.5rem 0;
  }
  .main-nav.open-mobile ul { display: flex; }
  .main-nav ul li { width: 100%; }
  .main-nav ul a {
    display: block;
    padding: 0.9rem var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
    font-size: 0.8rem;
  }
  .main-nav ul a.active::after { display: none; }
  .header-phone .phone-text { display: none; }
  .header-cta .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .nav-contact-mobile { display: block; }
}

@media (max-width: 480px) {
  .header-cta .btn-sm { padding: 0.6rem 1rem; font-size: 0.8rem; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  /* Darken only the bottom-left corner so the text has contrast to sit on,
     and leave the rest of the photo clear and visible. */
  background:
    linear-gradient(115deg, rgba(20,40,52,0.88) 0%, rgba(20,40,52,0.6) 35%, rgba(20,40,52,0) 74%),
    linear-gradient(0deg, rgba(20,40,52,0.55) 0%, rgba(20,40,52,0) 40%);
}
.hero-content {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-4);
  right: auto;
  margin: 0;
  max-width: 900px;
  padding: 0;
}
.hero-content .eyebrow { color: var(--sage); }
.hero-content h1 { color: var(--white); font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.hero-content p { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; margin-top: var(--space-3); flex-wrap: wrap; }
@media (max-width: 700px) {
  .hero-content { max-width: 100%; }
}

.page-hero {
  padding: var(--space-6) 0 var(--space-4);
  background: var(--cream-deep);
  text-align: center;
}
.page-hero .eyebrow { color: var(--teal); }

/* ---------------- 3D Tour embed ---------------- */
.tour-embed {
  position: relative;
  max-width: 900px;
  margin: var(--space-4) auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--navy-dark);
}
.tour-embed .tour-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tour-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.tour-embed .tour-play {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: rgba(20, 40, 52, 0.35);
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background .2s ease;
}
.tour-embed .tour-play:hover { background: rgba(20, 40, 52, 0.5); }
.tour-embed .tour-play-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
  transition: transform .2s ease;
}
.tour-embed .tour-play:hover .tour-play-icon { transform: scale(1.08); }
.tour-embed.tour-loaded .tour-play,
.tour-embed.tour-loaded .tour-placeholder { display: none; }

/* ---------------- Reassurance / You Can strip ---------------- */
.reassure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.reassure-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.reassure-card .word { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 0.85rem; }
@media (max-width: 800px) { .reassure-grid { grid-template-columns: 1fr; } }

/* ---------------- Cards / Services ---------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col.reverse .col-img { order: 2; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (max-width: 800px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.service-card .img-wrap { height: 260px; overflow: hidden; }
.service-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .img-wrap img { transform: scale(1.06); }
.service-card .body { padding: var(--space-3) var(--space-3) var(--space-4); }

.img-round {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ---------------- Pricing / included icons ---------------- */
.icon-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  text-align: center;
}
@media (max-width: 900px) { .icon-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .icon-row { grid-template-columns: repeat(2, 1fr); } }
.icon-item { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.icon-item .icon-circle {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.icon-item span.label { font-weight: 600; color: var(--navy); font-size: 0.92rem; }

/* ---------------- Mission / Vision / Values ---------------- */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) { .mvv-grid { grid-template-columns: 1fr; } }
.mvv-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border-top: 3px solid var(--teal);
}
.values-list { list-style: none; padding: 0; margin: 0; }
.values-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.values-list li:last-child { border-bottom: none; }

/* ---------------- Testimonials ---------------- */
.testi-wrap { position: relative; }
.testi-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 86vw);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.testi-quote { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-style: italic; flex-grow: 1; }
.testi-meta { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.testi-meta strong { color: var(--navy); display: block; font-family: var(--font-body); font-style: normal; }
.testi-meta span { font-size: 0.82rem; color: var(--ink-soft); }
.testi-controls { display: flex; gap: 0.7rem; justify-content: center; margin-top: var(--space-3); }
.testi-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--navy); background: var(--white); color: var(--navy);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.testi-btn:hover { background: var(--navy); color: var(--white); }

/* ---------------- Team ---------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
}
.team-card .photo-wrap { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.team-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.team-card:hover .photo-wrap img { transform: scale(1.05); }
.team-card .read-bio-pill {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(30,57,74,0.88);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: all .25s ease;
}
.team-card:hover .read-bio-pill { opacity: 1; transform: translateY(0); }
.team-card .info { padding: 1rem 1.1rem 1.2rem; }
.team-card .info h4 { margin-bottom: 0.15rem; }
.team-card .info .role { color: var(--teal); font-size: 0.86rem; font-weight: 600; }

/* Team modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,40,52,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-3);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  box-shadow: var(--shadow-soft);
  position: relative;
}
@media (max-width: 700px) { .modal-box { grid-template-columns: 1fr; } }
.modal-box .modal-photo { height: 100%; min-height: 260px; }
.modal-box .modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-box .modal-body { padding: var(--space-4); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; color: var(--navy);
  z-index: 2;
}
.modal-body .role { color: var(--teal); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; display: block; }

/* ---------------- Gallery ---------------- */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery-grid {
  columns: 4 240px;
  column-gap: var(--space-2);
}
@media (max-width: 700px) { .gallery-grid { columns: 2 160px; } }
.gallery-grid figure {
  margin: 0 0 var(--space-2);
  break-inside: avoid;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-grid img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; background: rgba(15,25,32,0.94);
  display: none; align-items: center; justify-content: center; z-index: 1100;
  padding: var(--space-3);
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 90vw; border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-nav {
  position: fixed; background: rgba(255,255,255,0.12); color: var(--white);
  border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------------- Resource / News cards ---------------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.resource-card:hover { transform: translateY(-4px); }
.resource-card .thumb { height: 170px; background: var(--cream-deep); overflow: hidden; }
.resource-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.resource-card .body { padding: var(--space-3); flex-grow: 1; display: flex; flex-direction: column; }
.resource-card .date { font-size: 0.78rem; color: var(--teal); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 0.4rem; }
.resource-card h4 { flex-grow: 1; }
.resource-card .read-more { margin-top: 0.8rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); }

/* ---------------- Checklist ---------------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list li::before {
  content: "";
  flex: none;
  width: 19px; height: 19px;
  margin-top: 0.2rem;
  border-radius: 5px;
  background-image: url('https://images.squarespace-cdn.com/content/v1/5bbd0207797f743d7f020db4/1613225831119-50BQY1ONOU6ROPG89VB2/favicon.ico?format=100w');
  background-size: cover;
  background-position: center;
}

/* Plain-bullet variant for denser lists (logo mark reads as "too saturated"
   once you're past 4-5 items) */
.check-list-plain li::before {
  background-image: none;
  background: var(--teal);
  border-radius: 50%;
  width: 8px; height: 8px;
  margin-top: 0.55rem;
}

/* ---------------- Floating eBook download popup ---------------- */
.ebook-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 600;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: ebook-pop-in .4s ease;
}
.ebook-popup-close {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(20,40,52,0.55);
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ebook-popup-close:hover { background: var(--navy-dark); }
.ebook-popup-link {
  display: flex;
  flex-direction: column;
  color: var(--ink);
}
.ebook-popup-cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ebook-popup-body {
  padding: var(--space-2) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ebook-popup-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin: 0;
}
.ebook-popup-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.4rem;
}
.ebook-popup .btn { align-self: flex-start; pointer-events: none; }
@keyframes ebook-pop-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) {
  .ebook-popup { right: 14px; bottom: 14px; left: 14px; width: auto; }
  .ebook-popup-cover { height: 120px; }
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.8); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.82); padding: var(--space-5) 0 var(--space-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a:hover { color: var(--sage); }
.footer-social { display: flex; gap: 0.7rem; margin-top: var(--space-2); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ---------------- Contact form ---------------- */
.contact-form { display: grid; gap: var(--space-3); }
.form-row { display: grid; gap: var(--space-3); }
.form-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form-checkbox input[type="checkbox"] { margin-top: 0.2rem; flex: none; }
.contact-form .btn { justify-self: start; }

/* ---------------- Utility ---------------- */
.mt-0 { margin-top: 0; }
.small-note { font-size: 0.85rem; color: var(--ink-soft); }
.badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* ---------------- Article Pages ---------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--space-2);
}
.article-feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-4);
}
.article-feature-img img { width: 100%; height: auto; display: block; }
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body h2 { font-size: 1.6rem; margin-top: var(--space-4); }
.article-body h3 { font-size: 1.2rem; margin-top: var(--space-3); }
.article-body p { color: var(--ink-soft); }
.article-body ul { margin: 0 0 var(--space-2); padding-left: 1.3rem; color: var(--ink-soft); }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--teal); text-decoration: underline; }
.article-body blockquote {
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--teal);
  background: var(--cream-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink);
}
.article-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-3) 0;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
