/* O'Flaherty Family Law — base styles.
   Page layout lives in each page's inline styles (exported from the design canvas).
   Colors: ground #F7F4EF · ink #1B2530 · muted #4D5660 · accent #1F5C63 · sand #EFE5D8 */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #F7F4EF;
  color: #1B2530;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: #1F5C63; }
a:hover { color: #1B2530; }

/* Buttons and links styled as buttons */
a[style*="background: #1F5C63"]:hover,
button[type="submit"]:hover { filter: brightness(1.15); }

:focus-visible {
  outline: 3px solid #1F5C63;
  outline-offset: 3px;
}

summary { cursor: pointer; list-style-position: outside; }
summary:hover { color: #1F5C63; }

input, select, textarea { color: #1B2530; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid #1F5C63; outline-offset: 1px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: #1B2530;
  color: #FFFFFF;
  padding: 12px 18px;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: #FFFFFF; }

/* Header navigation. .nav-links holds the same values the inline style used to. */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
}

/* Menu button: hidden unless menu.js has run and the screen is narrow. */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #1B2530;
  border-radius: 0;
  color: #1B2530;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle:hover { color: #1F5C63; border-color: #1F5C63; }
.menu-icon { fill: none; stroke: currentColor; stroke-width: 1.6; }
.menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-bars { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline; }

@media (max-width: 760px) {
  .has-menu .menu-toggle { display: inline-flex; }
  .has-menu .nav-links { display: none; }
  .has-menu.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #DDD6CB;
    font-size: 17px;
  }
  .has-menu.is-open .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .has-menu.is-open .nav-links a:last-child { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
