/* ============================================================
   Connect Family Dental — Global Header & Footer (Modern Design)
   Loaded on ALL pages (after style.css)
   ============================================================ */

:root {
  --c-primary: #0e7c9e;
  --c-primary-dark: #0a5f7c;
  --c-primary-darker: #084b64;
  --c-accent: #17b3a6;
  --c-accent-dark: #0e9186;
  --c-navy: #0f3a5c;
  --c-text: #4e6272;
  --c-muted: #7b8b99;
  --c-soft: #f3fafc;
  --c-blue-soft: #eaf5fb;
  --c-accent-soft: #e6f7f5;
  --c-border: #e3eef4;
  --c-gold: #ffb23e;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 6px 18px rgba(15, 58, 92, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 58, 92, 0.10);
  --shadow-lg: 0 30px 70px rgba(14, 124, 158, 0.16);
  --grad-primary: linear-gradient(135deg, #0e7c9e 0%, #17b3a6 100%);
}

/* ---------- Accessibility: Skip link ---------- */
.hp-skip-link {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 10000;
  background: var(--c-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.hp-skip-link:focus {
  left: 12px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.cs-topbar {
  background: var(--c-primary-darker);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  position: relative;
  z-index: 102;
}
.cs-topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  padding: 9px 0;
  flex-wrap: wrap;
}
.cs-topbar a {
  color: #fff;
  text-decoration: none;
}
.cs-topbar a:hover { color: #d9f4f1; }
.cs-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.cs-topbar-item svg { flex: none; color: #7fd6cc; }
.cs-topbar-left, .cs-topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cs-topbar-social { display: inline-flex; gap: 8px; }
.cs-topbar-social a {
  width: 27px; height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
}
.cs-topbar-social a:hover {
  background: #fff;
  color: var(--c-primary-dark);
}
@media (max-width: 991.98px) {
  .cs-topbar { display: none; }
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.cs_site_header {
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 58, 92, 0.06);
}
.cs_site_header.cs_style1 .cs_main_header_in {
  height: 92px;
}
.cs_site_branding img {
  height: 80px !important;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}
/* Sticky state: hide topbar, keep slim main bar */
.cs_gescout_sticky { background: #fff; }
.cs_gescout_sticky .cs-topbar { display: none; }
.cs_gescout_sticky.cs_style1 .cs_main_header_in { height: 84px; }
.cs_gescout_show { box-shadow: 0 10px 34px rgba(15, 58, 92, 0.14) !important; }

/* ---------- Navigation (desktop) ---------- */
@media (min-width: 1200px) {
  .cs_site_header.cs_style1 .cs_main_header_left { gap: 20px 44px; }
  .cs_nav .cs_nav_list > li { margin-right: 32px; }
  .cs_nav .cs_nav_list > li:last-child { margin-right: 0; }
  .cs_nav .cs_nav_list > li > a {
    color: var(--c-navy);
    font-weight: 600;
    font-size: 15px;
  }
  .cs_nav .cs_nav_list > li > a:hover,
  .cs_nav .cs_nav_list > li.active > a {
    color: var(--c-primary);
  }
  .cs_nav .cs_nav_list > li.active > a::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad-primary);
  }
  .cs_nav .cs_nav_list ul {
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 58, 92, 0.14);
    padding: 10px;
  }
  .cs_nav .cs_nav_list ul a {
    color: var(--c-navy);
    font-weight: 500;
    border-radius: 9px;
    transition: none;
  }
  .cs_nav .cs_nav_list ul a:hover {
    background: var(--c-blue-soft);
    color: var(--c-primary);
  }
  .cs_nav .cs_nav_list > li.menu-item-has-children > a::after {
    border-color: currentColor;
    opacity: 0.7;
  }
}

/* ---------- Navigation (mobile panel) ---------- */
@media (max-width: 1199.98px) {
  .cs_nav .cs_nav_list {
    background: #fff;
    color: var(--c-navy);
    box-shadow: 0 20px 50px rgba(15, 58, 92, 0.16);
    padding: 16px 0;
  }
  .cs_nav .cs_nav_list a { color: var(--c-navy); }
  .cs_nav .cs_nav_list > li > a {
    font-weight: 700;
    color: var(--c-navy);
  }
  .cs_nav .cs_nav_list > li.active > a { color: var(--c-primary); }
  .cs_nav .cs_nav_list ul { background: var(--c-soft); }
  .cs_nav .cs_nav_list ul a { font-size: 15px; }

  /* Mobile hamburger (appended by main.js) */
  .cs_menu_toggle {
    width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 14px;
    color: var(--c-navy);
  }
  .cs_menu_toggle span,
  .cs_menu_toggle span:before,
  .cs_menu_toggle span:after {
    background-color: var(--c-navy);
  }
  .cs_site_header.cs_mobile_toggle_active .cs_menu_toggle:not(.cs_toggle_active) span,
  .cs_site_header.cs_mobile_toggle_active .cs_menu_toggle:not(.cs_toggle_active) span:before,
  .cs_site_header.cs_mobile_toggle_active .cs_menu_toggle:not(.cs_toggle_active) span:after {
    background-color: var(--c-navy);
  }
  .cs_munu_dropdown_toggle { color: var(--c-navy); }
}

/* ---------- Centered Nav (desktop) ---------- */
@media (min-width: 1200px) {
  .cs_site_header .cs_main_header_in {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    justify-content: unset !important;
    align-items: center !important;
  }
  .cs_site_header .cs_main_header_left {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    justify-content: flex-start !important;
  }
  .cs_site_header .cs_nav {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
  }
  .cs_site_header .cs_nav .cs_nav_list {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
  }
  .cs_site_header .cs_main_header_right {
    justify-self: end !important;
  }
}

/* ---------- Toolbox (right side) ---------- */
.cs_toolbox {
  gap: 18px;
  align-items: center;
}
.cs_toolbox .cs_toolbox_btn {
  color: var(--c-navy);
}
.cs_toolbox .cs_toolbox_btn:hover { color: var(--c-primary) !important; }
.cs-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-navy) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.cs-header-phone:hover { color: var(--c-primary) !important; }
.cs-header-phone .cs-hp-ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-blue-soft);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  flex: none;
}
.cs-header-cta {
  display: none;
  align-items: center;
  gap: 9px;
  background: var(--grad-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(14, 124, 158, 0.3);
  transition: none;
  white-space: nowrap;
}
.cs-header-cta:hover {
   
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(14, 124, 158, 0.4);
}
@media (min-width: 992px) {
  .cs-header-cta { display: inline-flex; }
}
@media (max-width: 575.98px) {
  .cs-header-phone .cs-hp-num { display: none; }
}

/* ============================================================
   SIDE NAV (drawer)
   ============================================================ */
.cs_sidenav_in {
  background: #fff;
}
.cs_sidenav_in .cs_close {
  border: 0;
  background: var(--c-blue-soft);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-navy);
  cursor: pointer;
}
.cs_sidenav_in .cs_close:hover { background: var(--c-primary); }
.cs_sidenav_in .cs_close img { filter: invert(1); opacity: 0; width: 0; }
.cs_sidenav_in .cs_close::before,
.cs_sidenav_in .cs_close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.cs_sidenav_in .cs_close::before { transform: rotate(45deg); }
.cs_sidenav_in .cs_close::after { transform: rotate(-45deg); }
.cs_sidenav_in .cs_close { position: relative; }
.cs_sidenav .cs_logo_box img { height: 60px; width: auto; }
.cs_sidenav .cs_logo_box h3 { color: var(--c-navy); }
.cs_sidenav .cs_iconbox.cs_style_11 {
  background: var(--c-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.cs_sidenav .cs_iconbox_icon {
  background: #fff;
  border-radius: 12px;
}
.cs_sidenav .cs_iconbox_title { color: var(--c-navy) !important; }
.cs_sidenav .cs_iconbox_subtitle,
.cs_sidenav .cs_iconbox_subtitle a,
.cs_sidenav .cs_heading_color { color: var(--c-text) !important; }
.cs_sidenav .cs_social_links a {
  background: var(--c-blue-soft);
  color: var(--c-primary);
  border-radius: 50%;
}
.cs_sidenav .cs_social_links a:hover {
  background: var(--grad-primary);
  color: #fff;
}
.cs_sidenav hr { border-color: var(--c-border); opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.hp-footer {
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(23, 179, 166, 0.18), transparent 60%),
    linear-gradient(180deg, #0c3a58 0%, #0a2e46 100%);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
}
.hp-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; transition: none; }
.hp-footer a:hover { color: #6fd8cd; }
.hp-footer-main { padding: 72px 0 48px; }
.hp-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr;
  gap: 40px;
}
.hp-footer h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.3px;
}
.hp-footer-brand img { height: 62px; width: auto; margin-bottom: 18px; }
.hp-footer-brand p { font-size: 14.5px; line-height: 1.75; margin: 0 0 20px; max-width: 320px; }
.hp-footer-social { display: flex; gap: 10px; }
.hp-footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #fff;
}
.hp-footer-social a:hover { background: var(--grad-primary); border-color: transparent; }
.hp-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hp-footer-links li { font-size: 14.5px; }
.hp-footer-links a { display: inline-flex; align-items: center; gap: 9px; }
.hp-footer-links a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: none;
}
.hp-footer-links a:hover { padding-left: 3px; }
.hp-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hp-footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.hp-footer-contact .hp-fc-ico {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #6fd8cd;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.hp-footer-hours { font-size: 13.5px; opacity: 0.9; }
.hp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
}
.hp-footer-bottom-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.hp-footer-bottom-in p { margin: 0; }
.hp-footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.hp-footer-bottom-links a { font-weight: 500; }
@media (max-width: 991.98px) {
  .hp-footer-main { padding: 56px 0 36px; }
  .hp-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 575.98px) {
  .hp-footer-grid { grid-template-columns: 1fr; }
  .hp-footer-bottom-in { justify-content: center; text-align: center; }
}

/* ---------- Scroll to top ---------- */
.cs_scrollup {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(14, 124, 158, 0.4);
}
.cs_scrollup:hover { color: #fff; transform: translateY(-3px); }

/* Hide custom mouse cursor effect */
.cursor,
.cs_cursor_lg,
.cs_cursor_sm {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
