:root {
  --navy: #1B2A4A;
  --navy-deep: #111D35;
  --blue: #2B4C7E;
  --teal: #3DA5A0;
  --teal-soft: #4DB8B3;
  --warm-white: #FAFAF8;
  --cream: #F5F3EE;
  --cream-deep: #EDE9E1;
  --text: #1E1E1E;
  --text-light: #3D3D3D;
  --text-faint: #5C564E;
  --border: #DDD9D0;
  --border-light: #EDEAE4;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   GRAIN OVERLAY — adds tactile depth
   Disabled on mobile for scroll performance
   ============================================ */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  will-change: transform;
  transition: padding 0.4s var(--ease-out-quart),
              background 0.4s var(--ease-out-quart),
              box-shadow 0.4s var(--ease-out-quart);
}

header.scrolled {
  padding: 12px 0;
  background: rgba(27, 42, 74, 0.97);
  box-shadow: 0 1px 30px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-area img {
  height: 26px;
  transition: opacity 0.3s;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.header-link:hover { color: #fff; }

.header-phone {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-quart);
}

.header-phone:hover {
  color: #fff;
  border-color: var(--teal);
  background: rgba(61, 165, 160, 0.1);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  padding: 120px 32px 80px;
}

/* Ambient gradient orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbReveal 2s var(--ease-out-expo) forwards;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 76, 126, 0.35) 0%, transparent 70%);
  top: -15%;
  right: -10%;
  animation-delay: 0.5s;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61, 165, 160, 0.12) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: 0.8s;
}

@keyframes orbReveal {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Subtle grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  max-width: 680px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Decorative line above tagline */
.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--teal);
  margin: 0 auto 28px;
  opacity: 0;
  animation: ruleReveal 0.8s var(--ease-out-expo) 0.3s forwards;
}

@keyframes ruleReveal {
  from { opacity: 0; width: 0; }
  to { opacity: 1; width: 48px; }
}

.hero .tagline {
  font-size: 15px;
  color: var(--teal-soft);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out-expo) 0.4s forwards;
}

.hero h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 54px;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out-expo) 0.55s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal-soft);
}

.hero .hero-sub {
  font-size: 22px;
  color: rgba(255,255,255,0.7);
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.75;
  font-weight: 300;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out-expo) 0.7s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out-expo) 0.85s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.35s var(--ease-out-quart);
  box-shadow: 0 4px 24px rgba(61, 165, 160, 0.25),
              inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 165, 160, 0.35),
              inset 0 1px 0 rgba(255,255,255,0.2);
  background: var(--teal-soft);
}

.btn-secondary {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}

.btn-secondary:hover { color: rgba(255,255,255,0.85); }

/* ============================================
   REVEAL ANIMATION SYSTEM
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   SECTION FUNDAMENTALS
   ============================================ */
section {
  padding: 96px 32px;
  position: relative;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-rule {
  width: 32px;
  height: 2px;
  background: var(--teal);
  margin-bottom: 24px;
}

.section-rule.center { margin-left: auto; margin-right: auto; }

/* ============================================
   EMPATHY SECTION
   ============================================ */
.empathy {
  background: var(--cream);
  position: relative;
}

/* Decorative corner accent */
.empathy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top left, rgba(61,165,160,0.04) 0%, transparent 70%);
}

.empathy-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.empathy-inner h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.empathy-inner .lead {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 44px;
  line-height: 1.75;
  font-weight: 300;
}

.pain-points {
  list-style: none;
  text-align: left;
  max-width: 500px;
  margin: 0 auto 44px;
}

.pain-points li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
}

.pain-points li:last-child { border-bottom: none; }

.empathy-close {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 20px;
  color: var(--navy);
  font-style: italic;
  line-height: 1.6;
  position: relative;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--warm-white);
}

.services-heading {
  text-align: center;
  margin-bottom: 12px;
}

.services-heading h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 34px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.services-lead {
  text-align: center;
  font-size: 20px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.75;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.svc {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-quart);
}

.svc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-quart);
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.08),
              0 2px 8px rgba(27, 42, 74, 0.04);
  border-color: transparent;
}

.svc:hover::before { opacity: 1; }

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-out-quart);
}

.svc-icon svg {
  width: 24px;
  height: 24px;
}

.svc:hover .svc-icon { transform: scale(1.08); }

.svc-icon.shield { background: rgba(43, 76, 126, 0.08); color: var(--blue); }
.svc-icon.clarity { background: rgba(61, 165, 160, 0.08); color: var(--teal); }
.svc-icon.wrench { background: rgba(27, 42, 74, 0.06); color: var(--navy); }
.svc-icon.connected { background: rgba(61, 165, 160, 0.1); color: var(--teal); }

.svc h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 4px;
}

.svc .svc-sub {
  font-size: 16px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 18px;
  font-style: italic;
}

.svc ul { list-style: none; }

.svc ul li {
  padding: 6px 0 6px 20px;
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
}

.svc ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}

.svc:hover ul li::before { background: var(--teal); }

/* ============================================
   WHAT TO EXPECT — TIMELINE
   ============================================ */
.expect {
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.expect::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(43, 76, 126, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.expect-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.expect-inner h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 34px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.expect-inner .lead {
  font-size: 20px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 64px;
  line-height: 1.75;
  font-weight: 300;
}

.timeline {
  display: flex;
  gap: 0;
  position: relative;
}

/* Connecting line */
.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,165,160,0.3) 20%, rgba(61,165,160,0.3) 80%, transparent);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(61, 165, 160, 0.1);
  border: 1px solid rgba(61, 165, 160, 0.25);
  color: var(--teal-soft);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-out-quart);
}

.step:hover .step-num {
  background: rgba(61, 165, 160, 0.2);
  transform: scale(1.1);
}

.step h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 19px;
  margin-bottom: 10px;
}

.step p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust {
  padding: 52px 32px;
  background: var(--cream);
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-num {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 36px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}

.trust-label {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.trust-num--text {
  font-size: 22px;
  letter-spacing: 0.5px;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--warm-white);
  text-align: center;
  padding: 104px 32px;
}

.contact h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.contact .lead {
  font-size: 20px;
  color: var(--text-light);
  max-width: 400px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 300;
}

.contact-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 44px 40px 40px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out-quart);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.contact-card:hover {
  box-shadow: 0 16px 48px rgba(27, 42, 74, 0.08);
}

.contact-phone {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 30px;
  color: var(--navy);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.contact-phone:hover { color: var(--teal); }

.contact-email a {
  color: var(--blue);
  text-decoration: none;
  font-size: 19px;
  transition: color 0.3s;
  border-bottom: 1px solid transparent;
}

.contact-email a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.contact-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 20px auto;
}

.contact-family {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 12px;
}

.contact-area {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy-deep);
  padding: 28px 32px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  /* Kill the grain overlay on mobile — major scroll perf win */
  body::after { display: none; }

  /* Disable hero orbs and grid on mobile — eliminates top-of-page lag */
  .hero::before,
  .hero::after {
    display: none;
  }
  .hero-grid { display: none; }

  /* Larger tap targets for older adults */
  .btn-primary { padding: 18px 40px; font-size: 19px; }
  .header-phone { padding: 10px 20px; }
  .contact-phone { padding: 8px 0; }

  .hero { padding: 100px 24px 60px; min-height: 90vh; }
  .hero h1 { font-size: 30px; line-height: 1.3; }
  .hero .hero-sub { font-size: 18px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .empathy-inner h2 { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-heading h2 { font-size: 28px; }
  .timeline {
    flex-direction: column;
    gap: 36px;
    max-width: 320px;
    margin: 0 auto;
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(to bottom, transparent, rgba(61,165,160,0.3) 20%, rgba(61,165,160,0.3) 80%, transparent);
  }
  .step { text-align: left; padding-left: 64px; }
  .step-num {
    position: absolute;
    left: 0;
    top: 0;
  }
  .contact-phone { font-size: 24px; }
  .contact-card { padding: 36px 28px 32px; }
  .trust-inner {
    flex-wrap: wrap;
    gap: 24px;
  }
  .trust-divider { display: none; }
  section { padding: 72px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .svc { padding: 28px 22px; }
}

/* ============================================
   SMOOTH SCROLL OFFSET
   ============================================ */
[id] { scroll-margin-top: 80px; }

/* ============================================
   SELECTION STYLE
   ============================================ */
::selection {
  background: rgba(61, 165, 160, 0.2);
  color: var(--navy);
}

/* ============================================
   ACCESSIBLE FOCUS STYLE
   ============================================ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
