/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0.0
Description: Child theme for Blocksy
Author: Your Name
*/

/* Your CSS starts below this line */
/* ============ RESET (scoped to .onr-page so it drops safely into Blocksy) ============ */
  .onr-page, .onr-page *, .onr-page *::before, .onr-page *::after { box-sizing: border-box; }
  .onr-page { margin: 0; }
  .onr-page img, .onr-page svg { display: block; max-width: 100%; }
  .onr-page ul, .onr-page ol { list-style: none; margin: 0; padding: 0; }
  .onr-page a { text-decoration: none; color: inherit; }
  .onr-page button, .onr-page select, .onr-page input { font: inherit; color: inherit; background: none; border: 0; }
  .onr-page table { border-collapse: collapse; width: 100%; }
  .onr-page h1, .onr-page h2, .onr-page h3, .onr-page p { margin: 0; }

  /* ============ TOKENS ============ */
  .onr-page {
    --onr-navy: #0F1B2E;
    --onr-navy-soft: #17283F;
    --onr-green: #046A38;
    --onr-green-dark: #03502B;
    --onr-teal: #0E7C7B;
    --onr-cream: #FBF7EE;
    --onr-cream-dark: #F1EAD7;
    --onr-white: #FFFFFF;
    --onr-ink: #f9f9f9:
    --onr-slate: #5C6672;
    --onr-amber: #C98A2C;
    --onr-border: #E6DFCB;
    --onr-r-s: 10px;
    --onr-r-m: 16px;
    --onr-r-l: 24px;
    --onr-shadow: 0 20px 45px -26px rgba(15,27,46,.45);
    --onr-max: 1180px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--onr-ink);
    background: var(--onr-white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  .onr-page h1, .onr-page h2, .onr-page h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--onr-navy);
    line-height: 1.08;
    letter-spacing: -0.01em;
  }
  .onr-page :focus-visible { outline: 2.5px solid var(--onr-teal); outline-offset: 3px; }
  .onr-skip-link {
    position: absolute; left: -999px; top: 0; background: var(--onr-teal); color: #fff;
    padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
  }
  .onr-skip-link:focus { left: 0; }

  .onr-container { max-width: var(--onr-max); margin: 0 auto; padding: 0 28px; }
  .onr-section { padding: 84px 0; }
  @media (max-width: 700px) { .onr-section { padding: 56px 0; } }

  .onr-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: .9rem; font-weight: 500; color: var(--onr-green-dark);
    margin-bottom: 18px;
  }
  .onr-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--onr-green); flex: none; }

  .onr-section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 24px; margin-bottom: 38px; flex-wrap: wrap;
  }
  .onr-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); max-width: 34ch; }
  .onr-section-sub { color: var(--onr-slate); margin-top: 10px; font-size: 1rem; max-width: 52ch; }

  .onr-link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; color: var(--onr-green-dark); font-size: .95rem;
    white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color .15s ease;
  }
  .onr-link-arrow:hover { border-color: currentColor; }
  .onr-link-arrow svg { width: 15px; height: 15px; transition: transform .15s ease; }
  .onr-link-arrow:hover svg { transform: translateX(2px); }

  .onr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
  }
  .onr-btn svg { width: 17px; height: 17px; }
  .onr-btn-primary { background: var(--onr-green); color: #fff; box-shadow: 0 14px 30px -16px rgba(4,106,56,.65); }
  .onr-btn-primary:hover { background: var(--onr-green-dark); transform: translateY(-1px); }
  .onr-btn-ghost {
    background: transparent; color: var(--onr-navy); border: 1.5px solid var(--onr-border);
  }
  .onr-btn-ghost:hover { border-color: var(--onr-teal); color: var(--onr-teal); }
  .onr-btn-small { padding: 10px 18px; font-size: .88rem; }

  /* ============ HEADER ============ */
  .onr-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--onr-navy); border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background-color .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, border-color .35s ease;
  }
  .onr-header--scrolled {
    background-color: rgba(15, 27, 46, .58);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 30px -18px rgba(0,0,0,.55);
    border-bottom-color: rgba(255,255,255,.14);
  }
  .onr-header-inner {
    max-width: var(--onr-max); margin: 0 auto; padding: 16px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    transition: padding .35s ease;
  }
  .onr-header--scrolled .onr-header-inner { padding: 9px 28px; }
  .onr-logo {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.28rem;
    color: #fff; flex: none;
    transition: font-size .35s ease;
  }
  .onr-header--scrolled .onr-logo { font-size: 1.06rem; }
  .onr-logo-accent { color: #6FD3A1; }
  .onr-logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--onr-teal); margin-left: 2px; }
  .onr-nav {
    display: flex; align-items: center; gap: 30px;
  }
  .onr-nav a {
    color: rgba(255,255,255,.82); font-size: .95rem; font-weight: 500;
    transition: color .15s ease;
  }
  .onr-nav a:hover { color: #fff; }
  .onr-header-actions { display: flex; align-items: center; gap: 14px; }
  .onr-icon-btn {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; transition: background .15s ease, width .35s ease, height .35s ease;
    flex: none;
  }
  .onr-icon-btn:hover { background: rgba(255,255,255,.1); }
  .onr-icon-btn svg { width: 18px; height: 18px; }
  .onr-header .onr-btn-primary { color: #fff; }
  .onr-header .onr-btn-primary.onr-btn-small { transition: padding .35s ease, font-size .35s ease; }
  .onr-header--scrolled .onr-btn-primary.onr-btn-small { padding: 8px 16px; font-size: .84rem; }
  .onr-header--scrolled .onr-icon-btn { width: 34px; height: 34px; }
  .onr-menu-toggle { display: none; }

  @media (max-width: 900px) {
    .onr-nav {
      position: absolute; top: 100%; left: 0; right: 0;
      background: rgba(15, 27, 46, .97); flex-direction: column; align-items: flex-start;
      padding: 6px 20px 22px; gap: 4px;
      max-height: 0; overflow: hidden; opacity: 0;
      transition: max-height .3s ease, opacity .25s ease;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }
    .onr-nav a { padding: 13px 2px; width: 100%; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 1rem; }
    .onr-nav.onr-nav--open { max-height: 360px; opacity: 1; }
    .onr-header-actions .onr-btn-primary.onr-btn-small { display: none; }
    .onr-menu-toggle {
      display: inline-flex; align-items: center; justify-content: center;
      width: 42px; height: 42px; color: #fff; flex: none;
    }
    .onr-menu-toggle svg { width: 22px; height: 22px; }
    .onr-header--scrolled .onr-logo { font-size: 1.15rem; }
    .onr-header--scrolled .onr-header-inner { padding: 12px 20px; }
  }

  @media (max-width: 480px) {
    .onr-header-inner { padding: 14px 18px; }
    .onr-icon-btn { display: none; }
  }

  /* ============ HERO ============ */
  .onr-hero { background: linear-gradient(180deg, var(--onr-cream) 0%, #FDFBF6 100%); overflow: hidden; }
  .onr-hero-inner {
    max-width: var(--onr-max); margin: 0 auto; padding: 76px 28px 56px;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  }
  .onr-hero-copy { animation: onrRise .7s ease both; }
  .onr-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); max-width: 15ch; margin-bottom: 20px; }
  .onr-hero-sub { color: var(--onr-slate); font-size: 1.12rem; max-width: 46ch; margin-bottom: 34px; }

  .onr-finder-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
    background: var(--onr-white); border: 1px solid var(--onr-border);
    padding: 16px; border-radius: var(--onr-r-l); box-shadow: var(--onr-shadow);
    margin-bottom: 18px;
  }
  .onr-select-wrap { display: flex; flex-direction: column; gap: 6px; flex: 1 1 150px; min-width: 140px; }
  .onr-select-wrap label { font-size: .76rem; font-weight: 600; color: var(--onr-slate); padding-left: 2px; }
  .onr-select-wrap select {
    appearance: none; -webkit-appearance: none;
    border: 1.5px solid var(--onr-border); border-radius: var(--onr-r-s);
    padding: 13px 34px 13px 14px; font-size: .95rem; font-weight: 500; color: var(--onr-navy);
    background: var(--onr-cream) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235C6672" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 10px center / 15px;
    cursor: pointer; width: 100%;
  }
  .onr-select-wrap select:focus-visible { outline: 2.5px solid var(--onr-teal); outline-offset: 1px; }
  .onr-finder-bar .onr-btn { flex: 1 1 190px; min-height: 48px; }

  .onr-hero-copy > .onr-link-arrow { margin-left: 6px; }

  .onr-hero-visual { position: relative; animation: onrRise .8s .1s ease both; }
  .onr-skyline-wrap { position: relative; border-radius: var(--onr-r-l); overflow: hidden; box-shadow: var(--onr-shadow); }
  .onr-badge-float {
    position: absolute; left: -18px; bottom: -18px;
    background: var(--onr-white); border-radius: 50%; box-shadow: var(--onr-shadow);
    padding: 6px;
  }
  @media (max-width: 500px) { .onr-badge-float { width: 92px; left: -10px; bottom: -10px; } }

  @keyframes onrRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    .onr-hero-copy, .onr-hero-visual { animation: none; }
  }

  @media (max-width: 960px) {
    .onr-hero-inner { grid-template-columns: 1fr; padding-top: 44px; }
    .onr-hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  }

  @media (max-width: 600px) {
    .onr-container, .onr-hero-inner { padding-left: 20px; padding-right: 20px; }
    .onr-hero-inner { padding-top: 32px; padding-bottom: 40px; gap: 34px; }
    .onr-hero h1 { max-width: none; }
    .onr-hero-sub { margin-bottom: 26px; }
    .onr-finder-bar { padding: 14px; gap: 10px; }
    .onr-select-wrap { flex: 1 1 100%; min-width: 0; }
    .onr-finder-bar .onr-btn { flex: 1 1 100%; }
    .onr-section { padding: 48px 0; }
    .onr-trust-strip .onr-container { padding: 12px 20px; }
  }

  /* ============ TRUST STRIP ============ */
  .onr-trust-strip { background: var(--onr-cream-dark); border-top: 1px solid var(--onr-border); border-bottom: 1px solid var(--onr-border); }
  .onr-trust-strip .onr-container { padding: 13px 28px; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }
  .onr-trust-strip p { font-size: .85rem; color: var(--onr-slate); }
  .onr-trust-strip svg { width: 16px; height: 16px; color: var(--onr-teal); flex: none; }

  /* ============ LATEST POSTS ============ */
  .onr-posts { background: var(--onr-white); }
  .onr-posts-row {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; margin: 0 -28px; padding-left: 28px; padding-right: 28px;
    scroll-snap-type: x proximity;
  }
  @media (max-width: 600px) {
    .onr-posts-row { margin: 0 -20px; padding-left: 20px; padding-right: 20px; gap: 14px; }
    .onr-post-card { flex-basis: 225px; }
  }
  .onr-post-card {
    flex: 0 0 265px; scroll-snap-align: start;
    border: 1px solid var(--onr-border); border-radius: var(--onr-r-m); overflow: hidden;
    background: var(--onr-white); transition: box-shadow .15s ease, transform .15s ease;
  }
  .onr-post-card:hover { box-shadow: var(--onr-shadow); transform: translateY(-2px); }
  .onr-post-thumb {
    height: 130px; display: flex; align-items: flex-end; padding: 12px;
  }
  .onr-post-thumb svg { width: 26px; height: 26px; color: #fff; opacity: .9; }
  .onr-post-body { padding: 16px 18px 20px; }
  .onr-tag {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    color: var(--onr-green-dark); background: rgba(4,106,56,.09);
    padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
  }
  .onr-post-body h3 { font-size: 1.02rem; line-height: 1.32; margin-bottom: 10px; }
  .onr-post-body h3 a:hover { color: var(--onr-teal); }
  .onr-post-meta { font-size: .82rem; color: var(--onr-slate); }

  /* ============ METRO HUB GRID ============ */
  .onr-hubs { background: var(--onr-cream); }
  .onr-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .onr-hub-card {
    background: var(--onr-white); border: 1px solid var(--onr-border); border-radius: var(--onr-r-m);
    padding: 26px; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
  }
  .onr-hub-card:hover { box-shadow: var(--onr-shadow); transform: translateY(-2px); border-color: transparent; }
  .onr-hub-icon {
    width: 44px; height: 44px; border-radius: 50%; background: rgba(14,124,123,.1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  }
  .onr-hub-icon svg { width: 21px; height: 21px; color: var(--onr-teal); }
  .onr-hub-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
  .onr-hub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
  .onr-hub-tags li {
    font-size: .78rem; color: var(--onr-slate); background: var(--onr-cream-dark);
    padding: 4px 10px; border-radius: 999px;
  }
  @media (max-width: 900px) { .onr-hub-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .onr-hub-grid { grid-template-columns: 1fr; } }

  /* ============ CATEGORY SHORTCUTS ============ */
  .onr-categories { background: var(--onr-white); }
  .onr-categories h3 { font-size: 1.3rem; margin-bottom: 30px; }
  .onr-category-row { display: flex; gap: 18px; flex-wrap: wrap; }
  .onr-category-item {
    flex: 1 1 220px; display: flex; align-items: center; gap: 16px;
    border: 1px solid var(--onr-border); border-radius: var(--onr-r-m); padding: 20px 22px;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .onr-category-item:hover { border-color: var(--onr-green); box-shadow: var(--onr-shadow); }
  .onr-cat-icon {
    width: 46px; height: 46px; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
  }
  .onr-cat-icon svg { width: 22px; height: 22px; }
  .onr-cat-energy { background: rgba(201,138,44,.12); }
  .onr-cat-energy svg { color: var(--onr-amber); }
  .onr-cat-housing { background: rgba(4,106,56,.1); }
  .onr-cat-housing svg { color: var(--onr-green); }
  .onr-cat-transport { background: rgba(14,124,123,.1); }
  .onr-cat-transport svg { color: var(--onr-teal); }
  .onr-category-item .onr-cat-label { font-weight: 600; font-size: 1rem; color: var(--onr-navy); display: block; }
  .onr-category-item .onr-cat-sub { font-size: .82rem; color: var(--onr-slate); }

  /* ============ GRANTS FEED ============ */
  .onr-feed { background: var(--onr-cream); }
  .onr-feed-note { font-size: .82rem; color: var(--onr-slate); background: var(--onr-white); border: 1px solid var(--onr-border); padding: 5px 12px; border-radius: 999px; }
  .onr-table-wrap {
    overflow-x: auto; border-radius: var(--onr-r-m); border: 1px solid var(--onr-border);
    background: var(--onr-white); box-shadow: var(--onr-shadow);
  }
  .onr-table { min-width: 720px; }
  .onr-table th {
    text-align: left; font-size: .76rem; letter-spacing: .03em; color: var(--onr-slate);
    font-weight: 600; padding: 16px 20px; border-bottom: 1px solid var(--onr-border);
  }
  .onr-table td {
    padding: 17px 20px; font-size: .93rem; border-bottom: 1px solid var(--onr-border);
  }
  .onr-table tr:last-child td { border-bottom: none; }
  .onr-table tr:hover td { background: var(--onr-cream); }
  .onr-grant-name { font-weight: 600; color: var(--onr-navy); }
  .onr-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  }
  .onr-badge svg { width: 13px; height: 13px; }
  .onr-badge--fresh { background: rgba(4,106,56,.1); color: var(--onr-green-dark); }
  .onr-badge--ok { background: rgba(201,138,44,.13); color: var(--onr-amber); }

  /* ============ FOOTER ============ */
  .onr-footer { background: var(--onr-navy); color: rgba(255,255,255,.78); }
  .onr-footer-top {
    padding: 68px 0 44px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  }
  .onr-footer-brand .onr-logo { margin-bottom: 14px; }
  .onr-footer-brand p { font-size: .92rem; line-height: 1.65; max-width: 34ch; color: rgba(255,255,255,.62); }
  .onr-footer-col h4 { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: .92rem; margin-bottom: 16px; }
  .onr-footer-col ul li { margin-bottom: 10px; }
  .onr-footer-col a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color .15s ease; }
  .onr-footer-col a:hover { color: #fff; }
  .onr-footer-seo {
    border-top: 1px solid rgba(255,255,255,.1); padding: 28px 0;
    font-size: .84rem; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 90ch;
  }
  .onr-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: .82rem; color: rgba(255,255,255,.5);
  }
  .onr-footer-bottom a { color: rgba(255,255,255,.5); }
  .onr-footer-bottom a:hover { color: #fff; }
  @media (max-width: 860px) {
    .onr-footer-top { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .onr-footer-top { grid-template-columns: 1fr; gap: 30px; }
  }/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
