/*
Theme Name: Red Roof Estate
Author: MB Red Roof Estate
Description: Lietuviška blokų tema projektų rengimo, administravimo ir NMA paramos svetainei.
Version: 1.1.11
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: red-roof-estate
*/

:root {
  --rre-navy: #405f72;
  --rre-navy-deep: #101b22;
  --rre-graphite: #f4e7d6;
  --rre-red: #a94740;
  --rre-red-dark: #87332e;
  --rre-accent: #f7a598;
  --rre-sand: #4b352b;
  --rre-cream: #3f2e27;
  --rre-blue-mist: #3b403b;
  --rre-white: #fff5e7;
  --rre-surface: #594037;
  --rre-surface-soft: #62483e;
  --rre-heading: #fff1dc;
  --rre-border: #806052;
  --rre-muted: #d4beaa;
  --rre-shadow: 0 20px 55px rgba(24, 13, 9, 0.25);
  --rre-radius: 18px;
  --rre-radius-sm: 10px;
  --rre-content: min(1180px, calc(100vw - 40px));
  --rre-narrow: min(780px, calc(100vw - 40px));
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--rre-cream);
  color: var(--rre-graphite);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
  margin: 0;
  overflow-x: hidden;
}

body.admin-bar .rre-site-header {
  top: 32px;
}

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

img {
  height: auto;
  max-width: 100%;
}

a {
  color: var(--rre-red);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rre-red-dark);
}

:focus-visible {
  outline: 3px solid #d96b5f;
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-site-title {
  color: var(--rre-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.13;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.45rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

p {
  margin-block: 0 1.25em;
}

.wp-site-blocks {
  min-height: 100vh;
}

.wp-block-post-content > :where(:not(.alignfull):not(.alignwide)) {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--rre-narrow);
}

.wp-block-post-content > .alignwide,
.rre-container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--rre-content);
}

.wp-block-post-content > .alignfull {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.rre-section {
  padding: clamp(68px, 8vw, 116px) 20px;
  position: relative;
}

.rre-section--compact {
  padding-block: clamp(48px, 6vw, 82px);
}

.rre-section--sand {
  background: var(--rre-sand);
}

.rre-section--mist {
  background-color: var(--rre-blue-mist);
  background-image: url("assets/images/soft-butterflies.webp");
  background-position: center;
  background-size: cover;
}

.rre-section--navy {
  background: var(--rre-navy-deep);
  color: #e8eef2;
}

.rre-section--navy :is(h1, h2, h3, h4) {
  color: var(--rre-white);
}

.rre-eyebrow {
  color: var(--rre-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.rre-lead {
  color: #44515c;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.7;
  max-width: 780px;
}

.rre-section--navy .rre-lead {
  color: #d3dde5;
}

.rre-site-header {
  backdrop-filter: blur(16px);
  background: rgba(255, 250, 243, 0.94);
  border-bottom: 1px solid rgba(23, 50, 77, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.rre-header-inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  margin: 0 auto;
  max-width: var(--rre-content);
  min-height: 86px;
  padding: 12px 0;
}

.rre-brand .wp-block-site-title {
  font-size: 1.2rem;
  line-height: 1.15;
  margin: 0;
  padding-left: 52px;
  position: relative;
}

.rre-brand .wp-block-site-title::before {
  background: url("assets/images/roof-mark.svg") center / contain no-repeat;
  content: "";
  height: 38px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
}

.rre-brand .wp-block-site-title a {
  color: var(--rre-navy-deep);
  text-decoration: none;
}

.rre-header-nav {
  justify-self: center;
}

.rre-header-nav .wp-block-navigation-item__content {
  color: var(--rre-graphite);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.rre-header-nav .wp-block-navigation__container {
  gap: clamp(8px, 1vw, 16px);
}

.rre-header-nav .wp-block-navigation-item__content:hover,
.rre-header-nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--rre-red);
}

.rre-header-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.rre-phone {
  color: var(--rre-navy-deep);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.rre-phone__mobile {
  display: none;
}

.wp-block-button__link,
.rre-button,
button.rre-button,
input[type="submit"].rre-button {
  align-items: center;
  background: var(--rre-red);
  border: 2px solid var(--rre-red);
  border-radius: 999px;
  color: var(--rre-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.045em;
  min-height: 48px;
  padding: 12px 23px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wp-block-button__link:hover,
.rre-button:hover {
  background: var(--rre-red-dark);
  border-color: var(--rre-red-dark);
  color: var(--rre-white);
  transform: translateY(-2px);
}

.is-style-outline > .wp-block-button__link,
.rre-button--outline {
  background: transparent;
  border-color: var(--rre-navy);
  color: var(--rre-navy);
}

.is-style-outline > .wp-block-button__link:hover,
.rre-button--outline:hover {
  background: var(--rre-navy);
  color: var(--rre-white);
}

.rre-section--navy .rre-button--outline {
  border-color: #dce8ef;
  color: var(--rre-white);
}

.rre-section--navy .rre-button--outline:hover {
  background: var(--rre-white);
  color: var(--rre-navy-deep);
}

.rre-hero {
  background: var(--rre-cream);
  min-height: min(780px, calc(100vh - 86px));
  overflow: hidden;
  padding: clamp(70px, 10vw, 132px) 20px;
  position: relative;
}

.rre-hero::after {
  background: linear-gradient(90deg, rgba(255,250,243,0.99) 0%, rgba(255,250,243,0.91) 42%, rgba(255,250,243,0.08) 72%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.rre-hero::before {
  background-image: url("assets/images/hero-roof.webp");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  position: absolute;
}

.rre-hero__inner {
  margin: 0 auto;
  max-width: var(--rre-content);
  position: relative;
  z-index: 2;
}

.rre-hero__content {
  max-width: 720px;
}

.rre-hero h1 {
  color: var(--rre-navy-deep);
  margin: 0 0 28px;
  max-width: 790px;
}

.rre-hero .rre-lead {
  max-width: 650px;
}

.rre-hero__actions,
.rre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.rre-trust-row {
  align-items: center;
  color: var(--rre-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 18px;
  margin-top: 42px;
}

.rre-trust-row span::before,
.rre-trust-row p::before {
  color: var(--rre-red);
  content: "\2713";
  font-weight: 900;
  margin-right: 8px;
}

.rre-heading-row {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 44px;
}

.rre-heading-row > div {
  max-width: 760px;
}

.rre-heading-row h2 {
  margin: 0 0 14px;
}

.rre-grid {
  display: grid;
  gap: 22px;
}

.rre-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rre-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rre-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rre-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: var(--rre-radius);
  box-shadow: 0 10px 35px rgba(15, 37, 57, 0.06);
  color: var(--rre-graphite);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(25px, 3vw, 36px);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.rre-card:hover {
  box-shadow: var(--rre-shadow);
  transform: translateY(-4px);
}

.rre-card h3 {
  margin: 0 0 14px;
}

.rre-card p:last-of-type {
  margin-bottom: 0;
}

.rre-card__link {
  color: var(--rre-red);
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: auto;
  padding-top: 24px;
  text-decoration: none;
}

.rre-card__link::after {
  content: " \2192";
}

.rre-service-number {
  align-items: center;
  background: var(--rre-blue-mist);
  border-radius: 999px;
  color: var(--rre-red);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  margin-bottom: 28px;
  width: 46px;
}

.rre-feature {
  border-left: 2px solid rgba(168, 50, 45, 0.35);
  padding: 4px 0 4px 24px;
}

.rre-feature h3 {
  margin: 0 0 8px;
}

.rre-feature p {
  color: #5a6670;
  font-size: 0.96rem;
  margin: 0;
}

.rre-callout {
  background: var(--rre-navy-deep);
  border-radius: clamp(18px, 3vw, 30px);
  box-shadow: var(--rre-shadow);
  color: #dce5ec;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr auto;
  padding: clamp(34px, 6vw, 72px);
}

.rre-callout h2 {
  color: var(--rre-white);
  margin: 0 0 16px;
}

.rre-callout p {
  margin: 0;
  max-width: 780px;
}

.rre-callout .rre-actions {
  align-content: center;
  flex-direction: column;
  margin-top: 0;
}

.rre-page-hero {
  background: linear-gradient(115deg, var(--rre-navy-deep), #244a69);
  color: #d9e3e9;
  overflow: hidden;
  padding: clamp(76px, 10vw, 126px) 20px;
  position: relative;
}

.rre-page-hero::after {
  background-image: url("assets/images/soft-butterflies.webp");
  background-position: right center;
  background-size: cover;
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.17;
  position: absolute;
}

.rre-page-hero__inner {
  margin: 0 auto;
  max-width: var(--rre-content);
  position: relative;
  z-index: 1;
}

.rre-page-hero h1 {
  color: var(--rre-white);
  margin: 0 0 20px;
  max-width: 920px;
}

.rre-page-hero p {
  font-size: 1.15rem;
  max-width: 820px;
}

.rre-content-section {
  padding: clamp(58px, 7vw, 96px) 20px;
}

.rre-content-section__inner {
  margin: 0 auto;
  max-width: var(--rre-content);
}

.rre-copy {
  max-width: 820px;
}

.rre-copy h2 {
  margin-top: 0;
}

.rre-checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.rre-checklist li {
  border-bottom: 1px solid var(--rre-border);
  padding: 14px 4px 14px 36px;
  position: relative;
}

.rre-checklist li::before {
  color: var(--rre-red);
  content: "\2713";
  font-weight: 900;
  left: 6px;
  position: absolute;
}

.rre-grants {
  display: grid;
  gap: 18px;
}

.rre-grant-card {
  background: var(--rre-white);
  border: 1px solid var(--rre-border);
  border-radius: var(--rre-radius);
  display: grid;
  gap: 24px;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  padding: 28px;
}

.rre-grant-card__dates {
  align-self: start;
  color: var(--rre-navy-deep);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.rre-grant-card__dates strong {
  color: var(--rre-red);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin-bottom: 5px;
}

.rre-grant-card__content h3 {
  font-size: 1.35rem;
  margin: 0 0 9px;
}

.rre-grant-card__content p {
  color: var(--rre-muted);
  font-size: 0.92rem;
  margin: 0;
}

.rre-grant-card__action {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 140px;
}

.rre-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 7px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rre-status--planned {
  background: #fff0ce;
  color: #7b5000;
}

.rre-status--open {
  background: #d9f3e7;
  color: #145c3c;
}

.rre-status--closed {
  background: #eceff1;
  color: #52606b;
}

.rre-disclaimer {
  background: #fff8e7;
  border-left: 4px solid #d4a440;
  border-radius: 0 var(--rre-radius-sm) var(--rre-radius-sm) 0;
  color: #5b4b27;
  font-size: 0.86rem;
  margin-top: 28px;
  padding: 17px 20px;
}

.rre-grant-meta {
  background: var(--rre-sand);
  border-radius: var(--rre-radius);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0 42px;
  overflow: hidden;
}

.rre-grant-meta > div {
  background: rgba(255,255,255,0.72);
  padding: 20px 24px;
}

.rre-grant-meta dt {
  color: var(--rre-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.rre-grant-meta dd {
  color: var(--rre-navy-deep);
  font-weight: 700;
  margin: 0;
}

.rre-news-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rre-news-card {
  background: var(--rre-white);
  border: 1px solid var(--rre-border);
  border-radius: var(--rre-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rre-news-card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--rre-navy), #5b7f97);
  overflow: hidden;
}

.rre-news-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rre-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.rre-news-card__meta {
  color: var(--rre-red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.rre-news-card h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.rre-news-card p {
  color: var(--rre-muted);
  font-size: 0.92rem;
}

.rre-contact-grid {
  display: grid;
  gap: clamp(36px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.rre-contact-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.rre-contact-list a {
  color: var(--rre-navy-deep);
  font-weight: 800;
  text-decoration: none;
}

.rre-form {
  background: var(--rre-white);
  border: 1px solid var(--rre-border);
  border-radius: var(--rre-radius);
  box-shadow: var(--rre-shadow);
  padding: clamp(25px, 5vw, 48px);
}

.rre-form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rre-field--full {
  grid-column: 1 / -1;
}

.rre-field label {
  color: var(--rre-navy-deep);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.rre-field input,
.rre-field select,
.rre-field textarea {
  background: #fbfcfc;
  border: 1px solid #cbd5db;
  border-radius: 8px;
  color: var(--rre-graphite);
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  width: 100%;
}

.rre-field textarea {
  min-height: 145px;
  resize: vertical;
}

.rre-consent {
  align-items: flex-start;
  display: flex;
  font-size: 0.8rem;
  gap: 10px;
}

.rre-consent input {
  margin-top: 5px;
}

.rre-form-message {
  border-radius: var(--rre-radius-sm);
  margin-bottom: 20px;
  padding: 14px 17px;
}

.rre-form-message--success {
  background: #dff4e8;
  color: #13573a;
}

.rre-form-message--error {
  background: #fde5e2;
  color: #7b211c;
}

.rre-site-footer {
  background: #0c2030;
  color: #cbd8e0;
  padding: 70px 20px 24px;
}

.rre-footer-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin: 0 auto;
  max-width: var(--rre-content);
}

.rre-site-footer :is(h2, h3, .wp-block-site-title) {
  color: var(--rre-white);
}

.rre-site-footer .wp-block-site-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.rre-site-footer a {
  color: #dce8ef;
  text-decoration: none;
}

.rre-site-footer a:hover {
  color: var(--rre-white);
  text-decoration: underline;
}

.rre-footer-links {
  display: grid;
  gap: 8px;
}

.rre-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.11);
  color: #9fb0bc;
  display: flex;
  font-size: 0.78rem;
  justify-content: space-between;
  margin: 52px auto 0;
  max-width: var(--rre-content);
  padding-top: 22px;
}

.rre-post-shell {
  margin: 0 auto;
  max-width: var(--rre-narrow);
  padding: clamp(60px, 8vw, 110px) 20px;
}

.rre-post-shell .wp-block-post-title {
  margin-top: 0;
}

.rre-query-grid .wp-block-post-template {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rre-query-grid .wp-block-post {
  background: var(--rre-white);
  border: 1px solid var(--rre-border);
  border-radius: var(--rre-radius);
  overflow: hidden;
  padding-bottom: 26px;
}

.rre-query-grid .wp-block-post > :not(.wp-block-post-featured-image) {
  margin-left: 25px;
  margin-right: 25px;
}

.rre-query-grid .wp-block-post-title {
  font-size: 1.35rem;
}

.rre-empty {
  background: rgba(255,255,255,0.7);
  border: 1px dashed #b7c3ca;
  border-radius: var(--rre-radius);
  color: var(--rre-muted);
  padding: 28px;
  text-align: center;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 1180px) {
  .rre-header-inner {
    grid-template-columns: 1fr auto;
    padding-inline: 20px;
  }

  .rre-header-nav {
    grid-column: 2;
    grid-row: 1;
  }

  .rre-header-actions {
    display: none;
  }

  .rre-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.admin-bar .rre-site-header {
    top: 46px;
  }

  .rre-hero {
    min-height: auto;
  }

  .rre-hero::before {
    background-position: 62% center;
  }

  .rre-hero::after {
    background: linear-gradient(90deg, rgba(255,250,243,0.99), rgba(255,250,243,0.87) 70%, rgba(255,250,243,0.35));
  }

  .rre-grid--3,
  .rre-news-grid,
  .rre-query-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rre-grant-card {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .rre-grant-card__action {
    align-items: center;
    flex-direction: row;
    grid-column: 1 / -1;
  }

  .rre-callout,
  .rre-contact-grid {
    grid-template-columns: 1fr;
  }

  .rre-callout .rre-actions {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  body.admin-bar .rre-site-header {
    top: 0;
  }

  .rre-header-inner {
    min-height: 72px;
  }

  .rre-brand .wp-block-site-title {
    font-size: 1rem;
    padding-left: 43px;
  }

  .rre-brand .wp-block-site-title::before {
    height: 32px;
    width: 35px;
  }

  .rre-hero {
    padding-block: 72px 82px;
  }

  .rre-hero::before {
    background-position: 70% center;
  }

  .rre-hero::after {
    background: linear-gradient(90deg, rgba(255,250,243,0.98), rgba(255,250,243,0.86));
  }

  .rre-heading-row {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .rre-grid--2,
  .rre-grid--3,
  .rre-grid--4,
  .rre-news-grid,
  .rre-query-grid .wp-block-post-template,
  .rre-form-grid,
  .rre-grant-meta {
    grid-template-columns: 1fr;
  }

  .rre-grant-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .rre-grant-card__action {
    align-items: flex-start;
    flex-direction: column;
    grid-column: auto;
  }

  .rre-field--full {
    grid-column: auto;
  }

  .rre-footer-grid {
    grid-template-columns: 1fr;
  }

  .rre-footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .rre-actions,
  .rre-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rre-actions .wp-block-button,
  .rre-actions .wp-block-button__link,
  .rre-hero__actions .wp-block-button,
  .rre-hero__actions .wp-block-button__link,
  .rre-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Warm dark appearance requested for the public site. */
html {
  color-scheme: dark;
}

::selection {
  background: #854b43;
  color: var(--rre-white);
}

body {
  background: var(--rre-cream);
  color: var(--rre-graphite);
}

:is(h1, h2, h3, h4, h5, h6, .wp-block-site-title) {
  color: var(--rre-heading);
}

a,
.rre-eyebrow,
.rre-card__link,
.rre-grant-card__dates strong,
.rre-news-card__meta {
  color: var(--rre-accent);
}

a:hover {
  color: #ffc0b5;
}

.rre-lead,
.rre-feature p {
  color: #e0cdbb;
}

.rre-section--sand {
  background: var(--rre-sand);
}

.rre-section--mist {
  background-color: var(--rre-blue-mist);
  background-image: linear-gradient(rgba(63, 46, 39, 0.62), rgba(63, 46, 39, 0.76)), url("assets/images/soft-butterflies.webp");
  background-blend-mode: multiply, soft-light;
}

.rre-section--navy {
  background: var(--rre-navy-deep);
  color: #ddd3c6;
}

.rre-section--navy :is(h1, h2, h3, h4),
.rre-callout h2,
.rre-page-hero h1,
.rre-site-footer :is(h2, h3, .wp-block-site-title) {
  color: var(--rre-white);
}

.rre-site-header {
  background: rgba(56, 40, 32, 0.95);
  border-bottom-color: rgba(255, 241, 221, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.rre-brand .wp-block-site-title a,
.rre-header-nav .wp-block-navigation-item__content,
.rre-phone,
.rre-contact-list a {
  color: var(--rre-graphite);
}

.rre-header-nav .wp-block-navigation-item__content:hover,
.rre-header-nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--rre-accent);
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--rre-cream) !important;
  color: var(--rre-graphite) !important;
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
  color: var(--rre-graphite);
}

.is-style-outline > .wp-block-button__link,
.rre-button--outline {
  border-color: #91adbc;
  color: #b8cfda;
}

.is-style-outline > .wp-block-button__link:hover,
.rre-button--outline:hover {
  background: #405f72;
  border-color: #405f72;
  color: var(--rre-white);
}

.rre-hero {
  background: var(--rre-cream);
}

.rre-hero::after {
  background: linear-gradient(90deg, rgba(63, 46, 39, 0.99) 0%, rgba(74, 53, 43, 0.93) 44%, rgba(63, 46, 39, 0.2) 76%);
}

.rre-hero h1 {
  color: var(--rre-heading);
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.28);
}

.rre-card,
.rre-grant-card,
.rre-news-card,
.rre-form,
.rre-query-grid .wp-block-post {
  background: rgba(89, 64, 55, 0.97);
  border-color: var(--rre-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  color: var(--rre-graphite);
}

.rre-card:hover {
  box-shadow: var(--rre-shadow);
}

.rre-service-number {
  background: #6a4c40;
  color: var(--rre-accent);
}

.rre-feature {
  border-left-color: rgba(247, 165, 152, 0.58);
}

.rre-callout {
  background: linear-gradient(115deg, #101b22, #1e3039);
  color: #ddd3c6;
}

.rre-page-hero {
  background: linear-gradient(115deg, #101b22, #263b45 58%, #3b2922);
  color: #ded5c9;
}

.rre-grant-card__dates,
.rre-grant-meta dd,
.rre-field label {
  color: var(--rre-heading);
}

.rre-status--planned {
  background: #6b4f2d;
  color: #ffe2a8;
}

.rre-status--open {
  background: #2f5948;
  color: #c9efda;
}

.rre-status--closed {
  background: #514b46;
  color: #e4d9ce;
}

.rre-disclaimer {
  background: #5f482d;
  border-left-color: #c99b48;
  color: #ead7ae;
}

.rre-grant-meta {
  background: var(--rre-border);
}

.rre-grant-meta > div {
  background: var(--rre-surface-soft);
}

.rre-field input,
.rre-field select,
.rre-field textarea {
  background: #3a2923;
  border-color: #8d6b5c;
  color: var(--rre-graphite);
}

.rre-field :is(input, select, textarea)::placeholder {
  color: #bca796;
}

.rre-field :is(input, select, textarea):focus {
  border-color: var(--rre-accent);
  box-shadow: 0 0 0 3px rgba(247, 165, 152, 0.22);
  outline: none;
}

.rre-form-message--success {
  background: #1f4436;
  color: #c6ecd7;
}

.rre-form-message--error {
  background: #4b2724;
  color: #f3c4bf;
}

.rre-site-footer {
  background: #0d171d;
  color: #c9c0b4;
}

.rre-site-footer a {
  color: #d9cec0;
}

.rre-footer-bottom {
  border-top-color: rgba(255, 247, 234, 0.12);
  color: #9e9185;
}

.rre-empty {
  background: rgba(78, 57, 48, 0.86);
  border-color: #8b695a;
}

.wp-block-post-title a {
  color: var(--rre-heading);
}

.wp-block-post-title a:hover {
  color: var(--rre-accent);
}

@media (max-width: 900px) {
  .rre-hero::after {
    background: linear-gradient(90deg, rgba(63, 46, 39, 0.99), rgba(74, 53, 43, 0.92) 70%, rgba(63, 46, 39, 0.48));
  }
}

@media (max-width: 640px) {
  .rre-hero::after {
    background: linear-gradient(90deg, rgba(63, 46, 39, 0.98), rgba(74, 53, 43, 0.92));
  }
}

/* Mobile uses one consistent header and one direct bottom navigation bar. */
.rre-mobile-dock {
  display: none;
}

@media (max-width: 960px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .rre-header-inner {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 8px 14px;
  }

  .rre-brand {
    min-width: 0;
  }

  .rre-brand .wp-block-site-title {
    font-size: 0.94rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rre-site-header .wp-block-navigation,
  .rre-site-header .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  .rre-header-actions {
    display: flex !important;
    justify-self: end;
  }

  .rre-header-actions .rre-button,
  .rre-phone__desktop {
    display: none;
  }

  .rre-header-actions .rre-phone {
    align-items: center;
    background: var(--rre-red);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(27, 14, 10, 0.22);
    color: var(--rre-white);
    display: flex;
    font-size: 0.78rem;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
  }

  .rre-header-actions .rre-phone:hover,
  .rre-header-actions .rre-phone:focus-visible {
    background: var(--rre-red-dark);
    color: var(--rre-white);
  }

  .rre-phone__mobile {
    display: inline;
  }

  .rre-mobile-dock {
    align-items: stretch;
    background: rgba(56, 40, 32, 0.98);
    border-top: 1px solid rgba(255, 241, 221, 0.14);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 0;
    padding: 6px 5px calc(6px + env(safe-area-inset-bottom));
    pointer-events: auto !important;
    position: fixed;
    right: 0;
    isolation: isolate;
    opacity: 1 !important;
    transform: translateZ(0);
    visibility: visible !important;
    z-index: 2147483000;
  }

  .rre-mobile-dock__item {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--rre-white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 750;
    gap: 2px;
    justify-content: center;
    line-height: 1.1;
    min-height: 54px;
    min-width: 0;
    padding: 4px 2px;
    pointer-events: auto !important;
    position: relative;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.14);
    z-index: 1;
  }

  .rre-mobile-dock__item:hover,
  .rre-mobile-dock__item:focus-visible,
  .rre-mobile-dock__item[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
    color: var(--rre-white);
    outline: none;
  }

  .rre-mobile-dock__item--call,
  .rre-mobile-dock__item--call:hover,
  .rre-mobile-dock__item--call:focus-visible {
    background: var(--rre-accent);
    border: 1px solid #ffd0c8;
    box-shadow: 0 5px 14px rgba(27, 14, 10, 0.28);
    color: #2b1a15;
  }

  .rre-mobile-dock__icon {
    align-items: center;
    display: flex;
    font-size: 1.12rem;
    height: 23px;
    justify-content: center;
    line-height: 1;
  }

}

@media (max-width: 380px) {
  .rre-header-actions .rre-phone {
    padding-inline: 11px;
  }

  .rre-brand .wp-block-site-title {
    font-size: 0.86rem;
  }

  .rre-mobile-dock__item {
    font-size: 0.61rem;
  }
}
