@media (max-width: 991px) {
  .navbar-toggler {
    display: block !important;
    color: #033861 !important;
    z-index: 1100 !important;
  }
  .navbar-toggler-icon {
    background-color: #033861 !important;
    border-radius: 4px;
  }
}
/* Gallery images pop out on hover (match project-tile/tile-img) */
.gallery-img {
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-img:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 .6rem 1.5rem rgba(0,0,0,.18);
  z-index: 2;
}
/* Force Share/Like row layout for all posts */
.post-share-like-row {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.post-share-like-row > * {
  margin: 0 !important;
}

.post-share-like-row .sharedaddy {
  float: none !important;
  width: auto !important;
  flex: 1 1 0;
  min-width: 200px;
}

.post-share-like-row .sharedaddy.sd-block.sd-like,
.post-share-like-row .jetpack-likes-widget-wrapper {
  float: none !important;
  width: auto !important;
  flex: 0 0 auto;
  margin-left: auto !important;
}
/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
  --bs-primary: #033861;
  --bs-primary-rgb: 3, 56, 97;
  --bs-secondary: #474747;
  --bs-secondary-rgb: 71, 71, 71;
  --bs-thirdary: #3978a8;
  --bs-thirdary-rgb: 57, 120, 168;
  --footer-bg: #2f2f2f;
  --footer-accent: #caa24c;
}

/* =========================================================
   BASE / TYPOGRAPHY
========================================================= */
body {
  font-family: 'Roboto', sans-serif, Arial, sans-serif, Helvetica;
}

/* =========================================================
   NAVBAR – STRUCTURE & BEHAVIOR
========================================================= */
#mainNav {
  background-color: transparent;
  transition: none !important;
}

.navbar {
  transition: none !important;
  font-family: 'Roboto', sans-serif, Arial, sans-serif, Helvetica;
}

#brand {
  margin-right: 40px;
}

.navbar-nav {
  white-space: nowrap;
}

.navbar-brand {
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* =========================================================
   NAVBAR – LOGO BEHAVIOR
========================================================= */
#navLogo {
  height: 110px;
  transition: none !important;
}

#mainNav.nav-scrolled #navLogo {
  height: 60px;
}

/* =========================================================
   NAVBAR – About BEHAVIOR
========================================================= */
#about {
  scroll-margin-top: 140px; /* match navbar height */
}

html {
  scroll-behavior: smooth;
}

/* Enable hover AND click dropdowns on desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown-menu.show {
    display: block;
    margin-top: 0;
  }
}

/* =========================================================
   NAVBAR – COLORS & STATES
========================================================= */

/* Top of page: default to brand blue on non-home pages */
#mainNav:not(.nav-scrolled) .nav-link {
  color: var(--bs-primary);
}

/* Listing pages (Dental, Medical, Veterinary, News):
   use a light grey header bar full-width at the top */
.page-dental #mainNav:not(.nav-scrolled),
.page-medical #mainNav:not(.nav-scrolled),
.page-veterinary #mainNav:not(.nav-scrolled),
.page-news #mainNav:not(.nav-scrolled) {
  background-color: #f5f5f5 !important;
}

/* Ensure the grey header band itself matches the static layout */
.page-subhero {
  margin-top: 0 !important;
  background-color: #f5f5f5 !important;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Scrolled */
#mainNav.nav-scrolled {
  background-color: #ffffff;
}

#mainNav.nav-scrolled .nav-link {
  color: var(--bs-primary);
}

/* Hover */
#mainNav .nav-link:hover {
  color: var(--bs-primary);
}

.nav-shadow {
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.08);
}

/* Bootstrap dark navbar helpers */
.navbar-dark .nav-link {
  color: #fff;
}

.navbar-dark .nav-link:hover {
  color: var(--bs-primary);
}

/* ===== OFFCANVAS MOBILE MENU ===== */
.offcanvas {
  max-width: 300px;
}

.offcanvas-header {
  background-color: var(--bs-primary);
  color: white;
  padding: 1.5rem;
}

.offcanvas-title {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.offcanvas .btn-close {
  filter: brightness(0) invert(1);
}

.offcanvas-body {
  padding: 1rem;
}

.offcanvas .nav-link {
  color: var(--bs-secondary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offcanvas .nav-link:hover {
  background-color: #f8f9fa;
  color: var(--bs-primary);
}

.offcanvas .nav-link i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.offcanvas .nav-link[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.offcanvas .collapse .nav-link {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-bottom: none;
  font-weight: 400;
}

.offcanvas .collapse .nav-link:hover {
  background-color: #f1f3f5;
}

/* =========================================================
   NAVBAR – SOCIAL ICONS
========================================================= */
.navbar .nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.navbar .nav-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.navbar .nav-social a:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-1px);
}

.navbar .nav-social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.navbar-dark .nav-social a {
  color: #fff;
}

/* =========================================================
   DROPDOWNS
========================================================= */
.dropdown-menu {
  border-radius: 0;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
}

/* =========================================================
   HERO / PROJECT HEADER 
========================================================= */
.project-hero {
  position: relative;
  height: 55vh;
  min-height: max-content;
  background: center/cover no-repeat;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.project-hero .hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 1rem;
  color: #fff;
}

.project-hero .hero-sub {
  font-weight: 600;
  font-size: 1.25rem;
  opacity: .95;
  margin-bottom: .75rem;
}

.project-hero .hero-meta {
  font-size: .95rem;
  opacity: .9;
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
  Project Headers
========================================================= */
.project-hero h1 {
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin-bottom: .5rem;
}

.project-hero h3 {
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  font-weight: 100;
  line-height: 1.45;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.25rem auto;
  color: #fff;
}

.project-info h3,
.project-info h4 {
  color: var(--bs-thirdary);
  font-weight: 500;
}

.project-info h5 {
  font-weight: 500;
  color: #033861;
}

/* =========================================================
   PAGE TITLES
========================================================= */
.page-title,
.section-title {
  text-align: center;
  color: var(--bs-primary);
  letter-spacing: .22em;
  font-weight: 600;
  text-transform: uppercase;
  margin: 3rem 0 2rem;
}

/* =========================================================
   PROJECT / GALLERY GRID
========================================================= */
.project-grid {
  padding-bottom: 3rem;
}

.project-tile {
  display: block;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-tile:hover {
  transform: translateY(-4px) scale(1.03);
}

.project-tile .tile-img,
.gallery-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: .35rem;
  box-shadow: 0 .35rem 1rem rgba(0,0,0,.14);
}

.project-tile:hover .tile-img {
  box-shadow: 0 .6rem 1.5rem rgba(0,0,0,.18);
}

.project-tile .tile-label {
  text-align: center;
  margin-top: .85rem;
  color: #111;
  letter-spacing: .22em;
  font-size: .85rem;
  text-transform: uppercase;
  font-weight: 500;
}

.clickable {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 .6rem 1.5rem rgba(0,0,0,.2);
}

/* =========================================================
   POST FOOTER: SHARE / LIKE ROW
========================================================= */
.post-share-like-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.post-share-like-row > * {
  margin: 0;
}

/* Give Share this more room and pin Like this to the right */
.post-share-like-row .sharedaddy {
  float: none !important;
  width: auto !important;
  flex: 1 1 auto;
}

.post-share-like-row .sharedaddy.sd-block.sd-like,
.post-share-like-row .jetpack-likes-widget-wrapper {
  float: none !important;
  width: auto !important;
  flex: 0 0 auto;
  margin-left: auto;
}

/* =========================================================
   STEP NUMBERS
========================================================= */
.container h3 {
  font-weight: 600;
  color: var(--bs-thirdary);
}

.display-6 {
  letter-spacing: .15em;
}

/* =========================================================
   PROCESS STEP NUMBERS
========================================================= */
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 3px solid var(--bs-primary);
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-primary);
  letter-spacing: .05em;
  margin: 0 auto;
}

/* =========================================================
   PROCESS
========================================================= */
.process h1 {
  text-align: center;
  color: var(--bs-primary);
  font-weight: 500;
  text-transform: uppercase;
  margin: 3rem 0 2rem;
}

.process h4 {
  text-align: center;
  color: var(--bs-primary);
}

/* Center process step headers on mobile */
@media (max-width: 767px) {
  h3.mb-2 {
    text-align: center;
  }
}

/* Ensure bullet points display on project info lists */
.project-info ul[style*="list-style-type:disc"] li {
  list-style-type: disc !important;
  margin-left: 1.25rem;
}

.project-info ul.list-unstyled[style*="list-style-type:disc"] {
  list-style: disc !important;
  padding-left: 1.25rem;
}

/* =========================================================
   FOOTER
========================================================= */
.footer-hmd {
  background: var(--footer-bg);
  color: rgba(255,255,255,.88);
}

.footer-hmd .footer-title {
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-hmd .footer-accent {
  color: var(--footer-accent);
  text-decoration: none;
}

.footer-hmd .footer-accent:hover {
  text-decoration: underline;
}

.footer-hmd .footer-muted,
.footer-hmd .copyright {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
}

.footer-hmd .social {
  margin-top: 12px;
}

.footer-hmd .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
}

.footer-hmd .social a:hover {
  background: rgba(255,255,255,.08);
}

.footer-hmd .social img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* =========================================================
   SCROLL TO TOP
========================================================= */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--bs-primary);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0,0,0,.25);
  z-index: 999;
  transition: opacity .25s ease, transform .25s ease;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  background: #022c4e;
}

#scrollTopBtn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Smooth, no-flash cross-fade for hero carousel */
.hero-carousel {
  background-color: #000;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  background-color: inherit;
}

.hero-carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-carousel.carousel-fade .carousel-item.active,
.hero-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.hero-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.hero-carousel.carousel-fade .carousel-item-next,
.hero-carousel.carousel-fade .carousel-item-prev,
.hero-carousel.carousel-fade .carousel-item.active.carousel-item-start,
.hero-carousel.carousel-fade .carousel-item.active.carousel-item-end {
  transform: none;
}

.hero-carousel .carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   HOMEPAGE HERO & FEATURED CARDS (from original theme)
========================================================= */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.05) 100%);
}

.hero-title {
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-features span {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
}

.card {
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.05);
}

.badge {
  font-size: 0.9rem;
}

.featured-projects {
  background-color: #f7f7f7;
}

.featured-project-card img {
  height: 220px;
  object-fit: cover;
}

.featured-projects .badge.text-bg-primary {
  background-color: var(--bs-primary);
  color: #fff;
}
