/* ==========================================================================
   Westown Wheels Weekend: main stylesheet
   Every value below is taken 1:1 from the approved HTML concept.
   NOTE: box-sizing is intentionally left at the browser default (content-box)
   because the concept relies on it. Only form controls are border-box.
   ========================================================================== */

/* ---- Fonts (self-hosted Roboto, variable, latin subset) ----------------- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/roboto-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Base ---------------------------------------------------------------- */
body { margin: 0; background: #000000; }
a { color: #90c53d; }
a:where(:not([class])):hover { color: #c6cf21; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.ww-page {
  background: #000000;
  color: #ffffff;
  font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-width: 0;
}

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

/* ---- Buttons ------------------------------------------------------------- */
.ww-btn {
  --ww-py: 12px; --ww-px: 22px; --ww-bw: 0px;
  text-decoration: none;
  border-radius: 9999px;
  padding: calc(var(--ww-py) - var(--ww-bw)) calc(var(--ww-px) - var(--ww-bw));
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.ww-btn--lg { --ww-py: 16px; --ww-px: 28px; font-size: 15px; }
.ww-btn--solid   { background: #90c53d; color: #000000; }
.ww-btn--lime    { background: #c6cf21; color: #000000; }
.ww-btn--inverse { background: #000000; color: #90c53d; }
.ww-btn--outline { --ww-bw: 2px; border: 2px solid #ffffff; color: #ffffff; }
.ww-btn--muted   { --ww-bw: 2px; border: 2px solid #3b3b3b; color: #ffffff; }
.ww-btn:focus-visible,
.ww-tab:focus-visible { outline: 2px solid #c6cf21; outline-offset: 2px; }

/* ---- Header -------------------------------------------------------------- */
.ww-header { border-bottom: 1px solid #3b3b3b; }
.ww-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.ww-header__logo img { width: 150px; height: auto; display: block; }
.ww-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  font-size: 15px; font-weight: 500;
}
.ww-nav__link { color: #ffffff; text-decoration: none; }

/* ---- Hero ---------------------------------------------------------------- */
.ww-hero { position: relative; overflow: hidden; }
.ww-hero__tc { position: absolute; right: 24px; top: 16px; margin: 0; font-size: 13px; font-style: italic; }
.ww-hero__inner {
  max-width: 1240px; margin: 0 auto; padding: 72px 24px 56px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.ww-hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ww-hero__eyebrow { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: 0.35em; color: #90c53d; }
.ww-hero__title {
  margin: 0; font-size: clamp(44px, 6vw, 84px); line-height: 1.0; font-weight: 700; letter-spacing: -0.01em;
}
.ww-hero__title em { font-style: italic; color: #90c53d; }
.ww-hero__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ww-pill {
  background: #90c53d; color: #000000; border-radius: 9999px; padding: 10px 22px; font-size: 18px; font-weight: 700;
}
.ww-pill--lime { background: #c6cf21; }
.ww-hero__time { font-size: 18px; font-style: italic; }
.ww-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ww-hero__art { flex: 1 1 420px; min-width: 0; max-width: 620px; }
.ww-hero__partners { max-width: 1240px; margin: 0 auto; padding: 0 24px 48px; }
.ww-hero__partners img { width: 100%; max-width: 560px; height: auto; display: block; }

/* W + location-pin shape, filled with a photo */
.ww-wpin { position: relative; width: 100%; aspect-ratio: 325 / 183; }
.ww-wpin > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.ww-wpin__photo {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  -webkit-mask-image: url('../img/w-mask.svg'); mask-image: url('../img/w-mask.svg');
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* ---- Details bar --------------------------------------------------------- */
.ww-details { background: #90c53d; color: #000000; }
.ww-details__inner {
  max-width: 1240px; margin: 0 auto; padding: 28px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px;
}
.ww-details__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; }
.ww-details__value { margin: 6px 0 0; font-size: 22px; font-weight: 700; }

/* ---- Shared section pieces ----------------------------------------------- */
.ww-section--alt { background: #141414; }
.ww-section__inner {
  max-width: 1240px; margin: 0 auto; padding: 96px 24px;
  display: flex; flex-direction: column; gap: 40px;
}
.ww-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px;
}
.ww-titles { display: flex; flex-direction: column; gap: 14px; }
.ww-eyebrow { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 0.35em; color: #90c53d; }
.ww-eyebrow--lime { color: #c6cf21; }
.ww-h2 { margin: 0; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.0; font-weight: 700; letter-spacing: -0.01em; }
.ww-h2--56 { font-size: clamp(36px, 4.5vw, 56px); }
.ww-h2 em { font-style: italic; color: #90c53d; }
.ww-lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.55; }
.ww-lead--480 { max-width: 480px; }

/* ---- The event ----------------------------------------------------------- */
.ww-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ww-card { background: #141414; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.ww-card--green { background: #90c53d; color: #000000; }
.ww-card__badge {
  align-self: flex-start; background: #000000; color: #90c53d;
  border-radius: 9999px; padding: 6px 16px; font-size: 14px; font-weight: 700;
}
.ww-card__badge--lime  { background: #c6cf21; color: #000000; }
.ww-card__badge--white { background: #ffffff; color: #000000; }
.ww-card__title { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 700; }
.ww-card__text { margin: 0; font-size: 17px; line-height: 1.55; }

/* ---- The site ------------------------------------------------------------ */
.ww-site__map { position: relative; }
.ww-site__map img { width: 100%; height: auto; display: block; }
.ww-site__caption {
  max-width: 1240px; margin: 0 auto; padding: 20px 24px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.ww-site__title { margin: 0; font-size: 22px; font-weight: 700; }
.ww-site__title em { font-style: italic; color: #90c53d; }
.ww-site__note { margin: 0; font-size: 14px; font-style: italic; color: #a6a6a6; }

/* ---- Get involved -------------------------------------------------------- */
.ww-involve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ww-involve {
  border-top: 4px solid #90c53d; background: #141414; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.ww-involve--lime  { border-top-color: #c6cf21; }
.ww-involve--white { border-top-color: #ffffff; }
.ww-involve__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: #90c53d; }
.ww-involve--lime .ww-involve__label { color: #c6cf21; }
.ww-involve--white .ww-involve__label { color: inherit; }
.ww-involve__price { margin: 0; font-size: 44px; line-height: 1; font-weight: 700; }
.ww-involve__text { margin: 0; font-size: 16px; line-height: 1.55; }
.ww-involve .ww-btn { margin-top: auto; align-self: flex-start; }

/* ---- Dealer packages ----------------------------------------------------- */
.ww-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.ww-package {
  background: #000000; border: 1px solid #3b3b3b; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.ww-package--featured { position: relative; background: #90c53d; color: #000000; border: 0; }
.ww-package--premium { border-color: #c6cf21; }
.ww-package__badge {
  position: absolute; top: -14px; left: 32px; background: #000000; color: #90c53d; border: 2px solid #90c53d;
  border-radius: 9999px; padding: 4px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
}
.ww-package__name { margin: 0; font-size: 26px; font-weight: 700; }
.ww-package__price { margin: 0; font-size: 48px; line-height: 1; font-weight: 700; color: #90c53d; }
.ww-package--featured .ww-package__price { color: inherit; }
.ww-package--premium .ww-package__price { color: #c6cf21; }
.ww-package__rule { height: 2px; background: #90c53d; }
.ww-package--featured .ww-package__rule { background: #000000; }
.ww-package--premium .ww-package__rule { background: #c6cf21; }
.ww-package__feature { margin: 0; font-size: 16px; line-height: 1.5; }
.ww-packages-cta { align-self: flex-start; }

/* ---- Classic showcase ---------------------------------------------------- */
.ww-classic__inner {
  max-width: 1240px; margin: 0 auto; padding: 96px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.ww-classic__art { flex: 1 1 420px; min-width: 0; max-width: 600px; }
.ww-classic__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ww-classic__text { margin: 0; font-size: 18px; line-height: 1.55; }
.ww-classic__note { margin: 0; font-size: 16px; line-height: 1.5; color: #a6a6a6; }

/* ---- Deadline bar -------------------------------------------------------- */
.ww-deadline { background: #90c53d; color: #000000; }
.ww-deadline__inner {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.ww-deadline__title { margin: 0; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.05; font-weight: 700; }
.ww-deadline__title em { font-style: italic; }

/* ---- Apply --------------------------------------------------------------- */
.ww-apply__inner {
  max-width: 880px; margin: 0 auto; padding: 96px 24px;
  display: flex; flex-direction: column; gap: 32px;
}
.ww-apply__intro { margin: 0; font-size: 17px; line-height: 1.55; }
.ww-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ww-tab {
  min-height: 48px; padding: 12px 22px; border-radius: 9999px;
  font: 700 15px Roboto, Arial, sans-serif; cursor: pointer;
  background: transparent; color: #ffffff; border: 2px solid #3b3b3b;
}
.ww-tab[aria-selected="true"] { background: #90c53d; color: #000000; border-color: #90c53d; }

.ww-form-panel { background: #141414; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.ww-form-panel[hidden] { display: none; }
.ww-form-panel__intro { margin: 0; font-size: 15px; line-height: 1.5; color: #a6a6a6; }
/* once Gravity Forms shows the confirmation, drop the panel chrome */
.ww-form-panel:has(.gform_confirmation_wrapper) { background: none; padding: 0; }
.ww-form-panel:has(.gform_confirmation_wrapper) .ww-form-panel__intro { display: none; }

.ww-sent { background: #141414; border-top: 4px solid #90c53d; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.ww-sent__title { margin: 0; font-size: 28px; font-weight: 700; }
.ww-sent__text { margin: 0; font-size: 17px; line-height: 1.55; }
.ww-sent__again {
  align-self: flex-start; background: transparent; color: #ffffff; border: 2px solid #ffffff; border-radius: 9999px;
  padding: 12px 22px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none;
}
.ww-sent__again:focus-visible { outline: 2px solid #c6cf21; outline-offset: 2px; }
.ww-form-panel .gform_confirmation_message,
.ww-form-panel .gform_confirmation_wrapper { margin: 0; padding: 0; }

/* ---- Gravity Forms skin --------------------------------------------------
   Gravity Forms' own CSS is switched off by the theme (see inc/gravity-forms.php),
   so this is the only styling the forms get. Selectors are class-based and work
   with both the div-based (markup v2) and legacy list-based markup.            */
.ww-form-panel .gform_wrapper { margin: 0; padding: 0; }
.ww-form-panel .gform_wrapper form { margin: 0; }
.ww-form-panel .gform_heading { display: none; }

.ww-form-panel .gform_wrapper .gform_fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.ww-form-panel .gform_wrapper .gform_fields > .gfield {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0; margin: 0; padding: 0; border: 0; grid-column: auto;
}
.ww-form-panel .gform_wrapper .gform_fields > .gfield.ww-full { grid-column: 1 / -1; margin-top: 4px; }

.ww-form-panel .gfield_label {
  display: block; margin: 0; padding: 0; float: none; width: auto;
  font-size: 14px; font-weight: 500; line-height: normal; color: #ffffff;
}
.ww-form-panel .gfield_required { display: none; }
.ww-form-panel .ginput_container { margin: 0; padding: 0; }

.ww-form-panel .ginput_container input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.ww-form-panel .ginput_container textarea,
.ww-form-panel .ginput_container select {
  display: block; width: 100%; max-width: none; box-sizing: border-box; margin: 0;
  min-height: 48px; padding: 12px 14px; background: #141414; color: #ffffff;
  border: 1px solid #3b3b3b; border-radius: 0; font: 16px Roboto, Arial, sans-serif;
}
.ww-form-panel .ginput_container input:focus,
.ww-form-panel .ginput_container textarea:focus,
.ww-form-panel .ginput_container select:focus { outline: 2px solid #c6cf21; outline-offset: 2px; }
.ww-form-panel .ginput_container textarea.textarea { height: auto; }
.ww-form-panel .ww-rows-3 .ginput_container textarea { height: 83px; }
.ww-form-panel .ww-rows-4 .ginput_container textarea { height: 102px; }

/* consent: checkbox + text on one line */
.ww-form-panel .gfield--type-consent > legend,
.ww-form-panel .gfield--type-consent > .gfield_label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.ww-form-panel .ginput_container_consent {
  display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5;
}
.ww-form-panel .ginput_container_consent input[type="checkbox"] {
  width: 20px; height: 20px; margin: 2px 0 0; accent-color: #90c53d; flex-shrink: 0;
}
.ww-form-panel .ginput_container_consent label,
.ww-form-panel .gfield_consent_label {
  display: block; margin: 0; padding: 0; font-size: 15px; font-weight: 400; line-height: 1.5; color: inherit;
}

/* submit */
.ww-form-panel .gform_footer { display: flex; margin: 20px 0 0; padding: 0; }
.ww-form-panel .gform_footer input[type="submit"],
.ww-form-panel .gform_footer button {
  align-self: flex-start; width: auto; min-height: 48px; margin: 0;
  background: #90c53d; color: #000000; border: 0; border-radius: 9999px; padding: 14px 28px;
  font: 700 15px Roboto, Arial, sans-serif; letter-spacing: 0.04em; cursor: pointer;
}
.ww-form-panel .gform_footer input[type="submit"]:focus-visible,
.ww-form-panel .gform_footer button:focus-visible { outline: 2px solid #c6cf21; outline-offset: 2px; }
.ww-form-panel .gform_footer input[type="submit"][disabled] { opacity: 0.6; cursor: wait; }

/* spinner while the AJAX submit runs */
.ww-form-panel .gform-loader {
  display: inline-block; width: 20px; height: 20px; margin: 14px 0 0 12px;
  border: 2px solid #3b3b3b; border-top-color: #90c53d; border-radius: 50%;
  animation: ww-spin 0.8s linear infinite;
}
@keyframes ww-spin { to { transform: rotate(360deg); } }
.ww-form-panel .gform_ajax_spinner { margin: 14px 0 0 12px; }

/* honeypot must never be visible */
.gform_validation_container,
.gform_wrapper .gform_validation_container {
  display: none !important; position: absolute !important; left: -9000px !important;
}

/* validation (not in the concept, kept on-brand) */
.ww-form-panel .gform_validation_errors,
.ww-form-panel .validation_error {
  margin: 0 0 4px; padding: 14px 16px; border: 1px solid #ff8a80; color: #ff8a80; font-size: 15px; line-height: 1.5;
}
.ww-form-panel .gform_validation_errors h2 { margin: 0; font-size: 15px; font-weight: 700; }
.ww-form-panel .gform_validation_errors ol { margin: 8px 0 0; padding-left: 20px; }
.ww-form-panel .gform_validation_errors a { color: inherit; }
.ww-form-panel .gfield_validation_message,
.ww-form-panel .validation_message { color: #ff8a80; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; }
.ww-form-panel .gfield_error input:not([type="checkbox"]),
.ww-form-panel .gfield_error textarea,
.ww-form-panel .gfield_error select { border-color: #ff8a80; }
.ww-form-panel .gform_hidden { display: none; }

/* ---- FAQ ----------------------------------------------------------------- */
.ww-faq__inner {
  max-width: 880px; margin: 0 auto; padding: 96px 24px;
  display: flex; flex-direction: column; gap: 28px;
}
.ww-faq__list { border-top: 2px solid #90c53d; }
.ww-faq__item { border-bottom: 1px solid #3b3b3b; padding: 20px 0; }
.ww-faq__item summary { font-size: 19px; font-weight: 700; }
.ww-faq__answer { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #d1d1d1; }
.ww-faq__answer a { color: #90c53d; }

/* ---- Footer -------------------------------------------------------------- */
.ww-footer { border-top: 1px solid #3b3b3b; }
.ww-footer__inner {
  max-width: 1240px; margin: 0 auto; padding: 56px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
}
.ww-footer__brand { display: flex; flex-direction: column; gap: 20px; flex: 1 1 360px; }
.ww-footer__brand img { display: block; height: auto; }
.ww-footer__logo { width: 200px; }
.ww-footer__partners { width: 100%; max-width: 440px; }
.ww-footer__contact { display: flex; flex-direction: column; gap: 8px; flex: 0 1 320px; }
.ww-footer__label { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.25em; color: #90c53d; }
.ww-footer__name { margin: 0; font-size: 18px; font-weight: 700; }
.ww-footer__details { margin: 0; font-size: 15px; line-height: 1.6; }
.ww-footer__bar {
  max-width: 1240px; margin: 0 auto; padding: 20px 24px 32px; border-top: 1px solid #3b3b3b;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #a6a6a6;
}
.ww-footer__legal { display: flex; gap: 20px; }
.ww-footer__legal a { color: #a6a6a6; }

/* ---- Generic pages (page.php / index.php / 404.php) ----------------------- */
.ww-prose__inner {
  max-width: 880px; margin: 0 auto; padding: 96px 24px;
  display: flex; flex-direction: column; gap: 28px;
}
.ww-prose h1 { margin: 0; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.0; font-weight: 700; letter-spacing: -0.01em; }
.ww-prose h2 { font-size: 28px; line-height: 1.1; margin: 1.5em 0 0.5em; }
.ww-prose h3 { font-size: 22px; line-height: 1.2; margin: 1.5em 0 0.5em; }
.ww-prose p, .ww-prose li { font-size: 17px; line-height: 1.6; }
.ww-prose__body > :first-child { margin-top: 0; }
