/* CivicMotion Consulting — shared stylesheet */

:root {
  --teal-dark: #0e3c3d;
  --teal-darker: #0a2e2f;
  --gold: #d9b46a;
  --gold-deep: #9c792e;
  --cream: #faf8f4;
  --ink: #24302f;
  --ink-soft: #55625f;
  --line: #e4ddd0;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(14, 60, 61, 0.08);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--teal-dark);
  border-bottom: 1px solid rgba(217, 180, 106, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  display: block;
  height: 54px;
  width: auto;
}

.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .brand img { height: 44px; }
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: #eef4f3;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(217, 180, 106, 0.18);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 18px;
    gap: 2px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.18);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-darker) 100%);
  color: var(--white);
  padding: 64px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; margin: 0 auto; }
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--white);
}

.hero h1 .accent { color: var(--gold); }

/* home hero: the organizational statement is the headline */
.hero h1.hero-statement {
  font-size: 2.05rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
  max-width: 24ch;
  margin: 0 0 28px;
}

@media (max-width: 760px) {
  .hero h1.hero-statement { font-size: 1.6rem; margin-left: auto; margin-right: auto; }
}

/* home hero: what "Civic" and "Motion" stand for, sits under the headline */
.hero h1.hero-statement + .hero-meaning { margin-top: -10px; }

.hero-meaning {
  margin: 0 0 28px;
}

.hero-meaning p {
  margin: 0 0 6px;
  font-size: 1.14rem;
  line-height: 1.45;
  color: #dfeceb;
}

.hero-meaning p:last-child { margin-bottom: 0; }

.hero-meaning .hm-word {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 760px) {
  .hero-meaning { margin-left: auto; margin-right: auto; }
  .hero-meaning p { font-size: 1.04rem; }
}

.hero p.lede {
  font-size: 1.12rem;
  color: #dfeceb;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  color: #cfe0e0;
  margin-bottom: 30px;
}

/* contact icons: one fixed box each so the envelope, phone and pin read the same size */
.hero-meta .meta-ico {
  display: inline-block;
  width: 1.25em;
  font-size: 1.05em;
  line-height: 1;
  text-align: center;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

@media (max-width: 760px) {
  .hero-meta { justify-content: center; }
}

.hero-photo { margin: 0; text-align: center; }

.hero-photo figcaption {
  margin-top: 18px;
  line-height: 1.3;
}

.hero-name {
  display: block;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-title {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-photo img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 3px solid rgba(217, 180, 106, 0.35);
  max-width: 320px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--teal-darker);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(217,180,106,0.35); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
  margin-left: 12px;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 760px) {
  .btn-outline { margin-left: 0; margin-top: 10px; }
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-alt { background: var(--cream); }

h2.section-title {
  color: var(--gold-deep);
  font-size: 1.55rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 36px;
  font-size: 1.02rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ---------- Cards / grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--ink);
}

.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(156, 121, 46, 0.1);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* ---------- Experience timeline ---------- */

.timeline-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: none; }

/* side-by-side roles (home page): both start at the same line, no divider under either */
.grid-2 > .timeline-item { padding-top: 0; border-bottom: none; }

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.timeline-role { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.timeline-org { color: var(--gold-deep); font-weight: 600; }
.timeline-dates { color: var(--ink-soft); font-size: 0.88rem; white-space: nowrap; }
.timeline-item p { color: var(--ink-soft); margin: 0; }

/* ---------- Quotes ---------- */

.quote {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin-bottom: 18px;
}

.quote p.qtext {
  font-style: italic;
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.quote p.qcite {
  margin: 0;
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Gallery ---------- */

.gallery-item { text-align: center; }
.gallery-item img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 10px;
}
.gallery-item figcaption { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-item .icon-badge { margin-bottom: 0; flex-shrink: 0; }

.contact-item h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-item a, .contact-item span { color: var(--ink-soft); }
.contact-item a:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-darker);
  color: #cfe0e0;
  padding: 34px 0;
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer a { color: var(--gold); }

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.site-footer .footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 180, 106, 0.12);
  color: var(--gold);
  transition: background 0.15s ease, color 0.15s ease;
}

.site-footer .footer-social a:hover {
  background: var(--gold);
  color: var(--teal-darker);
}

.site-footer .footer-social a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.footer-social svg { width: 16px; height: 16px; display: block; }

/* ---------- Page hero (non-home pages) ---------- */

.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-darker) 100%);
  color: var(--white);
  padding: 48px 0;
}

.page-hero h1 { margin: 0 0 8px; font-size: 2.1rem; color: var(--white); }
.page-hero p { margin: 0; color: #dfeceb; max-width: 60ch; }

/* ---------- Resources ---------- */

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(156, 121, 46, 0.1);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}

a.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

/* illustrated tile across the top of each resource card */
a.resource-card { overflow: hidden; }

.resource-art {
  display: block;
  width: calc(100% + 52px);
  margin: -26px -26px 22px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.resource-art.art-teal { background: var(--teal-dark); }
.resource-art.art-cream { background: #f3eee3; }

.resource-art svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

a.resource-card:hover .resource-art svg { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .resource-art svg { transition: none; }
  a.resource-card:hover .resource-art svg { transform: none; }
}

a.resource-card:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.resource-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.3;
}

.resource-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.resource-card .cta {
  margin-top: auto;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.92rem;
}

/* exercise detail pages */

.breadcrumb { margin: 0 0 14px; font-size: 0.88rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

.frame-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.frame-bar .tag { margin-bottom: 0; }

.frame-bar a {
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

.frame-bar a:hover { text-decoration: underline; }

.exercise-frame-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.exercise-frame-wrap iframe {
  display: block;
  width: 100%;
  /* fallback height; the page script fits this to the model's real height */
  height: 1500px;
  border: 0;
}

@media (max-width: 760px) {
  .exercise-frame-wrap iframe { height: 1800px; }
}

.frame-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
