/* Rawana — shared section furniture. Ported from assets/css/layout.css and
   assets/css/components.css. Every value references a theme.json token. */

/* --- 1. Section shell + inner container -------------------------------- */
.rwn-section {
  position: relative;
  margin: 0;
  padding-block: var(--wp--preset--spacing--110);
}

.rwn-section--flush-bottom { padding-bottom: 0; }

.rwn-inner {
  position: relative;
  width: 100%;
  max-width: var(--wp--custom--width-wide);
  margin-inline: auto;
  padding-inline: var(--wp--custom--gutter);
}

/* --- 2. Section heading block ------------------------------------------ */
.rwn-section-head {
  display: grid;
  gap: var(--wp--preset--spacing--50);
  margin: 0;
}

@media (min-width: 900px) {
  .rwn-section-head--split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--wp--preset--spacing--70);
  }
}

.rwn-section-head__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--xxxl);
  font-weight: var(--wp--custom--weight-light);
  line-height: var(--wp--custom--leading-tight);
  letter-spacing: var(--wp--custom--tracking-tight);
}

.rwn-section-head p { margin: 0; }

/* --- 3. Card — the house surface --------------------------------------- */
.rwn-card {
  position: relative;
  margin: 0;
  border-radius: var(--wp--custom--radius-md);
  border: var(--wp--custom--border-width) solid var(--wp--custom--border-hairline);
  border-top-color: var(--wp--custom--border-top-light);
  background-color: var(--wp--preset--color--surface-two);
  background-image: var(--wp--custom--gradient-surface-top);
  padding: var(--wp--preset--spacing--50);
  transition:
    background-color var(--wp--custom--duration-mid) var(--wp--custom--ease-out),
    border-color var(--wp--custom--duration-mid) var(--wp--custom--ease-out),
    box-shadow var(--wp--custom--duration-mid) var(--wp--custom--ease-out),
    transform var(--wp--custom--duration-mid) var(--wp--custom--ease-out);
}

.rwn-card--interactive:hover {
  background-color: var(--wp--preset--color--surface-three);
  border-color: var(--wp--custom--border-accent);
  box-shadow: var(--wp--custom--glow-accent-sm);
  transform: translateY(-3px);
}

.rwn-card--cta {
  display: grid;
  gap: var(--wp--preset--spacing--40);
  align-content: center;
  text-align: center;
  background-color: var(--wp--preset--color--surface-one);
  background-image:
    var(--wp--custom--gradient-surface-top),
    radial-gradient(80% 70% at 50% 0%, var(--wp--custom--accent-wash), transparent 70%);
  border-color: var(--wp--custom--border-accent);
}

.rwn-card--cta p { margin: 0; }
.rwn-card--cta a { text-decoration: none; }

/* --- 4. Tags ----------------------------------------------------------- */
.rwn-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--wp--custom--radius-pill);
  border: var(--wp--custom--border-width) solid var(--wp--custom--border-hairline);
  background-color: var(--wp--preset--color--surface-inset);
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: var(--wp--custom--tracking-wide);
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}

.rwn-tag--accent {
  border-color: var(--wp--custom--border-accent);
  background-color: var(--wp--custom--accent-wash);
  color: var(--wp--preset--color--accent);
}

/* --- 5. Placeholder note (content the owner still has to supply) ------- */
.rwn-note {
  display: flex;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--20);
  margin: 0;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  border: 1px dashed var(--wp--custom--border-accent);
  border-radius: var(--wp--custom--radius-sm);
  background-color: var(--wp--custom--accent-wash);
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: var(--wp--custom--tracking-wide);
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}

/* --- 6. Arrow link ----------------------------------------------------- */
.rwn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--10);
  color: var(--wp--preset--color--accent);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: var(--wp--custom--weight-medium);
  text-decoration: none;
}

.rwn-link-arrow svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform var(--wp--custom--duration-fast) var(--wp--custom--ease-out);
}

.rwn-link-arrow:hover { color: var(--wp--preset--color--accent-bright); }
.rwn-link-arrow:hover svg { transform: translateX(3px); }

/* --- 7. Status dot (hero meta bar + visit card) ------------------------ */
.rwn-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: var(--wp--custom--radius-pill);
  background: var(--wp--preset--color--accent);
  box-shadow: 0 0 0 3px var(--wp--custom--accent-wash);
}

.rwn-status-dot[data-state="closed"] {
  background: var(--wp--preset--color--dim);
  box-shadow: 0 0 0 3px rgba(116, 133, 127, 0.18);
}

/* --- 8. Reveal on scroll ----------------------------------------------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--wp--custom--duration-slow) var(--wp--custom--ease-out),
    transform var(--wp--custom--duration-slow) var(--wp--custom--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* The block editor renders previews with no scroll observer — never hide
   content there, or every section looks blank in the editor. */
.editor-styles-wrapper [data-reveal] { opacity: 1; transform: none; }

/* Button modifier that lives here rather than in the base sheet because only
   section blocks use it. */
.rwn-btn--block { width: 100%; }
