/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #4b805b;
  --accent-light: #e8f5f0;
  --text-muted: #4b805b;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: #fafaf8;
  color: var(--accent);
  line-height: 1.5;
  font-weight: 400;
  max-width: 1100px;
  margin: 0 auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
.burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Navigation */
nav.sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  height: 60px;
}

nav.sticky .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.sticky .brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
}

nav.sticky .brand-logo {
  height: 40px;
  width: auto;
  margin-left: 2rem;
}

nav.sticky ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav.sticky ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

nav.sticky ul .nav-cta {
  background: rgba(75, 128, 91, 0.7);
  color: #fff;
  border: 1.5px solid transparent;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  margin-right: 5rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: opacity 0.2s ease;
}

nav.sticky ul .nav-cta:hover {
  opacity: 0.85;
}

/* Burger menu */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

#nav-toggle {
  display: none;
}

/* Heroine - Main header section with image and text side-by-side */
.heroine {
  display: flex;
  align-items: flex-start;
  background: #f7f9ee;
  overflow: hidden; /* Prevents the rounded image from breaking layout */
  position: relative;
}

.heroine-image {
  width: 50%;
  max-width: 50%;
  flex-shrink: 0; /* Prevents image from shrinking below 50% */
  border-radius: 0 9999px 9999px 0; /* Rounded right side only */
  position: relative;
  z-index: 2; /* Places image above background */
}

.heroine .container {
  flex: 1;
  text-align: left;
  padding: 2rem 5rem 2rem 3rem;
  max-width: none;
}

.heroine h1 {
  margin-right: 0.75rem;
}

.portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 auto 2rem;
}

/* Practice Split */
.practice-split {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-top: 1px solid #e8e4df;
  margin-top: 0;
  padding-top: 0;
}

.practice-img {
  flex: 1;
  min-width: 400px;
  min-height: 450px;
  background: var(--accent-light) url('../assets/practice.webp') center/cover no-repeat;
}

.practice-text {
  flex: 1;
  min-width: 400px;
  padding: 5rem 3rem;
  background: var(--accent-light);
}

/* Layout & Typography */
h1, h2, h3, h4, h5, h6, p, li, article {
  color: var(--accent);
}

section {
  padding: 5rem 0;
  scroll-margin-top: 4rem;
}

html {
  scroll-behavior: smooth;
  background: #454545;
}

h2 {
  text-align: center;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-line {
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #daeadf;
  border: none;
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  text-align: left;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.85rem;
}

/* Heroine subtitle & CTA */
.heroine .subtitle {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.heroine .tagline {
  max-width: 600px;
  font-size: 0.90rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--accent);
}

.heroine .cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.heroine .cta:hover {
  opacity: 0.85;
}

/* About - Bio section with darker green background */
#about {
  background: #95c2a1;
  margin-top: -1rem; /* Pulls section up to overlap slightly with hero */
  padding: 3rem 4rem;
  position: relative;
  z-index: 1; /* Ensures proper stacking below hero */
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-col {
  line-height: 1.8;
  font-size: 0.7rem;
}

.about-col p {
  color: #fff;
}

.about-col:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-col:first-child p {
  font-style: italic;
}

.about-col .portrait {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-width: 2px;
  margin: 0;
}

/* Services */
.services-section {
  background: #fff;
  padding: 5rem 4rem;
}

.services-section h2 {
  text-align: left;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.services-section .section-line {
  display: none;
}

/* Team */
#team {
  background: #f7f9ee;
  padding: 2rem 1.5rem;
  margin-bottom: 0;
}

#team h2 {
  text-align: center;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

#team .section-line {
  display: none;
}

.team-member {
  text-align: center;
}


.team-member h3 {
  color: var(--accent);
}

.team-member .role {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.team-member .bio {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.mw-circle {
  width: 120px;
  height: 120px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Practice text */
.practice-text h2 {
  text-align: left;
}

.practice-text .section-line {
  margin-left: 0;
}

.practice-grid {
  display: grid;
  gap: 2.5rem;
}

.practice-grid h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.map-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(75, 128, 91, 0.1);
  color: var(--accent);
  text-decoration: none;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
  border: 1px solid rgba(75, 128, 91, 0.2);
}

.map-link:hover {
  opacity: 0.85;
}

.map-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.map-links + p {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Contact */
.contact-section {
  background: #f7f9ee;
  text-align: center;
  padding: 4rem 1rem;
}

.contact-section h2 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-section .section-line {
  display: none;
}

.contact-intro {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--accent);
}

.contact-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  font-style: normal; /* Override default italic style of <address> */
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(75, 128, 91, 0.2);
}

.contact-button:hover {
  opacity: 0.85;
}

.contact-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer */
footer {
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 143, 101, 0.3);
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.85;
}

/* Announcements - Special notices displayed in practice section */
.announcement {
  background-color: #95c2a1; /* Darker green to stand out */
  color: var(--accent);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 1.5rem 2rem;
  /* Negative margins extend announcement full-width and to bottom edge */
  margin: 2rem -3rem -5rem -3rem; /* Counteracts parent padding */
  display: none; /* Only visible when .visible class is added by JS */
}

.announcement.visible {
  display: block;
}

@media (max-width: 800px) {
  .heroine {
    flex-direction: column;
  }

  .heroine-image {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .heroine .container {
    padding: 2rem 1.5rem;
  }

  .services-section {
    padding: 3rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .practice-img {
    min-width: 100%;
    min-height: 300px;
  }

  .burger {
    display: block;
  }

  nav.sticky .container {
    flex-wrap: wrap;
  }

  nav.sticky .brand-logo {
    height: 40px;
  }

  /* Mobile navigation menu - hidden by default, slides down when checkbox is checked */
  nav.sticky ul {
    order: 3; /* Places menu below logo and burger */
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    max-height: 0; /* Hidden state - animated by checkbox */
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    margin: 0 -1rem; /* Extends menu to full width of viewport */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    align-items: flex-start;
  }

  nav.sticky ul li {
    text-align: left;
    padding: 0.5rem 1rem;
    width: 100%;
  }

  nav.sticky ul li a {
    display: block;
    text-align: left;
  }

  nav.sticky ul .nav-cta {
    margin-right: 0;
    display: inline-block;
  }

  /* When burger is checked, expand menu to show items */
  #nav-toggle:checked~ul {
    max-height: 300px; /* Slides menu down */
    padding: 1rem 0 0.5rem;
  }

  .practice-text {
    min-width: 100%;
  }

  .map-links {
    flex-direction: column;
  }

  .map-link {
    justify-content: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-button {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 0.95rem;
  }

  section {
    scroll-margin-top: 15rem;
  }
}
