@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #F7F5F2;
  --card: #ffffff;
  --text: #1a2a28;
  --muted: #5a7068;
  --primary: #2D6A64;
  --primary-dark: #1e4e4a;
  --primary-light: #e8f0ef;
  --secondary: #8FA998;
  --tertiary: #C9ADA7;
  --tertiary-light: #f5eeec;
  --line: #dde8e6;
  --neutral: #F7F5F2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--neutral);
  color: var(--text);
}
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* TOP STRIP */
.top-strip { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; color: var(--muted); }
.lang-wrap { display: flex; gap: 8px; }
.lang-btn { border: 1px solid var(--line); background: #fff; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); font-family: 'Source Sans 3', sans-serif; }
.lang-btn.is-active { background: var(--primary-light); border-color: var(--secondary); color: var(--primary); }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 99; background: rgba(247,245,242,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.brand img { height: 44px; }
nav { display: flex; align-items: center; gap: 17px; font-weight: 600; font-size: 14px; font-family: 'Source Sans 3', sans-serif; }
.nav-muted { color: var(--muted); }

/* BUTTONS */
.btn {
  background: linear-gradient(135deg, #2D6A64, #3d8a82);
  color: #fff;
  border: 0;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(45,106,100,0.28);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: linear-gradient(135deg, #1e4e4a, #2D6A64); box-shadow: 0 8px 24px rgba(45,106,100,0.38); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--secondary); box-shadow: none; }
.btn-outline:hover { background: var(--primary-light); }

/* HERO */
.hero { padding: 44px 0 32px; }
.hero-wrap h1 { font-size: clamp(28px, 4.2vw, 46px); margin: 0; line-height: 1.18; max-width: 860px; font-weight: 900; color: var(--text); }
.lead { color: var(--muted); font-size: 17px; max-width: 820px; line-height: 1.7; margin: 16px 0 22px; font-family: 'Source Sans 3', sans-serif; }

/* SEARCH BOX */
.search-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(45,106,100,0.10);
}
.search-box label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.search-cta { display: flex; align-items: end; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color 0.2s;
}
input:focus, select:focus { outline: none; border-color: var(--secondary); }

/* TRUST ROW */
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 12px; margin-top: 20px; }
.trust-row div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.trust-row strong { font-size: 22px; display: block; color: var(--primary); font-family: 'Merriweather', serif; }
.trust-row span { color: var(--muted); font-size: 13px; }

/* SECTIONS */
.section { padding: 32px 0; }
.section-soft { background: #edf4f3; border-top: 1px solid #d4e5e3; border-bottom: 1px solid #d4e5e3; }
.section-tertiary { background: var(--tertiary-light); border-top: 1px solid #e5d8d6; border-bottom: 1px solid #e5d8d6; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
h1, h2 { margin: 0; }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
.pill { background: var(--primary-light); border: 1px solid var(--secondary); color: var(--primary); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-family: 'Source Sans 3', sans-serif; }

/* GRIDS */
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* CARDS */
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(45,106,100,0.14); }
.card img { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 16px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 8px; color: var(--muted); font-family: 'Source Sans 3', sans-serif; }

/* PANEL */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }

/* CARE TYPE VISUAL GRID */
.care-grid { grid-template-columns: repeat(3, 1fr); }
.care-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.care-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 10px 28px rgba(45,106,100,0.13);
  transform: translateY(-3px);
}
.care-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.care-icon.independent { background: #e8f4f0; }
.care-icon.assisted { background: #f0eaf8; }
.care-icon.memory { background: #fdeee8; }
.care-card h3 { margin: 0; font-size: 18px; font-family: 'Merriweather', serif; color: var(--primary); }
.care-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; font-family: 'Source Sans 3', sans-serif; }
.care-card .care-arrow { margin-top: auto; font-size: 13px; color: var(--secondary); font-weight: 600; font-family: 'Source Sans 3', sans-serif; }

/* OTHER GRIDS */
.search-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 20px; }
.benefit-grid { grid-template-columns: repeat(3, 1fr); }
.benefit-grid p { color: var(--muted); line-height: 1.65; font-family: 'Source Sans 3', sans-serif; }

/* APP STRIP */
.app-strip { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.qr { width: 130px; height: 130px; border: 1px solid var(--line); border-radius: 10px; }

/* DETAIL */
.detail-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 16px; }
.detail-main .cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.thumb-row { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.thumb { width: 90px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.thumb.is-active { border-color: var(--primary); }
.main-content .muted { color: var(--muted); }
.inline-kpis { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.inline-kpis div { background: var(--primary-light); border: 1px solid #c4d9d7; border-radius: 12px; padding: 10px; }
.inline-kpis strong { display: block; color: var(--primary); }
.inline-kpis span { color: var(--muted); font-size: 13px; }
.cta-row { display: flex; gap: 10px; margin-top: 10px; }
.detail-side h3 { margin: 0 0 8px; }
.detail-side p, .detail-side li { color: var(--muted); line-height: 1.55; font-family: 'Source Sans 3', sans-serif; }
.gallery { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gallery img { width: 100%; border-radius: 12px; object-fit: cover; cursor: zoom-in; }
.info-grid { grid-template-columns: repeat(3, 1fr); }
.info-grid p { color: var(--muted); line-height: 1.6; font-family: 'Source Sans 3', sans-serif; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--primary-light); border: 1px solid #c4d9d7; padding: 8px 12px; border-radius: 999px; color: var(--primary); font-family: 'Source Sans 3', sans-serif; }

/* AUTH */
.auth-wrap { display: grid; place-items: center; min-height: 62vh; }
.auth { width: min(560px, 100%); }
.auth h1 { margin: 0 0 8px; font-size: 34px; }
.auth p { color: var(--muted); margin: 0 0 14px; }
.auth label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.auth input { margin-bottom: 12px; }
.auth ul.errorlist { list-style: none; padding: 0; margin: 0 0 8px; color: #b94040; }
.auth-note { margin-top: 10px; color: var(--muted); }
.auth-note a { color: var(--primary); font-weight: 600; }

/* BOOKING */
.booking-panel { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.inline-form { display: flex; gap: 8px; min-width: 320px; }

/* MODAL */
.modal { position: fixed; inset: 0; background: rgba(20,42,38,0.55); display: none; align-items: center; justify-content: center; z-index: 120; padding: 14px; }
.modal.is-open { display: flex; }
.modal-card { width: min(460px, 96%); background: #fff; border-radius: 16px; padding: 20px; position: relative; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.18); }
.lightbox-card { width: min(920px, 96%); }
.lightbox-card img { width: 100%; border-radius: 12px; max-height: 78vh; object-fit: contain; }
.modal-close { position: absolute; right: 10px; top: 8px; border: none; background: transparent; font-size: 28px; cursor: pointer; color: var(--muted); }
.modal-form { display: grid; gap: 8px; }
.modal-form .btn { margin-top: 6px; }
.modal-form label { font-size: 13px; color: var(--muted); font-weight: 600; }
.pricing-box { background: var(--primary-light); border: 1px solid #c4d9d7; border-radius: 10px; padding: 10px; display: flex; justify-content: space-between; align-items: center; }
.pricing-box span { color: var(--muted); }

/* STICKY BAR */
.sticky-book-bar { position: sticky; bottom: 0; background: rgba(247,245,242,0.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.sticky-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.sticky-wrap span { color: var(--muted); }

/* ALERTS */
.alerts { margin-top: 12px; }
.alert { background: var(--primary-light); border: 1px solid var(--secondary); border-radius: 10px; padding: 10px; color: var(--primary); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 36px 0 12px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { font-family: 'Merriweather', serif; font-size: 14px; color: var(--text); margin: 0 0 12px; }
.footer-grid p, .footer-grid a { color: var(--muted); display: block; margin-bottom: 8px; font-family: 'Source Sans 3', sans-serif; font-size: 14px; transition: color 0.15s; }
.footer-grid a:hover { color: var(--primary); }
.footer-logo { height: 38px; margin-bottom: 10px; }
.socials { display: flex; gap: 8px; margin-top: 4px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: border-color 0.15s, color 0.15s; }
.socials a:hover { border-color: var(--secondary); color: var(--primary); }
.socials a svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; color: var(--muted); font-size: 13px; font-family: 'Source Sans 3', sans-serif; }

/* COMPARE */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 16px; display: none; z-index: 110; }
.compare-bar.is-visible { display: block; }
.compare-wrap { background: var(--primary-dark); color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 18px 45px rgba(30,78,74,0.45); }
.card-selectable .compare-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 0 14px 12px; }
.compare-table { overflow-x: auto; }
.compare-row { display: grid; grid-template-columns: 220px repeat(3, minmax(220px, 1fr)); border-bottom: 1px solid var(--line); }
.compare-row > div { padding: 12px; }
.compare-row.header { background: var(--primary-light); font-weight: 700; }
.legal-page p { color: var(--muted); line-height: 1.7; font-family: 'Source Sans 3', sans-serif; }
.availability-grid { grid-template-columns: repeat(4, 1fr); }
.availability-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.availability-card strong { display: block; margin-bottom: 4px; color: var(--primary); }

/* MISC */
.two-col { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 12px; }
.empty-state p { color: var(--muted); margin: 8px 0 14px; font-family: 'Source Sans 3', sans-serif; }

/* WHY SECTION PANELS */
.benefit-grid .panel { border-left: 4px solid var(--secondary); }
.benefit-grid .panel h3 { color: var(--primary); font-size: 17px; margin: 0 0 8px; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .search-box { grid-template-columns: 1fr 1fr 1fr; }
  .care-grid, .detail-layout, .benefit-grid, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .compare-row { grid-template-columns: 180px repeat(3, minmax(200px, 1fr)); }
  .availability-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .search-box, .search-grid { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
  .trust-row, .inline-kpis { grid-template-columns: 1fr; }
  .app-strip, .sticky-wrap, .booking-panel { flex-direction: column; align-items: flex-start; }
  .inline-form { min-width: 100%; }
  .availability-grid { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr; }
}
