/* RIVISTA template styles: page-contact.php */
/* ============================================================
   CONTACT
   ============================================================ */
.contact-hero { padding: 56px 0 24px; position: relative; overflow: hidden; }

.crumb { font-family: var(--display); font-size: 12.5px; color: var(--ink-3); display: flex; gap: 10px; margin-bottom: 32px; }
.crumb .now { color: var(--ink); font-weight: 500; }

.contact-eyebrow {
  font-family: var(--display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--terra); color: var(--paper);
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: 20px;
}
.contact-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 128px);
  line-height: .9;
  letter-spacing: -.045em;
  margin: 0 0 20px;
}
.contact-hero h1 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
.contact-hero h1 .dot { color: var(--accent); }
.contact-hero p.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}

/* CONTACT METHODS — colored tiles */
.method-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 56px 0 0;
}
.method {
  padding: 28px 24px;
  background: var(--paper-2);
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
}
.method:hover { transform: translateY(-4px); }
.method.sky { background: var(--sky); }
.method.butter { background: var(--butter); }
.method.rose { background: var(--rose); }
.method.ink { background: var(--ink); color: var(--paper); }
.method .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
}
.method.ink .ic { background: var(--terra); }
.method .ic svg { width: 16px; height: 16px; }
.method .lbl {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.method.ink .lbl { color: rgba(255,255,255,.6); }
.method h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0;
}
.method p {
  font-family: var(--display);
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.method.ink p { color: rgba(255,255,255,.65); }

/* ============================================================
   FORM + INFO LAYOUT
   ============================================================ */
.contact-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  padding: 80px 0;
}

/* FORM */
.contact-form-wrap {
  background: var(--paper-2);
  padding: 40px;
}
.contact-form-wrap h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0 0 8px;
}
.contact-form-wrap h2 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
.contact-form-wrap .sub {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 28px;
}
.contact-form-wrap .sub b { color: var(--ink); }

/* TOPIC RADIOS */
.topics {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 22px;
}
.topic {
  position: relative;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.topic:hover { border-color: var(--ink); color: var(--ink); }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }

.field { position: relative; }
.field input,
.field textarea,
.field select {
  width: 100%;
  height: 52px;
  padding: 20px 14px 6px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease);
  resize: vertical;
}
.field textarea { height: 140px; padding: 22px 14px 12px; line-height: 1.55; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: 0; border-color: var(--ink); }
.field label {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-3);
  pointer-events: none;
  transition: top 200ms var(--ease), font-size 200ms var(--ease), color 200ms var(--ease);
}
.field textarea + label { top: 18px; transform: none; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field.has-value label {
  top: 14px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transform: none;
}

.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
  flex-wrap: wrap; gap: 14px;
}
.form-foot label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  max-width: 36ch;
  line-height: 1.5;
}
.form-foot input[type="checkbox"] { accent-color: var(--ink); flex-shrink: 0; }
.send-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease);
}
.send-btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--terra);
  transform: translateX(-101%);
  transition: transform 400ms var(--ease);
}
.send-btn:hover::before { transform: translateX(0); }
.send-btn > * { position: relative; z-index: 1; }
.send-btn svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.send-btn:hover svg { transform: translateX(3px); }

/* Success state */
.form-success {
  display: none;
  padding: 40px 36px;
  text-align: center;
}
.form-success.is-on { display: block; animation: fadein 320ms var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.form-success .ok {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  animation: pop 540ms var(--ease-spring);
}
.form-success .ok svg { width: 28px; height: 28px; }
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.form-success h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.form-success h3 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
.form-success p {
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 40ch;
  margin-inline: auto;
}

/* ============================================================
   INFO COLUMN
   ============================================================ */
.contact-info { display: flex; flex-direction: column; gap: 24px; }

.info-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.info-card .num {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  position: absolute;
  top: 18px; right: 18px;
}
.info-card h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}
.info-card h4 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
.info-card address {
  font-family: var(--display);
  font-style: normal;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.info-card .hours {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-2);
  display: flex; flex-direction: column;
  gap: 6px;
}
.info-card .hours .row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.info-card .hours .row:last-child { border-bottom: 0; }
.info-card .hours .row b { color: var(--ink); font-weight: 600; }
.info-card .hours .row .open { color: var(--leaf-1); display: inline-flex; align-items: center; gap: 6px; }
.info-card .hours .row .open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-2); }

.info-card.studio-card { background: var(--butter); }
.info-card.studio-card .num { background: var(--ink); }

.info-card.press {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.info-card.press .num { background: var(--paper); color: var(--ink); }
.info-card.press h4 { color: var(--paper); }
.info-card.press p {
  font-family: var(--display);
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
  margin: 0 0 14px;
  line-height: 1.6;
}
.info-card.press a {
  font-family: var(--display);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--terra);
  padding-bottom: 1px;
}
.info-card.press a:hover { color: var(--paper); border-color: var(--paper); }

/* MAP card — stylized */
.map-card {
  position: relative;
  aspect-ratio: 5/4;
  background: var(--sky);
  overflow: hidden;
  isolation: isolate;
}
.map-card .marker {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center;
}
.map-card .marker .pin {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  background: var(--terra);
  rotate: -45deg;
  position: relative;
  box-shadow: 0 8px 16px -4px rgba(20,19,15,.3);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-45deg); } 50% { transform: translateY(-6px) rotate(-45deg); } }
.map-card .marker .pin::after {
  content: ""; position: absolute;
  inset: 8px; border-radius: 50%; background: var(--paper);
}
.map-card .marker .lbl {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 5px 9px;
  margin-top: 10px;
  border-radius: 3px;
}
.map-card .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,19,15,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,19,15,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}
.map-card .road {
  position: absolute;
  z-index: 1;
}
.map-card .road.r1 { left: 0; right: 0; top: 38%; height: 2px; background: var(--paper); }
.map-card .road.r2 { top: 0; bottom: 0; left: 40%; width: 2px; background: var(--paper); }
.map-card .road.r3 { left: 12%; right: 0; top: 72%; height: 2px; background: var(--paper); rotate: -8deg; }
.map-card .park {
  position: absolute;
  left: 8%; top: 14%;
  width: 90px; height: 60px;
  background: color-mix(in oklab, var(--leaf-2) 50%, var(--paper));
  z-index: 1;
}
.map-card .park.p2 {
  left: auto; right: 8%; top: auto; bottom: 12%;
  width: 110px; height: 50px;
  background: color-mix(in oklab, var(--leaf-1) 35%, var(--paper));
}
.map-card .water {
  position: absolute;
  left: 56%; bottom: 0;
  width: 30%; height: 28%;
  background: color-mix(in oklab, var(--sky) 70%, var(--paper));
  z-index: 1;
}
.map-card .city-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  z-index: 3;
}
.map-card .coords {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-2);
  z-index: 3;
  background: var(--paper);
  padding: 4px 8px;
}
.map-card a.directions {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
}
.map-card a.directions:hover { background: var(--terra); }
.map-card a.directions svg { width: 10px; height: 10px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--paper-2);
  padding: 96px 0;
}
.faq-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 40px;
  gap: 24px; flex-wrap: wrap;
}
.faq-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
}
.faq-head h2 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
.faq-head .help-link {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  display: inline-flex; align-items: center; gap: 8px;
}
.faq-head .help-link:hover { color: var(--accent); border-color: var(--terra); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.faq-q .toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.faq-q .toggle svg { width: 11px; height: 11px; }
.faq-item.is-open .faq-q .toggle {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  transition: max-height 420ms var(--ease), padding-bottom 420ms var(--ease);
}
.faq-item.is-open .faq-a {
  max-height: 240px;
  padding-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .method-tiles { grid-template-columns: 1fr 1fr; }
  .contact-body { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 28px; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  .method-tiles { grid-template-columns: 1fr; }
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .contact-hero h1 { font-size: 56px; }
}
