/* Trellis House — simplified (experts-page visual language) */
:root {
  --navy: #0b132b;
  --green: #35c817;
  --green-d: #28a312;
  --mint: #edf7f2;
  --offwhite: #f8faf9;
  --muted: #64748b;
  --border: rgba(11, 19, 43, 0.08);
  --hosted: #e8f4fd;
  --hosted-edge: #7eb6e0;
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--navy);
  background: #f0f7f4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(237, 247, 242, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(232, 244, 253, 0.7) 0%, transparent 55%),
    #f0f7f4;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 247, 244, 0.8);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.nav-logo a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--green-d);
}
.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: #1a2a50;
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .nav {
    padding: 0.9rem 1.2rem;
  }
  .nav-links {
    display: none;
  }
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding-top: 70px;
}
@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3rem 2.5rem;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-d);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 200;
  line-height: 1.1;
  color: var(--navy);
  text-wrap: balance;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.hero h1 strong {
  font-weight: 600;
}
.hero-note {
  font-family: "Bad Script", cursive;
  font-size: 1.25rem;
  color: var(--green-d);
  margin-bottom: 1.5rem;
  display: block;
}
.hero-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 28rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  background: var(--green);
  color: var(--navy);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: #2de01a;
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 2px;
}
.btn-ghost:hover {
  border-color: var(--navy);
}
.hero-right {
  position: relative;
  overflow: hidden;
}
@media (max-width: 780px) {
  .hero-right {
    height: 55vw;
    min-height: 260px;
  }
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("/assets/experts/trellishouse-rooftop.jpg") center/cover no-repeat;
}
.hero-photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #f0f7f4 0%, transparent 28%);
}
@media (max-width: 780px) {
  .hero-photo-fade {
    background: linear-gradient(to top, #f0f7f4 0%, transparent 40%);
  }
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 2.5rem;
}
.section-inner {
  max-width: 52rem;
  margin: 0 auto;
}
.section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-d);
  display: block;
  margin-bottom: 0.85rem;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}
.section h2 strong {
  font-weight: 600;
}
.section-lead {
  font-weight: 300;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.purpose-pull {
  display: block;
  font-family: "Bad Script", cursive;
  font-size: 1.35rem;
  color: var(--green-d);
  margin: 1.25rem 0;
}
.purpose p {
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 40rem;
}

.join-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  max-width: 26rem;
}
.join-panel label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.join-panel input[type="text"],
.join-panel input[type="email"] {
  appearance: none;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--navy);
  background: #fff;
}
.join-panel input:focus {
  outline: none;
  border-color: var(--green-d);
}
.join-consent {
  display: flex !important;
  gap: 0.65rem;
  align-items: flex-start;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--navy) !important;
  cursor: pointer;
}
.join-consent input {
  margin-top: 0.2rem;
  accent-color: var(--green-d);
  flex-shrink: 0;
}
.join-alert {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--mint);
  border: 1px solid rgba(40, 163, 18, 0.25);
  font-size: 0.92rem;
}
.join-alert.is-error {
  background: #fdecec;
  border-color: #f0b4b4;
  color: #8b1e1e;
}
.join-done h3 {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.events-group-h {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--navy);
}
.square-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .square-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .square-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.square-card {
  display: flex;
  flex-direction: column;
  min-height: 15.5rem;
  padding: 1.35rem 1.3rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}
.square-card.is-hosted {
  background: var(--hosted);
  border-color: var(--hosted-edge);
}
.square-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.55rem;
  color: var(--navy);
}
.square-card > p:not(.square-meta) {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.square-meta {
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.square-card.is-hosted .square-meta {
  color: #1d4ed8;
}
.square-link {
  appearance: none;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-d);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid rgba(40, 163, 18, 0.35);
}
.square-card.is-hosted .square-link {
  color: #1d4ed8;
  border-bottom-color: rgba(29, 78, 216, 0.35);
}
.square-link:hover {
  border-bottom-color: currentColor;
}

.involve-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 1.35rem;
}
.involve-tab {
  appearance: none;
  border: 0;
  background: none;
  padding: 0.15rem 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.involve-tab:hover {
  color: var(--navy);
}
.involve-tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.involve-tab:focus-visible {
  outline: 2px solid var(--green-d);
  outline-offset: 4px;
}
.involve-panel {
  margin-top: 0.35rem;
}
.involve-panel-lead {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 36rem;
}
.involve-form .optional,
.rsvp-dialog .optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85em;
}
.involve-form textarea,
.rsvp-dialog textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  line-height: 1.5;
}
.involve-form textarea:focus,
.rsvp-dialog textarea:focus {
  outline: none;
  border-color: var(--green-d);
}

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.rsvp-modal[hidden] {
  display: none !important;
}
.rsvp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.45);
}
.rsvp-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  background: #f8faf9;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 24px 60px rgba(11, 19, 43, 0.18);
}
.rsvp-dialog h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.rsvp-event {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}
.rsvp-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  appearance: none;
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.rsvp-dialog .join-panel {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.feed-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .feed-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.feed-card {
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  padding: 1.15rem 1.25rem;
  transition: border-color 0.2s, transform 0.15s;
}
.feed-card:hover {
  border-color: rgba(40, 163, 18, 0.35);
  transform: translateY(-2px);
}
.feed-card .tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-d);
}
.feed-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.4rem 0 0.35rem;
}
.feed-card p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
}

.site-foot {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-foot a:hover {
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .feed-card:hover {
    transform: none;
  }
}
