/* style.css (FULL, ready to run) */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand-dark: #192d3b;
  --brand-teal: #7DBDB8;
  --brand-orange: #D6443E;
  --brand-white: #FFFFFF;

  --text-muted: #455A64;
  --bg-light: #F4F7F9;

  --radius: 24px;
  --shadow: 0 10px 30px rgba(25, 45, 59, 0.10);
  --shadow-strong: 0 18px 50px rgba(25, 45, 59, 0.18);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--brand-white);
  color: var(--brand-dark);
  line-height: 1.5;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

.container { width: 90%; max-width: 1200px; margin-inline: auto; }

h1, h2, h3, h4, h5 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
h2 { font-size: 28px; text-align: center; margin-bottom: 30px; }
p { margin-bottom: 1rem; color: var(--text-muted); }
img { max-width: 100%; height: auto; display: block; } /* General responsive image rule */

.center-text { text-align: center; }

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-teal);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  background: var(--brand-white);
  color: var(--brand-dark);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: var(--transition);
  z-index: 2000;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
}
.skip-link:focus { transform: translateY(0); }

/* Sections */
.section { padding: 30px 0; }
.section--white { background: #fff; }
.section--light { background: var(--bg-light); }
.section-cta { text-align: center; margin-top: 40px; }
/* Process CTA band (below 4-step section) */
.process-cta-band{
  padding: 28px 0 10px;
  background: var(--bg-light);
}

.process-cta-card{
  background: var(--brand-dark);
  border-radius: 26px;
  padding: 26px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

/* subtle brand glow */
.process-cta-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 18% 30%, rgba(125,189,184,0.18), transparent 48%),
    radial-gradient(circle at 85% 20%, rgba(214,68,62,0.16), transparent 45%);
  pointer-events:none;
}

.process-cta-text{
  position: relative;
  z-index: 1;
}

.process-cta-text h3{
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 900;
}

.process-cta-text p{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-weight: 700;
}

.process-cta-action{
  position: relative;
  z-index: 1;
  display: flex;
}

.process-cta-btn{
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* Mobile stacking */
@media (max-width: 640px){
  .process-cta-card{
    flex-direction: column;
    align-items: flex-start;
  }
  .process-cta-action{
    width: 100%;
  }
  .process-cta-btn{
    width: 100%;
  }
}


/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--brand-dark);
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { display: inline-flex; align-items: center; position: relative;  flex-shrink: 0; }
.logo img {
  height: 40px;
  width: auto;
   max-width: none;     /* This global rule will be overridden on mobile */
  flex-shrink: 0; 
  /* REMOVED: Mask image properties causing logo edge cutoff */
}

.desktop-nav { display: none; }
.desktop-nav ul { list-style: none; }
.header-actions { display: flex; gap: 10px; align-items: center; } /* This class is used in index.html, but not in shin-ankle-foot-pain.html's header */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  gap: 8px;
}
.btn-orange { background: var(--brand-orange); color: #fff; }
.btn-teal { background: var(--brand-teal); color: var(--brand-dark); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }

/* NEW: Header Schedule Online button override */
.btn-schedule-header {
  background: var(--brand-orange);
  color: var(--brand-white) !important; /* Ensure text color is white */
}

.hide-mobile { display: none; }

/* Burger */
.burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1200;
  padding: 8px;
  border-radius: 12px;
}
.burger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: 0.35s ease;
  z-index: 1050;
  padding: 24px;
}
.mobile-overlay.active { transform: translateX(0); }

.mobile-nav-links { list-style: none; text-align: center; }
.mobile-nav-links li { margin: 22px 0; }
.mobile-nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 14px;
  display: inline-block;
}
.mobile-nav-links a:hover { background: rgba(255,255,255,0.06); }

.mobile-call {
  color: var(--brand-teal) !important;
  font-size: 16px !important;
  font-weight: 900;
}

/* Hero */
.hero-split { display: flex; flex-direction: column; position: relative; background: #fff; overflow: hidden; }
.hero-image-side { height: 45vh; position: relative; }
.hero-image-side img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-side::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #fff);
}
.hero-text-side { padding: 40px 5%; text-align: center; z-index: 10; }
.hero-text-side h1 { font-size: 38px; line-height: 1; margin-bottom: 20px; }
.hero-text-side .teal { color: var(--brand-teal); }
.hero-text-side p { font-size: 18px; font-weight: 700; margin-bottom: 30px; }

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

/* Philosophy */
.philosophy { text-align: center; }

/* PROCESS (new interactive journey) */
.process-head { text-align: center; margin-bottom: 28px; }
.process-subtitle {
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 auto;
  max-width: 820px;
}

.process-journey {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

.journey-rail {
  position: absolute;
  left: 18px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: rgba(125,189,184,0.28);
  pointer-events: none;
}

.journey-step {
  position: relative;
  border-radius: 28px;
  padding: 16px 16px 18px 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  outline: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(125,189,184,0.20), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(214,68,62,0.16), transparent 38%),
    rgba(255,255,255,0.70);
  border: 1px solid rgba(25, 45, 59, 0.06);
  backdrop-filter: blur(10px);
}

.journey-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.journey-step:focus-visible { box-shadow: 0 0 0 4px rgba(125,189,184,0.35), var(--shadow-strong); }

.journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.step-pill {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

.step-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(25, 45, 59, 0.82);
}

.journey-card{
  background: #d0f5f2;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(25, 45, 59, 0.08);
  box-shadow: 0 10px 24px rgba(25, 45, 59, 0.06);
}

.journey-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid rgba(25, 45, 59, 0.10);
  background: rgba(125,189,184,0.14);
  color: var(--brand-teal);
}
.journey-icon svg { width: 24px; height: 24px; stroke: currentColor; }

.journey-card h3 { font-size: 18px; margin-bottom: 8px; }
.journey-card p { font-weight: 600; }

.journey-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.journey-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 800;
  font-size: 13px;
  color: rgba(25, 45, 59, 0.86);
}

.journey-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  background: rgba(125,189,184,0.18);
  border: 1px solid rgba(125,189,184,0.35);
}
.journey-check svg { width: 14px; height: 14px; }

.journey-step-1 .step-pill,
.journey-step-2 .step-pill { background: var(--brand-teal); }

.journey-step-3 .step-pill,
.journey-step-4 .step-pill { background: var(--brand-orange); }

.journey-step-3 .journey-icon,
.journey-step-4 .journey-icon {
  background: rgba(214,68,62,0.14);
  color: var(--brand-orange);
}

.journey-step-3 .journey-check,
.journey-step-4 .journey-check {
  color: var(--brand-orange);
  background: rgba(214,68,62,0.14);
  border: 1px solid rgba(214,68,62,0.30);
}

/* Dashboard grids */
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
.cat-box { background: var(--bg-light); padding: 25px; border-radius: var(--radius); }
.cat-box h4 {
  color: var(--brand-orange);
  font-size: 13px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--brand-teal);
  display: inline-block;
}
.dashboard-card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  padding: 18px 20px;
  border-radius: 22px;

  display: flex;
  align-items: center;
  gap: 16px;

  color: #344D57;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 40px rgba(0,0,0,0.35);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.dashboard-card:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 26px 60px rgba(0,0,0,0.45);
}

.dashboard-card:active{
  transform: translateY(0);
}


.card-icon { width: 26px; height: 26px; color: var(--brand-teal); flex-shrink: 0; }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; }
.card-icon{
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  flex-shrink: 0;
}


/* About + Facilities */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

/* NEW: Styles for the .about-img container on mobile/smaller screens */
.about-grid .about-img {
  width: 100%; /* Take full width of parent up to max-width */
  max-width: 380px; /* Limit max width on mobile/tablet for a good size (approx. 50% larger than small mobile default) */
  margin: 0 auto; /* Center the image container on smaller screens */
  order: -1; /* Place image above text on mobile */
}

/* Original styles for about-img element (visuals, not size) */
.about-img{
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(25, 45, 59, 0.18);
  background: #0f1a22;
}

/* soft edge vignette */
.about-img::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 55%, rgba(0,0,0,0.22) 100%);
}

.about-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center top; /* Ensure James is visible even if cropped vertically */
}


.cert-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  font-size: 10px;
  font-weight: 700;
  margin-top: 20px;
}
.about-cta { margin-top: 18px; }

.facility-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 30px; }
.facility-grid img { width: 100%; border-radius: 15px; aspect-ratio: 1 / 1; object-fit: cover; }

/* AFFILIATIONS SECTION STYLES */
.affiliations-section {
  text-align: center;
}
.affiliations-section h2 {
  margin-bottom: 2rem;
}
.affiliations-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* GOOGLE REVIEWS SECTION STYLES */
.google-reviews-section {
  text-align: center;
}
.google-reviews-section h2 {
  margin-bottom: 20px;
}
.reviews-placeholder-text {
  max-width: 700px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-muted);
}

/* Contact band */
.contact-band {
  position: relative;
  background: var(--brand-dark);
  color: #fff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 90px;
  padding-bottom: 90px;
  overflow: hidden;
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 20% 20%, rgba(125,189,184,0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(214,68,62,0.16), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(125,189,184,0.14), transparent 45%);
  pointer-events: none;
}
.contact-band .container { position: relative; z-index: 1; }

.contact-header { text-align: center; margin-bottom: 35px; }
.contact-header h2 { color: #fff; margin-bottom: 12px; }
.contact-subtitle { color: rgba(255,255,255,0.85); max-width: 650px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 25px;
}

.contact-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
}
.contact-panel h3 { color: #fff; }
.contact-muted { color: rgba(255,255,255,0.78); }

.contact-panel-top { margin-bottom: 18px; }
.contact-items { display: grid; gap: 14px; margin-top: 18px; }
.contact-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
}
.contact-icon { font-size: 18px; line-height: 1; }
.contact-label { font-size: 11px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.contact-value { font-weight: 700; color: #fff; }
.contact-link {
  color: var(--brand-teal);
  text-decoration: none;
  font-weight: 900;
}
.contact-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.map-embed {
  margin-top: 14px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}
.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
.map-actions { margin-top: 14px; }

/* Fixed "Schedule Online" button styling */
.fixed-cta {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 1000;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  white-space: nowrap;
}

/* WhatsApp FAB */
.fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  width: 55px;
  height: 55px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.fab img { width: 30px !important; height: 30px !important; }

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: #fff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  overflow: hidden;
  padding-top: 70px;
  padding-bottom: 26px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 20% 0%, rgba(125,189,184,0.14), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(214,68,62,0.12), transparent 40%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-logo {
  height: 54px;
  width: auto;
  /* REMOVED: Mask image properties causing logo edge cutoff */
}
.footer-text { color: rgba(255,255,255,0.78); max-width: 520px; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.footer-btn { padding: 10px 18px; font-size: 10px; }

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: #fff;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col li { color: rgba(255,255,255,0.78); font-weight: 600; font-size: 13px; }
.footer-col a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-weight: 700;
}
.footer-col a:hover { color: var(--brand-teal); }

.footer-mini {
  margin-top: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
}
.footer-mini-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.footer-mini-value { margin-top: 6px; color: #fff; font-weight: 800; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-legal, .footer-policy {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.76);
  font-weight: 700;
  font-size: 12px;
}
.footer-policy a {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-weight: 800;
}
.footer-policy a:hover { color: var(--brand-teal); }
.footer-dot { opacity: 0.55; }

/* Desktop upgrades */
@media (min-width: 992px) {
  h2 { font-size: 42px; margin-bottom: 60px; }
  .logo img { height: 65px; } /* Desktop logo height */

  .desktop-nav { display: block; }
  .desktop-nav ul { display: flex; gap: 30px; list-style: none; }
  .desktop-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: 0.3s;
    padding: 10px 8px;
    border-radius: 10px;
  }
  .desktop-nav a:hover { color: var(--brand-teal); background: rgba(255,255,255,0.06); }

  .burger { display: none; }
  .hide-mobile { display: inline-flex; }

  .hero-split { flex-direction: row; height: 85vh; }
  .hero-image-side { flex: 1.2; height: 100%; }
  .hero-image-side::after {
    top: 0;
    bottom: auto;
    left: auto;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, transparent, #fff);
  }
  .hero-text-side { flex: 0.8; text-align: left; padding: 100px; }
  .hero-text-side h1 { font-size: 75px; }
  .hero-cta { justify-content: flex-start; }

  .process-journey {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .journey-rail {
    left: 0;
    right: 0;
    top: 54px;
    bottom: auto;
    height: 2px;
    width: auto;
    background: linear-gradient(90deg, rgba(125,189,184,0.35), rgba(214,68,62,0.25));
  }

  .dashboard-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }

  .about-grid {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  /* NEW: Desktop styles for .about-img container */
  .about-grid .about-text {
    flex: 1; /* Allows text to grow and shrink */
    max-width: 60%; /* Limits text width, giving more space to the image */
  }

  .about-grid .about-img {
    flex: 0 0 480px; /* Fixed width for the image container on desktop (approx. 50% increase from original 320px) */
    max-width: 45%; /* Ensures it doesn't get excessively wide on very large screens */
    margin: 0; /* Resets mobile centering margin for desktop alignment */
    order: unset; /* Reset order for desktop flow */
  }

  .about-img{
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(25, 45, 59, 0.18);
  background: #0f1a22;
}

/* soft edge vignette */
.about-img::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 55%, rgba(0,0,0,0.22) 100%);
}

.about-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

  .about-grid { flex-direction: row; align-items: center; }
  .facility-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-list { grid-template-columns: repeat(3, 1fr); font-size: 11px; }

  .google-reviews-section h2 {
    margin-bottom: 60px;
  }

  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
  .map-embed iframe { height: 100%; min-height: 420px; }

  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
    align-items: start;
  }
  .footer-bottom { flex-direction: row; }
}

/* ========================================= */
/* Mobile-Specific Adjustments for Header/Logo (applied at max-width 768px) */
/* ========================================= */
@media (max-width: 850px) {
    /* Existing rule from your file */
    .main-content { padding: 30px; margin-top: -40px; }

    /* Adjustments for the main header navigation container */
    header .nav {
        flex-wrap: wrap; /* Allows items to wrap onto the next line if space is limited */
        justify-content: space-between; /* Distributes items on the main axis */
        align-items: center; /* Aligns items on the cross axis */
        padding: 10px 15px; /* Add padding to the nav bar to prevent content touching edges */
        height: auto; /* Allow header height to adjust if content wraps */
    }

    /* Logo Fix: Target the logo container (the <a> tag with class 'logo') */
    header .nav .logo {
        flex-shrink: 0; /* IMPORTANT: Prevents the logo container from shrinking */
        max-width: 180px; /* Optional: Limit max width of logo itself on mobile for better fit */
    }
    /* Logo Fix: Target the image inside the logo container */
    header .nav .logo img {
        max-width: 100%; /* Ensures image scales down to fit its parent */
        height: auto;    /* CRUCIAL: Automatically calculates height to maintain aspect ratio */
        width: auto;     /* Ensures width scales proportionally with height */
        /* If height: 40px (from global styles) is still too large, uncomment below: */
        /* height: 35px; */
    }

    /* Button Group Fix: Target the div containing the "Home" and "Book Now" buttons */
    /* This targets `<div style="display:flex; gap:15px;">` directly */
    header .nav > div { 
        flex-shrink: 0; /* Prevents the button group from shrinking and causing cut-off */
        gap: 5px !important; /* Reduce gap between buttons, !important to override inline style */
        display: flex; /* Ensure it behaves as a flex container */
        align-items: center; /* Align buttons vertically */
    }

    /* Individual Button Adjustments */
    header .nav .btn {
        padding: 8px 12px; /* Reduce padding for smaller buttons on mobile */
        font-size: 0.8rem; /* Reduce font size for button text */
        white-space: nowrap; /* Already present, ensures text stays on one line */
        flex-shrink: 0; /* Prevents individual buttons from shrinking */
    }

    /* Adjust specific buttons if needed, for instance if 'Home' is `btn-ghost` */
    header .nav .btn-ghost {
        /* Add specific mobile styles for ghost button if necessary, e.g.,
           padding: 7px 10px; */
    }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (min-width: 992px){
  .about-img{
    transform: translateY(-6px);
  }
}