/* Jajeh Group — design system
   Palette drawn from the sail logo: charcoal + emerald, on a warm paper white.
   Typography per brand designer: logo font (Flama Condensed) is reserved for the logo itself;
   site text uses a simple, non-condensed sans (Lato) so the logo owns the hierarchy. */
:root {
  --ink: #26221f;
  --ink-soft: #55504b;
  --paper: #faf8f5;
  --paper-raised: #ffffff;
  --line: #e7e1d8;
  --green: #17a566;
  --green-deep: #0e7a4a;
  --head: "Lato", -apple-system, "Segoe UI", sans-serif;
  --sans: "Lato", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: .04em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
p  { margin: 0 0 1.2em; }
a  { color: var(--green-deep); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand img.lockup { width: auto; height: 40px; border-radius: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-nav a { margin-left: 1.4rem; text-decoration: none; color: var(--ink-soft); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; }
.site-nav a:hover { color: var(--green-deep); }

/* Hero */
.hero { text-align: center; padding: 4.5rem 1.25rem 4rem; }
.hero img.mark { width: 110px; height: 110px; border-radius: 50%; margin-bottom: 1.5rem; }
.hero img.hero-lockup { width: min(430px, 82%); height: auto; }
.hero .tagline { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin: 0 auto; }
.rule { width: 72px; height: 3px; background: var(--green); border: 0; margin: 1.4rem auto; }

/* Story */
.story { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4rem 0; }
.story .cols { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }
.story figure { margin: 0; }
.story figcaption { font-size: .9rem; color: var(--ink-soft); text-align: center; padding-top: .6rem; }
.story img { border-radius: 6px; box-shadow: 0 10px 30px rgba(38, 34, 31, .18); }
@media (max-width: 760px) { .story .cols { grid-template-columns: 1fr; } .story figure { max-width: 380px; margin: 0 auto; } }

/* Ventures */
.ventures { padding: 4rem 0 4.5rem; text-align: center; }
.ventures .lede { color: var(--ink-soft); max-width: 38em; margin: 0 auto 2.5rem; }
/* Flex (not grid) so a partial last row centers under the full rows */
.venture-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.venture {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  min-height: 190px;
  flex: 0 1 245px;
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (max-width: 560px) { .venture { flex-basis: 100%; } }
a.venture:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(38, 34, 31, .1); }
.venture img { max-height: 92px; width: auto; max-width: 85%; object-fit: contain; }
.venture img[src$=".svg"] { height: 92px; }
.venture .name { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
a.venture .name { color: var(--green-deep); }
.venture .sub { font-size: .85rem; color: var(--ink-soft); margin-top: -0.7rem; }

/* Give */
.give { background: var(--ink); color: #f2efe9; text-align: center; padding: 3.5rem 1.25rem; }
.give h2 { color: #fff; }
.give p { color: #cfc9c0; max-width: 36em; margin: 0 auto 1.6em; }
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: .8rem 2rem; border-radius: 999px; font-weight: 700; letter-spacing: .05em;
}
.btn:hover { background: var(--green-deep); }

/* Kids' 529 */
.page-title { text-align: center; padding: 3.5rem 1.25rem 1rem; }
.page-title .lede { color: var(--ink-soft); max-width: 36em; margin: 0 auto; }
.kids-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; padding: 2rem 0 4rem; }
.kid { text-decoration: none; color: var(--ink); background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.kid:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(38, 34, 31, .12); }
.kid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.kid .name { display: block; text-align: center; font-family: var(--head); font-size: 1.2rem; padding: .9rem 0; color: var(--green-deep); }

/* Embed (tax organizer) */
.embed { padding: 1.5rem 0 4rem; }
.embed iframe { display: block; width: 100%; min-height: 2150px; border: 0; background: var(--paper-raised); border-radius: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 1.25rem; text-align: center; color: var(--ink-soft); font-size: .9rem; }
.site-footer a { color: var(--ink-soft); }
