/* ═══════════════════════════════════════════════════════════
   HOMECARE – SHARED DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:       #001B38;
  --petrol:     #0E4D68;
  --teal:       #49C0BC;
  --white:      #FFFFFF;
  --teal-dim:   rgba(73,192,188,.12);
  --teal-mid:   rgba(73,192,188,.25);
  --glass:      rgba(14,77,104,.35);
  --glass-b:    blur(18px);
  --r:          18px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── NOISE TEXTURE ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ─── UTILITIES ──────────────────────────────────────────── */
.teal { color: var(--teal); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-dim);
  border: 1px solid rgba(73,192,188,.3);
  color: var(--teal);
  font-size: .75rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}
.tag::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal);
  color: var(--navy);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 15px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(73,192,188,.4);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(73,192,188,.4);
  color: var(--white);
  background: transparent;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-dim);
  transform: translateY(-3px);
}

/* ─── SECTION PATTERNS ───────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 70px; }
.section-head .tag { margin-bottom: 18px; }
.section-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  opacity: .6;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── GLASS CARD ─────────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid rgba(73,192,188,.12);
  border-radius: var(--r);
  backdrop-filter: var(--glass-b);
  -webkit-backdrop-filter: var(--glass-b);
}
.glass-card:hover {
  border-color: rgba(73,192,188,.28);
}

/* ─── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73,192,188,.12), transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .tag { margin-bottom: 20px; }
.page-hero-h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero-sub {
  font-size: 1.1rem;
  opacity: .65;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73,192,188,.2), transparent);
  margin: 0;
  border: none;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition);
}
nav.scrolled {
  background: rgba(0,27,56,.9);
  backdrop-filter: var(--glass-b);
  -webkit-backdrop-filter: var(--glass-b);
  padding: 14px 0;
  border-bottom: 1px solid rgba(73,192,188,.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: 2px;
}
.logo span { color: var(--teal); }
.logo .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  margin-left: 3px;
  margin-bottom: 10px;
}
nav ul { list-style: none; display: flex; gap: 36px; }
nav ul a {
  font-size: .9rem; font-weight: 400;
  opacity: .7;
  transition: opacity var(--transition), color var(--transition);
}
nav ul a:hover, nav ul a.active { opacity: 1; color: var(--teal); }
.btn-nav {
  background: var(--teal);
  color: var(--navy);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 22px;
  border-radius: 100px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(73,192,188,.35);
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ─── MOBILE MENU ────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,27,56,.97);
  backdrop-filter: blur(20px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  opacity: .8;
}
.mobile-menu a:hover { color: var(--teal); opacity: 1; }
.close-btn {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.5rem; cursor: pointer; opacity: .7;
  background: none; border: none; color: var(--white);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(73,192,188,.1);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 14px; }
.footer-brand p { font-size: .875rem; opacity: .5; max-width: 240px; line-height: 1.65; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .875rem; opacity: .5; transition: opacity var(--transition); }
.footer-col ul a:hover { opacity: 1; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(73,192,188,.08);
  font-size: .8rem;
  opacity: .4;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  nav ul, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 60px; }
}
