/*
Theme Name: The Waterpark Store
Theme URI: https://www.waterparkstore.com/
Author: The Waterpark Store
Description: Initial Waterpark Store theme with a sticky header, safe-fit homepage hero, and reading-focused editorial layout.
Version: 1.0.0
Text Domain: waterpark-store
*/

:root {
  --tws-navy: #061a35;
  --tws-navy-deep: #020b18;
  --tws-blue: #188fd0;
  --tws-blue-bright: #46bded;
  --tws-gold: #b27a10;
  --tws-gold-light: #f0c65d;
  --tws-cream: #f7f1df;
  --tws-ink: #111b27;
  --tws-page: #fbfaf6;
  --tws-content: 820px;
  --tws-wide: 1180px;
  --tws-header-edge: clamp(24px, 3.25vw, 52px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  color: var(--tws-ink);
  background: var(--tws-page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}
a { color: #0b69a8; }
a:hover, a:focus-visible { color: #084f7f; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(178,122,16,.34);
  box-shadow: 0 5px 18px rgba(6,26,53,.10);
}
body.admin-bar .site-header { top: 32px; }
.header-inner {
  width: calc(100% - (2 * var(--tws-header-edge)));
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-branding {
  flex: 0 0 250px;
  width: 250px;
  height: 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.site-branding a {
  display: flex;
  width: 250px;
  height: 92px;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
}
.site-logo {
  display: block;
  width: 250px;
  height: 92px;
  max-width: 250px;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}
.header-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  column-gap: 18px;
}
.tws-header-search {
  width: min(490px,100%);
  max-width: 490px;
  margin: 0;
  justify-self: center;
}
.tws-header-search-control {
  display: grid;
  grid-template-columns: 1fr 46px;
  overflow: hidden;
  border: 1px solid rgba(6,26,53,.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(6,26,53,.05);
}
.tws-header-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 4px 10px 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tws-ink);
  font: inherit;
}
.tws-header-search button {
  border: 0;
  background: transparent;
  color: var(--tws-gold);
  font-size: 1.45rem;
  cursor: pointer;
}
.tws-header-search-control:focus-within {
  border-color: var(--tws-blue);
  box-shadow: 0 0 0 3px rgba(24,143,208,.13);
}
.primary-navigation { min-width: max-content; justify-self: end; }
.primary-navigation ul,
.primary-navigation .menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation a {
  display: inline-block;
  padding: 14px 0;
  color: var(--tws-gold);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .18s ease, text-shadow .18s ease;
}
.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation .current-menu-item > a {
  color: var(--tws-navy);
  text-shadow: 0 0 10px rgba(70,189,237,.45);
  outline: none;
}

.tws-home-hero-stage {
  width: 100%;
  padding: 18px 0 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(31,93,151,.34), transparent 46%),
    var(--tws-navy-deep);
}
.tws-home-hero {
  width: 94%;
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.tws-home-hero img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
@supports (height: 1svh) {
  .tws-home-hero img { max-height: 78svh; }
}

.tws-home-intro,
.content-shell {
  width: min(var(--tws-content), calc(100% - 40px));
  margin: 0 auto;
}
.tws-home-intro { padding: 66px 0 78px; }
.content-shell { padding: 64px 0 78px; }
.content-shell.wide { width: min(var(--tws-wide), calc(100% - 40px)); }
.tws-kicker {
  margin: 0 0 7px;
  color: var(--tws-gold);
  font-family: "Bungee", Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.tws-home-intro h1,
.page-title,
.blog-title,
.entry-title {
  margin: 0;
  color: var(--tws-navy);
  font-family: "Russo One", "Tauri", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.08;
}
.tws-home-intro h1 { margin-bottom: 20px; font-size: clamp(2.35rem,5vw,4.4rem); }
.page-title,
.blog-title { margin-bottom: 32px; font-size: clamp(2.2rem,5vw,4rem); }
.entry-title { margin-bottom: 17px; font-size: clamp(1.6rem,3vw,2.35rem); }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover,
.entry-title a:focus-visible { color: #0b69a8; }
.tws-home-lede {
  margin: 0;
  color: #314151;
  font-size: clamp(1.12rem,2.2vw,1.38rem);
  line-height: 1.62;
}
.tws-home-section {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid rgba(6,26,53,.14);
}
.tws-home-section h2 {
  margin: 0 0 13px;
  color: var(--tws-navy);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-size: clamp(1.55rem,3vw,2.15rem);
  line-height: 1.18;
}
.tws-home-section p { margin: 0; }
.tws-research-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-top: 22px;
}
.tws-research-card {
  padding: 20px;
  border: 1px solid rgba(6,26,53,.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(6,26,53,.055);
}
.tws-research-card strong {
  display: block;
  color: var(--tws-navy);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.06rem;
}
.tws-research-card span { display: block; margin-top: 4px; color: #65717d; font-size: .9rem; }
.tws-home-current-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  border: 1px solid var(--tws-gold);
  border-radius: 8px;
  color: var(--tws-navy);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  text-decoration: none;
}
.tws-home-current-link:hover,
.tws-home-current-link:focus-visible {
  border-color: var(--tws-blue);
  color: #0b69a8;
  outline: none;
}

.blog-grid { display: grid; gap: 30px; }
.post-card {
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(6,26,53,.11);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(6,26,53,.07);
}
.entry-meta { margin: -5px 0 18px; color: #667381; font-size: .92rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 8px; }
.read-more { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; }
.pagination, .nav-links { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 7px 12px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(6,26,53,.14);
}
.page-numbers.current { color: #fff; background: var(--tws-navy); }

.site-footer {
  color: rgba(255,255,255,.74);
  background: var(--tws-navy-deep);
  border-top: 1px solid rgba(178,122,16,.32);
}
.footer-inner {
  width: min(var(--tws-content),calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  text-align: center;
  font-size: .88rem;
}
.footer-brand {
  margin: 0 0 4px;
  color: #fff;
  font-family: "Russo One", "Tauri", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}
.site-info { margin: 0; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .header-inner {
    width: calc(100% - 40px);
    min-height: 0;
    padding: 18px 0 16px;
    flex-direction: column;
    gap: 8px;
  }
  .site-branding { width: min(410px,92vw); height: 80px; justify-content: center; }
  .site-branding a { width: 100%; height: 80px; justify-content: center; }
  .site-logo { width: min(250px,92vw); height: 80px; max-width: min(250px,92vw); max-height: 80px; object-position: center; }
  .header-main { width: 100%; display: flex; flex-direction: column; gap: 8px; }
  .tws-header-search { width: 100%; max-width: none; }
  .primary-navigation { width: 100%; min-width: 0; }
  .primary-navigation ul,
  .primary-navigation .menu { justify-content: center; flex-wrap: wrap; gap: 8px 28px; }
  .primary-navigation a { padding: 8px 0; }
  .tws-home-hero { width: 100%; }
  .tws-home-hero-stage { padding: 0; }
  .tws-home-intro,
  .content-shell { padding-top: 48px; padding-bottom: 58px; }
}
@media (max-width: 640px) {
  .tws-research-grid { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
