/* ==========================================================================
   SAFE & GUARD HOME CARE — Brand Stylesheet
   Deep Blue #003B73 | Turquoise #00A8B5 | White #FFFFFF
   Light Gray #EEF2F5 | Gold #C9A227
   ========================================================================== */

:root {
  --deep-blue: #003B73;
  --deep-blue-dark: #002850;
  --turquoise: #00A8B5;
  --turquoise-dark: #00838D;
  --white: #FFFFFF;
  --light-gray: #EEF2F5;
  --gold: #C9A227;
  --gold-light: #E4C765;
  --ink: #1B2B3A;
  --ink-soft: #4A5A68;
  --border: #DCE4EA;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 59, 115, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 59, 115, 0.12);
  --shadow-lg: 0 20px 48px rgba(0, 59, 115, 0.16);
  --max-width: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--turquoise-dark); text-decoration: none; }
a:hover { color: var(--deep-blue); }
ul { padding-left: 1.25rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--deep-blue);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-light { background: var(--light-gray); }
.bg-blue { background: var(--deep-blue); color: var(--white); }
.bg-blue h2, .bg-blue h3, .bg-blue p { color: var(--white); }
.bg-blue .lede { color: #C9DCEE; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---- Utility ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--turquoise-dark);
  background: rgba(0, 168, 181, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.bg-blue .eyebrow { background: rgba(255,255,255,0.12); color: var(--gold-light); }
.lede { font-size: 1.15rem; max-width: 620px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--deep-blue-dark);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--gold-light); color: var(--deep-blue-dark); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-blue {
  background: var(--deep-blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--deep-blue-dark); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.topbar {
  background: var(--deep-blue);
  color: #CFE0EF;
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.topbar .icon { margin-right: 5px; vertical-align: -3px; color: var(--gold-light); }
.topbar-areas { display: flex; align-items: center; }
.topbar-license { display: flex; align-items: center; opacity: 0.95; }
.topbar a { color: var(--gold-light); font-weight: 700; display: inline-flex; align-items: center; }
.topbar a .icon { margin-right: 4px; }
@media (max-width: 720px) { .topbar-areas { display: none; } .topbar .container { justify-content: center; } }

.navwrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 52px; width: 52px; }
.brand-text { line-height: 1.15; }
.brand-text .name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--deep-blue); display: block; white-space: nowrap; }
.brand-text .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turquoise-dark); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 11px 14px;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
}
.main-nav a:hover { background: var(--light-gray); color: var(--deep-blue); }
.main-nav a[aria-current="page"] { color: var(--deep-blue); background: var(--light-gray); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.has-dropdown { position: relative; }
.dd-chevron { margin-left: 3px; transition: transform 0.2s ease; color: var(--ink-soft); }
.has-dropdown:hover .dd-chevron, .has-dropdown.open .dd-chevron { transform: rotate(180deg); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 250px;
  padding: 10px;
  margin-top: 6px;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: flex; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; }
.dropdown a:hover { background: var(--light-gray); }
.dropdown-all { margin-top: 4px; padding-top: 12px !important; border-top: 1px solid var(--border); color: var(--turquoise-dark) !important; }

.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-phone { display: flex; align-items: center; gap: 8px; color: var(--deep-blue); }
.nav-phone .icon { color: var(--turquoise-dark); }
.nav-phone-text { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.nav-phone .label { font-size: 0.68rem; color: var(--ink-soft); font-weight: 600; }
.nav-phone .num { font-weight: 800; color: var(--deep-blue); font-size: 1rem; }

.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 28, 56, 0.45);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-backdrop.show { display: block; opacity: 1; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--deep-blue);
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 84%; max-width: 340px;
    background: var(--white); flex-direction: column; align-items: stretch; padding: 108px 20px 30px;
    box-shadow: var(--shadow-lg); transition: right 0.28s ease; overflow-y: auto; z-index: 96; gap: 2px; }
  .main-nav.open { right: 0; }
  .main-nav a { padding: 15px 12px; border-bottom: 1px solid var(--border); border-radius: 8px; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .has-dropdown .dropdown { position: static; box-shadow: none; border: none; display: none; margin: 0 0 0 10px; padding: 4px 0 4px 10px; border-left: 2px solid var(--light-gray); }
  .has-dropdown.open .dropdown { display: block; }
  .menu-toggle { display: flex; }
  .nav-phone-text { display: none; }
  .nav-cta { gap: 10px; }
}
@media (max-width: 640px) {
  .brand-text .tag { display: none; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(120deg, var(--deep-blue) 0%, var(--deep-blue-dark) 62%, #001c38 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 84px 0 88px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,181,0.35) 0%, rgba(0,168,181,0) 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { color: var(--white); }
.hero .lede { color: #D7E6F3; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.18); }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #CFE0EF; font-weight: 600; }
.trust-item .ico { color: var(--gold-light); font-size: 1.1rem; }
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 18px; }

/* ---- Icon sizing system ---- */
svg { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; flex-shrink: 0; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; vertical-align: -6px; }
.icon svg { width: 100%; height: 100%; vertical-align: baseline; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 40px; height: 40px; }
.icon-xxl { width: 56px; height: 56px; }
.icon-badge svg { width: 28px; height: 28px; vertical-align: baseline; }
.step-num svg { width: 22px; height: 22px; vertical-align: baseline; }
.btn svg { vertical-align: -3px; }
.trust-item svg { color: var(--gold-light); }
h3 svg, .loc-card h3 svg { color: var(--turquoise-dark); margin-right: 2px; }

/* ---- Signature icon motif (house + heartbeat) ---- */
.motif-icon { width: 46px; height: 46px; }
.icon-badge {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--turquoise-dark);
}
.bg-blue .icon-badge { background: rgba(255,255,255,0.1); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link { font-weight: 700; font-size: 0.92rem; }

.service-card { display: flex; flex-direction: column; }

/* ---- Badges / pills ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.pill {
  background: var(--light-gray);
  color: var(--deep-blue);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---- Process steps ---- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--deep-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---- Testimonial ---- */
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial p.quote { font-style: italic; font-size: 1.05rem; color: var(--ink); }
.testimonial .who { font-weight: 700; color: var(--deep-blue); font-size: 0.9rem; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(120deg, var(--turquoise) 0%, var(--turquoise-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner p { margin: 0; color: #E5F8FA; }

/* ---- Location grid ---- */
.loc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: left;
}
.loc-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin-bottom: 6px; }
.loc-card .zip { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 12px; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.85rem; padding: 16px 0; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--deep-blue); }
.breadcrumb .sep { margin: 0 8px; color: #B8C4CC; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(120deg, var(--deep-blue) 0%, var(--deep-blue-dark) 100%);
  color: var(--white);
  padding: 56px 0 64px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .lede { color: #D7E6F3; max-width: 720px; }

/* ---- Form ---- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--deep-blue); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--light-gray);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  background: var(--white);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-two { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.success { color: var(--turquoise-dark); }

/* ---- FAQ (accordion) ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--deep-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
}
.faq-q .plus { flex: none; font-size: 1.4rem; color: var(--turquoise); transition: transform 0.2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 20px; }

/* ---- Footer ---- */
.site-footer { background: var(--deep-blue-dark); color: #B9CBDB; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.site-footer a { color: #B9CBDB; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 44px; border-radius: 6px; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-weight: 700; font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--deep-blue-dark);
  padding: 12px 18px; z-index: 200; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Sticky mobile call bar ---- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--gold);
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; font-weight: 800; color: var(--deep-blue-dark);
}
@media (max-width: 720px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 58px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
