/*
Theme Name: Rideout
Theme URI: https://rideoutenergydrink.com
Author: Ryde Out LLC
Author URI: https://rideoutenergydrink.com
Description: Native block theme (Full Site Editing) for Rideout Energy Drink. Dark, cinematic, Anton + Inter, converted from the static Next.js build. All colors, type scale, spacing and fonts live in theme.json; page layouts live in /patterns and /templates.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.2.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rideout
Tags: full-site-editing, block-patterns, custom-colors, dark-mode, e-commerce, one-column, wide-blocks
*/

/* ---------- utilities ---------- */
.text-lime { color: var(--wp--preset--color--lime); }
.text-can { color: var(--wp--preset--color--can); }
.text-chrome { color: var(--wp--preset--color--chrome); }
.display, .wp-block-heading.display { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-weight: 400; }
.eyebrow { font-size: var(--wp--preset--font-size--eyebrow); letter-spacing: .28em; text-transform: uppercase; color: var(--wp--preset--color--chrome); font-weight: 600; margin-block-end: 1rem; }
.eyebrow a { text-decoration: none; }
.ry-lede { font-size: var(--wp--preset--font-size--lede); line-height: 1.5; color: var(--wp--preset--color--chrome); max-width: 42rem; text-wrap: pretty; }
.ry-note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--steel); }
.ry-center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ry-section { padding-block: var(--wp--preset--spacing--50); }
.ry-h2-sm { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem) !important; line-height: .95 !important; margin-top: 3rem; }
.ry-price { font-family: var(--wp--preset--font-family--display); font-size: 2.5rem; font-weight: 400; color: var(--wp--preset--color--white); }
::selection { background: var(--wp--preset--color--can); color: var(--wp--preset--color--white); }

/* film grain over everything, as on the original */
body::after { content: ""; pointer-events: none; position: fixed; inset: 0; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--wp--custom--nav-h) + 1rem); }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- header / nav ---------- */
.ry-site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 50; background: linear-gradient(to bottom, rgba(5,5,5,.9), rgba(5,5,5,0)); transition: background .3s; }
.ry-site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; backdrop-filter: blur(6px); }
.ry-site-header.is-compact { background: rgba(5,5,5,.92); }
.admin-bar .ry-site-header { top: 32px; }
.ry-header__inner { min-height: var(--wp--custom--nav-h); align-items: center; }
.is-compact .ry-header__inner { min-height: var(--wp--custom--nav-h-compact); }
.ry-logo img { height: auto; display: block; }
.ry-nav a { text-decoration: none; padding-block: .5rem; }
.ry-nav a:hover { color: var(--wp--preset--color--can); }
.ry-cta .wp-block-button__link { padding: .7rem 1.4rem; font-size: 1rem; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--black) !important; color: var(--wp--preset--color--white) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.5rem, 10vw, 4.5rem); letter-spacing: 0; }
@media (max-width: 781px) { .admin-bar .ry-site-header { top: 46px; } }

/* ---------- buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--white); border: 1px solid rgba(245,245,242,.6); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--black); }
.wp-block-button__link:focus-visible { outline: 2px solid var(--wp--preset--color--lime); outline-offset: 3px; }

/* ---------- hero ---------- */
.ry-hero .wp-block-cover__background { background: radial-gradient(75% 68% at 50% 50%, transparent 35%, rgba(5,5,5,.6) 75%, #050505 100%), radial-gradient(70% 55% at 50% 105%, rgba(227,38,43,.75), transparent 70%) !important; opacity: 1 !important; }

/* ---------- product ---------- */
.ry-product, .ry-shop, .ry-wild, .ry-story { max-width: none; }
.ry-stats .wp-block-column { border-top: var(--wp--custom--hairline); padding-top: 1rem; }
.ry-stat__val { font-size: clamp(3rem, 1.6rem + 6vw, 6rem); color: var(--wp--preset--color--white); line-height: 1; }
.ry-stat__unit { color: var(--wp--preset--color--chrome); }
.ry-stat__note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--steel); }
.ry-nutrition { border: var(--wp--custom--hairline); padding: 1rem 1.5rem; margin-top: 2rem; }
.ry-nutrition summary { cursor: pointer; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .08em; }
.ry-nutrition img { max-width: 20rem; }

/* ---------- culture: horizontal scroll-snap rail on desktop ---------- */
.ry-pillar__tag { color: var(--wp--preset--color--chrome); margin: 0; }
.ry-pillar__list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin-top: 1.5rem; }
.ry-pillar__list li::before { content: ""; display: inline-block; width: 1rem; height: 1px; background: var(--wp--preset--color--lime); margin-right: .5rem; vertical-align: middle; }

/* ---------- story ---------- */
.ry-story__line { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: clamp(2rem, 1rem + 4vw, 4.5rem); line-height: .95; color: var(--wp--preset--color--white); margin: 0 0 1rem; }
.ry-story__sign { width: min(560px, 80vw); margin-top: 4rem; }
.ry-story__sign-line { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; color: var(--wp--preset--color--white); }
.ry-story__video { position: sticky; top: calc(var(--wp--custom--nav-h-compact) + 2rem); }
.ry-story__video video { width: 100%; max-height: 78svh; aspect-ratio: 9/16; object-fit: cover; background: var(--wp--preset--color--carbon); }

/* ---------- movement ---------- */
.ry-movement { padding-block: var(--wp--preset--spacing--50); }
.ry-movement .wp-block-cover__background { background: linear-gradient(to bottom, #050505, rgba(5,5,5,.2), #050505) !important; opacity: 1 !important; }
.ry-marquee { overflow: hidden; white-space: nowrap; border-block: var(--wp--custom--hairline); padding-block: 1rem; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.5rem); color: rgba(245,245,242,.9); }
.ry-marquee i { display: inline-block; width: .5rem; height: .5rem; background: var(--wp--preset--color--lime); margin: 0 2.5rem; }
}

/* ---------- wild / join / shop ---------- */
.ry-join { padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30); }
.ry-join .wp-block-cover__background { background: linear-gradient(to right, #111, rgba(17,17,17,.8), rgba(17,17,17,.1)) !important; opacity: 1 !important; }
.ry-card { border: var(--wp--custom--hairline); background: rgba(17,17,17,.7); padding: clamp(1.5rem, 3vw, 2rem); backdrop-filter: blur(4px); }
.ry-badge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(245,245,242,.15); padding: .35rem .75rem; font-size: var(--wp--preset--font-size--micro); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--wp--preset--color--chrome); }
.ry-pulse { width: .5rem; height: .5rem; background: var(--wp--preset--color--lime); box-shadow: 0 0 12px var(--wp--preset--color--lime); display: inline-block; }
.ry-pack { border: 1px solid rgba(245,245,242,.15); padding: 1rem 1.25rem; }
.ry-shop { background: radial-gradient(40% 45% at 30% 65%, rgba(227,38,43,.22), transparent 70%); }

/* ---------- inner pages ---------- */
.ry-page-hero { padding: calc(var(--wp--custom--nav-h) + 4rem) var(--wp--preset--spacing--30) 4rem; align-items: flex-end; }
.ry-page-hero .wp-block-cover__background { background: var(--wp--preset--gradient--fade-up) !important; opacity: 1 !important; }
.ry-page-title { font-size: clamp(3rem, 1.6rem + 7vw, 9rem) !important; line-height: .85 !important; }
.ry-timeline { border-top: var(--wp--custom--hairline); padding-top: 2rem; margin-bottom: 2rem; }
.ry-stops { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; }
.ry-dates { list-style: none; padding: 0; border-block: var(--wp--custom--hairline); }
.ry-dates li { padding: .75rem 0; border-bottom: var(--wp--custom--hairline); }
.ry-legal p, .ry-legal li { font-size: .9375rem; line-height: 1.625; }
.ry-legal strong { color: var(--wp--preset--color--white); }
.ry-pledge { border-top: var(--wp--custom--hairline); padding-top: 2.5rem; margin-top: 4rem; }
.ry-news .wp-block-post-title a { text-decoration: none; }
.ry-news .wp-block-post-featured-image img { width: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.ry-site-footer { border-top: var(--wp--custom--hairline); }
.ry-footer { padding-block: 4rem 2rem; }
.ry-footer a { text-decoration: none; color: var(--wp--preset--color--chrome); }
.ry-footer a:hover { color: var(--wp--preset--color--can); }
.ry-footer .ry-logo { width: min(280px, 60vw); }
.ry-footer__tag { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: 1.5rem; }
.ry-footer__legal { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--steel); margin-top: 3rem; }

/* ---------- forms (Contact Form 7 / WPForms / any plugin) ---------- */
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .wpcf7 textarea, .wpforms-container input:not([type=submit]):not([type=checkbox]):not([type=radio]), .wpforms-container textarea, .ry-form input:not([type=submit]):not([type=checkbox]):not([type=radio]), .ry-form textarea {
  width: 100%; min-height: var(--wp--custom--tap); color: var(--wp--preset--color--white); background: transparent; border: 0; border-bottom: 1px solid rgba(191,195,199,.3); border-radius: 0; padding: .85rem 0; font-size: 1.0625rem; font-family: inherit; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .ry-form input:focus, .ry-form textarea:focus { outline: 0; border-bottom-color: var(--wp--preset--color--lime); }
.wpcf7 label, .wpforms-field-label { display: block; font-size: var(--wp--preset--font-size--eyebrow); letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--chrome); font-weight: 600; margin-top: 1.5rem; }
.wpcf7 input[type=submit], .wpforms-submit { background: var(--wp--preset--color--can); color: var(--wp--preset--color--white); border: 0; padding: 1.05rem 2rem; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .08em; font-size: 1.125rem; cursor: pointer; margin-top: 1.5rem; }
.wpcf7 input[type=submit]:hover, .wpforms-submit:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--black); }

.wpcf7 .ry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.wpcf7 fieldset { border: 0; padding: 0; margin: 1.5rem 0 0; }
.wpcf7 legend { font-size: var(--wp--preset--font-size--eyebrow); letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--chrome); font-weight: 600; padding: 0; margin-bottom: .75rem; }
.wpcf7 .wpcf7-list-item { margin: 0 .5rem .5rem 0; }
.wpcf7 .wpcf7-list-item label { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .4rem .9rem; border: 1px solid rgba(245,245,242,.25); letter-spacing: .08em; font-size: .8125rem; cursor: pointer; }
.wpcf7 .wpcf7-list-item input { accent-color: var(--wp--preset--color--lime); width: auto; min-height: 0; }
.wpcf7 small { display: block; margin-top: .4rem; color: var(--wp--preset--color--steel); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--wp--preset--font-size--small); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--wp--preset--color--danger); font-size: var(--wp--preset--font-size--small); margin-top: .35rem; }
.wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: .9rem 1rem; border: 1px solid rgba(245,245,242,.25); color: var(--wp--preset--color--chrome); font-size: var(--wp--preset--font-size--small); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--lime); color: var(--wp--preset--color--lime); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--wp--preset--color--danger); }
.wpcf7-spinner { filter: invert(1); }
@media (max-width: 600px) { .wpcf7 .ry-row { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll (js adds .is-in) ---------- */
.js .ry-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .ry-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .ry-reveal { opacity: 1; transform: none; transition: none; }
  .ry-marquee { animation: none; }
  html { scroll-behavior: auto; }
}
