.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  max-width:var(--max);
  margin:0 auto 18px;
  padding:0 20px;
}

.section-head p,
.section-sub{
  margin:0;
  color:var(--muted);
}

.link{
  font-weight:700;
  color:var(--brand);
}

.cta-row{
  display:flex;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}

.founder{
  border-radius:8px;
  width:100%;
  object-fit:cover;
}

.box{
  background:var(--surface);
  border-radius:8px;
  padding:24px;
  border:1px solid rgba(158,63,86,.1);
  box-shadow:var(--shadow-sm);
}

.grid-2{
  display:grid;
  gap:20px;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  max-width:var(--max);
  margin:auto;
  padding:0 20px;
}

.grid-2 > .box{height:100%}

@media (max-width:900px){
  .grid-2{grid-template-columns:1fr}
}

.map{
  width:100%;
  height:320px;
  border:0;
  border-radius:8px;
  box-shadow:var(--shadow-sm);
}

.slider{
  display:flex;
  overflow:auto;
  gap:14px;
  scroll-snap-type:x mandatory;
  padding:0 20px;
}

.slide{
  min-width:320px;
  scroll-snap-align:start;
  background:#fff;
  border-radius:8px;
  padding:18px;
  border:1px solid rgba(158,63,86,.1);
  box-shadow:var(--shadow-sm);
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.pill:hover{
  background:var(--accent-soft);
  color:#39552c;
  transform:translateY(-1px);
}

.form{
  display:flex;
  flex-direction:column;
  gap:18px;
  background:#fff;
  padding:28px;
  border-radius:8px;
  border:1px solid rgba(158,63,86,.1);
  box-shadow:var(--shadow-sm);
}

.form-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-weight:600;
  color:var(--ink);
}

.form input,
.form select,
.form textarea{
  padding:12px 14px;
  border-radius:8px;
  border:1px solid rgba(158,63,86,.18);
  font:inherit;
  background:#fff;
  transition:border .2s ease,box-shadow .2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(158,63,86,.12);
}

.form textarea{resize:vertical}

.form-actions{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.form-note{
  color:var(--muted);
  margin:0;
}

.form-status{
  width:100%;
  margin:0;
  color:var(--brand-dark);
  font-weight:600;
}

.gallery-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.gallery-item{
  position:relative;
  display:block;
  border-radius:8px;
  overflow:hidden;
  border:1px solid rgba(158,63,86,.1);
  box-shadow:var(--shadow-sm);
  background:var(--surface-soft);
  aspect-ratio:4/3;
}

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

.gallery-item::after{
  content:attr(data-caption);
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(180deg,rgba(36,23,27,0) 0%,rgba(36,23,27,.82) 100%);
  color:#fff;
  padding:16px;
  font-size:.92rem;
  line-height:1.4;
  opacity:0;
  transition:opacity .25s ease;
}

.gallery-item:hover::after{opacity:1}

.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(36,23,27,.84);
}

.lightbox__content{
  position:relative;
  background:#fff;
  border-radius:8px;
  max-width:90vw;
  max-height:90vh;
  margin:0;
  overflow:hidden;
  box-shadow:0 30px 70px rgba(0,0,0,.22);
  display:flex;
  flex-direction:column;
}

.lightbox__content img{
  width:100%;
  height:100%;
  max-height:70vh;
  object-fit:contain;
  background:var(--surface-soft);
}

.lightbox__content figcaption{
  padding:16px 20px;
  font-weight:500;
  color:var(--ink);
}

.lightbox__close{
  position:absolute;
  top:12px;
  right:12px;
  background:rgba(36,23,27,.72);
  color:#fff;
  border:0;
  border-radius:8px;
  width:40px;
  height:40px;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox__controls{
  display:flex;
  gap:12px;
  padding:0 20px 20px;
}

.lightbox__controls button{
  flex:1;
  border:0;
  border-radius:8px;
  padding:12px;
  background:var(--brand);
  color:#fff;
  font-size:1.2rem;
  cursor:pointer;
}

.lightbox__controls button:hover{background:var(--brand-dark)}

.lightbox__controls button:disabled{
  opacity:.4;
  cursor:not-allowed;
}

.admin-table{
  width:100%;
  border-collapse:collapse;
  min-width:860px;
}

.admin-table th,
.admin-table td{
  text-align:left;
  padding:12px 14px;
  border-bottom:1px solid rgba(158,63,86,.1);
  vertical-align:top;
}

.admin-table th{
  color:var(--brand-dark);
  font-size:.92rem;
}

@media (max-width:720px){
  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .form{
    padding:22px;
  }
}
