/* RAVI (Residents Against Valley Incinerator): duplicates their Elementor website. A white header with the logo,
   Richmond Valley photos fading behind the opening heading, green lead words, open-and-close technology questions,
   full-width photo bands with a dark shade, key points beside a video, and the support band (bumper sticker,
   newsletter sign-up, logo and donations) at the bottom of every page. Poppins headings and menu, Roboto text.
   Colours: logo red #C62828, green #2E7D32 (the old #61CE70 buttons, darkened to pass 4.5:1), navy #1C244B. */
:root {
  --rv-green: #2E7D32; --rv-green-d: #1B5E20; --rv-green-l: #61CE70; --rv-red: #C62828; --rv-navy: #1C244B;
  --rv-ink: #222831; --rv-grey: #4A4F57; --rv-line: #E3E6E3; --rv-soft: #F4F7F4; --rv-r: 6px;
  --c-primary: var(--rv-green); --c-ink: var(--rv-navy); --c-mist: var(--rv-soft);
}
body { color: var(--rv-ink); background: #fff !important; font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--rv-navy); letter-spacing: -0.01em; text-transform: none; }
p, li { line-height: 1.7; }
main a:not(.btn) { color: var(--rv-green-d); text-decoration-thickness: 1px; text-underline-offset: 2px; }
main a:not(.btn):hover { color: var(--rv-red); }
.btn--primary { background: var(--rv-green); border-color: var(--rv-green); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--rv-green-d); border-color: var(--rv-green-d); color: #fff; }
.rv-copy > :first-child { margin-top: 0; }
.rv-copy > :last-child { margin-bottom: 0; }
.rv-copy--center { text-align: center; max-width: 64rem; margin-inline: auto; }
.rv-actions { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.rv-red { color: var(--rv-red); }

/* header: white, menu in navy Poppins, the logo large */
.site-header { background: #fffcfc; box-shadow: 0 1px 0 var(--rv-line); }
.site-nav a, .rv-more__btn { font-family: var(--font-heading); color: var(--rv-navy); font-weight: 400; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.brand img { height: 4.5rem; width: auto; }

/* the More drop-down */
.rv-more { position: relative; }
.rv-more__btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: .45rem .72rem; font-size: .98rem; line-height: 1.7; cursor: pointer; }
.rv-more__btn.is-current { color: var(--rv-green); font-weight: 600; }
.rv-more__caret { width: 0; height: 0; border-left: .3rem solid transparent; border-right: .3rem solid transparent; border-top: .38rem solid currentColor; transition: transform .2s; }
.rv-more__btn[aria-expanded="true"] .rv-more__caret { transform: rotate(180deg); }
.site-nav .rv-more__list { list-style: none; margin: 0; padding: .5rem 0; display: none; flex-direction: column; align-items: stretch; gap: 0; }
@media (min-width: 64.01em) {
  .site-nav .rv-more__list { position: absolute; top: 100%; left: 0; min-width: 14rem; background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-r); box-shadow: 0 14px 30px -18px rgba(28, 36, 75, .45); z-index: 60; display: none; }
  .site-nav .rv-more:hover .rv-more__list, .site-nav .rv-more:focus-within .rv-more__list, .site-nav .rv-more.is-open .rv-more__list { display: flex; }
  .site-nav .rv-more__list a { display: block; padding: .55rem 1.1rem; white-space: normal; }
  .site-nav .rv-more__list a:hover, .site-nav .rv-more__list a:focus-visible { background: var(--rv-soft); }
}
@media (max-width: 64em) {
  .rv-more__btn { width: 100%; justify-content: space-between; }
  .site-nav .rv-more__list { display: none; padding-left: 1rem; }
  .site-nav .rv-more.is-open .rv-more__list, html:not(.rv-js) .site-nav .rv-more__list { display: flex; }
}

/* opening: photos fading behind the heading */
.rv-hero { position: relative; min-height: clamp(22rem, 62vh, 40rem); display: grid; place-items: center; overflow: hidden; background: #3d5a2c; isolation: isolate; }
.rv-hero__slides { position: absolute; inset: 0; z-index: -2; }
.rv-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.rv-hero__slide.is-on { opacity: 1; }
.rv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45)); }
.rv-hero__text { text-align: center; padding-block: 4rem; }
.rv-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,.45); font-family: var(--font-heading); }
.rv-hero__sub { color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.4rem); margin: .75rem 0 0; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

/* introduction: green lead words beside three photos */
.rv-intro { padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.rv-intro__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 3rem; align-items: center; margin-bottom: 2.5rem; }
.rv-lead { color: var(--rv-green); font-family: Helvetica, Arial, var(--font-heading); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; text-align: center; margin: 0; }
.rv-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rv-photos a { display: block; border-radius: var(--rv-r); overflow: hidden; aspect-ratio: 10 / 7; }
.rv-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rv-photos a:hover img, .rv-photos a:focus-visible img { transform: scale(1.05); }

/* hot and cool technologies */
.rv-cats { padding: 2rem 0 clamp(3rem, 6vw, 5rem); }
.rv-cats__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 2.5rem 4rem; align-items: center; }
.rv-cats__text .rv-copy--center { margin-top: 1.5rem; font-family: Helvetica, Arial, sans-serif; font-size: 1.1rem; }
.rv-acc { border: 1px solid #d5d8dc; margin-top: 1rem; }
.rv-acc__item + .rv-acc__item { border-top: 1px solid #d5d8dc; }
.rv-acc__item summary { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.rv-acc__item summary::-webkit-details-marker { display: none; }
.rv-acc__q { font-size: 1rem; margin: 0; color: #1a6e8a; font-weight: 600; order: 2; }
.rv-acc__icon { order: 1; width: .9rem; height: .9rem; position: relative; flex: none; }
.rv-acc__icon::before, .rv-acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #1a6e8a; }
.rv-acc__icon::after { transform: rotate(90deg); transition: transform .2s; }
.rv-acc__item[open] .rv-acc__icon::after { transform: rotate(0); }
.rv-acc__a { padding: 0 1.25rem 1.1rem; border-top: 1px solid #e8eaed; padding-top: 1rem; }
.rv-cats__photo { margin: 0; }
.rv-cats__photo img { width: 100%; height: auto; display: block; }

/* full-width photo bands */
.rv-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 10vw, 8rem) 0; background: #4a3c30; }
.rv-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rv-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 12, 8, .55); }
.rv-band__text { color: #fff; text-align: center; max-width: 62rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 500; line-height: 1.6; }
.rv-band__text p { color: #fff; }
.rv-band--closing::after { background: linear-gradient(180deg, rgba(10, 8, 5, .6), rgba(10, 8, 5, .4)); }
.rv-band--closing .rv-band__text { font-size: 1.1rem; }

/* key points beside the video */
.rv-points { padding: clamp(3rem, 6vw, 5rem) 0; }
.rv-points__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.rv-points__h { font-family: Helvetica, Arial, sans-serif; font-weight: 300; font-size: 1.2rem; line-height: 1.45; color: #000; text-align: center; letter-spacing: 0; }
.rv-points__text { text-align: center; }
.rv-points__text p { margin: 0 0 .9rem; }
.rv-video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; background: #000; }
.rv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* support band: bumper sticker, newsletter, logo and donations (the old footer) */
.rv-support { padding: clamp(3rem, 6vw, 4.5rem) 0; background: #fff; border-top: 1px solid var(--rv-line); }
.rv-sticker { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; padding: 1.5rem; background: var(--rv-soft); border-radius: var(--rv-r); margin-bottom: 3rem; }
.rv-sticker__img { width: 300px; max-width: 100%; height: auto; }
.rv-sticker__h { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .5rem; }
.rv-sticker__text .rv-copy { font-size: .95rem; color: var(--rv-grey); }
.rv-sticker__buy { text-align: center; }
.rv-price { font-weight: 700; margin: 0 0 .6rem; }
.rv-support__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.rv-news h2 { font-family: Helvetica, Arial, sans-serif; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.25; margin: 0 0 1rem; }
.rv-news .owl-form h2, .rv-news .owl-form .owl-form__heading { display: none; }
.rv-support__logo img { width: 100%; max-width: 18rem; height: auto; display: block; margin: 0 auto; }
.rv-donate { text-align: center; color: var(--rv-grey); }
.rv-donate__lead { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--rv-grey); letter-spacing: 0; line-height: 1.6; }
.rv-donate .btn { background: #18790A; border-color: #18790A; }
.rv-donate .btn:hover, .rv-donate .btn:focus-visible { background: #115C07; border-color: #115C07; }

/* contact page */
.rv-pagehead { text-align: center; }
.rv-contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 2.5rem 4rem; align-items: start; }
.rv-contact__logo { width: 100%; max-width: 16rem; height: auto; display: block; margin: 0 auto 1.5rem; }
.rv-contact__card { background: var(--rv-soft); border-radius: var(--rv-r); padding: 1.5rem; }
.rv-contact__card h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.rv-contact__line { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 0 0 .6rem; }
.rv-contact__label { font-weight: 700; min-width: 4rem; }
.rv-contact__more p { margin: 0 0 .6rem; }

/* Your pages: buttons in the text, News item spacing, big links on More */
.rv-btnrow { margin: 1rem 0 1.75rem; }
.page-body hr, .custom-page hr, main hr { border: 0; border-top: 1px solid var(--rv-line); margin: 2rem 0; }
.rv-biglinks { list-style: none; padding: 0; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; }
.rv-biglinks li { margin: 0 0 1rem; }

@media (max-width: 60em) {
  .rv-intro__top, .rv-cats__grid, .rv-points__grid, .rv-contact__grid { grid-template-columns: 1fr; }
  .rv-support__grid { grid-template-columns: 1fr; text-align: center; }
  .rv-sticker { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .rv-news { text-align: left; }
}
@media (max-width: 36em) {
  .rv-photos { grid-template-columns: 1fr 1fr; }
  .rv-photos li:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-hero__slide, .rv-photos img, .rv-more__caret, .rv-acc__icon::after { transition: none; }
}
html.oa-still .rv-hero__slide, html.oa-still .rv-photos img { transition: none; }
