/*
Theme Name: Redwood Ministry Theme
Theme URI: https://redwoodministry.org/
Author: Redwood Ministry
Description: Theme-only visual foundation for Redwood Ministry. Contains styling and reusable empty site structure; no Redwood page text, photographs, videos, logos, or page-specific content.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: redwood-ministry-theme
*/

:root {
  --redwood-blue: #4471b4;
  --redwood-sky: #03a9f4;
  --redwood-footer: #14b4fc;
  --redwood-footer-dark: #03a9f4;
  --redwood-text: #212121;
  --redwood-alt: #f9f9f9;

  /* Redwood is a light-only site. */
  color-scheme: only light;
}

/* Force the Redwood site to retain its intended light appearance. */
html {
  box-sizing: border-box;
  background-color: #ffffff !important;
  color-scheme: only light !important;
}

body,
body.wp-embed-responsive,
.wp-site-blocks,
.wp-site-blocks > main,
main {
  background-color: #ffffff !important;
  color: #212121 !important;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
}

/* Reusable Redwood content width behavior recovered from the source site. */
.redwood-container,
.wp-site-blocks > main > .alignwide {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 576px) {
  .redwood-container,
  .wp-site-blocks > main > .alignwide {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .redwood-container,
  .wp-site-blocks > main > .alignwide {
    max-width: 80%;
  }
}

@media (min-width: 992px) {
  .redwood-container,
  .wp-site-blocks > main > .alignwide {
    max-width: 75%;
  }
}

@media (min-width: 1200px) {
  .redwood-container,
  .wp-site-blocks > main > .alignwide {
    max-width: 70%;
  }
}

@media (min-width: 1440px) {
  .redwood-container,
  .wp-site-blocks > main > .alignwide {
    max-width: 65%;
  }
}

@media (min-width: 1758px) {
  .redwood-container,
  .wp-site-blocks > main > .alignwide {
    max-width: 1200px;
  }
}

/* Generic visual system only. */
a {
  text-underline-offset: .12em;
}

.wp-block-button__link {
  border-radius: .25rem;
}

.redwood-accent,
.has-redwood-blue-color {
  color: var(--redwood-blue);
}

.redwood-alt-section {
  background: var(--redwood-alt);
}

.redwood-footer-surface {
  background: var(--redwood-footer);
}

.redwood-footer-lower {
  background: var(--redwood-footer-dark);
}

/* Navigation presentation; navigation items themselves are site content. */
.wp-block-navigation {
  font-family: "Source Serif Pro", Georgia, serif;
}

.wp-block-navigation-item__content {
  text-decoration: none;
}

.wp-block-navigation-item__content:hover,
.wp-block-navigation-item__content:focus {
  text-decoration: underline;
}

/* Reusable heading treatment seen throughout the source site. */
.redwood-display-heading {
  color: var(--redwood-blue);
  font-style: italic;
  font-weight: 700;
}

/* Reusable image hover zoom used across Redwood pages. */
.redwood-hover-zoom {
  transition: transform 0.35s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}

.redwood-hover-zoom:hover {
  transform: scale(1.06);
  z-index: 10;
}

/* Full-width block behavior. */
.wp-site-blocks .alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Remove default spacing between major site blocks. */
.wp-site-blocks {
  gap: 0 !important;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

/* =========================================================
   REDWOOD SITE FOOTER
   ========================================================= */

.redwood-site-footer {
  margin: 0;
  width: 100%;
  color: #000;
}

/* Main bright-blue footer area */
.redwood-footer-main {
  background: var(--redwood-footer);
  padding: 42px 20px 48px;
}

.redwood-footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation + welcome message */
.redwood-footer-top {
  margin-bottom: 24px;
}

.redwood-footer-top .wp-block-navigation {
  width: 100%;
}

.redwood-footer-top .wp-block-navigation__container {
  justify-content: center;
  column-gap: 34px;
  row-gap: 8px;
}

.redwood-footer-top .wp-block-navigation-item__content {
  color: #000;
}

.redwood-footer-welcome {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
}

/* Divider */
.redwood-footer-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  margin: 24px 0 22px;
}

/* Address / About us */
.redwood-footer-info {
  margin-bottom: 0;
}

.redwood-footer-info h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.redwood-footer-info p {
  margin-top: 0;
  line-height: 1.5;
}

.redwood-footer-info a {
  color: #000;
}

/* Lower darker footer bar */
.redwood-footer-lower {
  background: var(--redwood-footer-dark);
  padding: 18px 35px;
}

.redwood-footer-lower-inner {
  width: 100%;
  margin: 0 auto;
}

.redwood-footer-lower p {
  margin: 0;
}

.redwood-footer-lower a {
  color: #000;
  text-decoration: underline;
}

.redwood-footer-credit {
  text-align: right;
}

/* Mobile footer */
@media (max-width: 781px) {

  .redwood-footer-main {
    padding: 32px 20px;
  }

  .redwood-footer-top .wp-block-column {
    flex-basis: 100% !important;
  }

  .redwood-footer-welcome {
    margin-top: 24px;
  }

  .redwood-footer-info {
    gap: 25px;
  }

  .redwood-footer-lower {
    padding: 18px 20px;
  }

  .redwood-footer-lower-inner {
    justify-content: center !important;
    text-align: center;
    gap: 12px;
  }

  .redwood-footer-credit {
    width: 100%;
    text-align: center;
  }
}

/* Keep the two footer surfaces joined with no theme block gap. */
.redwood-site-footer,
.redwood-footer-main,
.redwood-footer-lower {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.redwood-site-footer > * + * {
  margin-block-start: 0 !important;
}

/* =========================================================
   MOBILE HEADER BACKGROUND
   Keep desktop parallax unchanged; correct mobile positioning.
   ========================================================= */

@media (max-width: 781px) {
  .wp-block-cover__image-background.has-parallax {
    background-attachment: scroll !important;
    background-position: 50% 50% !important;
    background-size: cover !important;
  }
}