/* Kale Ventures — shared styles. Page layout lives inline in each page;
   this file holds the base rules, focus states, the Work filter and phone-width overrides. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #F5F7F4; }
img, svg { max-width: 100%; }
a { color: #016C67; }
a:hover { color: #003844; }
input, textarea, select, button { font: inherit; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: #003844; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #98C9A3; outline-offset: 3px; }

.nav-link[aria-current="page"] { text-decoration: underline !important; text-decoration-color: #98C9A3 !important; text-decoration-thickness: 3px !important; text-underline-offset: 8px; }
.nav-link:hover { color: #016C67 !important; }
.nav-cta:hover, a[style*="background: #016C67"]:hover { background: #003844 !important; color: #fff !important; }

/* Work page filter */
.filter-btn { border-color: #C9D6D0 !important; background: #FFFFFF !important; color: #003844 !important; font-weight: 500 !important; }
.filter-btn[aria-pressed="true"] { border-color: #003844 !important; background: #003844 !important; color: #FFFFFF !important; font-weight: 600 !important; }

/* Forms on dark backgrounds */
form input::placeholder, form textarea::placeholder { color: #8FB0AB; }
form input:focus, form textarea:focus, form select:focus { border-color: #98C9A3 !important; outline: none; }

/* Tablet */
@media (max-width: 900px) {
  h1 { font-size: 56px !important; }
  section[style*="padding: 104px"] , section > div[style*="padding: 104px"] { padding-top: 72px !important; padding-bottom: 72px !important; }
}

/* Phone */
@media (max-width: 640px) {
  h1 { font-size: 42px !important; line-height: 1.05 !important; }
  h2 { font-size: 34px !important; line-height: 1.1 !important; }
  h3[style*="font-size: 34px"], h3[style*="font-size: 30px"] { font-size: 28px !important; }
  p[style*="font-size: 2"] { font-size: 18px !important; }
  blockquote { font-size: 22px !important; }

  /* tighter vertical rhythm */
  section[style*="padding: 9"], section[style*="padding: 10"], section[style*="padding: 7"],
  section > div[style*="padding: 9"], section > div[style*="padding: 10"], section > div[style*="padding: 8"] {
    padding-top: 56px !important; padding-bottom: 56px !important;
  }
  /* cards with big inner padding */
  [style*="padding: 48px"], [style*="padding: 40px"] { padding: 28px 22px !important; }
  [style*="padding: 36px"] { padding: 24px !important; }
  figure[style*="padding: 48px"] { padding: 28px 22px !important; }

  /* header: logo on its own row, links wrap underneath */
  .site-nav { padding: 12px 16px !important; gap: 8px !important; }
  .site-nav img { height: 36px !important; }
  .nav-links { gap: 6px 18px !important; font-size: 16px !important; width: 100%; }
  .nav-link { min-height: 44px; display: inline-flex !important; align-items: center; }
  .nav-cta { margin-left: auto; padding: 10px 18px 8px !important; }

  /* side gutters to 16px */
  [style*="padding: 96px 24px"], [style*="padding: 104px 24px"], [style*="padding: 72px 24px"],
  [style*="padding: 88px 24px"], [style*="padding: 64px 24px"], [style*="padding: 40px 24px"],
  [style*="padding: 36px 24px"], [style*="padding: 32px 24px"], [style*="padding: 0 24px"] {
    padding-left: 16px !important; padding-right: 16px !important;
  }
}

/* Phone header: logo + "Talk to us" on the first row, page links on the second */
@media (max-width: 640px) {
  .nav-links { display: contents !important; }
  .site-nav > a:first-child { order: 0; }
  .nav-cta { order: 1; margin-left: auto; }
  .site-nav::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .nav-link { order: 3; font-size: 16px; margin-right: 14px; }
  .site-nav { column-gap: 0 !important; row-gap: 4px !important; }
}

/* Text links on dark/green cards stay light on hover */
a[style*="color: #FFFFFF"]:not(.nav-cta):hover { color: #98C9A3 !important; }

/* Home "boards" cards: line up the two "Get in touch" links at the bottom */
#boards > div { display: flex; flex-direction: column; align-items: flex-start; }
#boards > div > a { margin-top: auto !important; padding-top: 28px; }
