/* Reset and body styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(#d6e2ef, lch(100% 0.01 296.81 / 0.8));
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* HEADER (TOP SIDE) */
header.top-side {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #001f3f;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  padding: 5px 30px 5px 15px;
  z-index: 1000;
  transition: top 0.4s ease-in-out;
  will-change: top;
}

header.top-side .logo {
  display: flex;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 2px;
  margin-right: 60px;
}

header.top-side .logo img {
  height: 100px;
  width: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 15px;
  margin-top: 12.5px;
}

header.top-side nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  margin-right: 15px;
}

header.top-side nav li {
  margin-left: 20px;
}

header.top-side nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
}

header.top-side nav a:hover {
  text-decoration: underline;
}

.menu-toggle {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: white;
}
.menu-toggle::after {
  content: "☰";
}

.menu-toggle.active::after {
  content: "✕";
}

/* Styles for the menu overlay */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
  z-index: 999; /* Below nav (1000) & menu-toggle (1100), above page content */
  display: none; /* Hidden by default */
  cursor: pointer; /* Indicates it's clickable to close */
}

#menu-overlay.active {
  display: block; /* Shown when menu is open */
}
/* END Styles for the menu overlay */


/* HERO */
.hero {
  background: url('../images/practices.png') no-repeat center center; /* Global rule, position is center center */
  background-size: cover;
  color: white;
  text-align: center;
  padding: 200px 20px; /* This determines hero height for desktop and mobile (as no mobile override here) */
  position: relative; /* Added for completeness, common for hero sections */
  overflow: hidden; /* Added for completeness */
}

.hero h1 {
  font-size: 3.5em; /* Global/Desktop from your provided CSS */
  margin-bottom: 10px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  /* font-family and font-weight were defined later globally, ensure consistency or keep here if page-specific */
}

.hero p {
  font-size: 1.5em; /* Global/Desktop from your provided CSS */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Contact page container (These styles might be generic or specific to a contact page template) */
.contact-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px 20px;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ... (Contact details, form, etc. styles) ... */


/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background: #001f3f;
    color: white;
    font-size: 0.9em;
}

footer a {
    color: #bbbbbb;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    /* === MOBILE HERO BACKGROUND POSITIONING === */
  .hero {
    background-image: url('../images/mobile_practices.png'); /* Sets the mobile-specific image */
    background-position: center center; /* Ensures the new mobile image is centered */
    /* background-size: cover; is likely inherited from your global .hero rule, which is good. */
    /* The padding on .hero (which determines its height) is also likely inherited
       from the global .hero rule (e.g., padding: 200px 20px;),
       so the mobile image will fill that same calculated height.
       If you want a DIFFERENT height for the hero section on mobile,
       you would also adjust the 'padding' property here for the .hero class.
       For example: padding: 100px 20px; to make it shorter. */
  }

    .hero h1 { /* Mobile font size for hero h1 on this page */
        font-size: 2.2em;
    }
    /* .hero p font size will inherit desktop 1.5em unless specified here for mobile */

    .contact-page {
        flex-direction: column;
        padding: 30px 15px;
    }

    header.top-side {
      justify-content: space-between; /* Mobile: space out logo and nav wrapper */
      padding: 5px 15px; /* Mobile: specific padding */
      gap: 0; /* Mobile: reset desktop gap */
      /* Other properties like height, display:flex, align-items:center are inherited */
    }

    header.top-side .logo {
      margin-left: 0;
      margin-right: auto; /* Pushes logo left */
    }
    /* No mobile specific styles for header.top-side .logo img, so it uses desktop (large, overflowing) */

    .menu-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
        font-size: 2em;
        cursor: pointer;
        color: white;
        z-index: 1100;
        background: none;
        border: none;
    }

    header.top-side nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: #001f3f;
        display: flex;
        flex-direction: column;
        align-items: start;
        padding: 60px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    header.top-side nav.active {
        right: 0;
    }

    header.top-side nav ul {
        flex-direction: column;
        width: 100%;
        display: flex;
    }

    header.top-side nav li {
        margin: 15px 0;
        text-align: left;
        width: 100%;
    }

    header.top-side nav a {
        font-size: 1.2em;
        width: 100%;
        display: block;
        padding: 10px 0;
    }

    /* Practice page specific mobile styles from your file */
    .category-columns {
        flex-direction: column; /* Stack columns on mobile */
    }
} /* End of the main @media screen and (max-width: 768px) block */


.map-section { /* ... */ }
.map-container { /* ... */ }
.scroll-fade { /* ... */ }
.scroll-fade.show { /* ... */ }

/* Styles for Practice Page Content */
.practice-groups { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.practice-category { margin-bottom: 60px; }
.practice-category h2 { font-size: 2.5em; font-weight: normal; font-family: Georgia, serif; color: #001f3f; margin-bottom: 20px; }
.category-columns { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.category-columns .column { flex: 1; min-width: 200px; }
.category-columns ul { list-style: circle; padding-left: 20px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.category-columns li { margin-bottom: 10px; font-size: 1em; color: #2a2a2a; }
.practice-overview { max-width: 1000px; margin: 60px auto; padding: 0 20px; }
.practice-overview h2 { font-size: 2.5em; text-align: center; color: #001f3f; margin-bottom: 40px; font-family: Georgia, serif; }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.practice-card { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); padding: 25px 20px; border-radius: 10px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.practice-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.4); }
.practice-card h3 { font-size: 1.3em; color: #001f3f; margin-bottom: 8px; font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.practice-card p { font-size: 0.95em; line-height: 1.6; color: #333; margin-bottom: 16px; }
.learn-more-button { display: inline-block; padding: 8px 16px; background-color: #001f3f; color: white; font-size: 0.9em; font-weight: 500; text-decoration: none; border-radius: 4px; transition: background-color 0.3s ease; }
.learn-more-button:hover { background-color: #003366; }
.practice-block { margin-bottom: 40px; padding: 20px; background: #ffffff; border-left: 4px solid #001f3f; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-radius: 6px; }
.practice-block h3 { font-size: 1.6em; color: #001f3f; margin-bottom: 10px; font-family: Georgia, serif; }
.practice-block p { font-size: 1.05em; line-height: 1.7; color: #333; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* Global .hero-content h1/p styles that were at the end of your file */
/* These will apply unless overridden by more specific rules (like the .hero h1 in mobile media query) */
.hero-content h1 {
  font-size: 3.5em; /* Global/Desktop */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  /* font-family and font-weight are defined on this selector earlier, or could be consolidated */
}

.hero-content p {
  font-size: 1.5em; /* Global/Desktop */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}
.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}