/* ============================================================
   Total Home Help — warm, trustworthy, accessible
   Brand: royal blue + navy (from logo) with a warm amber accent
   ============================================================ */

:root {
  /* surfaces */
  --paper:      #f7f3ec;   /* warm cream background */
  --paper-2:    #eef0f6;   /* cool soft band */
  --card:       #fffdf9;   /* card surface */

  /* brand blues */
  --blue:       #134a9e;   /* primary royal blue */
  --blue-700:   #0e3a7e;   /* hover / darker */
  --blue-300:   #7a9fd8;   /* light accents, quote marks */
  --navy:       #0d1f50;   /* headings, footer, dark text */
  --tint:       #e4ecfb;   /* soft blue fill (icon bg, chips) */
  --tint-2:     #eef4fd;   /* lighter blue fill */

  /* warm accent */
  --accent:     #c5751f;   /* deep amber — eyebrows, dots */
  --accent-soft:#f4e4cc;   /* sand tint (icon bg) */
  --gold:       #e7a23a;   /* bright decorative gold */

  /* ink */
  --ink:        #25304a;   /* body text (cool slate) */
  --ink-strong: #0d1f50;   /* headings (navy) */
  --muted:      #5a6478;
  --line:       #e4ddce;   /* hairline */

  --shadow-sm: 0 2px 6px rgba(13, 31, 80, 0.07);
  --shadow-md: 0 14px 36px -18px rgba(13, 31, 80, 0.32);
  --shadow-lg: 0 30px 70px -30px rgba(13, 31, 80, 0.45);

  --radius:    18px;
  --radius-lg: 28px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px base — readable for older eyes */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); }

p { margin: 0 0 1rem; }

a { color: var(--blue-700); text-decoration-color: rgba(19,74,158,0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--blue); color: #fff; padding: 0.6rem 1.1rem;
  border-radius: 0 0 12px 12px; z-index: 200; transition: top 0.2s ease;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-ico { width: 1.25em; height: 1.25em; }
.btn-primary {
  background: var(--blue); color: #fff; box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent; color: var(--blue-700); border-color: rgba(19,74,158,0.35);
}
.btn-ghost:hover { background: var(--tint-2); border-color: var(--blue); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; padding-block: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.6rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  color: var(--navy); letter-spacing: -0.01em;
}
.brand-sub { font-size: 0.74rem; color: var(--accent); letter-spacing: 0.02em; font-weight: 600; font-style: italic; }

.nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none; display: flex; align-items: center; gap: 0.35rem;
  margin: 0; padding: 0;
}
.nav-menu a {
  display: inline-block; text-decoration: none; color: var(--ink);
  font-weight: 500; padding: 0.5rem 0.85rem; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-menu a:hover { background: var(--tint-2); color: var(--blue-700); }
.nav-menu .nav-cta {
  background: var(--blue); color: #fff; margin-left: 0.4rem;
  box-shadow: var(--shadow-sm);
}
.nav-menu .nav-cta:hover { background: var(--blue-700); color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--card); border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 22px; height: 2.5px; border-radius: 3px;
  background: var(--navy); transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -10%, var(--tint), transparent 60%),
    radial-gradient(900px 500px at 0% 8%, var(--accent-soft) 0%, transparent 52%),
    var(--paper);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-copy { max-width: 38rem; }
.hero h1 { margin-bottom: 0.4em; }
.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  color: var(--ink); max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.4rem; }

.hero-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-size: 0.96rem; color: var(--muted);
}
.hero-chips li { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* hero photo */
.hero-art { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
  aspect-ratio: 1 / 1;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -14px; bottom: 22px;
  background: #fff; border-radius: 16px; padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.7rem;
  max-width: 78%;
}
.hero-badge .badge-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--tint); color: var(--blue); display: grid; place-items: center;
}
.hero-badge .badge-ico svg { width: 24px; height: 24px; }
.hero-badge strong { display: block; color: var(--navy); font-size: 0.98rem; line-height: 1.2; }
.hero-badge span { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   BANDS & SECTIONS
   ============================================================ */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band { padding-block: clamp(2.5rem, 5vw, 3.6rem); }

.intro-band {
  background: var(--navy);
  text-align: center;
  color: #eaf0fb;
}
.intro-inner { max-width: 46rem; margin-inline: auto; }
.intro-band h2 { margin-bottom: 0.4em; color: #fff; }
.intro-band p { font-size: 1.18rem; color: #cdd8ef; margin: 0; }
.leaf {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: rgba(255,255,255,0.12); color: var(--gold);
  margin-bottom: 1rem;
}
.leaf svg { width: 28px; height: 28px; }

.section-head { max-width: 42rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-intro { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* cards (shared) */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.service {
  padding: 1.8rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.service-ico {
  display: inline-grid; place-items: center; width: 60px; height: 60px;
  border-radius: 16px; margin-bottom: 1.1rem;
}
.service-ico svg { width: 32px; height: 32px; }
.service-ico[data-tint="blue"] { background: var(--tint); color: var(--blue); }
.service-ico[data-tint="amber"] { background: var(--accent-soft); color: var(--accent); }
.service h3 { margin-bottom: 0.35em; }
.service p { color: var(--muted); margin: 0; }

.services-foot {
  text-align: center; margin: 2.4rem auto 0; max-width: 40rem;
  font-size: 1.06rem; color: var(--muted);
}

/* ============================================================
   MOMENTS GALLERY
   ============================================================ */
.moments { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.moment {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 4 / 5; background: var(--navy);
}
.moment img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.moment:hover img { transform: scale(1.05); }
.moment figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.1rem 1rem;
  color: #fff; font-weight: 600; font-size: 1.02rem;
  background: linear-gradient(to top, rgba(13,31,80,0.82) 0%, rgba(13,31,80,0.45) 55%, transparent 100%);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--paper); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  counter-reset: step;
}
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 1.7rem 1.7rem; text-align: left;
}
.step-num {
  position: absolute; top: -22px; left: 1.6rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  box-shadow: var(--shadow-md);
}
.step h3 { margin: 0.4rem 0 0.4em; }
.step p { color: var(--muted); margin: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about-art { position: relative; }
.about-photo {
  border-radius: var(--radius-lg); overflow: hidden; border: 6px solid #fff;
  box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { max-width: 38rem; }
.about-copy p { color: var(--ink); }
.values { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.values li { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 500; }
.tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tint); color: var(--blue); display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.stories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.quote { padding: 1.8rem 1.7rem 1.6rem; position: relative; display: flex; flex-direction: column; }
.quote-mark {
  font-family: var(--font-display); font-size: 3.4rem; line-height: 0.6;
  color: var(--blue-300); height: 1.6rem;
}
.quote blockquote { margin: 0 0 1.3rem; font-size: 1.06rem; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 2px solid #fff; box-shadow: var(--shadow-sm); background: var(--tint);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.who { font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); font-size: 1.08rem; display: block; }
.role { font-size: 0.88rem; color: var(--muted); display: block; }

.stories-cta {
  background: linear-gradient(155deg, var(--blue) 0%, var(--navy) 100%);
  border: none; color: #fff; justify-content: center; align-items: flex-start; gap: 0.3rem;
}
.stories-cta h3 { color: #fff; }
.stories-cta p { color: rgba(255,255,255,0.88); margin-bottom: 1.2rem; }
.stories-cta .btn-primary { background: #fff; color: var(--blue-700); }
.stories-cta .btn-primary:hover { background: var(--accent-soft); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background:
    radial-gradient(900px 460px at 100% 0%, var(--tint), transparent 55%),
    var(--paper);
}
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: start;
}
.contact-lede { font-size: 1.1rem; color: var(--ink); max-width: 30rem; }
.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--tint); color: var(--blue); display: grid; place-items: center;
}
.contact-ico svg { width: 24px; height: 24px; }
.contact-label {
  display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.contact-list a { font-weight: 600; font-size: 1.05rem; }

/* form */
.contact-card { padding: clamp(1.6rem, 3vw, 2.2rem); }
.contact-card h3 { margin-bottom: 0.3em; }
.form-note { color: var(--muted); font-size: 0.98rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--ink-strong); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(122,159,216,0.35);
}
textarea { resize: vertical; }
.form-status { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--blue-700); }
.form-status.err { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: #cdd8ef; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; align-items: start;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; gap: 0.9rem; align-items: center; }
.footer-logo-plate {
  display: inline-block; background: #fff; border-radius: 18px;
  padding: 18px 24px; box-shadow: var(--shadow-md);
}
.footer-logo-plate img { width: 210px; height: auto; display: block; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: #cdd8ef; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; color: #9fb0d3; font-size: 0.96rem; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.4rem; color: #8295bb; font-size: 0.86rem;
}
.footer-base p { margin: 0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { order: -1; max-width: 520px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .steps, .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.8rem 4%; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 0.8rem 1rem; }
  .nav-menu .nav-cta { margin-left: 0; text-align: center; margin-top: 0.3rem; }
}

@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .services-grid, .steps, .stories-grid, .footer-inner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .moment { aspect-ratio: 3 / 2; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .steps { row-gap: 2.4rem; }
  .footer-base { flex-direction: column; }
  .brand-sub { display: none; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 1.28rem; }
  .footer-logo-plate img { width: 180px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .moment:hover img { transform: none; }
}
