/* ===========================================================
   Marian Adult Care Home (MACH) — site stylesheet
   Palette pulled from the logo:
   navy   #1B3A5C   gold #C99A3C   sage #7C8A63   cream #FAF3E8
   =========================================================== */

:root {
  --navy: #1b3a5c;
  --navy-dark: #142c47;
  --gold: #c99a3c;
  --gold-light: #e0b968;
  --sage: #7c8a63;
  --sage-light: #9caa82;
  --cream: #faf3e8;
  --cream-dark: #f2e8d8;
  --text: #2b2b2b;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(27, 58, 92, 0.1);
  --shadow-lg: 0 12px 34px rgba(27, 58, 92, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

p { margin-top: 0; }

a { color: var(--navy); }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  font-size: 0.98rem;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: var(--cream-dark);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 8px;
}
.topbar a { color: var(--cream-dark); text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-centered { justify-content: center; text-align: center; }
.topbar-centered .topbar-links { justify-content: center; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(27,58,92,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 54px; width: 54px; border-radius: 50%; object-fit: cover; }
.brand-text { font-family: "Palatino Linotype", Georgia, serif; line-height: 1.1; }
.brand-text .brand-name { font-size: 1.3rem; color: var(--navy); font-weight: 700; display: block; }
.brand-text .brand-tag { font-size: 0.72rem; color: var(--sage); letter-spacing: 0.08em; text-transform: uppercase; }

nav.main-nav {
  font-family: "Helvetica Neue", Arial, sans-serif;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
nav.main-nav > ul > li { position: relative; }
nav.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  display: block;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a { background: var(--cream-dark); color: var(--navy-dark); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { padding: 10px 12px; border-radius: 6px; font-weight: 500; }
.dropdown a small { display: block; color: var(--text-light); font-weight: 400; font-size: 0.78rem; }
.dropdown a:hover { background: var(--cream); }

.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
}
.hero .hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 0 100px;
  max-width: 640px;
}
.hero.with-photo {
  background-size: cover;
  background-position: center;
}
.hero.with-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20,44,71,0.92) 0%, rgba(20,44,71,0.65) 55%, rgba(20,44,71,0.35) 100%);
  z-index: 1;
}
.hero-eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 700;
}
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 18px; }
.hero p.lead { font-size: 1.12rem; color: #eef2f6; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-small { padding: 56px 0 64px; }
.hero-small h1 { font-size: 2.1rem; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }

.section-head { max-width: 700px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--text-light); font-size: 1.05rem; margin-top: 12px; }

/* ---------- Grids / Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 0.96rem; }
.card .btn { margin-top: auto; align-self: flex-start; }

.location-card .card-photo {
  height: 190px;
  background-size: cover;
  background-position: center;
}
.location-card .badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--sage);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.location-card address { font-style: normal; color: var(--text-light); font-size: 0.92rem; margin: 6px 0 16px; }

.care-card { text-align: center; padding: 34px 26px; }
.care-card .icon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text-light);
  border-bottom: 1px solid var(--cream-dark);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--sage);
  font-weight: 700;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid img, .gallery-grid a {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.gallery-grid a { display: block; }
.gallery-grid img { height: 100%; }
.gallery-grid img.gallery-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-grid img.gallery-clickable:hover,
.gallery-grid img.gallery-clickable:focus-visible {
  transform: scale(1.035);
  box-shadow: var(--shadow-lg);
  outline: none;
}

/* ---------- Lightbox ---------- */
body.lightbox-locked { overflow: hidden; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 40, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
}
.lightbox-caption {
  color: #f1ede3;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  margin-top: 14px;
  text-align: center;
}
.lightbox-count {
  position: absolute;
  top: 22px;
  left: 28px;
  color: #d9dde1;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (max-width: 700px) {
  .lightbox-overlay { padding: 70px 12px 30px; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-count { top: 16px; left: 16px; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
}
.stats-strip .stat strong { display: block; font-size: 1.9rem; color: var(--navy); font-family: Georgia, serif; }
.stats-strip .stat span { font-size: 0.82rem; color: var(--text-light); font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--navy);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dcd3c2;
  border-radius: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.94rem;
  background: var(--cream);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* ---------- Contact info blocks ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  text-align: center;
}
.contact-info-card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.contact-info-card a { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-info-card a:hover { color: var(--gold); }

/* ---------- Map ---------- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
  width: 100%;
  height: 320px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--sage) 0%, #64714f 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #eef1e8; margin-bottom: 24px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #cfd9e2;
  padding: 60px 0 26px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site-footer h4 {
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
footer.site-footer a { color: #cfd9e2; text-decoration: none; }
footer.site-footer a:hover { color: var(--gold-light); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 10px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #93a1ac;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 42px; width: 42px; border-radius: 50%; }
.footer-brand strong { color: var(--white); font-family: Georgia, serif; font-size: 1.1rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--sage-light);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--gold-light); text-decoration: none; }

/* ---------- Reviews ---------- */
.reviews-widget-wrap {
  min-height: 120px;
}

/* ---------- Featured video ---------- */
.video-feature {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-feature video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.video-caption {
  text-align: center;
  color: var(--text-light);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  margin-top: 14px;
}

/* ---------- Placeholder photo block (locations without photos yet) ---------- */
.photo-placeholder {
  background: repeating-linear-gradient(135deg, var(--cream-dark), var(--cream-dark) 12px, var(--cream) 12px, var(--cream) 24px);
  border: 2px dashed #d8cbb0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  text-align: center;
  padding: 30px;
  min-height: 220px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-2, .form-grid, .contact-info-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 800px) {
  nav.main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px; background: var(--white); flex-direction: column; padding: 90px 24px 24px; transition: right 0.25s ease; box-shadow: -8px 0 24px rgba(0,0,0,0.15); overflow-y: auto; }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; width: 100%; }
  nav.main-nav > ul > li { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 10px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; margin-top: 12px; }
  .nav-cta .btn { display: block; text-align: center; }
  .topbar .container { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  .form-card { padding: 24px; }
  .cta-band { padding: 34px 22px; }
  .contact-info-grid { grid-template-columns: 1fr; }
}
