/* ============================================================
   Hidden Meadow Memory Care — Stylesheet
   ============================================================ */

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

:root {
  --blue:       #6aaec9;
  --blue-dark:  #4d8fa7;
  --blue-xdark: #3a6f84;
  --blue-light: #e2f2f8;
  --blue-pale:  #f4fafc;
  --text-dark:  #2c3e50;
  --text-mid:   #566474;
  --text-light: #888;
  --white:      #fff;
  --bg-off:     #f7f9fa;
  --border:     #dde6ea;
  --max-w:      1100px;
}

body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); background: #fff; line-height: 1.7; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.3; }
img { max-width: 100%; display: block; }

/* ── Top utility bar ─────────────────────────────────────── */

.top-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.88);
  font-size: 0.8rem;
  padding: 7px 24px;
}
.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.top-bar a { color: rgba(255,255,255,0.88); transition: color 0.2s; }
.top-bar a:hover { color: white; }
.top-bar .sep { color: rgba(255,255,255,0.3); }
.top-bar svg { display: inline-block; vertical-align: middle; margin-right: 4px; width: 13px; height: 13px; }

/* ── Site header ─────────────────────────────────────────── */

.site-header {
  background: white;
  border-bottom: 2px solid var(--blue-light);
  padding: 14px 24px;
  position: relative;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-logo img { height: 68px; width: auto; display: block; }

/* ── Navigation ─────────────────────────────────────────── */

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.site-nav li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dark);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav li a:hover,
.site-nav li a.active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; }

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Open Sans', sans-serif;
}
.btn-blue { background: var(--blue-dark); color: white; border-color: var(--blue-dark); }
.btn-blue:hover { background: var(--blue-xdark); border-color: var(--blue-xdark); color: white; }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: white; color: white; }
.btn-outline-blue { background: transparent; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline-blue:hover { background: var(--blue-dark); color: white; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: url('../assets/background-staff-and-resident.jpg') center 30% / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(30,60,80,0.62) 0%, rgba(20,50,70,0.35) 55%, rgba(0,0,0,0.08) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 72px 48px 72px max(10%, 24px);
  color: white;
}
.hero-content h1 {
  font-size: 2.9rem;
  color: white;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 480px;
}

/* ── Icon strip ──────────────────────────────────────────── */

.icon-strip {
  background: var(--blue-light);
  padding: 44px 24px;
  border-bottom: 1px solid rgba(106,174,201,0.2);
}
.icon-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.icon-item svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  color: var(--blue-dark);
  stroke: var(--blue-dark);
}
.icon-item h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.icon-item p { font-size: 0.8rem; color: var(--text-mid); }

/* ── Senior care section ─────────────────────────────────── */

.senior-care { padding: 72px 24px; }
.senior-care-inner {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
}
.senior-care-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.senior-care-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.senior-care-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 18px;
  font-style: normal;
}
.senior-care-text .facility-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-dark);
  display: block;
  margin-bottom: 16px;
}
.senior-care-text p { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 12px; }
.care-links { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 20px; }
.care-links a {
  font-size: 0.84rem;
  color: var(--blue-dark);
  font-weight: 600;
  padding: 0 14px;
  border-right: 1px solid var(--border);
  line-height: 1;
}
.care-links a:first-child { padding-left: 0; }
.care-links a:last-child { border-right: none; }
.care-links a:hover { color: var(--blue); }

/* ── Photo gallery ───────────────────────────────────────── */

.gallery { padding: 56px 24px; background: var(--bg-off); }
.gallery-heading {
  text-align: center;
  margin-bottom: 28px;
}
.gallery-heading h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}
.gallery-grid a:hover img { transform: scale(1.04); opacity: 0.88; }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  position: relative;
  background: url('../assets/footer-bg-faded.jpg') center center / cover no-repeat;
}
.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232, 246, 252, 0.92);
}
.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 24px 32px;
}
.footer-logo-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--blue-light);
  box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  padding: 14px;
}
.footer-logo-circle img { width: 100%; height: auto; }
.footer-content > p {
  font-size: 1rem;
  color: var(--text-dark);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.footer-contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-contact-item { font-size: 0.9rem; }
.footer-contact-item strong {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  color: var(--blue-dark);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.footer-contact-item a,
.footer-contact-item span { color: var(--text-dark); }
.footer-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-bottom {
  border-top: 1px solid rgba(106,174,201,0.25);
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── Page hero (interior) ────────────────────────────────── */

.page-hero {
  background: var(--blue-dark);
  color: white;
  padding: 52px 24px;
  text-align: center;
}
.page-hero h1 { font-size: 2.1rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.78); }

/* Page hero with photo (interior) */
.page-hero-photo {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: var(--blue-dark) center center / cover no-repeat;
}
.page-hero-photo .hero-overlay {
  background: rgba(30,60,80,0.58);
}
.page-hero-photo-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
}
.page-hero-photo-content h1 { font-size: 2.2rem; color: white; margin-bottom: 8px; }
.page-hero-photo-content p { color: rgba(255,255,255,0.82); }

/* ── Generic sections ────────────────────────────────────── */

section { padding: 68px 24px; }
section.alt-bg { background: var(--blue-pale); }

.section-heading { text-align: center; margin-bottom: 52px; }
.section-heading h2 { font-size: 1.9rem; color: var(--text-dark); margin-bottom: 12px; }
.section-heading p { color: var(--text-mid); max-width: 560px; margin: 0 auto; }
.section-heading .divider { width: 48px; height: 3px; background: var(--blue); margin: 14px auto 0; }

/* ── Cards ───────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; max-width: var(--max-w); margin: 0 auto; }
.card { background: white; border-radius: 6px; padding: 32px 24px; box-shadow: 0 2px 14px rgba(0,0,0,0.07); border-top: 3px solid var(--blue); }
.card h3 { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 10px; }
.card p { color: var(--text-mid); font-size: 0.92rem; }

/* ── Approach cards ─────────────────────────────────────── */

.care-intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.care-intro p { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 16px; }

.approach-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: var(--max-w); margin: 0 auto; }
.approach-card { background: white; border-radius: 6px; padding: 28px 24px; box-shadow: 0 2px 14px rgba(0,0,0,0.06); border-left: 4px solid var(--blue); }
.approach-card .step { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 8px; }
.approach-card h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; }
.approach-card p { font-size: 0.9rem; color: var(--text-mid); }

/* ── Feature list ────────────────────────────────────────── */

.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border); color: var(--text-dark); font-size: 0.95rem; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── Amenities grid ─────────────────────────────────────── */

.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: var(--max-w); margin: 0 auto; }
.amenity-group { background: white; border-radius: 6px; padding: 32px; box-shadow: 0 2px 14px rgba(0,0,0,0.07); }
.amenity-group h3 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--blue); }

/* ── About ───────────────────────────────────────────────── */

.about-content { max-width: 800px; margin: 0 auto; }
.about-section { margin-bottom: 48px; }
.about-section h2 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-light); }
.about-section p { color: var(--text-mid); margin-bottom: 14px; }

/* ── CTA Banner ──────────────────────────────────────────── */

.cta-banner { background: var(--blue-dark); color: white; padding: 60px 24px; text-align: center; }
.cta-banner h2 { font-size: 1.85rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner .btn-blue { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); }
.cta-banner .btn-blue:hover { background: rgba(255,255,255,0.25); border-color: white; }

/* ── Contact ─────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 52px; max-width: var(--max-w); margin: 0 auto; }
.contact-info h3 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 20px; }
.contact-item { margin-bottom: 22px; }
.contact-item label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-light); margin-bottom: 4px; font-weight: 700; }
.contact-item p, .contact-item a { color: var(--text-dark); font-size: 1rem; }
.contact-note { margin-top: 32px; padding: 20px; background: var(--blue-light); border-radius: 6px; font-size: 0.92rem; color: var(--text-mid); }
.contact-form { background: white; border-radius: 8px; padding: 36px; box-shadow: 0 2px 14px rgba(0,0,0,0.07); }
.hp-trap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success, .form-error { padding: 14px 18px; border-radius: 5px; font-size: 0.93rem; margin-bottom: 20px; }
.form-success { background: #eaf7ee; border: 1px solid #7dc99a; color: #215732; }
.form-error { background: #fdf0f0; border: 1px solid #e8a0a0; color: #7a1f1f; }
.contact-form h3 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 24px; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; margin-top: 18px; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Open Sans', sans-serif; font-size: 0.92rem; color: var(--text-dark); background: white; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(106,174,201,0.2); }
.contact-form textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row > div label { margin-top: 0; }
.required { color: #c0392b; }

.hp-trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

#form-status {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
#form-status.form-success { background: #e6f4ea; color: #2d6a3f; border: 1px solid #a8d5b0; }
#form-status.form-error   { background: #fdecea; color: #922b21; border: 1px solid #f5c6c2; }
#form-status.form-warning { background: #fff8e1; color: #7d5a00; border: 1px solid #ffe082; }

/* ── Photo section (two-col with image) ─────────────────── */

.photo-split { padding: 68px 24px; }
.photo-split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; max-width: var(--max-w); margin: 0 auto; align-items: center; }
.photo-split-inner.reverse { }
.photo-split img { width: 100%; height: 380px; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.photo-split-text h2 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 16px; }
.photo-split-text p { color: var(--text-mid); margin-bottom: 14px; font-size: 0.95rem; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 880px) {
  .icon-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .senior-care-inner { grid-template-columns: 1fr; }
  .senior-care-img img { height: 300px; }
  .amenities-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .photo-split-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; border-top: 1px solid var(--blue-light); box-shadow: 0 6px 16px rgba(0,0,0,0.1); z-index: 200; }
  .site-nav ul.open { display: flex; }
  .site-nav li a { padding: 13px 24px; border-bottom: 1px solid var(--blue-pale); }
  .hero-content { padding: 56px 24px; }
  .hero-content h1 { font-size: 2.1rem; }
  .footer-contact-row { flex-direction: column; align-items: center; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 16px; }
  section { padding: 52px 16px; }
}

@media (max-width: 400px) {
  .hero-content h1 { font-size: 1.8rem; }
  .page-hero h1, .page-hero-photo-content h1 { font-size: 1.6rem; }
  .top-bar-inner .location-item { display: none; }
}
