/*
Theme Name: Fun Flavor Zone
Theme URI: https://funflavorzone.com/
Author: Fun Flavor Zone LLC
Description: The Fun Flavor Zone website: pages, photos, header, footer and styling in one theme. Built from the funflavorzone repository (npm run build:theme). A child of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.7
Requires at least: 6.7
License: GNU General Public License v2 or later
Text Domain: funflavorzone
*/

/* Luckiest Guy (Apache License 2.0), bundled with the theme. */
@font-face {
  font-family: 'Luckiest Guy';
  src: url('assets/fonts/luckiest-guy.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

/* Page area: always at least 16px of side space (phones), and the content
   wrapper as wide as the cards (they limit themselves to 960px). */
.ffz-main.ffz-main {
  padding-left: max(16px, var(--wp--style--root--padding-left, 0px));
  padding-right: max(16px, var(--wp--style--root--padding-right, 0px));
}
.ffz-main > .ffz-content { max-width: none; }

/*
 * Fun Flavor Zone: WordPress Additional CSS (whole site).
 * Paste all of this into Appearance -> Editor -> Styles -> (three dots) ->
 * Additional CSS. Steps and notes: docs/build-guide.md, Part 5.
 * Written for the Twenty Twenty-Five theme and the page files in pages/.
 */

/* Brand colors and fonts. Luckiest Guy is installed with WordPress's Font
   Library (build guide); Manrope comes with the theme. */
:root {
  --ffz-yellow: #FFC21A;
  --ffz-ink: #1A1A1A;
  --ffz-white: #FFFFFF;
  --ffz-red: #E0262E;
  --ffz-orange: #F7871F;
  --ffz-green: #2BA84A;
  --ffz-blue: #1F6FD1;
  --ffz-purple: #7B3FBF;
  --ffz-pink: #E94E9B;
  --ffz-heading: 'Luckiest Guy', 'Arial Black', system-ui, sans-serif;
  --ffz-body: 'Manrope', system-ui, sans-serif;
}

body {
  background: var(--ffz-yellow);
  color: var(--ffz-ink);
  font-family: var(--ffz-body);
}
/* The theme's text is extra-light (300), which makes bold barely show and
   reads thin on yellow. The owner asked for bolder, easier-to-read text
   (Oct 21, 2026; a smidge more after reading it on her phone): bold body
   text, at least 21px in the page cards, and extra-bold for bold. */
body, p, li { font-weight: 700; }
strong, b { font-weight: 800; }
:is(.wp-block-post-content, .ffz-content) :is(p, li) { font-size: max(1.3125rem, 1em); line-height: 1.6; }
a { color: var(--ffz-ink); }

/* Headings in the playful logo-style font. */
h1, h2, h3,
.wp-block-post-title,
.wp-block-site-title {
  font-family: var(--ffz-heading);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

/* Each page section is a white card with a thick outline and a colored
   offset shadow that cycles through the rainbow. */
:is(.wp-block-post-content, .ffz-content) > section.wp-block-group {
  box-sizing: border-box;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  margin-block-start: 40px;
  background: var(--ffz-white);
  border: 4px solid var(--ffz-ink);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 56px);
  box-shadow: 8px 8px 0 var(--ffz-ink);
}
:is(.wp-block-post-content, .ffz-content) > section.wp-block-group:nth-of-type(6n+2) { box-shadow: 8px 8px 0 var(--ffz-red); }
:is(.wp-block-post-content, .ffz-content) > section.wp-block-group:nth-of-type(6n+3) { box-shadow: 8px 8px 0 var(--ffz-blue); }
:is(.wp-block-post-content, .ffz-content) > section.wp-block-group:nth-of-type(6n+4) { box-shadow: 8px 8px 0 var(--ffz-green); }
:is(.wp-block-post-content, .ffz-content) > section.wp-block-group:nth-of-type(6n+5) { box-shadow: 8px 8px 0 var(--ffz-purple); }
:is(.wp-block-post-content, .ffz-content) > section.wp-block-group:nth-of-type(6n+6) { box-shadow: 8px 8px 0 var(--ffz-orange); }
:is(.wp-block-post-content, .ffz-content) > section.wp-block-group > * { max-width: 820px; }

/* Page titles (Our Bus, Menu, Book an Event, Contact): big, left-aligned
   and the same width as the cards, so the title starts at the cards' left
   edge. (Doubled class to beat the theme's narrower column.) */
.wp-block-post-title.wp-block-post-title {
  box-sizing: border-box;
  max-width: 960px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left;
  font-size: clamp(44px, 7vw, 64px);
}

/* Home page: the first section is the welcome area, straight on the
   yellow with no card. */
.home :is(.wp-block-post-content, .ffz-content) > section.wp-block-group:first-of-type {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-block-start: 0;
}

/* Tagline "Where FUN & FLAVOR COLLIDE with SNOWIE SHAVED ICE!": big black
   logo-style letters, with FUN, FLAVOR and SNOWIE each carrying one rainbow
   across the whole word (owner's pick, Oct 22, 2026; no black band). On the
   yellow page and white cards a bright rainbow nearly disappears (1.0-3.3:1),
   so the pages use a deep rainbow without yellow (3.2:1 or more on yellow,
   5.2:1 or more on white). The footer is black, so it keeps the bright rainbow (see Footer). */
:is(.wp-block-post-content, .ffz-content) p.ffz-tagline {
  font-family: var(--ffz-heading);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.25;
  letter-spacing: 1.5px;
  color: var(--ffz-ink);
}
/* Without rainbow-text support the rainbow words show in one solid color. */
.ffz-tagline .ffz-rainbow { color: #1453B8; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ffz-tagline .ffz-rainbow {
    /* Each color stays pure for most of the word with quick fades between:
       a smooth dark fade passes through muddy olive (dark yellow). */
    background: linear-gradient(90deg, #C8102E 0 14%, #B84A00 26% 34%, #137A2E 46% 54%,
      #1453B8 66% 74%, #6A2BB0 86% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
/* High-contrast mode replaces the colors; keep the words plain and solid. */
@media (forced-colors: active) {
  .ffz-tagline .ffz-rainbow { color: CanvasText; background: none; }
}

/* Bullets in brand colors, cycling through the rainbow. */
:is(.wp-block-post-content, .ffz-content) ul.wp-block-list li::marker { color: var(--ffz-red); font-size: 1.35em; }
:is(.wp-block-post-content, .ffz-content) ul.wp-block-list li:nth-child(6n+2)::marker { color: var(--ffz-orange); }
:is(.wp-block-post-content, .ffz-content) ul.wp-block-list li:nth-child(6n+3)::marker { color: var(--ffz-green); }
:is(.wp-block-post-content, .ffz-content) ul.wp-block-list li:nth-child(6n+4)::marker { color: var(--ffz-blue); }
:is(.wp-block-post-content, .ffz-content) ul.wp-block-list li:nth-child(6n+5)::marker { color: var(--ffz-purple); }
:is(.wp-block-post-content, .ffz-content) ul.wp-block-list li:nth-child(6n+6)::marker { color: var(--ffz-pink); }

/* Menu: each flavor's bullet in its own color (wins over the cycle above). */
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li::marker { font-size: 1.35em; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-red::marker { color: #D7263D; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-darkred::marker { color: #8B1A2B; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-pink::marker { color: #EC6A9E; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-lightblue::marker { color: #4FB3E8; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-blue::marker { color: #1F6FD1; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-purple::marker { color: #7B3FBF; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-orange::marker { color: #F7871F; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-gold::marker { color: #E0A800; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-lime::marker { color: #8DC63F; }
:is(.wp-block-post-content, .ffz-content) ul.ffz-flavors li.ffz-dot-green::marker { color: #2E9E44; }

/* Buttons: black pills; the outline style is white with a black border. */
.wp-block-button__link {
  border: 3px solid var(--ffz-ink);
  border-radius: 999px;
  font-weight: 800;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--ffz-ink);
  color: var(--ffz-white);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--ffz-white);
  color: var(--ffz-ink);
}

/* Photos inside the cards: rounded with an outline and a pink shadow. */
:is(.wp-block-post-content, .ffz-content) .wp-block-column .wp-block-image img {
  border: 4px solid var(--ffz-ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ffz-pink);
}
/* Cut-out photos (see-through background, like the Menu's Flower Cup): no frame. */
:is(.wp-block-post-content, .ffz-content) .wp-block-column .wp-block-image.ffz-cutout img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
/* Home photo gallery: rounded squares. Every photo shows square (even ones
   that are not cropped square), and a short last row stays normal size,
   centered, instead of stretching across the page. */
:is(.wp-block-post-content, .ffz-content) .wp-block-gallery .wp-block-image img {
  border: 3px solid var(--ffz-ink);
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
:is(.wp-block-post-content, .ffz-content) .wp-block-gallery.has-nested-images {
  justify-content: center;
}
:is(.wp-block-post-content, .ffz-content) .wp-block-gallery.has-nested-images figure.wp-block-image {
  flex-grow: 0;
}

/* Header: logo left and menu right on computers; centered and stacked on
   phones. Needs the ffz-header class on the header row (build guide). */
@media (max-width: 599px) {
  .ffz-header.ffz-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* Menu bar: bold links, the current page underlined, "Book an Event" as a
   black pill (it has the ffz-pill class in parts/header.html). */
.ffz-nav { font-weight: 800; font-size: 18px; gap: 8px 28px; }
.ffz-nav a.wp-block-navigation-item__content.wp-block-navigation-item__content { color: var(--ffz-ink); }
.ffz-nav .current-menu-item > a {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}
/* WordPress colors menu links with a double-class rule, so the pill needs
   an equally specific one or its white text turns black on black. */
.ffz-nav .ffz-pill > a.wp-block-navigation-item__content.wp-block-navigation-item__content,
.ffz-nav .ffz-pill > a .wp-block-navigation-item__label {
  color: var(--ffz-white);
}
.ffz-nav .ffz-pill > a {
  background: var(--ffz-ink);
  border-radius: 999px;
  padding: 10px 22px;
}

/* Footer: dark band with yellow links (parts/footer.html). */
.ffz-footer { background: var(--ffz-ink); color: var(--ffz-white); }
.ffz-footer a { color: var(--ffz-yellow); }
.ffz-footer p { margin: 0 0 12px; }
.ffz-footer .ffz-footer-name {
  font-family: var(--ffz-heading);
  font-size: 30px;
  line-height: 1.2;
  color: var(--ffz-yellow);
}
/* One rainbow across the whole name (owner, Oct 22, 2026); yellow without
   rainbow-text support. The name is only as wide as its text, so the whole
   rainbow fits across it. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ffz-footer .ffz-footer-name {
    width: fit-content;
    background: linear-gradient(90deg, #FF4D4D, #FF9F1C, #FFE94D, #3BE36A, #4DB8FF, #C47BFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .ffz-footer .ffz-footer-name { color: CanvasText; background: none; }
}
.ffz-footer p.ffz-tagline {
  font-family: var(--ffz-heading);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: 1px;
  color: var(--ffz-white);
}
/* On the black footer: white words and the bright rainbow (5.3:1 or more). */
.ffz-footer .ffz-tagline .ffz-rainbow { color: #FFE94D; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ffz-footer .ffz-tagline .ffz-rainbow {
    background-image: linear-gradient(90deg, #FF4D4D, #FF9F1C, #FFE94D, #3BE36A, #4DB8FF, #C47BFF);
    color: transparent;
  }
}
.ffz-footer .ffz-footer-legal { font-size: 14px; opacity: 0.75; margin-top: 16px; }

/* Booking form (the theme's own form on Book an Event). */
.ffz-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin: 8px 0 24px;
  padding: clamp(20px, 4vw, 32px);
  background: #FFFBEA;
  border: 3px solid var(--ffz-ink);
  border-radius: 22px;
}
.ffz-form .ffz-field { margin: 0 0 12px; }
.ffz-form .ffz-field-location,
.ffz-form .ffz-field-message,
.ffz-form .ffz-submit,
.ffz-form .ffz-form-error { grid-column: 1 / -1; }
.ffz-form label { display: block; font-weight: 800; margin-bottom: 6px; }
.ffz-form .ffz-req { color: var(--ffz-red); }
.ffz-form input,
.ffz-form select,
.ffz-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ffz-ink);
  background: var(--ffz-white);
  border: 2px solid var(--ffz-ink);
  border-radius: 12px;
}
.ffz-form input:focus,
.ffz-form select:focus,
.ffz-form textarea:focus { outline: 3px solid var(--ffz-blue); outline-offset: 2px; }
.ffz-form .ffz-submit { margin: 4px 0 0; }
.ffz-form button {
  min-height: 52px;
  padding: 0 32px;
  font: inherit;
  font-weight: 800;
  color: var(--ffz-white);
  background: var(--ffz-ink);
  border: 3px solid var(--ffz-ink);
  border-radius: 999px;
  cursor: pointer;
}
.ffz-form .ffz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ffz-form-note { padding: 14px 18px; border: 3px solid var(--ffz-ink); border-radius: 16px; }
.ffz-form-sent { background: #E7F6EC; margin: 8px 0 24px; }
.ffz-form-error { background: #FDECEC; margin: 0 0 12px; }
@media (max-width: 599px) {
  .ffz-form { grid-template-columns: 1fr; }
}
