/* ==========================================
   Health At Home – FINAL STYLE (Geriatric-Safe)
   Luxury / Calm / Accessible
========================================== */

/* Base Reset */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #f8f7f5;
  color: #2b2b2b;
  margin: 0;
  line-height: 1.65;
  animation: pageFadeIn 0.6s ease forwards;
}

/* Page Transition */
body.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 🌫️ Ambient Background Motion */
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(160,150,130,0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(130,120,105,0.06), transparent 55%);
  animation: ambientMove 30s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes ambientMove {
  from { transform: translate(0,0); }
  to { transform: translate(-3%, -2%); }
}

/* 🪶 LARGE WATERMARK — SOFTENED FOR EYES */
body::before {
  content: "Health At Home";
  position: fixed;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: 'Playfair Display', serif;
  font-size: clamp(7rem, 20vw, 24rem);
  color: rgba(90, 85, 75, 0.045); /* softer stone tone */
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* Keep content above background layers */
body > * {
  position: relative;
  z-index: 1;
}

/* Containers */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6e2dd;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo img {
  max-height: 52px;
}

/* Navigation */
.nav a {
  margin-left: 22px;
  font-size: 0.95rem;
}

/* Availability Badge */
.availability {
  font-size: 0.75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(80,120,80,0.18);
  color: #3f6f3f;
  padding: 6px 14px;
  border-radius: 999px;
  margin-left: 16px;
}

/* Buttons */
.btn-primary, .btn-outline {
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #b8a36d, #d7c28b);
  color: #fff;
}

.btn-outline {
  border: 1px solid #b8a36d;
  color: #7a683c;
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(150,130,90,0.3);
}

/* 🏛️ HERO */
.hero {
  padding: 120px 0 110px;
  text-align: center;
}

.hero-logo {
  margin-bottom: 32px;
}

.hero-logo img {
  max-width: 220px;
  opacity: 0.95;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #4a4a4a;
}

.hero-actions {
  margin-top: 34px;
}

/* Sections */
.services-preview,
.how-it-works,
.trust {
  padding: 90px 0;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card,
.how-step {
  background: #ffffff;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.06);
  transition: transform .35s ease, box-shadow .35s ease;
}

.service-card:hover,
.how-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.12);
}

/* Micro Chips */
.micro-chip {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b5e45;
  background: rgba(185,170,130,0.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* Dividers */
.section-divider {
  margin: 90px 0;
}

.section-divider::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(150,140,120,0.4),
    transparent
  );
}

/* Footer */
.site-footer {
  background: #f1eee9;
  padding: 70px 0;
}
