/*
Theme Name: Ravenwood
Description: Ravenwood Foundation brand child theme of Kadence — charcoal/copper/parchment palette, Aladin display over Tinos body, brand textures. Source of truth: ravenwood/ravenwood-foundation-website repo.
Template: kadence
Version: 0.1.0
*/

:root {
  --rw-charcoal: #26282c;
  --rw-charcoal-deep: #1b1d20;
  --rw-copper: #a97354;
  --rw-copper-light: #c08552;
  --rw-parchment: #ddd3cc;
  --rw-paper: #ffffff;
  --rw-ink: #221f1c;
}

/* ---------- Typography ---------- */
body {
  font-family: 'Tinos', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--rw-ink);
}

h1, h2, h3, h4, h5, h6,
.site-title, .entry-title {
  font-family: 'Aladin', 'Palatino', cursive;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--rw-charcoal);
}

h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--rw-copper); }

.rw-script {
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  color: var(--rw-copper-light);
  line-height: 1.2;
}

/* ---------- Layout hygiene ---------- */
body { background: #fff; }
.content-bg, body.page .content-bg { background: #fff; }

/* No page-title hero band above content */
.page .entry-hero, .page .entry-header, .page-title-align-inherit .entry-hero-container-inner {
  display: none;
}
.page .site-main, .page .entry-content-wrap, .page .content-area {
  padding-top: 0;
  margin-top: 0;
}

/* Logo carries the wordmark — keep the text title for screen readers only */
#masthead .site-branding .site-title {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Header ---------- */
#masthead,
#masthead .site-header-row-container-inner,
#masthead .site-main-header-wrap,
#masthead .site-header-upper-wrap,
#masthead .site-top-header-wrap {
  background: var(--rw-charcoal);
}

#masthead .site-branding img { max-height: 64px; width: auto; }

#masthead a,
#masthead .site-title,
.main-navigation .primary-menu-container > ul > li > a,
#mobile-header .site-title {
  color: var(--rw-parchment) !important;
  font-family: 'Tinos', Georgia, serif;
  letter-spacing: 0.04em;
}

.main-navigation .primary-menu-container > ul > li > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  color: var(--rw-copper-light) !important;
}

#mobile-toggle, .menu-toggle-open, .menu-toggle-icon { color: var(--rw-parchment) !important; }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.button, button[type="submit"],
.ff-btn-submit,
input[type="submit"] {
  background: var(--rw-copper);
  color: #fff;
  font-family: 'Tinos', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border: none;
  border-radius: 3px;
  padding: 0.8em 1.9em;
  transition: background 160ms ease;
}

.wp-block-button__link:hover,
.ff-btn-submit:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--rw-copper-light);
  color: #fff;
}

.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1.5px solid var(--rw-parchment);
  color: var(--rw-parchment);
}
.is-style-outline .wp-block-button__link:hover {
  background: var(--rw-parchment);
  color: var(--rw-charcoal);
}

/* ---------- Dark textured sections (brand signature) ---------- */
.rw-dark h1, .rw-dark h2, .rw-dark h4 { color: var(--rw-parchment); }
.rw-dark h3 { color: var(--rw-copper-light); }
.rw-dark p, .rw-dark li { color: var(--rw-parchment); }
.rw-dark a:not(.wp-block-button__link) { color: var(--rw-copper-light); }

/* Copper divider used between content bands */
.rw-divider {
  border: none;
  height: 2px;
  width: 96px;
  margin: 0 auto;
  background: var(--rw-copper);
  opacity: 1;
}

/* ---------- Content polish ---------- */
.entry-content-wrap { padding-top: 0; }

.wp-block-columns.rw-pillars h3 {
  text-align: center;
  font-size: 1.9rem;
  color: var(--rw-copper);
  margin-bottom: 0.2em;
}
.wp-block-columns.rw-pillars p { text-align: center; margin-top: 0; }

/* Event cards */
.rw-event-card {
  background: #fff;
  border: 1px solid #e5ddd3;
  border-top: 3px solid var(--rw-copper);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
  height: 100%;
}
.rw-event-card h3 { margin-top: 0; font-size: 1.7rem; }

/* ---------- Fluent Forms brand alignment ---------- */
.fluentform .ff-el-form-control {
  font-family: 'Tinos', Georgia, serif;
  border: 1px solid #c9beb2;
  border-radius: 3px;
}
.fluentform .ff-el-form-control:focus { border-color: var(--rw-copper); }
.fluentform .ff-el-input--label label { font-weight: 700; color: var(--rw-charcoal); }
.fluentform .ff-btn-submit {
  background: var(--rw-copper) !important;
  border-color: var(--rw-copper) !important;
  color: #fff !important;
}
.fluentform .ff-btn-submit:hover { background: var(--rw-copper-light) !important; }

/* ---------- Footer ---------- */
#colophon, #colophon .site-footer-row-container-inner {
  background: var(--rw-charcoal-deep);
}
#colophon, #colophon p, #colophon .footer-widget-area, #colophon a {
  color: var(--rw-parchment);
}
#colophon a:hover { color: var(--rw-copper-light); }

/* ---------- Quality floor ---------- */
a:focus-visible, button:focus-visible, .wp-block-button__link:focus-visible {
  outline: 2px solid var(--rw-copper-light);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
