/* Local Montserrat Font */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
}

/* Local Font Awesome */
@import url('./fontawesome-free-6.7.2-web/css/fontawesome.min.css');
@import url('./fontawesome-free-6.7.2-web/css/solid.min.css');
@import url('./fontawesome-free-6.7.2-web/css/regular.min.css');
@import url('./fontawesome-free-6.7.2-web/css/brands.min.css');

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
  scroll-behavior: smooth;
}

/* Typography */
.name {
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 5px;
  color: #4a5f38; /* Main darker green */
}

.address {
  font-weight: 400;
  font-size: 16px;
}

h1, h2, h3 {
  color: #4a5f38; /* Main darker green */
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #a6b79b; /* Secondary lighter green */
  transition: width 0.3s ease;
}

section:hover h2::after {
  width: 80px;
}

h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

.pr-5 {
  padding-right: 5px;
}

.pr-10 {
  padding-right: 10px;
}

.pr-15 {
  padding-right: 15px;
}

.subtitle {
  font-size: 18px;
  color: #4a5f38; /* Main darker green - slightly muted */
}

.centered-text {
  text-align: center;
  font-size: 18px;
  margin: 20px 0;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
  transition: background-color 0.3s ease;
}

.section.alternate {
  background-color: #e9ede5; /* Very light green based on the secondary color */
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.text-content, .image-content {
  flex: 1 1 450px;
  padding: 0 10px;
}

.image-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 450px;
  padding: 0 10px;
}

/* Header */
header {
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

header:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.name-title {
  flex: 1; /* Takes up available space in the middle */
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #4a5f38;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: rgba(74, 95, 56, 0.18);
  outline: none;
}

nav a:hover {
  background-color: rgba(166, 183, 155, 0.2);
  transform: translateY(-2px);
}

nav a:active {
  background-color: rgba(74, 95, 56, 0.18) !important;
  color: #4a5f38 !important;
  border-radius: 20px;
}

/* Images */
.round-image {
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.round-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.small-logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.small-logo:hover {
  transform: scale(1.1);
}

/* Cards */
.location-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-bottom: 3px solid #a6b79b;
}

.location-card i {
  color: #a6b79b; /* Secondary lighter green */
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.location-card:hover i {
  transform: scale(1.2);
}

.location-card .map-link {
  margin-top: 30px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #e9ede5;
  color: #4a5f38;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: auto; /* Pushes to bottom of card */
  box-shadow: 0 2px 6px rgba(74, 95, 56, 0.15);
  align-self: center;
}

.map-link:hover {
  background-color: #4a5f38;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.map-link i {
  margin-right: 10px;
  font-size: 18px;
  color: #4a5f38;
  background-color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.map-link:hover i {
  transform: scale(1.1);
  color: #4a5f38;
}

/* Treatment Grid */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.treatment-card {
  background-color: white;
  padding: 35px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.treatment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(166, 183, 155, 0.08);
  transition: height 0.4s ease;
  z-index: -1;
}

.treatment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.treatment-card:hover::before {
  height: 100%;
}

.treatment-card .icon {
  font-size: 40px;
  color: #a6b79b; /* Secondary lighter green */
  margin-bottom: 20px;
  transition: transform 0.4s ease, color 0.4s ease;
}

.treatment-card:hover .icon {
  transform: scale(1.15);
  color: #4a5f38;
}

/* Contact Section */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background-color: #f9faf8;
}

.contact-item i {
  font-size: 24px;
  color: #4a5f38; /* Main darker green */
  transition: transform 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.2);
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-item:nth-child(3) {
  background-color: #e9ede5;
  border: 1px solid #4a5f38;
}

.contact-item:nth-child(3) i {
  color: #4a5f38;
}

.contact-item:nth-child(3):hover {
  background-color: #4a5f38;
  color: white;
}

.contact-item:nth-child(3):hover i {
  color: white;
}

.contact-info a {
  color: #4a5f38;
  background-color: #f8f8f8;
  border: 2px solid #e9ede5;
  font-weight: 500;
  font-size: 18px;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(74,95,56,0.04);
}

.contact-info a:hover {
  background-color: #e9ede5;
  color: #4a5f38;
  border-color: #a6b79b;
  box-shadow: 0 4px 16px rgba(74,95,56,0.10);
  text-decoration: none;
}

.contact-info a:visited {
  color: #4a5f38;
}

.contact-info a:active {
  color: #5a7248;
}

.contact-info a {
  text-decoration: none;
}

.contact-info a p {
  color: inherit;
}

/* Modern Footer Styles */
footer {
  background: linear-gradient(90deg, #4a5f38 0%, #5a7248 100%);
  color: white;
  padding: 18px 0 8px;
  position: relative;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
}

.modern-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: transform 0.3s;
}
.footer-logo-link:hover {
  transform: scale(1.08) rotate(-2deg);
}

.small-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
}
.footer-links a {
  color: #e9ede5;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-links a:hover {
  background: rgba(233,237,229,0.12);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
}

.footer-divider {
  border: none;
  border-top: 1.5px solid rgba(255,255,255,0.18);
  margin: 10px auto 8px auto;
  width: 100%;
  max-width: 220px;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 0;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  nav {
    display: none !important;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
    padding: 0;
    margin: 0;
  }
  .logo img {
    height: 38px;
  }
  .name {
    font-size: 17px;
    margin-bottom: 1px;
  }
  .subtitle {
    font-size: 16px;
  }
  header {
    padding: 2px 0 0 0;
  }
  .container {
    padding: 0 8px;
  }
  
  .two-columns {
    flex-direction: column;
    gap: 20px;
  }
  
  .image-content {
    order: -1;
  }
  
  .round-image {
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: auto; /* Allow natural aspect ratio on smallest screens */
  }
  
  .section {
    padding: 40px 0;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .location-card {
    padding: 20px;
    margin-bottom: 15px;
  }
  
  .map-link {
    width: 100%;
    justify-content: center;
  }
  
  /* Add more padding to approach section on smallest screens */
  #approach .container {
    padding: 0 20px;
  }
  
  #approach .text-content {
    padding: 0 12px;
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .contact-item {
    width: 90%;
  }
  
  .contact-item:nth-child(3) {
    margin-top: 10px;
    order: -1; /* Place the save contact button first on mobile */
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #4a5f38;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #5a7248;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Legal page styles */
.legal-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 40px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.back-button {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 10px 18px;
  background-color: rgba(74, 95, 56, 0.1);
  color: #4a5f38;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: rgba(74, 95, 56, 0.2);
  transform: translateX(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.back-button i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-3px);
}

h4 {
  color: #4a5f38;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 786px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  nav {
    margin-top: 15px;
    width: 100%;
    order: 3;
  }
  
  nav ul {
    justify-content: center;
  }
  
  .two-columns {
    flex-direction: column;
    gap: 30px;
  }
  
  .text-content, .image-content {
    flex: 1 1 100%;
    width: 100%;
    padding: 0;
  }
  
  .image-content {
    order: -1; /* This makes the image appear first on mobile */
  }
  
  .round-image {
    max-width: 80%;
    margin: 0 auto;
    aspect-ratio: auto; /* Allow natural aspect ratio on mobile */
  }
  
  .location-card {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .location-card p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  /* Add padding to approach section on mobile */
  #approach .container {
    padding: 0 15px;
  }
  
  #approach .text-content {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .name {
    font-size: 24px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  h2 {
    font-size: 26px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-item {
    width: 100%;
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .two-columns .location-card {
    margin-bottom: 20px;
  }
}

/* Header */
header {
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.header-link:hover {
  transform: translateY(-2px);
}