/* Cooperative Title — design system ("Calm & Trusted")
   Tokens + shared layout for every page. Ported from sketch 001-calm-trusted. */

:root {
  --bg:        #fbfaf7;   /* warm off-white page */
  --bg-card:   #ffffff;
  --ink:       #1b1e21;   /* primary text */
  --ink-soft:  #4a4f54;   /* body copy */
  --ink-mute:  #6b706b;   /* footnotes */
  --taupe:     #7a6f5c;   /* eyebrows / labels */
  --line:      #e9e4da;   /* hairline borders */
  --line-in:   #d9d2c4;   /* input borders */
  --green:     #0f5132;   /* brand green */
  --green-dk:  #0b3f27;   /* hover */
  --green-bg:  #14231b;   /* dark section bg */
  --green-card:#1d3026;   /* card on dark */
  --green-cln: #2c4638;   /* border on dark */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,35,27,.04), 0 8px 28px rgba(20,35,27,.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand > span { display: block; }
.brand .word { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .2px; color: var(--ink); line-height: 1.15; white-space: nowrap; }
.brand .sub { display: block; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--taupe); white-space: nowrap; }
.menu { display: flex; gap: 30px; list-style: none; align-items: center; }
.menu a { color: #2c2f33; text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; position: relative; }
.menu a:hover { color: var(--green); }
.menu a.active { color: var(--green); }
.menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--green); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--bg); border: none;
  padding: 10px 20px; border-radius: 99px; font-family: var(--sans);
  font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease;
}
.cta:hover { background: var(--green-dk); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-in);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink); background: none; color: var(--ink);
  padding: 12px 26px; border-radius: 99px; font-family: var(--sans);
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--bg); }
.btn.primary:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn.ondark { border-color: rgba(255,255,255,.5); color: #f2efe7; }
.btn.ondark:hover { background: #f2efe7; color: var(--green-bg); }

/* ---------- Sections ---------- */
section { padding: 72px 28px; }
section.tight { padding: 52px 28px; }
section.dark { background: var(--green-bg); color: #f2efe7; }
.eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--taupe); margin-bottom: 14px; }
section.dark .eyebrow { color: #9c8f78; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.3px; }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 18px; line-height: 1.15; }
.lede { max-width: 760px; font-size: 17px; color: var(--ink-soft); }
section.dark .lede { color: #c9d3ca; }
.section-head { margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 104px 28px 88px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px); font-weight: 600; line-height: 1.12;
  letter-spacing: -.5px; max-width: 860px; margin: 0 auto 24px;
}
.hero p { max-width: 640px; margin: 0 auto 34px; font-size: 18px; color: var(--ink-soft); }
.hero .row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.trust { margin-top: 34px; font-size: 13px; color: var(--taupe); letter-spacing: .4px; }

/* ---------- Cards / grids ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
section.dark .card { background: var(--green-card); border-color: var(--green-cln); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }
section.dark .card p { color: #c9d3ca; }
.card .ico { width: 40px; height: 40px; margin-bottom: 16px; opacity: .9; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.person { display: flex; gap: 22px; align-items: flex-start; }
.person img {
  width: 132px; height: 132px; object-fit: cover; object-position: top center;
  border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0;
}
.person .avatar {
  width: 132px; height: 132px; flex-shrink: 0; border-radius: 50%;
  background: #eaf0ea; border: 1px solid #d6e0d6; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: 1px;
}
.person .role { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.person h3 { font-size: 20px; margin-bottom: 10px; }
.person p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.desig { list-style: none; font-size: 13px; color: var(--ink-soft); }
.desig li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.desig li::before { content: "—"; position: absolute; left: 0; color: var(--taupe); }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.office .map { aspect-ratio: 16/10; width: 100%; border: 0; display: block; background: #eee; filter: saturate(.9); }
.office .office-body { padding: 22px 24px; }
.office .city { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.office .addr { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
.office .addr a { color: var(--green); text-decoration: none; }

/* ---------- Map (single, homepage) ---------- */
.map-wide { width: 100%; aspect-ratio: 21/9; border: 1px solid var(--line); border-radius: var(--radius); display: block; }

/* ---------- Contact / info list ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; }
.info dt { color: var(--taupe); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; padding-top: 3px; }
.info dd { color: var(--ink); }
.info dd a { color: var(--green); text-decoration: none; }
.info dd a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
form.styled { max-width: 560px; }
.field { margin-bottom: 20px; }
label { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--taupe); margin-bottom: 8px; display: block; font-weight: 600; }
label .req { color: var(--green); }
.hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-mute); font-size: 11.5px; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; border: 1px solid var(--line-in); background: var(--bg-card);
  padding: 12px 14px; border-radius: 8px; font-family: var(--sans); font-size: 14px; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--green) 40%, transparent); outline-offset: 1px; border-color: var(--green); }
textarea { resize: vertical; }
.radio { display: flex; gap: 26px; padding-top: 4px; flex-wrap: wrap; }
.radio label { text-transform: none; letter-spacing: 0; font-size: 14px; color: #2c2f33; margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.radio input { accent-color: var(--green); width: 16px; height: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.note { font-size: 12px; color: var(--ink-mute); margin-top: 18px; }
.sent { display: none; margin-top: 16px; color: var(--green); font-weight: 600; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 46px 28px 34px; font-size: 13.5px; color: var(--ink-mute); background: var(--bg); }
footer.site .foot-logo { height: 40px; width: auto; margin-bottom: 30px; opacity: .95; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site strong { color: var(--ink); }
footer.site a { color: var(--green); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .fmenu { list-style: none; display: grid; gap: 6px; }
footer.site .social { display: flex; gap: 12px; margin-top: 14px; }
footer.site .social img { height: 22px; width: 22px; opacity: .7; }
footer.site .social a:hover img { opacity: 1; }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--ink-mute); }

/* ---------- Utility ---------- */
.pagehero { padding: 72px 28px 20px; }
.pagehero h1 { font-size: clamp(30px, 4.6vw, 46px); max-width: 820px; line-height: 1.12; }
.pagehero p { max-width: 680px; margin-top: 16px; font-size: 17px; color: var(--ink-soft); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 30px; }
.stat .n { font-family: var(--serif); font-size: 34px; color: var(--green); }
.stat .l { font-size: 13px; color: var(--taupe); letter-spacing: .5px; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { gap: 12px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand .sub { display: none; }          /* long uppercase line crowds the header */
  .brand .word { font-size: 17px; }
  .nav-right { order: 2; }
  .menu-toggle { order: 3; }
  .menu {
    order: 4; position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 28px 20px; align-items: stretch; display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .menu a.active::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .cols-3, .cols-2, .team, .offices, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .tp-grid { grid-template-columns: 1fr !important; }
  footer.site .cols { grid-template-columns: 1fr; gap: 26px; }
  .person { flex-direction: column; }
  .person img, .person .avatar { width: 108px; height: 108px; }
  .person .avatar { font-size: 28px; }
  section { padding: 56px 28px; }
  .hero { padding: 72px 24px 56px; }
}

/* logo option C mark in the header (10/29) */
@media (max-width: 960px) { .brand { gap: 8px; } .brand img { height: 32px; width: 32px; flex: 0 0 auto; } }
@media (max-width: 480px) { .brand img { height: 28px; width: 28px; } .brand .word { font-size: 15px; } .nav-right .cta { padding-left: 12px; padding-right: 12px; font-size: 13px; } }
