/*
 * CCBalloonFest core styles
 * Easy-find terms: main, sidebar, section, cta, btn, icon, badge, avatar
 */

:root {
  /* BRAND TOKENS — edit this single block to tune the palette. */
  --color-navy: #102b4e;
  --color-navy-deep: #081c35;
  --color-festival-red: #d7195e;
  --color-festival-red-dark: #ad1047;
  --color-golden-yellow: #f6bc2f;
  --color-turquoise: #18a9a6;
  --color-white: #ffffff;
  --color-gray-050: #f8fafc;
  --color-gray-100: #eef2f5;
  --color-gray-200: #d9e0e6;
  --color-gray-500: #687582;
  --color-ink: #1a2835;
  --color-danger: #b42318;
  --color-success: #067647;

  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --content-width: 76rem;
  --narrow-width: 52rem;
  --header-height: 6.25rem;
  --header-height-compact: 4.75rem;
  --focus-ring: 0 0 0 0.22rem rgba(24, 169, 166, 0.5);
  --shadow-low: 0 0.55rem 1.6rem rgba(8, 28, 53, 0.11);
  --shadow-high: 0 1.2rem 2.8rem rgba(8, 28, 53, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-compact) + 1rem);
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-wrap: break-word;
}

img,
picture,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1,
h2,
h3,
h4,
h5,
h6,
.nav-link,
.btn,
.eyebrow,
.badge {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.018em;
}

h1,
h2,
h3 { color: var(--color-navy-deep); line-height: 0.98; text-wrap: balance; }
h1 { margin: 0 0 1rem; font-size: clamp(3.25rem, 8vw, 6.75rem); }
h2 { margin: 0 0 1.15rem; font-size: clamp(2.45rem, 5vw, 4.35rem); }
h3 { margin: 0 0 0.7rem; font-size: clamp(1.65rem, 3vw, 2.35rem); }
h4 { color: var(--color-navy-deep); font-size: 1.35rem; }
p { margin: 0 0 1.15rem; }
ul, ol { padding-inline-start: 1.25rem; }
strong { color: var(--color-navy-deep); }

a { color: var(--color-festival-red-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--color-navy); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  border-radius: 0.08rem;
  outline: 0.16rem solid var(--color-white);
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-navy-deep);
  color: var(--color-white);
  transform: translateY(-150%);
}
.skip-link:focus { color: var(--color-white); transform: translateY(0); }

.container-site { width: min(calc(100% - 2rem), var(--content-width)); min-width: 0; margin-inline: auto; }
.container-narrow { width: min(calc(100% - 2rem), var(--narrow-width)); min-width: 0; margin-inline: auto; }

/* MAIN */
.site-main { min-height: 58vh; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.main-content { min-width: 0; }

/* Keep authored and extension output shrinkable inside grid/flex containers. */
:where(main, section, article, aside, nav, .card, .purchase-path, .footer-block) { min-width: 0; }

/* SIDEBAR — intentionally dormant until a future page assigns it. */
.sidebar { display: none; min-width: 0; }
.has-sidebar .sidebar { display: block; }
.sidebar-module { border-left: 0.35rem solid var(--color-golden-yellow); padding: 1rem 1.25rem; background: var(--color-gray-050); }

/* SECTION */
.section { position: relative; padding-block: clamp(3.75rem, 7vw, 7rem); }
.section--compact { padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.section--gray { background: var(--color-gray-050); }
.section--navy { background: var(--color-navy-deep); color: var(--color-white); }
.section--navy :where(h2, h3, strong, a) { color: var(--color-white); }
.section--yellow { background: var(--color-golden-yellow); }
.section-heading { max-width: 48rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-heading p { max-width: 42rem; font-size: 1.16rem; }
.eyebrow { margin: 0 0 0.65rem; color: var(--color-festival-red); font-size: 0.94rem; letter-spacing: 0.13em; text-transform: uppercase; }
.section--navy .eyebrow { color: var(--color-golden-yellow); }
.lede { max-width: 48rem; font-size: clamp(1.16rem, 2vw, 1.42rem); line-height: 1.5; }
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1rem; }

/* CTA / BTN */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.6rem; }
.btn {
  --bs-btn-border-radius: 0.08rem;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0.12rem solid transparent;
  border-radius: 0.08rem;
  padding: 0.72rem 1.2rem;
  font-size: 1.08rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-0.12rem); }
.btn-primary { --bs-btn-bg: var(--color-festival-red); --bs-btn-border-color: var(--color-festival-red); --bs-btn-hover-bg: var(--color-festival-red-dark); --bs-btn-hover-border-color: var(--color-festival-red-dark); background: var(--color-festival-red); color: var(--color-white); }
.btn-primary:hover { background: var(--color-festival-red-dark); color: var(--color-white); }
.btn-secondary { --bs-btn-bg: var(--color-navy); --bs-btn-border-color: var(--color-navy); background: var(--color-navy); color: var(--color-white); }
.btn-secondary:hover { background: var(--color-navy-deep); color: var(--color-white); }
.btn-outline { border-color: currentColor; background: transparent; color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }
.section--navy .btn-outline { color: var(--color-white); }
.section--navy .btn-outline:hover { background: var(--color-white); color: var(--color-navy-deep); }
.btn-link { min-height: 2.75rem; padding-inline: 0; color: var(--color-festival-red-dark); }

/* ICON / BADGE / AVATAR */
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: currentColor; }
.badge {
  --bs-badge-border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 0.08rem solid transparent;
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
}
.badge--featured, .badge--free { background: var(--color-golden-yellow); color: var(--color-navy-deep); }
.badge--balloon, .badge--morning { background: #d6f4f2; color: #075b59; }
.badge--glow, .badge--music { background: #f9dbe7; color: #86113d; }
.badge--family { background: #e9e0ff; color: #56308f; }
.badge--weather, .badge--faa, .badge--ticket { border-color: var(--color-navy); background: var(--color-white); color: var(--color-navy); }
.badge--changed { background: #fff1c7; color: #6e4b00; }
.badge--canceled { background: #fee4e2; color: var(--color-danger); text-decoration: line-through; }
.avatar { width: 3rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }

.visually-hidden-focusable:not(:focus):not(:focus-within),
.visually-hidden:not(caption) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.notice { border-left: 0.45rem solid var(--color-golden-yellow); padding: 1.2rem 1.35rem; background: #fff8e4; }
.notice--important { border-left-color: var(--color-festival-red); background: #fff1f6; }
.notice > :last-child { margin-bottom: 0; }
.breadcrumb { margin: 0; padding: 1rem 0; background: transparent; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
