/* New bits for the static site (things the WordPress plugins' JavaScript used to do). Nov 2026. */

/* Homepage hero (was Smart Slider 3: two photos, same text). The photos crossfade every 5 seconds.
   Sizes measured on the old site: half the screen width tall, at most 600px, at least what the text needs (216px on a
   375px phone); title 50px (28px under 768px), second line in the theme's own font at 30px, button 16px. */
.ev-hero { position: relative; width: 100%; min-height: clamp(216px, 50vw, 600px); overflow: hidden; background: #a8a789; display: flex; }
.ev-hero-bg, .ev-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-hero-bg img { object-fit: cover; object-position: 50% 50%; max-width: none; }
.ev-hero-bg .ev-hero-alt { opacity: 0; animation: ev-hero-fade 10s ease-in-out infinite; }
@keyframes ev-hero-fade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ev-hero-bg .ev-hero-alt { animation: none; } }
.ev-hero-text { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; max-width: 1200px; margin: 0 auto; font-family: 'Lato', sans-serif; font-weight: 900; }
.ev-hero-text p, .ev-hero-title { margin: 0; color: #fff; font-weight: 900; }
.ev-hero-title { font-family: 'Lato', sans-serif; font-size: 50px; line-height: 1.5; text-shadow: 0 0 3px #000; }
.ev-hero-sub { font-family: libel-suit-rg, sans-serif; font-size: 30px; line-height: 1; text-shadow: 0 1px 3px #000; margin: 10px 0 20px !important; }
.ev-hero-btn { display: inline-block; background: rgba(168, 167, 137, .86); color: #000 !important; border-radius: 10px;
  padding: 10px 20px; font-family: 'Lato', sans-serif; font-weight: 900; font-size: 16px; line-height: 1.5; text-decoration: none !important; white-space: nowrap; }
.ev-hero-btn:hover, .ev-hero-btn:focus { background: #a8a789; color: #000 !important; }
@media (max-width: 767px) { .ev-hero-title { font-size: 28px; } }

/* Homepage section with the fixed background photo (was the parallax.js script). Phones scroll it normally. */
.ev-parallax { background-size: cover; background-position: center; background-attachment: fixed; background-color: transparent; }
@media (max-width: 1024px), (hover: none) { .ev-parallax { background-attachment: scroll; } }

/* YouTube thumbnails (WP Rocket's lazy YouTube): the thumbnail is a button. */
.rll-youtube-player > div[data-id] { cursor: pointer; }
.rll-youtube-player > div[data-id]:focus-visible { outline: 3px solid #1890d7; outline-offset: 2px; }
.rll-youtube-player img { width: 100%; height: auto; }

/* Google rating badge pop-up: keyboard focus shows */
.custom-badge-btn:focus-visible, .custom-google-close:focus-visible { outline: 3px solid #1890d7; outline-offset: 2px; }

/* Multi-step forms (not used here, kept for the shared script) and the Turnstile spam check */
.frm-fluent-form .fluentform-step { display: none; }
.frm-fluent-form .fluentform-step.active { display: block; }
.frm-fluent-form .has-conditions { display: none; }
.ev-turnstile { margin: 10px 0 15px; min-height: 0; }
