:root {
  --primary: #061817;
  --secondary: #0f4a46;
  --accent: #d6b36a;
  --background: #f7f8f5;
  --text: #17201f;
  --muted: #667371;
  --line: rgba(6, 24, 23, .14);
  --white: #fff;
  --shadow: 0 24px 70px rgba(3, 20, 19, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.top-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 18px;
  background: var(--primary);
  color: #f4ead1;
  font-size: 14px;
  flex-wrap: wrap;
}

.site-header, .admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img { width: 190px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 20px; font-weight: 700; color: var(--primary); }
.main-nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--accent); }
.nav-toggle { display: none; border: 0; background: var(--primary); color: var(--white); width: 42px; height: 42px; border-radius: 6px; font-size: 22px; }

.page-section { padding: 88px 5vw; }
.hero {
  position: relative;
  min-height: calc(100vh - 104px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding-bottom: 240px;
}
.hero-slider, .slide, .hero-overlay { position: absolute; inset: 0; }
.slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 3200ms ease;
}
.slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  background: linear-gradient(90deg, rgba(2,16,15,.92) 0%, rgba(5,31,29,.72) 42%, rgba(5,31,29,.18) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 92vw);
  transform: translateY(-54px);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 14px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}
h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--primary);
}
.hero p:not(.eyebrow) { max-width: 660px; font-size: 19px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
}
.btn.primary { background: var(--accent); color: #111; }
.btn.secondary { background: transparent; color: inherit; border-color: currentColor; }
.hero-stats {
  position: absolute;
  z-index: 3;
  left: 5vw;
  right: 5vw;
  bottom: 150px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-stats div, .values div, .card, .service, .faq-item, .contact-card, .contact-form, .map-panel, .admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(4, 29, 27, .08);
}
.hero-stats div { padding: 18px; color: var(--primary); }
.hero-stats strong { display: block; font-size: 26px; line-height: 1; }
.hero-stats span { color: var(--muted); font-weight: 700; }

.content-band { background: #fff; }
.section-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 46px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.section-grid.reverse { grid-template-columns: .9fr 1.1fr; }
.section-grid p { color: var(--muted); font-size: 17px; }
.image-panel { overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); }
.image-panel img { width: 100%; height: 440px; object-fit: cover; }
.section-head { max-width: 940px; margin: 0 auto 34px; text-align: center; }
.cards, .service-grid, .faq-list {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.cards { grid-template-columns: repeat(3, 1fr); }
.service-grid { grid-template-columns: repeat(4, 1fr); }
.card, .service, .faq-item { padding: 24px; }
.card h3, .service h3, .faq-item h3 { margin: 0 0 10px; color: var(--primary); font-size: 22px; line-height: 1.18; }
.card p, .service p, .faq-item p { margin: 0; color: var(--muted); }
.card .price { display: inline-block; margin-top: 18px; color: var(--secondary); font-weight: 900; }
.values { display: grid; gap: 16px; }
.values div { padding: 22px; }
.values strong { display: block; color: var(--primary); font-size: 24px; }
.values span { color: var(--muted); }
.faq-band { background: #eef3f1; }
.seo-band {
  background: #fff;
  padding-top: 70px;
  padding-bottom: 70px;
}
.seo-band .section-head p:not(.eyebrow) {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}
.faq-list { grid-template-columns: repeat(2, 1fr); }

.contact-section {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.contact-card, .contact-form { padding: 30px; }
.contact-lines { display: grid; gap: 12px; margin-top: 24px; }
.contact-lines a, .contact-lines div {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contact-lines strong { color: var(--primary); }
.contact-lines span { color: var(--muted); }
.contact-form { display: grid; gap: 14px; align-self: start; }
.map-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 360px;
  position: relative;
}
.map-panel iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: saturate(.92) contrast(1.02);
}
.map-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
label { display: grid; gap: 7px; font-weight: 800; color: var(--primary); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  background: #18b85f;
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
  font-weight: 900;
}

footer {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 32px;
  padding: 48px 5vw;
  background: var(--primary);
  color: rgba(255,255,255,.84);
}
footer img { width: 180px; margin-bottom: 16px; }
footer div { display: grid; align-content: start; gap: 8px; }
footer strong { color: var(--accent); }

.admin-body { background: #eef3f1; }
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(6,24,23,.92), rgba(15,74,70,.72)),
    url("assets/hero-homecare.png") center / cover;
}
.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 30px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.login-card img { width: 210px; }
.login-card h1 { margin: 4px 0 0; font-size: 34px; color: var(--primary); line-height: 1.05; }
.login-card p { margin: 0 0 6px; color: var(--muted); }
.login-error { min-height: 22px; color: #8b1d1d; font-weight: 800; }
.admin-private[hidden], .login-screen[hidden] { display: none; }
.admin-header { align-items: center; }
.admin-header h1 { margin: 0; color: var(--primary); font-size: 30px; line-height: 1.1; }
.admin-header p { margin: 4px 0 0; color: var(--muted); }
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 28px 5vw 60px;
}
.admin-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  position: sticky;
  top: 100px;
}
.admin-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}
.admin-tabs button.active { background: var(--primary); color: white; }
.admin-panel { padding: 28px; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; gap: 16px; }
.tab-panel h2 { font-size: 28px; }
.admin-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.list-editor-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  margin-bottom: 12px;
}
.remove-item { justify-self: start; color: #8b1d1d; border-color: #8b1d1d; }

@media (min-width: 921px) {
  .top-strip {
    padding: 6px 18px;
    font-size: 12px;
  }

  .site-header {
    padding: 10px 5vw;
  }

  .site-header .brand img {
    width: 154px;
  }

  .main-nav {
    gap: 17px;
    font-size: 14px;
  }

  .hero {
    min-height: calc(100vh - 86px);
    padding-top: 36px;
    padding-bottom: 175px;
  }

  .hero-content {
    width: min(650px, 72vw);
    transform: translateY(-10px);
  }

  .eyebrow {
    font-size: 13px;
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(44px, 4.8vw, 66px);
    margin-bottom: 18px;
  }

  .hero p:not(.eyebrow) {
    max-width: 610px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .btn {
    min-height: 42px;
    padding: 10px 17px;
    font-size: 14px;
  }

  .hero-stats {
    bottom: 48px;
    gap: 12px;
  }

  .hero-stats div {
    padding: 14px 16px;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 5vw;
    background: white;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .hero { min-height: 760px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(2,16,15,.92), rgba(5,31,29,.65)); }
  .hero-stats, .cards, .service-grid, .faq-list, .contact-section, .section-grid, .section-grid.reverse, footer, .admin-shell {
    grid-template-columns: 1fr;
  }
  .hero-stats { position: relative; left: auto; right: auto; bottom: auto; margin-top: 34px; }
  .hero { display: block; padding-top: 90px; }
  .hero-content { margin-top: 40px; transform: none; }
  .image-panel img { height: 320px; }
  .admin-tabs { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .top-strip { justify-content: flex-start; gap: 8px 16px; }
  .brand img { width: 152px; }
  .page-section { padding: 62px 20px; }
  .hero { min-height: 780px; padding: 58px 20px 42px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .hero p:not(.eyebrow) { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .contact-card, .contact-form, .admin-panel { padding: 20px; }
  .map-panel iframe { height: 320px; }
  .map-link { position: static; width: calc(100% - 28px); margin: 14px; }
  .admin-header { position: static; flex-direction: column; align-items: flex-start; }
  .admin-tabs { grid-template-columns: 1fr; }
}
