/* ==========================================================================
   CAMUK — Page-level styles (premium edition)
   ========================================================================== */

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero {
  padding: clamp(80px, 9vw, 140px) var(--pad) clamp(60px, 7vw, 100px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  max-width: var(--maxw);
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 20px 0 0;
}
.page-hero h1 em { font-family: var(--serif); color: var(--red); }
.page-hero .lede { margin-top: 20px; }
.page-hero-image { aspect-ratio: 4/5; }

/* ---------- TWO-COL EDITORIAL ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.two-col p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  margin: 0 0 20px;
}
.two-col p em { color: var(--red); font-style: italic; }
.two-col p:last-child { margin-bottom: 0; }

/* ---------- AIM PILLARS ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.pillar-card {
  position: relative;
  padding: 48px 36px;
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  gap: 20px;
  min-height: 380px;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.pillar-card.red { background: var(--red); color: var(--white); border-color: var(--red); }
.pillar-card.red:hover { box-shadow: 0 20px 60px rgba(239,90,74,0.3); }
.pillar-card.teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.pillar-card.yellow { background: var(--yellow); color: var(--teal); border-color: var(--yellow); }
.pillar-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.55;
}
.pillar-card.red .num, .pillar-card.teal .num { opacity: 0.8; }
.pillar-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.018em;
  margin: 0;
}
.pillar-card p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}
.pillar-card .pcorner {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  opacity: 0.5;
}

/* ---------- EVENTS LIST ---------- */
.event-row {
  display: grid;
  grid-template-columns: 160px 1fr 200px 100px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  gap: 28px;
  cursor: pointer;
  transition: padding-left 0.3s, color 0.3s;
}
.event-row:hover { padding-left: 16px; color: var(--red); }
.event-row .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}
.event-row .title {
  font-family: var(--display);
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.event-row .title em { font-family: var(--serif); color: var(--red); }
.event-row .sub { display: block; font-family: var(--serif); font-size: 16px; opacity: 0.7; margin-top: 6px; color: var(--teal); }
.event-row .where { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.event-row .rsvp {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

/* Event cards */
.event-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gutter); }
.ecard { display: flex; flex-direction: column; gap: 20px; cursor: pointer; }
.ecard .imgbox { aspect-ratio: 4/5; }
.ecard h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.012em;
  margin: 0;
}
.ecard h3 em { font-family: var(--serif); color: var(--red); }
.ecard .meta-line { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
.ecard p { font-family: var(--serif); font-size: 16px; line-height: 1.5; margin: 0; opacity: 0.85; }

/* ---------- ARCHIVE LIST ---------- */
.arc-list { border-top: 1px solid var(--rule); }
.arc-row {
  display: grid;
  grid-template-columns: 100px 1fr 220px 120px 60px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
  cursor: pointer;
  transition: padding-left 0.3s, color 0.3s;
}
.arc-row:hover { padding-left: 16px; color: var(--red); }
.arc-row .yr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; opacity: 0.75; }
.arc-row .t { font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
.arc-row .t em { font-family: var(--serif); color: var(--red); }
.arc-row .kind { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65; }
.arc-row .size { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; opacity: 0.55; }
.arc-row .arr { opacity: 0.4; text-align: right; font-size: 18px; }
.band.teal .arc-list { border-top-color: rgba(255,255,255,0.18); }
.band.teal .arc-row { border-color: rgba(255,255,255,0.18); color: var(--white); }
.band.teal .arc-row:hover { color: var(--yellow); }
.band.teal .arc-row .t em { color: var(--yellow); }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 28px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form .lab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--teal);
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s;
}
.contact-form textarea { min-height: 140px; resize: vertical; border: 1px solid var(--rule-strong); padding: 16px; font-size: 18px; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--red); }
.contact-form button { align-self: flex-start; }

.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.ccard {
  padding: 32px;
  border: 1px solid var(--rule);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.ccard:hover { border-color: var(--teal); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.ccard h4 {
  font-family: var(--display);
  font-size: 30px;
  margin: 0 0 8px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.ccard p { font-family: var(--serif); font-size: 17px; margin: 0; opacity: 0.85; }
.ccard a { color: var(--red); }
.ccard a:hover { text-decoration: underline; }

/* ---------- SHOP ---------- */
.shop-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 64px;
  gap: 32px;
}
.shop-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  margin: 0;
}
.shop-head h2 em { font-family: var(--serif); color: var(--red); }
.shop-head .chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--teal);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover, .chip.active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.chip.edit { background: var(--teal); color: var(--white); border-color: var(--teal); }
.chip.edit:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px var(--gutter); }
.product { cursor: pointer; }
.product .img {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bone);
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: border-color 0.3s;
}
.product:nth-child(3n+1) .img { background: var(--teal); border-color: var(--teal); }
.product:nth-child(3n+2) .img { background: var(--red); border-color: var(--red); }
.product:nth-child(3n+3) .img { background: var(--yellow); border-color: var(--yellow); }
.product .img::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.product:nth-child(3n+3) .img::before {
  background: repeating-linear-gradient(135deg, rgba(15,94,90,0.06) 0 1px, transparent 1px 18px);
}
.product .img.has-photo::before { display: none; }
.product .img.has-photo .ph { display: none; }
.product .img .photo { position: absolute; inset: 0; width:100%; height:100%; object-fit: cover; z-index: 1; transition: transform 1.2s ease; }
.product:hover .img .photo { transform: scale(1.04); }
.product .img .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--white);
  opacity: 0.7;
  text-align: center;
  padding: 0 20px;
  text-transform: uppercase;
}
.product:nth-child(3n+3) .img .ph { color: var(--teal); }
.product .img .badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--white); color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  text-transform: uppercase;
}
.product:nth-child(3n+3) .img .badge { background: var(--teal); color: var(--white); }
.product .edit-overlay {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: none; gap: 6px;
}
body.shop-editing .product .edit-overlay { display: flex; }
body.shop-editing .product { outline: 1px dashed var(--rule-strong); outline-offset: 6px; }
.edit-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--teal);
  border: none; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(15,94,90,0.35);
}
.edit-btn.del { background: var(--red); color: var(--white); }
.product .meta {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; margin-top: 20px; gap: 12px;
}
.product .name { font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.product .sub { font-family: var(--serif); font-style: italic; font-size: 15px; opacity: 0.7; margin-top: 2px; }
.product .price { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; white-space: nowrap; }

/* Shop drawer + modal */
.shop-drawer, .product-modal {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s;
}
.shop-drawer[aria-hidden="false"], .product-modal[aria-hidden="false"] {
  pointer-events: auto; opacity: 1;
}
.drawer-scrim, .modal-scrim { position: absolute; inset: 0; background: rgba(15,94,90,0.55); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(540px, 92vw);
  background: var(--white); color: var(--teal);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  box-shadow: -20px 0 60px rgba(15,94,90,0.3);
}
.shop-drawer[aria-hidden="false"] .drawer-panel { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.drawer-head { border-bottom: 1px solid var(--rule); align-items: flex-start; }
.drawer-head h3 { font-family: var(--display); font-size: 32px; font-weight: 400; margin: 8px 0 0; }
.drawer-foot { border-top: 1px solid var(--rule); }
.drawer-close {
  background: var(--white); border: 1px solid var(--rule); color: var(--teal);
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.drawer-close:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.drawer-body { overflow-y: auto; padding: 28px 32px 32px; }
.drawer-actions { display: flex; gap: 10px; margin-bottom: 28px; }
.drawer-actions .pill { font-size: 11px; padding: 10px 16px; }
.edit-list { display: flex; flex-direction: column; gap: 10px; }
.edit-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center; gap: 16px; padding: 14px;
  background: var(--white);
  border: 1px solid var(--rule); cursor: pointer;
  transition: border-color 0.2s;
}
.edit-item:hover { border-color: var(--teal); }
.edit-thumb { width: 60px; height: 60px; background: var(--red); position: relative; overflow: hidden; }
.edit-thumb img { width:100%; height:100%; object-fit: cover; }
.edit-thumb .mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--white); opacity: 0.7; letter-spacing: 0.1em;
}
.edit-info .ename { font-family: var(--display); font-size: 19px; }
.edit-info .esub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; opacity: 0.6; margin-top: 4px; text-transform: uppercase; }
.edit-item .arrow { font-family: var(--mono); opacity: 0.4; }

.modal-panel {
  position: relative; margin: auto;
  width: min(580px, 92vw); max-height: 88vh;
  background: var(--white); color: var(--teal);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  box-shadow: var(--shadow-lg);
  top: 50%; translate: 0 -50%;
}
.product-modal { display: flex; align-items: center; justify-content: center; }
.product-modal[aria-hidden="false"] .modal-panel { transform: translateY(0) scale(1); }
.modal-head, .modal-foot { padding: 24px 32px; display: flex; align-items: center; gap: 12px; }
.modal-head { border-bottom: 1px solid var(--rule); justify-content: space-between; }
.modal-head h3 { font-family: var(--display); font-size: 28px; font-weight: 400; margin: 0; }
.modal-foot { border-top: 1px solid var(--rule); justify-content: flex-end; }
.modal-foot .grow { flex: 1; }
.modal-foot .pill { padding: 10px 18px; font-size: 11px; }
.modal-foot .pill.danger { background: var(--red); color: var(--white); border: 1px solid var(--red); }
.modal-foot .pill.danger:hover { background: var(--teal); border-color: var(--teal); }
.modal-body { overflow-y: auto; padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.flabel { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }
.flabel .opt { opacity: 0.55; font-weight: 400; text-transform: none; letter-spacing: 0.08em; }
.field input, .field select {
  font-family: var(--serif); font-size: 19px; padding: 10px 0;
  background: transparent; border: none;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--teal); outline: none; border-radius: 0;
}
.field select { font-family: var(--sans); font-size: 15px; cursor: pointer; }
.field input:focus, .field select:focus { border-bottom-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 160px; gap: 24px; }
.image-field { gap: 12px; }
.image-slot {
  position: relative; aspect-ratio: 4/5; max-height: 260px;
  background: var(--bone);
  border: 1px dashed var(--rule-strong);
  overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.image-slot:hover, .image-slot.drag { background: var(--teal); border-color: var(--teal); }
.image-slot:hover .image-ph, .image-slot.drag .image-ph { color: var(--white); }
.image-ph {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--teal); opacity: 0.7; text-align: center; padding: 0 20px;
  text-transform: uppercase;
}
.image-slot img { position: absolute; inset: 0; width:100%; height:100%; object-fit: cover; display: none; }
.image-slot.has-image img { display: block; }
.image-slot.has-image .image-ph { display: none; }
.image-hints { display: flex; justify-content: space-between; align-items: center; }
.mini { background: transparent; border: none; color: var(--teal); font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; text-decoration: underline; opacity: 0.7; }
.mini:hover { opacity: 1; color: var(--red); }

@media (max-width: 980px) {
  .page-hero { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .event-cards { grid-template-columns: 1fr; }
  .arc-row { grid-template-columns: 1fr; gap: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .shop-head { grid-template-columns: 1fr; }
  .shop-head .chips { justify-content: flex-start; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .products { grid-template-columns: 1fr; }
}
