/* ARC website — first-draft brand styling.
   Cream + forest-green + sky-blue palette derived from the logo.
   Phase 5 will refine; this gets the base look in front of users. */

:root {
  /* ARC palette — pulled from the logo SVG */
  --cream:       #F5EFE3;   /* page background */
  --cream-light: #FAF6ED;   /* card surfaces */
  --cream-line:  #E5DCC8;   /* hairline rule on cream */
  --cream-rule:  rgba(26, 61, 32, 0.18);  /* stronger section divider */
  --forest:      #1A3D20;   /* primary type/accent — gravitas */
  --forest-2:    #3D6722;   /* secondary forest — hover state */
  --sky:         #1A88C0;   /* secondary accent — links, arrows */
  --sky-2:       #146a99;   /* sky on hover */
  --ink:         #1A1A1A;   /* near-black body type */
  --muted:       #5d5a51;   /* muted text on cream */

  /* Functional colours (kept distinct from brand) */
  --ok:          #2c6e2c;
  --err:         #8a2222;

  /* Layout + type */
  --maxw:        1100px;
  --serif:       'Iowan Old Style', 'Palatino Linotype', Palatino, Charter, Georgia, 'Times New Roman', serif;

  /* Considered touches: radii, shadows, timings */
  --r:           8px;
  --r-sm:        4px;
  --shadow-1:    0 1px 2px rgba(26, 61, 32, 0.04), 0 1px 3px rgba(26, 61, 32, 0.05);
  --shadow-2:    0 4px 10px rgba(26, 61, 32, 0.07), 0 2px 4px rgba(26, 61, 32, 0.06);
  --t:           180ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--cream);
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--forest);
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-line);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-header .brand     { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; height: 64px; }
.site-header .brand img { display: block; height: 64px !important; width: auto; max-width: none; flex-shrink: 0; }

/* Three lines, stacked tightly at line-height 1 (one standard text-row of
   spacing), bold, pinned to the BOTTOM of the brand area. The "Consultants"
   line ends up sitting just above the house wall base — no transforms or
   flex distribution to introduce uneven gaps. */
.site-header .brand-text {
  display: block !important;
  align-self: flex-end !important;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1 !important;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
  padding: 0;
}
.site-header .brand-text span {
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}
.site-header .brand-text em.brand-of {
  font-style: normal;
  font-weight: 400;
}

.site-nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.4rem 0.2rem; border-bottom: 2px solid transparent; transition: border-color var(--t); }
.site-nav a:hover { border-bottom-color: var(--forest-2); }

/* ---- Main + box surfaces -------------------------------------------------- */

.site-main {
  max-width: var(--maxw);
  margin: 1.5rem auto;
  padding: 0 1.25rem;
}
.site-main h1 { margin-top: 0; }

.box {
  background: var(--cream-light);
  border: 1px solid var(--cream-line);
  border-radius: var(--r);
  padding: 1.25rem 1.4rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-1);
}
.box h2 { margin-top: 0; }

/* ---- Forms ---------------------------------------------------------------- */

form.stack label { display: block; margin: 0.85rem 0 0.25rem; font-weight: 600; color: var(--forest); }
form.stack input[type=text],
form.stack input[type=email],
form.stack input[type=password],
form.stack textarea,
form.stack select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cream-line);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
form.stack input:focus,
form.stack textarea:focus,
form.stack select:focus {
  outline: none;
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(61, 103, 34, 0.15);
}
form.stack textarea { min-height: 7rem; resize: vertical; }
form.stack .actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; }

/* ---- Buttons (pill shape, brand colours, site-wide) ---------------------- */

button, .btn {
  font: inherit;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--forest);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
button:hover, .btn:hover {
  background: var(--forest);
  color: var(--cream-light);
  box-shadow: var(--shadow-1);
}
button:active, .btn:active { transform: translateY(1px); }
button.primary, .btn.primary {
  background: var(--forest);
  color: var(--cream-light);
  border-color: var(--forest);
}
button.primary:hover, .btn.primary:hover {
  background: var(--forest-2);
  border-color: var(--forest-2);
  box-shadow: var(--shadow-2);
}

/* ---- Flash messages ------------------------------------------------------- */

.flash { padding: 0.75rem 1rem; margin: 0 0 1rem; border: 1px solid; border-radius: var(--r-sm); }
.flash-ok  { color: var(--ok);  border-color: var(--ok);  background: #eef6ee; }
.flash-err { color: var(--err); border-color: var(--err); background: #fbeeee; }

/* ---- Tables (final column right-aligned per Andy's preference) ----------- */

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
table.data th, table.data td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--cream-line);
  text-align: left;
  vertical-align: top;
}
table.data th {
  font-family: var(--serif);
  color: var(--forest);
  font-weight: 600;
}
table.data th:last-child,
table.data td:last-child { text-align: right; }

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

.site-footer {
  border-top: 1px solid var(--cream-line);
  background: var(--cream);
  margin-top: 3rem;
  padding: 1.25rem;
}
.foot-row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--forest); text-decoration: underline; }

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

.muted { color: var(--muted); }
.right { text-align: right; }

/* ============================================================================
   HOME PAGE
   ========================================================================== */

/* Section base — cream-on-cream, separated by tighter spacing + a stronger
   forest-tinted divider. */
.home-section { padding: 2rem 0; border-top: 1px solid var(--cream-rule); }
.home-section:first-of-type { border-top: none; padding-top: 1.5rem; }
.home-section h2 {
  font-size: 1.9rem;
  margin: 0 0 1.2rem;
  padding-bottom: 0.55rem;
  position: relative;
}
.home-section h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

/* ---- Hero photo (full-bleed) --------------------------------------------- */

.hero-photo {
  position: relative;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top:   -1.5rem;
  width: 100vw;
  max-width: 100vw;
  height: clamp(420px, 70vh, 680px);
  background-image:
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(26,61,32,0.55) 0%, rgba(26,61,32,0.0) 70%),
    var(--hero-img,
      radial-gradient(ellipse at 30% 35%, #c9d6b4 0%, #8fa979 45%, #4f6c3f 100%));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 2rem max(1.25rem, calc(50vw - var(--maxw) / 2 + 1.25rem));
  color: var(--cream-light);
  overflow: hidden;
}
.hero-photo .photo-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.9);
  color: var(--forest);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.hero-photo .hero-inner { max-width: 38rem; }
.hero-photo h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--cream-light);
  margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

/* ---- CTA shelf (full-width ribbon below hero) ---------------------------- */
/* Blurb on the LEFT (italic serif), CTAs RIGHT-justified. */

.cta-shelf {
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  background: var(--cream-light);
  border-bottom: 1px solid var(--cream-rule);
  padding: 1.25rem max(1.25rem, calc(50vw - var(--maxw) / 2 + 1.25rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 0.5rem;
}
.cta-shelf .shelf-blurb {
  flex: 1 1 24rem;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--forest);
  font-size: 1.05rem;
  line-height: 1.45;
}
.cta-shelf .shelf-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

/* ---- "What's happening now" 3-card band ---------------------------------- */

.now-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0 2rem;
}
@media (min-width: 720px) { .now-band { grid-template-columns: repeat(3, 1fr); } }
.now-band .now-card {
  border: 1px solid var(--cream-line);
  border-radius: var(--r);
  background: var(--cream-light);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-1);
  transition: transform var(--t), box-shadow var(--t);
}
.now-band .now-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.now-band .now-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.now-band .now-card p { margin: 0 0 0.6rem; font-size: 0.95rem; }
.now-band .now-card a {
  color: var(--sky);
  border-bottom: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--t), border-color var(--t);
}
.now-band .now-card a:hover { color: var(--sky-2); border-bottom-color: var(--sky-2); }

/* ---- Logo grid ------------------------------------------------------------ */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px solid var(--cream-line);
  border-radius: var(--r);
  background: var(--cream-light);
  text-decoration: none;
  padding: 1.25rem;
  box-shadow: var(--shadow-1);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.logo-card:hover {
  border-color: var(--forest-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.logo-card img { max-width: 100%; max-height: 80px; object-fit: contain; }
.logo-placeholder {
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  line-height: 1.25;
}

/* ---- Committee grid ------------------------------------------------------- */
/* Horizontal cards: silhouette/photo on the left, name + role on the right.
   Auto-fill grid: 1-up on phones, 2-up on tablets, 3-up on wide screens. */

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.committee-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--cream-line);
  border-radius: var(--r);
  background: var(--cream-light);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-1);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.committee-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--forest-2);
}
.committee-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.committee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.committee-photo svg {
  width: 70%;
  height: 70%;
  fill: var(--forest);
  opacity: 0.35;
}
.committee-meta { min-width: 0; }      /* allow truncation if names get long */
.committee-name {
  margin: 0 0 0.15rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--forest);
  line-height: 1.2;
}
.committee-role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.2;
}

/* ---- Pull quote ----------------------------------------------------------- */

.pull-quote {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 44rem;
  margin: 0 auto;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.4;
  color: var(--forest);
  margin: 0 0 1rem;
  position: relative;
  padding-top: 2.6rem;
  quotes: none;
}
.pull-quote blockquote::before {
  content: "\201C";
  display: block;
  position: absolute;
  top: -0.4rem; left: 50%;
  transform: translateX(-50%);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--sky);
  font-style: normal;
  font-family: var(--serif);
  opacity: 0.9;
}
.pull-quote blockquote::after { content: none; }
.pull-quote cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
