/* ============================================================
   HOME CARE SEO AGENCY — MASTER STYLESHEET
   Edit phone/email here once, every page updates.
   ============================================================ */

:root {
  /* ⬇ EDIT CONTACT INFO HERE ⬇ */
  --phone-display: "(888) 229-8057";
  --phone-link: "+18882298057";
  --email: "hello@homecareseoagency.com";

  /* Brand colors */
  --navy: #16324F;
  --navy-deep: #0E2238;
  --navy-soft: #3E5A7A;
  --sage: #7BAE7F;
  --sage-deep: #5A8E5F;
  --sage-soft: #C5DCC7;
  --sage-ghost: #E8F1E9;
  --cream: #FAF7F2;
  --cream-deep: #F2EBDD;
  --sand: #D8C3A5;
  --sand-deep: #B8A084;
  --paper: #FAF7F2;
  --red: #C9533F;

  /* Type system */
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --script: 'Caveat', cursive;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

.display { font-family: var(--display); font-weight: 400; line-height: 1.0; }
.script { font-family: var(--script); font-weight: 500; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: var(--sage-deep);
  color: var(--cream);
  padding: 11px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.announce-tag {
  background: var(--cream);
  color: var(--sage-deep);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.announce a { color: var(--cream); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   NAV
   ============================================================ */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 50, 79, 0.06);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-text-mobile {
  display: none;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-trigger,
.nav-link {
  background: none;
  border: none;
  color: var(--navy);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-trigger:hover, .nav-trigger.active,
.nav-link:hover { color: var(--sage-deep); }
.nav-trigger svg {
  width: 12px; height: 12px;
  transition: transform 0.25s ease;
}
.nav-trigger.active svg { transform: rotate(180deg); }

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--navy-deep);
  transition: all 0.3s;
}
.nav-cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--navy-deep); color: var(--cream) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega-panel {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid rgba(22, 50, 79, 0.06);
  border-bottom: 1px solid rgba(22, 50, 79, 0.06);
  box-shadow: 0 30px 60px -20px rgba(22, 50, 79, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 99;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 28px 46px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
}
.mega-feature {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  border-radius: 20px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.3s;
}
.mega-feature:hover { transform: translateY(-3px); }
.mega-feature::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: var(--sage);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.mega-feature-tag {
  position: relative; z-index: 2;
  display: inline-block;
  background: var(--sand);
  color: var(--navy);
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.mega-feature h4 {
  position: relative; z-index: 2;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.mega-feature h4 em { font-style: italic; color: var(--sage-soft); }
.mega-feature p {
  position: relative; z-index: 2;
  font-size: 14px;
  color: rgba(250, 247, 242, 0.75);
  line-height: 1.5;
  margin-bottom: 22px;
}
.mega-feature-link {
  position: relative; z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mega-feature-link svg { width: 14px; transition: transform 0.3s; }
.mega-feature:hover .mega-feature-link svg { transform: translateX(4px); }

.mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.mega-col h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage-deep);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sage-ghost);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mega-col h5 .dot {
  width: 5px; height: 5px;
  background: var(--sage);
  border-radius: 50%;
}
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li { margin-bottom: 2px; }
.mega-col a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.mega-col a:hover {
  background: var(--cream-deep);
  color: var(--sage-deep);
  padding-left: 16px;
}
.mega-col a .meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--navy-soft);
  margin-top: 2px;
  line-height: 1.35;
}
.new-tag {
  display: inline-block;
  background: var(--sage);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 6px;
  vertical-align: middle;
}

.mega-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mega-tool-card {
  background: var(--cream-deep);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s;
}
.mega-tool-card:hover { background: var(--sage-ghost); transform: translateY(-2px); }
.mega-tool-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.mega-tool-name { font-size: 13px; font-weight: 700; line-height: 1.2; margin-bottom: 2px; }
.mega-tool-desc { font-size: 11px; color: var(--navy-soft); line-height: 1.3; }

.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 50, 79, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 98;
}
.mega-backdrop.open { opacity: 1; visibility: visible; }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(22, 50, 79, 0.08);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-drawer-head .logo img { height: 38px; }
.mobile-drawer-close {
  width: 40px; height: 40px;
  border: none;
  background: var(--cream-deep);
  border-radius: 12px;
  cursor: pointer;
  color: var(--navy);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer-body { padding: 16px 18px 30px; flex: 1; }
.mobile-section {
  margin-bottom: 10px;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid rgba(22, 50, 79, 0.06);
  overflow: hidden;
}
.mobile-section-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-size: 18px;
  color: var(--navy);
  cursor: pointer;
  letter-spacing: -0.01em;
}
.mobile-section-trigger::after {
  content: '+';
  width: 30px; height: 30px;
  background: var(--sage-ghost);
  color: var(--sage-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s;
}
.mobile-section.open .mobile-section-trigger::after { transform: rotate(45deg); }
.mobile-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-section.open .mobile-section-content { max-height: 1400px; }
.mobile-section ul { list-style: none; padding: 0 12px 12px; }
.mobile-section li a {
  display: block;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s;
}
.mobile-section li a:active,
.mobile-section li a:hover { background: var(--cream-deep); }
.mobile-section li a .meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--navy-soft);
  margin-top: 2px;
}
.mobile-direct-link {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--display);
  font-size: 18px;
  background: var(--paper);
  border-radius: 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(22, 50, 79, 0.06);
  letter-spacing: -0.01em;
}
.mobile-drawer-cta {
  padding: 18px 18px 26px;
  border-top: 1px solid rgba(22, 50, 79, 0.06);
  background: var(--paper);
  position: sticky;
  bottom: 0;
}
.mobile-drawer-cta .btn-primary { width: 100%; justify-content: center; }
.mobile-drawer-cta .phone {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--navy-soft);
}
.mobile-drawer-cta .phone a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--navy);
  color: var(--cream);
  padding: 18px 30px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s;
  box-shadow: 0 5px 0 var(--navy-deep), 0 14px 30px -10px rgba(22, 50, 79, 0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--navy-deep), 0 8px 20px -8px rgba(22, 50, 79, 0.3);
}
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  color: var(--navy);
  padding: 16px 22px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--sage);
  transition: all 0.25s;
}
.btn-ghost:hover { color: var(--sage-deep); }

.btn-sand {
  background: var(--sand);
  color: var(--navy);
  box-shadow: 0 5px 0 var(--sand-deep);
}
.btn-sand:hover { box-shadow: 0 2px 0 var(--sand-deep); }

/* ============================================================
   GLOBAL SECTION SYSTEM
   ============================================================ */
section { padding: 90px 28px; }
.section-inner { max-width: 1320px; margin: 0 auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--sage-ghost);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-eyebrow .dot { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }
.section-h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-h2 em { font-style: italic; color: var(--sage-deep); }
.section-h2 .underline {
  position: relative;
  display: inline-block;
}
.section-h2 .underline::after {
  content: '';
  position: absolute;
  left: -3%; right: -3%; bottom: 4px;
  height: 12px;
  background: var(--sand);
  z-index: -1;
  transform: skew(-6deg);
  opacity: 0.5;
}
.section-sub {
  font-size: 18px;
  color: var(--navy-soft);
  max-width: 700px;
  line-height: 1.55;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 28px 0;
  font-size: 13px;
  color: var(--navy-soft);
}
.breadcrumb a {
  color: var(--navy-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--sage-deep); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 70px 28px 30px;
}
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 18px;
}
.footer-brand .logo img {
  height: 48px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.65);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 22px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}
.socials a:hover { background: var(--sage); transform: translateY(-2px); }

.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sand);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(250, 247, 242, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--sage-soft); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal a { color: rgba(250, 247, 242, 0.5); text-decoration: none; margin-left: 16px; }
.footer-bottom .legal a:hover { color: var(--cream); }

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
.call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 90;
  padding: 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}
.call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.call-bar a:first-child { background: var(--sage-deep); }
.call-bar a + a { border-left: 1px solid rgba(255,255,255,0.1); }

/* ============================================================
   FINAL CTA SECTION (reusable)
   ============================================================ */
.final-cta {
  padding: 100px 28px;
  background: var(--cream);
}
.final-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--cream);
  border-radius: 36px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-inner::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 500px; height: 500px;
  background: var(--sage);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}
.final-cta-inner::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -150px;
  width: 500px; height: 500px;
  background: var(--sand);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}
.final-cta-content { position: relative; z-index: 2; }
.final-cta .script {
  font-size: 26px;
  color: var(--sage-soft);
  display: inline-block;
  margin-bottom: 16px;
  transform: rotate(-2deg);
}
.final-cta h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.0;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.final-cta h2 em { font-style: italic; color: var(--sage-soft); }
.final-cta p {
  font-size: 18px;
  color: rgba(250, 247, 242, 0.8);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.final-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.final-cta .btn-ghost { color: var(--cream); border-bottom-color: var(--sage-soft); }
.final-cta .btn-ghost:hover { color: var(--sage-soft); }
.final-cta-fineprint {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.6);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  section { padding: 64px 20px; }
  .call-bar { display: flex; }
  body { padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom .legal a { margin: 0 8px; }
  .final-cta { padding: 64px 20px; }
  .final-cta-inner { padding: 56px 30px; border-radius: 28px; }
  .final-cta-actions { flex-direction: column; align-items: stretch; }
  .final-cta-actions .btn-primary,
  .final-cta-actions .btn-ghost { justify-content: center; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 12px 18px; }
  .logo img { height: 38px; }
  .breadcrumb { padding: 18px 20px 0; font-size: 12px; }
  .announce { font-size: 11px; gap: 8px; padding: 9px 14px; }
  .announce-tag { font-size: 9px; }
}
