* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  color: #062b44;
  background: white;
}


/* =========================
   NAVBAR
========================= */

.navbar {
  height: 72px;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  gap: 24px;
  border-bottom: 1px solid #d9eeee;
  border-radius: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(6, 43, 68, 0.06);
}

/* Desktop: shift nav left of the far edge (not centered, not flush against
   the logo) using flexible grid spacer columns instead of fixed margins,
   so the gap ratio still scales cleanly at narrower desktop widths. */
@media (min-width: 901px) {

  .navbar {
    display: grid;
    grid-template-columns: auto minmax(16px, 1.3fr) auto minmax(16px, 1fr) auto;
  }

  .logo {
    grid-column: 1;
  }

  nav {
    grid-column: 3;
  }

  .nav-cta {
    grid-column: 5;
    justify-self: end;
  }

}

/* Logo crop: the source PNG has large transparent padding, and the artwork
   itself is an icon mark stacked above a wordmark that duplicates the
   adjacent "Primecare Assisted Living Inc." text. object-fit/object-position
   can't crop both axes at once here (the icon's aspect ratio is narrower
   than the source canvas), so the wrapper is fixed to the visible navbar
   size with overflow hidden, and the image inside it is scaled up (no
   distortion - width set, height auto) and shifted so only the icon shows,
   independent of the navbar's own height. */
.logo-mark {
  width: 112px;
  height: 78px;
  overflow: hidden;
  display: block;
  position: relative;
  flex-shrink: 0;
}

.logo-mark img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
  display: block;
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: min-content;
  gap: 32px;
  align-items: center;
  align-content: center;
  padding: 26px 6%;
  background: linear-gradient(120deg, #eefbff, #d6fff4);
  border-bottom-left-radius: clamp(28px, 4vw, 56px) clamp(8px, 1vw, 14px);
  border-bottom-right-radius: clamp(28px, 4vw, 56px) clamp(8px, 1vw, 14px);
}

.tag {
  display: inline-block;
  background: white;
  color: #006fab;
  padding: 7px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}

.hero-map-link {
  text-decoration: none;
}

.hero-map-link:focus-visible {
  outline: 2px solid #006fab;
  outline-offset: 3px;
}

.hero-left h2 {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #062b44;
  max-width: 700px;
}

.hero-left p {
  font-size: 15px;
  line-height: 1.6;
  color: #16415c;
  max-width: 720px;
  margin-bottom: 16px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.primary-btn,
.secondary-btn {
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.primary-btn {
  background: #0074b8;
  color: white;
  box-shadow: 0 8px 18px rgba(0, 116, 184, 0.25);
}

.secondary-btn {
  background: white;
  color: #0074b8;
  border: 1px solid #aee1ff;
}

.nav-cta {
  background: #0074b8;
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Right Card */
.hero-right {
  display: flex;
  justify-content: center;
  align-self: center;
  min-height: 0;
}

.info-card {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.info-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.info-card .icon {
  width: 85px;
  height: 85px;
  background: white;
  border-radius: 50%;
  margin: 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
  text-align: center;
  color: #00608f;
  font-size: 25px;
  margin-bottom: 12px;
}

.info-card > p {
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
}

.contact-info {
  margin-top: 20px;
}

.contact-info p {
  font-size: 15px;
  margin-bottom: 18px;
  color: #0d2d44;
}


/* =========================
   HERO MOBILE
========================= */

@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 32px 20px;
    gap: 24px;
    min-height: auto;
    text-align: center;
  }

  .hero-left {
    padding: 0 8px;
    margin-top: -10px;
  }

  .hero-left h2 {
    font-size: 18px;
    line-height: 1.15;
    margin-bottom: 12px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-left p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .primary-btn,
  .secondary-btn {
    width: auto;
    max-width: none;
    text-align: center;
    padding: 14px 20px;
  }

  .info-card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    aspect-ratio: auto;
    height: auto;
  }

  .info-card img {
    height: auto;
    border-radius: 20px;
    box-shadow: none;
  }

}

@media (min-width: 600px) and (max-width: 900px) {
  .info-card {
    max-width: 680px;
  }
}

/* =========================
   HERO TABLET COMFORT
========================= */

@media (min-width: 901px) and (max-width: 1024px) {

  .hero {
    padding: 28px 8%;
    gap: 30px;
  }

  .hero-left h2 {
    font-size: 22px;
  }

}

/* =========================
   HERO ENTRANCE ANIMATION
========================= */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left {
  animation: heroFadeUp 0.8s ease both;
}

.hero-right {
  animation: heroFadeUp 0.8s ease 0.15s both;
}


/* ABOUT PAGE */

.about-page {
  background: #f6fafc;
}

.about-hero {
  position: relative;
  z-index: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 34px 6%;
  margin-bottom: -40px;
  background: url("../assets/images/about-care.jpg") center/cover no-repeat;
  border-bottom-left-radius: clamp(30px, 5vw, 70px) clamp(16px, 2vw, 28px);
  border-bottom-right-radius: clamp(30px, 5vw, 70px) clamp(16px, 2vw, 28px);
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(6, 43, 68, 0.8) 0%,
    rgba(6, 43, 68, 0.6) 32%,
    rgba(6, 43, 68, 0.2) 58%,
    rgba(6, 43, 68, 0) 72%
  );
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  color: white;
}

.about-hero-label {
  color: #bfe9f7;
}

.about-hero-inner h1 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.18;
  margin: 8px 0 10px;
  color: white;
}

.about-hero-inner p {
  font-size: 15px;
  line-height: 1.6;
  color: #e7f7fb;
  max-width: 460px;
}

.about-content {
  position: relative;
  z-index: 2;
  padding: 0 6% 48px;
}

.about-panel {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  padding: 28px 50px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(6, 43, 68, 0.1);
}

.about-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}

.about-intro h2 {
  font-size: 27px;
  color: #082f49;
  margin-bottom: 10px;
}

.about-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #355e73;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: white;
  border: 1px solid #e5eef2;
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(6, 43, 68, 0.05);
  text-align: center;
}

.card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e6f4fb;
  color: #0074b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  color: #0b5c78;
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: #355e73;
}

.about-cta {
  max-width: 1100px;
  margin: 24px auto 0;
  background: #e6f4fb;
  border-radius: 20px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.about-cta-lead {
  font-size: 18px;
  font-weight: 700;
  color: #082f49;
  margin-bottom: 6px;
}

.about-cta-sub {
  font-size: 15px;
  color: #2c5a6e;
}

.about-cta-sub a {
  color: #0074b8;
  font-weight: 700;
  text-decoration: none;
}

.about-cta-sub a:hover {
  text-decoration: underline;
}

.about-cta-btn {
  flex-shrink: 0;
}

/* ===== ABOUT PAGE REVEAL ANIMATION ===== */

.about-panel,
.about-cards .card,
.about-cta {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.about-panel.show,
.about-cards .card.show,
.about-cta.show {
  opacity: 1;
  transform: translateY(0);
}

.about-cards .card:nth-child(2) {
  transition-delay: 0.08s;
}

.about-cards .card:nth-child(3) {
  transition-delay: 0.16s;
}

@media (max-width: 900px) {

  .about-hero {
    min-height: 400px;
    padding: 50px 20px;
    margin-bottom: -34px;
  }

  .about-hero::before {
    background: linear-gradient(
      180deg,
      rgba(6, 43, 68, 0.86) 0%,
      rgba(6, 43, 68, 0.8) 100%
    );
  }

  .about-hero-inner {
    max-width: 100%;
  }

  .about-hero-label {
    color: #eaf8fc;
  }

  .about-hero-inner p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
  }

  .about-hero-inner h1 {
    font-size: 26px;
  }

  .about-content {
    padding: 0 14px 45px;
  }

  .about-panel {
    padding: 34px 20px;
    border-radius: 20px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 24px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {

  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-cards .card:last-child {
    grid-column: span 2;
    max-width: 60%;
    margin: 0 auto;
  }
}

/* SERVICE DETAIL PAGE */

.service-hero {
  height: 150px;
  background:
    linear-gradient(rgba(0, 116, 184, 0.75), rgba(0, 116, 184, 0.75)),
    url("../assets/images/diagnostic-assessment.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.service-hero h2 {
  font-size: 24px;
  color: white;
}


.service-main img {
  width: 100%;
  max-width: 650px;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin-bottom: 15px;
  filter: contrast(1.05) brightness(0.95);
}


.service-main p {
  max-width: 650px;
  color: #2c5a6e;
  line-height: 1.7;
  margin-bottom: 14px;
  font-size: 15px;
}

.service-sidebar {
  background: white;
  border-radius: 0;
  padding: 0;
  height: fit-content;
  margin-top: 0;
  align-self: start;
}

.service-sidebar h3 {
  background: #0074b8;
  color: white;
  padding: 13px 16px;
  margin-bottom: 10px;
  font-size: 15px;
}

.service-sidebar a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed #b7d9df;
  color: #16415c;
  text-decoration: none;
  font-size: 14px;
}

.service-sidebar a::before {
  content: "›";
  margin-right: 10px;
  font-size: 18px;
  color: #0074b8;
}

.service-sidebar a:hover {
  color: #0074b8;
}

@media (max-width: 900px) {

  .service-detail-page {
    display: block;
    padding: 25px 16px;
  }

  .service-main,
  .service-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .service-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
     border-radius: 0px;
  }

  .service-sidebar {
    margin-top: 30px;
  }

}


.small-label {
  letter-spacing: 3px;
  color: #0a6a8f;
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

html, body {
  overflow-x: hidden;
}

/* === GLOBAL FIX (FOOTER AT BOTTOM) === */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


/*main,
.contact-page,
.service-detail-page {

  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;

}*\

/* === CONTACT PAGE === */
.contact-page {
  padding: 50px 6%;
  background-color: #eef3f5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-page > .contact-left,
.contact-page > .contact-form {
  min-width: 0;
}

.contact-left h2 {
  font-size: 26px;
  color: #062b44;
  margin-bottom: 14px;
}

.contact-left p {
  color: #2c5a6e;
  line-height: 1.7;
  margin-bottom: 18px;
}

.contact-details {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0074b8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 15px;
  color: #062b44;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-text strong {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0074b8;
  font-weight: 700;
}

.contact-form {
  background: white;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 22px;
  border: 1px solid #b7d9df;
  border-radius: 10px;
  font-size: 14px;
}

.contact-form textarea {
  height: 110px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 13px;
  background: #0074b8;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* === FOOTER === */
.footer {
  background: #030817;
  color: white;
  padding: 42px 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.footer h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.footer p {
  color: #b7d9df;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer a {
  color: #b7d9df;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.footer-contact-link {
  color: inherit;
  text-decoration: none;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand-top h3 {
  margin-bottom: 0;
}

.footer-logo-wrap {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  display: block;
}

/* === MOBILE === */
@media (max-width: 900px) {
  .contact-page {
    grid-template-columns: 1fr;
    padding: 35px 20px;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 35px 20px;
  }

  .contact-left h2 {
    font-size: 26px;
  }
}

.service-sidebar a.active {
  color: #0074b8;
  font-weight: bold;
}



.service-detail-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px; /* reduce space between left + right */
  padding: 32px 10%;
}


@media (max-width: 900px) {

  .service-detail-page {
    display: flex;
    flex-direction: column;
    padding: 25px 16px;
    gap: 25px;
  }

  .service-main,
  .service-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .service-main img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }

  .service-sidebar {
    margin-top: 20px;
  }

}

.service-main p {
  margin-bottom: 12px; /* tighten text spacing */
}




/* HOME PAGE NEW DESIGN */

.trust-row {
  padding: 36px 10%;
  background: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-row div {
  padding: 14px;
}

.trust-row h3 {
  color: #082f49;
  font-size: 16px;
  margin: 8px 0;
}

.trust-row p {
  color: #355e73;
  font-size: 14px;
  line-height: 1.5;
}

.home-services h2,
.insurance-section h2,
.home-cta h2,
.services-page h2 {
  font-size: 24px;
  color: #082f49;
  margin-bottom: 12px;
}

/* =========================
   HOME PAGE MOBILE
========================= */

@media (max-width: 900px) {

  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 28px 12px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .trust-row div {
    padding: 6px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .trust-row h3 {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .trust-row p {
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
  }

}


/* =========================
   HOME ABOUT SECTION
========================= */

.home-about {
  padding: 44px 20px;
  text-align: center;
  background: #f4fbfb;
}

.home-about h2 {
  font-size: 28px;
  color: #082f49;
  margin-bottom: 12px;
  line-height: 1.2;
}

.home-about p {
  max-width: 760px;
  margin: 0 auto 18px;
  color: #355e73;
  line-height: 1.7;
  font-size: 16px;
}

@media (max-width: 900px) {

  .home-about {
    padding: 45px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .home-about h2 {
    font-size: 24px;
    line-height: 1.2;
    max-width: 500px;
    margin-bottom: 18px;
    text-align: center;
  }

  .home-about p {
    max-width: 500px;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: center;
  }

  .home-about .primary-btn {
    align-self: center;
  }

}

.home-services {
  padding: 52px 10%;
  background: white;
  text-align: center;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.home-service-card {
  border: 1px solid #e5e5e5;
  background: white;
  border-radius: 0;   /* ← remove curve */
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 768px) {

  .home-service-card p {

    font-size: 14px;
    line-height: 1.35;
    flex-grow: 1;

  }

}

.home-service-card h3 {
  color: #082f49;
  padding: 10px 14px 4px;
  font-size: 16px;
  line-height: 1.25;
}

.home-service-card p {
  color: #355e73;
  padding: 0 16px 14px;
  line-height: 1.4;
  font-size: 14px;
}


.home-cta {
  padding: 50px 10%;
  text-align: center;
  color: white;
  background: linear-gradient(120deg, #00a99d, #0074b8);
}

.home-cta p {
  margin-bottom: 25px;
  color: #e9f8fb;
}

@media (max-width: 900px) {
  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 25px 14px;
    overflow: hidden;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 25px 14px;
    overflow: hidden;
  }

  .trust-row h3 {
    font-size: 16px;
    line-height: 1.3;
  }

  .trust-row p {
    font-size: 13px;
    line-height: 1.5;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .home-about,
  .home-services,
  .insurance-section,
  .home-cta {
    padding: 45px 20px;
  }
}


.insurance-section {
  padding: 48px 10%;
  background: #f4fbfb;
  text-align: center;
}

.insurance-section h2 {
  font-size: 24px;
  color: #082f49;
  margin-bottom: 18px;
}

.insurance-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: nowrap;
}

.insurance-row span {
  background: white;
  color: #0b5c78;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.insurance-row span.slide-out {
  transform: translateX(-25px);
  opacity: 0;
}

.insurance-row span.slide-in {
  transform: translateX(25px);
  opacity: 0;
}

.insurance-row img {
  height: 55px;
  object-fit: contain;

  background: transparent;   /* was white → this removes box */
  box-shadow: none;          /* removes shadow box */

  padding: 12px 20px;        /* KEEP this → keeps spacing */
  border-radius: 12px;       /* KEEP this → doesn’t matter without background */

  transition: transform 0.4s ease, opacity 0.4s ease;
}

.insurance-row img.slide-out {
  transform: translateX(-25px);
  opacity: 0;
}

@media (max-width: 600px) {

  .insurance-row {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .insurance-row img {
    height: 34px;
    padding: 8px 12px;
  }

  .insurance-row span {
    padding: 8px 14px;
    font-size: 13px;
  }

}


/* MOBILE MENU */
@media (max-width: 900px) {

  .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    box-sizing: border-box;
    background: #1f1f1f;
    color: white;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    position: absolute;
    right: 18px;
    top: 15px;
    z-index: 3000;
  }

  .navbar {
    min-height: 62px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
  }

  .logo-mark {
    width: 90px;
    height: 63px;
  }

  .logo-mark img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .logo h1 {
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }

  .logo p {
    font-size: 10px;
  }

  .navbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    width: auto;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    z-index: 2500;
    gap: 1px;
}

  #menu-toggle:checked ~ nav {
    display: flex;
  }

  .navbar nav a {
      display: block;
      width: 100%;
      padding: 4px 20px;
      color: white;
      background: #1f1f1f;
      margin-bottom: 1px;
      font-size: 14px;
      line-height: 1.2;
      border: none;
      box-sizing: border-box;
  }

  .nav-cta {
    padding: 7px 14px;
    font-size: 12px;
    margin-right: 46px;
  }

}


/* LOGO (DESKTOP + GLOBAL) */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 22px;
  min-height: 0;
}

.logo div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -10px;
  transform: translateY(2px);
}

.logo h1 {
  font-size: 18px;
  color: #0b3b5a;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo p {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0074b8;
  margin-top: 2px;
}


/* MENU (DESKTOP) */
nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  margin: 0;
  text-decoration: none;
  color: #12233a;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 500px) {

  .logo h1 {
    font-size: 13px;
  }

  .logo p {
    font-size: 9px;
  }

  .nav-cta {
    display: none;
  }

}

iframe {
  max-width: 100%;
}

.home-services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 300px) !important;
  justify-content: center;
  gap: 20px !important;
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {

  .home-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 900px;
    margin: 30px auto 0;
    gap: 20px;
  }

}

/* MOBILE */
@media (max-width: 767px) {

  .home-services {
    padding: 45px 20px;
  }

  .home-services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    max-width: 380px;
    margin: 30px auto 0;
  }

  .home-service-card {
    width: 100%;
  }

  .home-service-card img {
    height: 220px;
    object-fit: cover;
  }

}


/* ===== SERVICE CARD ANIMATION ===== */

.home-service-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease;
}

.home-service-card.show {
  opacity: 1;
  transform: translateY(0);
}

.home-service-card:nth-child(2) {
  transition-delay: 0.06s;
}

.home-service-card:nth-child(3) {
  transition-delay: 0.12s;
}

.home-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}


/* MOBILE SAFE */
@media (max-width: 900px) {

  .home-service-card {

    transform: translateY(16px);

  }

}


/* ===== SERVICES PAGE ===== */

.services-page {
  padding: 52px 6%;
  background: white;
  text-align: center;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 20px;
  color: #355e73;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.service-card {
  border: 1px solid #e5e5e5;
  background: white;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  padding: 20px 20px;
  height: 100%;
  box-sizing: border-box;
}

.service-card img {
  width: calc(100% + 40px);
  height: 190px;
  object-fit: cover;
  display: block;
  margin: -20px -20px 16px -20px;
}

.service-card h3 {
  color: #082f49;
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.service-card p {
  color: #355e73;
  line-height: 1.4;
  font-size: 14px;
}

.service-card p + p {
  margin-top: 10px;
}

.service-card ul {
  margin: 0 0 4px;
  padding-left: 20px;
  color: #355e73;
  font-size: 13px;
  line-height: 1.6;
}

.service-card ul + p {
  margin-top: 12px;
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 700px;
    gap: 20px;
  }

}

/* MOBILE */
@media (max-width: 767px) {

  .services-page {
    padding: 45px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    max-width: 420px;
    margin-top: 30px;
  }

}

/* ===== SERVICE CARD ANIMATION ===== */

.service-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2) {
  transition-delay: 0.03s;
}

.service-card:nth-child(3) {
  transition-delay: 0.06s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {

  .service-card {
    transform: translateY(16px);
  }

}


/* ===== MODERN FOOTER ENTRANCE ===== */

.footer > div {

  opacity: 0;

  transform: translateY(45px);

  transition:
    transform 0.55s ease,
    opacity 0.55s ease;

}

/* ACTIVE */
.footer.show-footer > div {

  opacity: 1;

  transform: translateY(0);

}

/* DELAYS */
.footer.show-footer > div:nth-child(1) {
  transition-delay: 0.05s;
}

.footer.show-footer > div:nth-child(2) {
  transition-delay: 0.12s;
}

.footer.show-footer > div:nth-child(3) {
  transition-delay: 0.2s;
}


/* MOBILE SAFE */
@media (max-width: 900px) {

  .footer > div {

    transform: translateY(25px);

  }

}

/* ===== CTA SECTION ANIMATION ===== */

.home-cta h2,
.home-cta p,
.home-cta .secondary-btn {

  opacity: 0;

  transform: translateY(35px);

  transition:
    transform 0.5s ease,
    opacity 0.5s ease;

}

/* ACTIVE */
.home-cta.show-cta h2,
.home-cta.show-cta p,
.home-cta.show-cta .secondary-btn {

  opacity: 1;

  transform: translateY(0);

}

/* DELAYS */
.home-cta.show-cta p {
  transition-delay: 0.1s;
}

.home-cta.show-cta .secondary-btn {
  transition-delay: 0.2s;
}


/* MOBILE SAFE */
@media (max-width: 900px) {

  .home-cta h2,
  .home-cta p,
  .home-cta .secondary-btn {

    transform: translateY(20px);

  }

}


/* MOBILE TEXT FIX FOR SERVICE CARDS */
@media (max-width: 768px) {

  .home-service-card p {

    font-size: 14px;
    line-height: 1.35;

  }

}

/* ===== FINAL GLOBAL CONSISTENCY ===== */

.navbar,
.hero,
.home-about,
.home-services,
.insurance-section,
.home-cta,
.contact-page,
.service-detail-page,
.footer {
  width: 100%;
}

@media (max-width: 900px) {
  .home-about .primary-btn {
    width: auto;
    max-width: none;
  }
}

.home-gallery {
  background: #e8f6fc;
  padding: 52px 10% 22px;
  text-align: center;
}

.home-gallery-heading {
  color: #082f49;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.home-gallery-grid {
  display: grid;
  /* Each card spans two tracks so an incomplete row can start halfway across a card width. */
  grid-template-columns: repeat(6, 140px);
  justify-content: center;
  gap: 20px;
}

.home-gallery-card {
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid #e5eef2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.home-gallery-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.home-gallery-card figcaption {
  padding: 12px 14px;
  color: #082f49;
  font-size: 16px;
  font-weight: 600;
}

@media (width > 1024px) {
  .home-gallery-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 900px) {
  .home-gallery {
    padding: 45px 20px 15px;
  }
}

@media (max-width: 1024px) {
  .home-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 900px;
    margin-inline: auto;
  }

  .home-gallery-heading {
    margin-bottom: 30px;
  }

  .home-gallery-card:last-child {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 767px) {
  .home-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 380px;
  }

  .home-gallery-card,
  .home-gallery-card:last-child {
    grid-column: auto;
  }

  .home-gallery-card img {
    height: 220px;
  }
}
