/*
Theme Name: NY Advocacy
Author: 
Author URI: 
Version: 1.0
 */
 
  :root {
    --primary: #2b5d7e;
    --primary-dark: #1e4560;
    --accent: #d97b3b;
    --bg: #f6f4ef;
    --surface: #ffffff;
    --text: #2a2a2a;
    --muted: #6b6b6b;
    --border: #e1dcd2;
    --footer-bg: #1e4560;
    --footer-text: #d9e3ec;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
  }

  a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease;
  }
  a:hover { color: var(--accent); }

  /* ===== HEADER ===== */
  header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
  }

  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }
  .logo-text strong {
    color: var(--primary-dark);
    font-size: 1.15rem;
    letter-spacing: .2px;
  }
  .logo-text span {
    font-size: .8rem;
    color: var(--muted);
  }

  /* ===== NAVIGATION ===== */
  nav { display: flex; align-items: center; }
  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .25rem;
  }
  .nav-list > li { position: relative; }
  .nav-list > li > a,
  .nav-list > li > button {
    display: block;
    padding: .75rem 1rem;
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
  }
  .nav-list > li > a:hover,
  .nav-list > li > button:hover,
  .nav-list > li:hover > button,
  .nav-list > li:hover > a {
    background: var(--bg);
    color: var(--primary);
  }

  .has-dropdown > button::after {
    content: "▾";
    margin-left: .35rem;
    font-size: .7rem;
    color: var(--muted);
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    padding: .5rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown li a {
    display: block;
    padding: .55rem .75rem;
    border-radius: 5px;
    color: var(--text);
    font-size: .92rem;
  }
  .dropdown li a:hover {
    background: var(--bg);
    color: var(--primary);
  }

  /* Burger */
  .burger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .5rem .7rem;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary-dark);
  }

  /* ===== MAIN ===== */
  main {
    max-width: 920px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
  }

  article h1 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin: 0 0 .5rem;
    line-height: 1.2;
  }
  article .meta {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
  }

  article h2 {
    color: var(--primary-dark);
    font-size: 1.65rem;
    margin-top: 2.5rem;
    margin-bottom: .75rem;
  }
  article h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: .5rem;
  }
  article p { margin: 0 0 1rem; }

  article blockquote {
    border-left: 4px solid var(--accent);
    background: var(--surface);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #444;
    border-radius: 0 6px 6px 0;
  }

  /* ===== LISTS ===== */
  ul, ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
  }
  ul li, ol li { margin-bottom: .4rem; }
  ul li::marker { color: var(--accent); }
  ol li::marker { color: var(--primary); font-weight: 600; }

  /* ===== TABLES ===== */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
  }
  thead {
    background: var(--primary);
    color: #fff;
  }
  th, td {
    padding: .85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  tbody tr:last-child td { border-bottom: none; }
  tbody tr:nth-child(even) { background: var(--bg); }
  tbody tr:hover { background: #eef3f7; }

  /* ===== FORMS ===== */
  form {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
  }
  .form-row { margin-bottom: 1.1rem; }
  label {
    display: block;
    margin-bottom: .4rem;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: .95rem;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="url"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s, background .2s;
  }
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43,93,126,.15);
  }
  textarea { resize: vertical; min-height: 110px; }

  input[type="checkbox"], input[type="radio"] {
    accent-color: var(--primary);
    margin-right: .4rem;
  }

  /* ===== BUTTONS ===== */
  button, .btn, input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: .7rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease, transform .1s ease, box-shadow .2s;
  }
  button:hover, .btn:hover, input[type="submit"]:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(30,69,96,.25);
  }
  button:active { transform: translateY(1px); }

  .btn-accent {
    background: var(--accent);
  }
  .btn-accent:hover { background: #b96530; }

  /* ===== FOOTER ===== */
  footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2.5rem 1.5rem 1rem;
    margin-top: 3rem;
  }
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }
  footer h4 {
    color: #fff;
    margin: 0 0 .75rem;
    font-size: 1.05rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: .4rem;
    display: inline-block;
  }
  footer ul { list-style: none; padding: 0; margin: 0; }
  footer ul li { margin-bottom: .45rem; }
  footer a { color: var(--footer-text); }
  footer a:hover { color: var(--accent); }
  footer p { margin: .3rem 0; font-size: .93rem; }

  .footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    font-size: .85rem;
    color: #a9bac8;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 820px) {
    .burger { display: block; }
    nav { position: relative; }
    .nav-list {
      display: none;
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      flex-direction: column;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 10px 24px rgba(0,0,0,.1);
      padding: .5rem;
      min-width: 240px;
    }
    .nav-list.open { display: flex; }
    .nav-list > li { width: 100%; }
    .nav-list > li > a,
    .nav-list > li > button {
      width: 100%;
      text-align: left;
    }
    .dropdown {
      position: static;
      box-shadow: none;
      border: none;
      opacity: 1;
      visibility: visible;
      transform: none;
      padding: 0 0 0 1rem;
      display: none;
      background: transparent;
    }
    .has-dropdown.expanded > .dropdown { display: block; }

    article h1 { font-size: 1.9rem; }
  }