/* ===========================================================
   Marti's Place — Apple-inspired, clean & simple
   Brand: #004aac (royal blue) on #faf0f1 (blush)
   =========================================================== */

:root {
  --blue: #004aac;
  --blue-deep: #003a86;
  --blue-soft: #eaf1fb;
  --blush: #faf0f1;
  --blush-deep: #f3e3e6;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --gray-light: #86868b;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-soft: #fbfbfd;

  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 228px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.07; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

.eyebrow,
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--gray); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  font-size: 1.02rem;
  font-weight: 500;
  padding: 0.85em 1.6em;
  border-radius: 980px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { color: var(--blue); }
.btn-ghost:hover { color: var(--blue-deep); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,240,241,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  height: 216px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { width: 200px; height: 200px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 1.05rem; color: var(--ink); opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links .nav-review { color: var(--blue); font-weight: 500; opacity: 1; }
.nav-links .nav-review:hover { color: var(--blue-deep); }
.nav-links .nav-call {
  background: var(--blue);
  color: #fff;
  padding: 0.55em 1.2em;
  border-radius: 980px;
  opacity: 1;
  font-weight: 500;
}
.nav-links .nav-call:hover { background: var(--blue-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 48px) 22px clamp(28px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 18px; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5rem); margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--gray); max-width: 30ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; color: var(--blue); font-weight: 500; font-style: italic; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.28);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- Trust strip ---------- */
.strip {
  background: var(--blush);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.strip-item { display: flex; flex-direction: column; gap: 6px; }
.strip-num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--blue); letter-spacing: -0.03em; }
.strip-label { font-size: 0.92rem; color: var(--gray); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 5vw, 72px) 22px; }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 3.5vw, 42px); text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.about-card h3 { margin-bottom: 12px; color: var(--blue); }
.about-card p { color: var(--gray); }

/* ---------- Care grid ---------- */
.care { background: var(--blush); max-width: none; border-radius: 0; }
.care .section-head, .care .care-grid { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.care-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.care-item:hover { transform: translateY(-4px); box-shadow: 0 18px 38px -22px rgba(0,0,0,.22); }
.care-item h3 { font-size: 1.12rem; margin-bottom: 10px; }
.care-item p { color: var(--gray); font-size: 0.96rem; }

/* ---------- Caregiver ---------- */
.caregiver-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.caregiver-text h2 { margin: 14px 0 18px; }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.creds li {
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5em 1em;
  border-radius: 980px;
}
.caregiver-badge {
  background: var(--blush);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
}
.caregiver-badge img { width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 24px; }
.caregiver-badge p { font-size: 1.3rem; font-weight: 500; color: var(--blue); font-style: italic; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; margin: 0; background: var(--bg-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-tall { grid-row: span 2; }
.gallery-tall img { aspect-ratio: auto; min-height: 100%; }
.gallery-item:not(.gallery-tall) img { aspect-ratio: 4/3; }

/* ---------- Review CTA ---------- */
.review-cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: clamp(44px, 5.5vw, 80px) 22px;
}
.review-cta h2 { margin-bottom: 14px; }
.review-cta p { font-size: 1.2rem; opacity: .85; margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: stretch;
}
.contact-info h2 { margin: 14px 0 18px; }
.contact-list { list-style: none; margin: 32px 0; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-light); font-weight: 600; }
.contact-list a, .contact-list span:not(.contact-label) { font-size: 1.15rem; }
.contact-list a { color: var(--blue); transition: color .2s; }
.contact-list a:hover { color: var(--blue-deep); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; box-shadow: 0 20px 50px -28px rgba(0,0,0,.3); }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #f5f5f7; padding: 56px 22px 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 10px; }
.footer-brand strong { display: block; font-size: 1.1rem; }
.footer-brand span { font-size: 0.85rem; color: #a1a1a6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-bottom: 26px; }
.footer-links a { color: #d2d2d7; font-size: 0.92rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-meta { color: #a1a1a6; font-size: 0.92rem; margin-bottom: 8px; }
.footer-meta a { color: #d2d2d7; }
.footer-copy { color: #6e6e73; font-size: 0.82rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .caregiver-inner, .contact-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-tall { grid-row: auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 216px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(250,240,241,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 22px 22px;
    border-bottom: 1px solid var(--blush-deep);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--blush-deep); font-size: 1.1rem; }
  .nav-links .nav-call, .nav-links .nav-review { text-align: center; margin-top: 12px; border-bottom: none; }
  .nav-links .nav-call { padding: 14px; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; border-radius: 0; }
}

@media (max-width: 460px) {
  .care-grid { grid-template-columns: 1fr; }
  .nav-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
