/*
Theme Name: Blowfish Theme
Description: Final polished theme with accessibility and layout refinements
Version: 1.0
*/

:root {
  --lemon: #FEFADC;
  --sunshine-yellow: #FFF07D;
  --chartreuse: #EBD153;
  --orange-crush: #F5BE66;
  --grapefruit: #EBAD9F;
  --watermelon: #FF8068;
  --sand: #CCA16B;
  --sunburnt: #AF4524;
  --pebble: #585756;
  --deep-ocean: #3C566E;
  --ocean: #7BA1C9;
  --sky: #96C4DF;
  --pistachio: #DCDD80;
  --seafoam-blue: #7FB9A9;
  --sunset: #EB8E3F;
}

@font-face {
  font-family: 'FirstRodeo';
  src: url('fonts/FirstRodeo/FirstRodeo.woff') format('woff'),
       url('fonts/FirstRodeo/FirstRodeo.woff2') format('woff2'),
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*@font-face {
  font-family: 'Agave';
  src: url('fonts/Agave/MyFont-Bold.woff2') format('woff2'),
       url('fonts/Agave/MyFont-Bold.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
ul {
  list-style: none;
  
}
h1, h2, h3, .tagline {
  font-family: 'FirstRodeo', Arial, sans-serif;
  text-transform: uppercase;
  text-align: center;
}
h1 {
  color: var(--sunset);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}
h2 {
  color: var(--watermelon);
  font-size: 2.25rem;
  margin-top: .5rem;
  margin: 2rem 0 0;
    text-align: left;
}
h3, .tagline {
  color: var(--orange-crush);
  font-size: 1.15rem;
  margin: 2.5rem 0;
      text-align: center;
}
h3 {
  text-align: left
}
p {
  color: var(--pebble);
  line-height: 1.5rem;
}
footer {
  background-image: url('/wp-content/themes/blowfish-theme/images/icons/banner.png');
  background-repeat: repeat-x;
  background-color: var(--lemon);
  margin-top: 4rem;
}
footer p img {
  width: 33%;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-family: "calder-lc", sans-serif;
font-weight: 400;
font-style: normal;
}
* {
    transition: all 1s ease-in;
}
html, body {
  height: 100%;
  margin: 0;
  font-size: 16px;
}
.filter-drop-down {
-webkit-appearance: none;
  width:320px;font-size:13px;padding:10px;border: solid 1px #A9A9A9;color:#000000;
      margin: 1rem auto;
  border-radius: 4px;
}
/* TEXT COLORS */
.text-lemon         { color: var(--lemon); }
.text-sunshine      { color: var(--sunshine-yellow); }
.text-chartreuse    { color: var(--chartreuse); }
.text-orange-crush  { color: var(--orange-crush); }
.text-grapefruit    { color: var(--grapefruit); }
.text-watermelon    { color: var(--watermelon); }
.text-sand          { color: var(--sand); }
.text-sunburnt      { color: var(--sunburnt); }
.text-pebble        { color: var(--pebble); }
.text-deep-ocean    { color: var(--deep-ocean); }
.text-ocean         { color: var(--ocean); }
.text-sky           { color: var(--sky); }
.text-pistachio     { color: var(--pistachio); }
.text-seafoam       { color: var(--seafoam-blue); }
.text-sunset        { color: var(--sunset); }

/* BACKGROUND COLORS */
.bg-lemon           { background-color: var(--lemon); }
.bg-sunshine        { background-color: var(--sunshine-yellow); }
.bg-chartreuse      { background-color: var(--chartreuse); }
.bg-orange-crush    { background-color: var(--orange-crush); }
.bg-grapefruit      { background-color: var(--grapefruit); }
.bg-watermelon      { background-color: var(--watermelon); }
.bg-sand            { background-color: var(--sand); }
.bg-sunburnt        { background-color: var(--sunburnt); }
.bg-pebble          { background-color: var(--pebble); }
.bg-deep-ocean      { background-color: var(--deep-ocean); }
.bg-ocean           { background-color: var(--ocean); }
.bg-sky             { background-color: var(--sky); }
.bg-pistachio       { background-color: var(--pistachio); }
.bg-seafoam         { background-color: var(--seafoam-blue); }
.bg-sunset          { background-color: var(--sunset); }


.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
main {
  padding: 0;
}
a {
/*  text-decoration: none;*/
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem;
  background: black;
  color: white;
  z-index: 10000;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: var(--orange-crush);
  padding: 1rem;
  flex-direction: column;
  text-align: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: .5rem .25rem 1rem 1rem;
  width: 20%;
}

.site-logo a, .site-logo img {
  width: 100%;
  display: block;
}

.nav-toggle, .nav-close {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  padding: 3.25%;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background: white;
}

nav {
  position: fixed;
  top: 1rem;
  left: 0;
  transform: translateX(-100%);
  width: 75%;
  height: 100vh;
  background: var(--orange-crush);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 2rem 1rem;
  gap: 1rem;
  transition: transform 0.3s ease;
  z-index: 1000;
  margin-botton: 1rem;
}

nav.active {
  transform: translateX(0);
}

.nav-close {
  display: none;
}

nav.active .nav-close {
  display: block;
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-close {
    display: none !important;
  }

  nav {
    position: static;
    transform: none;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
      z-index: 1000;
      margin-bottom: 1rem;
  }

  .header-wrapper {
    flex-direction: column;
  }

  nav ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  nav ul li {
    padding: 0;
    margin: 0;
    font-family: "calder-dark", sans-serif;
font-weight: 400;
font-style: normal;
  }

  nav a {
    color: var(--pebble);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0);
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease; 
  }

  nav a:hover,
  nav a:focus {
    text-decoration: none;
    border-bottom: 2px solid var(--pebble);
  }
}


/* Base block styling */
.story-block {
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.story-block .story-link-wrapper, .story-tile .story-link-wrapper {
  margin: 2rem 0;
}

/* Responsive image */
.story-block img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Centered text link */
.story-link-wrapper {
  text-align: center;
  margin-top: 0.5rem;
}

.story-link {
  text-transform: uppercase;
  font-size: 0.9rem;
  color: inherit;
}

/* Keyboard focus styling */
.story-link:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Full-width always */
.story-full {
  width: 100%;
}

/* Half width on desktop, full on mobile (default) */
.story-half {
  width: 100%;
}

@media (min-width: 768px) {
  .story-half {
    width: 50%;
    display: block;
/*    margin-right: 2%;*/
    vertical-align: top;
    float: left;
    margin:0;
  }

/*  .story-half:nth-of-type(2n) {
    margin-right: 0;
  }*/

  .story-full {
    display: block;
  }
  .story-full-indent {
    padding: 3%;
  }
}

.story-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2%;
  margin-bottom: 6rem;
  padding: 3%;
}

.story-tile {
  width: 48%;
  margin:2rem 0;
}

.story-tile img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.story-link-wrapper {
  text-align: center;
  margin-top: 0.5rem;
}

.story-link {
  text-transform: uppercase;
  font-size: 0.9rem;
  color: inherit;
}

.story-link:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .story-tile {
    width: 23%;
  }
}

.content-wrapper {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Hide on desktop, show on mobile */
.show-mobile {
  display: block;
}

.hide-mobile {
  display: none;
}

/* Hide on mobile, show on desktop */
.show-desktop {
  display: none;
}

.hide-desktop {
  display: block;
}
@media (max-width: 767px) {
  .story-grid {
    margin-bottom: 2rem;
  }
  footer p img {
  width: 85%;
}
h3 {
  text-align: center;
}
.content-wrapper {
  width: 90%;
}
h1 {
  font-size:2.25rem;
}
    .header-wrapper {
    flex-direction: column;
    padding: 0;
  }
  .site-logo {
  margin: .5rem .25rem .25rem 1.5rem;
  width: 50%;
}

  nav ul {
    gap: 2rem;
    justify-content: left;
    padding: 0;
    margin: 1rem 0;
    list-style: none;
  }

  nav ul li {
    padding: 1rem;
    border-bottom: 1px solid var(--sunshine-yellow);
    margin: 0;
    font-family: "calder-dark", sans-serif;
font-weight: 400;
font-style: normal;
  }

  nav a {
    color: var(--pebble);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0);
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease; 
  }

/*  nav a:hover,
  nav a:focus {
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 1);
  }*/

}
/* Breakpoint toggle (adjust as needed) */
@media (min-width: 768px) {
  .show-mobile {
    display: none !important;
  }

  .hide-mobile {
    display: block !important;
  }

  .show-desktop {
    display: block !important;
  }

  .hide-desktop {
    display: none !important;
  }
}


.story-split {
  display: flex;
  align-items: center;
  gap: 2rem;              /* spacing between columns */
  /* flex-wrap: wrap;    <-- remove this */
}

.story-split-image { flex: 0 0 40%; }
.story-split-text  { flex: 1 0 50%; color: var(--pebble);}

.story-split-image img { width: 100%; height: auto; display: block; }

.story-split-text .highlight-text {
  color: var(--watermelon);
  font-weight: bold;
  text-transform: uppercase;
}
.banner-text {
  text-align: center
}
/* Mobile stack */
@media (max-width: 768px) {
  .story-split {
    flex-direction: column;    /* stack cleanly at the breakpoint */
    text-align: center;
  }
  .story-split-image,
  .story-split-text { flex: 0 0 auto; width: 85%; }

  /* Optional flip on mobile */
  .story-split.mobile-flip .story-split-text  { order: 1; }
  .story-split.mobile-flip .story-split-image { order: 2; }
}


/* Simple product grid: 2-up on mobile, 4-up on desktop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem; /* space between cards */
}
.filter-drop-down {
  width:320px;font-size:13px;padding:10px;border: solid 1px #A9A9A9;color:#000000;
      margin: 1rem auto;
  border-radius: 4px;
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Card styles */
.product-card {
  display: flex;
  padding: 7%;
  text-decoration: none;
  color: inherit;
  background-color: #fff; /* optional, for contrast */
  justify-content: end;
  flex-direction: column;
  min-height: 265px;

}

.product-card img {
  display: block;         /* removes inline baseline gap */
  width: 100%;
  height: auto;
  vertical-align: bottom; /* keeps image aligned to container bottom */
}

.product-card .product-name {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  margin-top: 1rem;
  min-height: 60px;
}

.filter-drop-down, #ff-state, #ff-city-select {
	-webkit-appearance: none;
  width:320px;font-size:13px;padding:10px;border: solid 1px #A9A9A9;color:#000000;
      margin: 1rem auto;
  border-radius: 4px;
	  background-image: url('/wp-content/themes/blowfish-theme/images/icons/arrow-down-angle.svg'); /* SVG arrow */
  background-repeat: no-repeat;
  background-position: right 10px center; /* Adjust position */
  background-size: 16px; /* Adjust size */
}

/* =========================
   Famous Footwear Store Finder Styles
   ========================= */

/* State & City dropdowns */
#ff-state,
#ff-city-select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/*.ff-stores {
  padding: 1rem;
}*/
/* Count display */
#ff-count-wrap {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

/* City select wrapper */
#ff-city-select-wrap {
  margin: 1rem 0;
}

/* City heading */
.ff-city-heading {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #ddd;
}

/* Each city group container */
.ff-city-group {
  margin-bottom: 2rem;
}

/* Grid of cards inside each city */
.ff-city-group .ff-city-list {
  display: grid;
  grid-template-columns: 1fr; /* 1 per row on mobile */
  gap: 16px;
}

@media (min-width: 900px) {
  .ff-city-group .ff-city-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 per row on desktop */
  }
}

/* Card styles */
.ff-card {
  background: #fff;
/*  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);*/
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ff-card {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.ff-card.is-hidden {
  opacity: 0;
  pointer-events: none; /* avoid clicking hidden cards */
}

.ff-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Card rows */
.ff-card__rows {
  display: grid;
  gap: 6px;
}

.ff-card__row {
  display: grid;
  grid-template-columns: 90px 1fr; /* label | value */
  align-items: start;
  gap: 8px;
}

.ff-label {
  font-weight: bold;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Values (including split hours lines) */
.ff-text {
  display: block;
  word-break: break-word;
}

.ff-text > div {
  margin: 2px 0;
}

/* Card action buttons */
.ff-card__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ff-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  color: white;
  background: var(--ocean);
  text-decoration: none;
  font-size: 0.92rem;
}

.ff-btn:hover,
.ff-btn:focus {
  background: #005f8d;
  text-decoration: none;
}

/* Back to top link */
.ff-back-top {
  margin-top: 0.5rem;
}

.ff-back-top a {
  font-size: 0.9rem;
  color: #0073aa;
  text-decoration: none;
}

.ff-back-top a:hover,
.ff-back-top a:focus {
  text-decoration: underline;
}

/* Empty / error messages */
.ff-empty,
.ff-error {
  padding: 1rem;
  border: 1px dashed #ccc;
  border-radius: 4px;
  color: #555;
  background: #fafafa;
}

/* Small screens: stack label above value */
@media (max-width: 480px) {
  .ff-card__row {
    grid-template-columns: 1fr;
  }
  .ff-label {
    margin-bottom: 0.15rem;
  }
}

/* Fade whole city sections (heading + cards) */
.ff-city-group {
  opacity: 1;
  transition: opacity 240ms ease;
  will-change: opacity;
  padding: .25rem 1rem;
}
.ff-city-group.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Fade individual cards (nice on first render / state change) */
.ff-card {
  opacity: 1;
  transition: opacity 240ms ease;
  will-change: opacity;
}
.ff-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* (Optional) small layout helper for the Show All link container */
.ff-show-all-wrap {
  margin-top: 8px;
}

