/* ─────────────────────────────────────────
   Banyan Co. — Dark Glass UI
   Brand: Banyan Green #006428 · Ivory #F5F5F0
   ───────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:         #006428;
  --green-deep:    #003C00;
  --green-canopy:  #005028;
  --green-bright:  #00a845;
  --black:         #1A1A1A;
  --ivory:         #F5F5F0;
  --stone:         #DCDCDC;
  --white:         #FFFFFF;

  /* Sage theme tokens */
  --bg:            #b8ccb8;
  --bg-2:          #c8d8c8;
  --glass:         rgba(255, 255, 255, 0.18);
  --glass-hover:   rgba(255, 255, 255, 0.28);
  --glass-border:  rgba(255, 255, 255, 0.35);
  --glass-shine:   rgba(255, 255, 255, 0.3);
  --text:          #1A1A1A;
  --text-muted:    rgba(26, 26, 26, 0.55);
  --accent:        #006428;
  --accent-dim:    rgba(0, 100, 40, 0.12);

  --radius:        18px;
  --radius-sm:     10px;
  --blur:          blur(24px) saturate(160%);

  --font-display:  'Caslon Titling MT Std', 'EB Garamond', 'Times New Roman', Georgia, serif;
  --font-body:     'EB Garamond', 'Times New Roman', Georgia, serif;
}

/* ── Base ── */
html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.6;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Blurred background photo — controlled by JS */
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.9);
  transform: scale(1.06); /* prevents white blur edges */
}

/* Sage green tint overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(184, 204, 184, 0.55);
  pointer-events: none;
}

/* ── Bottom Nav ── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 32px 12px;
}

nav {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
}

nav button {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 9px 28px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

nav button:hover {
  color: var(--text);
  background: rgba(255,255,255,0.3);
}

nav button.active {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0, 100, 40, 0.5);
}

/* ── Pages ── */
.page {
  display: none;
  padding: 28px 28px 140px;
}
.page.active { display: block; }

.page-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* ── Glass Tile (shared) ── */
.glass-tile {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 var(--glass-shine);
}

/* Shine streak */
.glass-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.03) 40%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.35s;
}
.glass-tile:hover::before { opacity: 0; }

/* ── Resume ── */
#resume {
  max-width: clamp(820px, 78vw, 1100px);
  margin: 0 auto;
}

.resume-section {
  padding: clamp(28px, 2.5vw, 44px) clamp(32px, 3vw, 52px);
  margin-bottom: 16px;
}

.section-label {
  font-family: var(--font-display);
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.resume-entry {
  margin-bottom: 24px;
}
.resume-entry:last-child { margin-bottom: 0; }

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.entry-role {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.2vw, 19px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
}

.entry-date {
  font-size: clamp(13px, 1vw, 16px);
  color: var(--text-muted);
  font-style: italic;
}

.entry-role-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.entry-role-link:hover { color: var(--accent); }

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.entry-org {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--accent);
  font-weight: 500;
}

.entry-location {
  font-size: clamp(12px, 0.9vw, 15px);
  color: var(--text-muted);
  font-style: italic;
}

.entry-desc {
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--text-muted);
  line-height: 1.6;
}

.entry-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.entry-bullets li {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}

.entry-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.page-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0 48px;
}

.page-logo img {
  height: 96px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.page-tagline {
  font-family: var(--font-display);
  font-size: clamp(14px, 1vw, 17px);
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ── Portfolio entrance animations ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pcat-item {
  animation: fadeSlideUp 0.5s ease both;
}

@media (max-width: 768px) {
  .page-logo img { height: 57px; }
  .page-logo { padding: 18px 0 48px; }
}

.resume-bio {
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--text-muted);
  line-height: 1.7;
}

.resume-summary {
  padding-top: 20px;
  padding-bottom: 20px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 168, 69, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--accent);
}

/* ── Portfolio ── */
#portfolio {
  max-width: 100% !important;
  padding-left: 28px;
  padding-right: 28px;
}

.portfolio-intro {
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 22px 28px;
}

.portfolio-intro .section-label {
  margin-bottom: 10px;
  padding-bottom: 0;
  border: none;
}

.portfolio-intro p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Bento grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(338px, 1fr));
  gap: 16px;
  width: 100%;
}

/* ── Mobile Nav Scaling ── */
@media (max-width: 768px) {
  nav button {
    font-size: 9px;
    padding: 7px 8px;
    letter-spacing: 0.06em;
  }
  nav {
    padding: 4px;
    gap: 1px;
  }
  .search-nav-btn {
    font-size: 14px;
    padding: 7px 8px !important;
  }

  /* Portfolio grid — single column on mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Event cards — single column on mobile */
  .event-grid {
    grid-template-columns: 1fr;
  }

  /* Contact service grid — single column on mobile */
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* First tile spans 2 cols on wide screens */
@media (min-width: 740px) {
  .portfolio-card:first-child {
    grid-column: span 2;
  }
  .portfolio-card:first-child .portfolio-thumb {
    aspect-ratio: 16 / 7;
  }
}

.portfolio-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 var(--glass-shine);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.portfolio-card:hover {
  border-color: rgba(0, 168, 69, 0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,168,69,0.2), inset 0 1px 0 var(--glass-shine);
  transform: translateY(-4px);
}

/* Shine */
.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.03) 40%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.35s;
}
.portfolio-card:hover::before { opacity: 0; }

.portfolio-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 80, 30, 0.25);
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.portfolio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-thumb.has-image img { opacity: 1; }

.portfolio-thumb.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,10,0,0.6) 100%);
  pointer-events: none;
}

.portfolio-thumb:not(.has-image)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,168,69,0.12) 0%, transparent 60%);
}

.portfolio-thumb-icon {
  font-size: 42px;
  color: rgba(245,245,240,0.3);
  position: relative;
  z-index: 1;
  line-height: 1;
  transition: opacity 0.2s;
}

.portfolio-thumb-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.25);
  position: relative;
  z-index: 1;
  transition: opacity 0.2s;
}

.portfolio-thumb.has-image .portfolio-thumb-icon,
.portfolio-thumb.has-image .portfolio-thumb-label { opacity: 0; pointer-events: none; }

.portfolio-body {
  padding: 22px 24px 20px;
}

.portfolio-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 400;
}

.portfolio-desc {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-muted);
  line-height: 1.5;
}

.portfolio-link-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.portfolio-link-hint::after {
  content: '→';
  font-family: var(--font-body);
  font-size: 14px;
  transition: transform 0.2s;
}
.portfolio-card:hover .portfolio-link-hint::after { transform: translateX(4px); }

/* ── Pricing ── */
#pricing {
  max-width: clamp(820px, 78vw, 1100px);
  margin: 0 auto;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 var(--glass-shine);
}

.accordion-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.accordion-item.open {
  border-color: rgba(0, 168, 69, 0.4);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.accordion-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.accordion-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.2vw, 19px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  transition: color 0.2s;
}

.accordion-item.open .accordion-title,
.accordion-header:hover .accordion-title { color: var(--accent); }

.accordion-price {
  font-size: clamp(14px, 1vw, 17px);
  color: var(--text-muted);
  font-style: italic;
}

.accordion-chevron {
  font-size: 11px;
  color: var(--accent);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.accordion-item.open .accordion-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-body-inner {
  overflow: hidden;
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.accordion-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
  color: var(--text-muted);
}

.accordion-feature-check {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.accordion-note {
  margin-top: 16px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.6;
}
.accordion-sub-title {
  margin: 16px 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.accordion-price.coming-soon {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Portfolio Category Dropdowns ── */
.pcat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: clamp(820px, 78vw, 1100px);
  margin: 0 auto;
  width: 100%;
}

.pcat-item {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), inset 0 1px 0 var(--glass-shine);
  transition: border-color 0.2s;
}

.pcat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.03) 40%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.pcat-item.open {
  border-color: rgba(0, 100, 40, 0.35);
}

.pcat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 14px 14px;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 1;
}

.pcat-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pcat-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent-dim);
}

.pcat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pcat-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  transition: color 0.2s;
}

.pcat-header:hover .pcat-title,
.pcat-item.open .pcat-title { color: var(--accent); }

.pcat-chevron {
  font-size: 11px;
  color: var(--accent);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.pcat-item.open .pcat-chevron { transform: rotate(180deg); }

.pcat-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.pcat-item.open .pcat-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.pcat-body-inner {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px;
}

.pcat-empty {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 8px 4px;
}

/* ── Footer / Credit Links ── */
.bottom-credit {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.35);
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(26,26,26,0.55); }

.footer-email {
  color: inherit;
  text-decoration: none;
}
.footer-email:hover,
.footer-email:visited,
.footer-email:active { color: inherit; text-decoration: none; }

/* ── Contact Page ── */
.contact-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.step-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,26,26,0.2);
  transition: background 0.3s, transform 0.3s;
}

.step-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.contact-step { display: none; }
.contact-step.active { display: block; }

.contact-tile {
  padding: 32px 36px 28px;
}

.contact-tile-center {
  text-align: center;
}

.contact-question {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 28px;
}

/* Service selection grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  margin-bottom: 28px;
}

.service-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 20px);
  padding: clamp(28px, 4vw, 52px) 16px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.service-icon {
  font-size: clamp(32px, 3.5vw, 52px) !important;
}

.service-btn:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text);
}

.service-btn.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.service-icon { font-size: 24px; }

/* Form fields */
.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-optional {
  color: var(--text-muted);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 12px;
}

.contact-input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.contact-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.18);
}

.contact-input::placeholder { color: var(--text-muted); }

.contact-input.field-error,
.contact-textarea.field-error {
  border-color: #e05555;
  background: rgba(224, 85, 85, 0.08);
}

.field-error-msg {
  display: block;
  color: #e05555;
  font-size: 12px;
  margin-top: 5px;
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Nav buttons */
.contact-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-btn {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.contact-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.contact-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.contact-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.2);
}
.contact-btn-ghost:hover { color: var(--text); opacity: 1; }

.contact-btn-send { background: var(--green); }

/* Review block */
.review-block {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-row {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.review-key {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 80px;
  padding-top: 2px;
}

.review-val { color: var(--text-muted); }

/* Confirmation */
.confirm-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.confirm-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
}

/* ── Event Case Study Cards ── */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.event-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.event-card-year {
  font-family: var(--font-display);
  font-size: clamp(12px, 0.9vw, 15px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.event-stat {
  font-size: clamp(11px, 0.8vw, 14px);
  letter-spacing: 0.06em;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
}

.event-card-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.3vw, 21px);
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.3;
}

.event-card-desc {
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

/* ── Event Modal ── */
#event-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 10, 0.72);
  backdrop-filter: blur(14px);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#event-modal.active { display: flex; }

#event-modal-box {
  background: rgba(28, 40, 28, 0.92);
  backdrop-filter: blur(40px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  width: min(620px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
}

#event-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  transition: color 0.2s;
}
#event-modal-close:hover { color: rgba(255,255,255,0.9); }

.emodal-year {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 6px;
}

.emodal-photo {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.emodal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.emodal-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 14px;
}

.emodal-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 22px;
}

.emodal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.emodal-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 14px;
}

.emodal-stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

.emodal-stat-value {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.emodal-section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  font-weight: 600;
  margin-bottom: 10px;
}

.emodal-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.emodal-highlights li {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.emodal-highlights li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--green-bright);
  font-weight: 700;
}

.emodal-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 20px;
  transition: background 0.2s, color 0.2s;
}
.emodal-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Search Nav Button ── */
.search-nav-btn {
  font-size: 18px;
  line-height: 1;
  padding: 8px 10px !important;
  color: var(--text-muted) !important;
  background: transparent !important;
  border-left: 1px solid rgba(255,255,255,0.2);
  margin-left: 4px;
}
.search-nav-btn:hover { color: var(--accent) !important; }

/* ── Search Overlay ── */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
#search-overlay.active { display: flex; }

#search-box {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.5);
  width: min(560px, 92vw);
  overflow: hidden;
  position: relative;
}

#search-input {
  width: 100%;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}
#search-input::placeholder { color: var(--text-muted); }

#search-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px;
  line-height: 1;
}
#search-close:hover { color: var(--text); }

/* hide the close button when results are showing — it moves down */
#search-results:not(:empty) ~ #search-close,
#search-results:not(:empty) + #search-close { top: 22px; transform: none; }

#search-results {
  border-top: 1px solid rgba(255,255,255,0.18);
  max-height: 55vh;
  overflow-y: auto;
}

.search-result {
  padding: 14px 22px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: rgba(255,255,255,0.14); }

.search-result-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.search-result-type {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.search-result-page {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.search-result-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.search-result-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.search-empty {
  padding: 22px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}
