/* Ypsilanti Heritage Festival - Custom Styles */
/* Framework: Semantic UI + Custom Festival Theme */

/* CSS Custom Properties - Festival Color Palette */
:root {
  /* Primary Colors - Festival Orange/Red */
  --festival-orange: #E95620;
  --festival-red: #B51008;
  --festival-cream: #FFF4CA;
  --festival-gold: #D4A53C;

  /* Extended Palette */
  --festival-orange-light: #FF7A45;
  --festival-orange-dark: #C44518;
  --festival-red-light: #D4231B;
  --festival-red-dark: #8A0C06;

  /* Neutrals */
  --text-dark: #2D2926;
  --text-medium: #5C524C;
  --text-light: #8A817C;
  --bg-white: #FFFFFF;
  --bg-cream: #FFF9EE;
  --bg-light: #F8F5F0;
  --border-light: #E8E2DC;

  /* Semantic */
  --success: #21BA45;
  --info: #2185D0;
  --warning: #FBBD08;
  --error: #DB2828;

  /* Typography */
  --font-heading: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  color: var(--text-dark);
}

h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.875rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--festival-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--festival-red);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Semantic UI Theme Overrides */
.ui.menu {
  border-radius: 0;
  box-shadow: var(--shadow-sm);
}

.ui.menu .item {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Custom Festival Header */
.festival-header {
  background: linear-gradient(135deg, var(--festival-orange) 0%, var(--festival-red) 100%);
  box-shadow: var(--shadow-md);
}

.festival-header .ui.menu {
  background: transparent;
  border: none;
  box-shadow: none;
}

.festival-header .ui.menu .item {
  color: rgba(255,255,255,0.9);
}

.festival-header .ui.menu .item:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.15);
}

.festival-header .ui.menu .active.item {
  color: #FFFFFF;
  background: rgba(255,255,255,0.2);
}

/* Logo Styles */
.festival-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: 0.05em;
}

.festival-logo span {
  color: var(--festival-cream);
}

/* Hero Section */
.festival-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--festival-orange) 0%, var(--festival-red) 100%);
}

.festival-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.festival-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(233,86,32,0.85) 0%, rgba(181,16,8,0.9) 100%);
}

.festival-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 900px;
}

.festival-hero-content h1 {
  color: #FFFFFF;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.festival-hero-content .lead {
  color: rgba(255,255,255,0.95);
  font-size: 1.35rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Page Hero (Smaller) */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--festival-orange) 0%, var(--festival-red) 100%);
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(233,86,32,0.75) 0%, rgba(181,16,8,0.85) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.page-hero-content h1 {
  color: #FFFFFF;
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Buttons */
.ui.button.festival-primary {
  background: var(--festival-orange);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.ui.button.festival-primary:hover {
  background: var(--festival-orange-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ui.button.festival-secondary {
  background: transparent;
  color: var(--festival-orange);
  border: 2px solid var(--festival-orange);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
}

.ui.button.festival-secondary:hover {
  background: var(--festival-orange);
  color: #FFFFFF;
}

.ui.button.festival-white {
  background: #FFFFFF;
  color: var(--festival-orange);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.ui.button.festival-white:hover {
  background: var(--festival-cream);
  transform: translateY(-2px);
}

/* Content Sections */
.section-padding {
  padding: var(--spacing-xxl) 0;
}

.section-cream {
  background: var(--bg-cream);
}

.section-light {
  background: var(--bg-light);
}

.section-orange {
  background: linear-gradient(135deg, var(--festival-orange) 0%, var(--festival-orange-dark) 100%);
  color: #FFFFFF;
}

.section-orange h2,
.section-orange h3 {
  color: #FFFFFF;
}

/* Cards */
.festival-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.festival-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.festival-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.festival-card-content {
  padding: var(--spacing-md);
}

.festival-card-content h3 {
  margin-bottom: var(--spacing-xs);
}

/* Feature Cards */
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--festival-orange);
}

.feature-card i.icon {
  color: var(--festival-orange);
  margin-bottom: var(--spacing-sm);
}

.feature-card h4 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  color: var(--text-medium);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Stats Section */
.stats-bar {
  background: var(--festival-cream);
  padding: var(--spacing-lg) 0;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--festival-orange);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--text-medium);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Timeline */
.festival-timeline {
  position: relative;
  padding-left: 2rem;
}

.festival-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--festival-orange) 0%, var(--festival-red) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--spacing-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  background: var(--festival-orange);
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.timeline-item h4 {
  color: var(--festival-orange);
  margin-bottom: 0.25rem;
}

/* Image Gallery Grid */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Info Boxes */
.info-box {
  background: var(--bg-cream);
  border-left: 4px solid var(--festival-orange);
  padding: var(--spacing-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--spacing-md);
}

.info-box h4 {
  color: var(--festival-orange);
  margin-bottom: var(--spacing-xs);
}

/* Lists */
.festival-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.festival-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.festival-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--festival-orange);
}

/* Content List with Icons */
.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.icon-list li i {
  color: var(--festival-orange);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  width: 20px;
  text-align: center;
}

/* Footer */
.festival-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.festival-footer h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.festival-footer a {
  color: rgba(255,255,255,0.7);
}

.festival-footer a:hover {
  color: var(--festival-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-orange { color: var(--festival-orange); }
.text-red { color: var(--festival-red); }
.text-white { color: #FFFFFF; }
.text-muted { color: var(--text-light); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }

  .festival-hero-content h1 {
    font-size: 2.25rem;
  }

  .festival-hero-content .lead {
    font-size: 1.1rem;
  }

  .page-hero-content h1 {
    font-size: 2rem;
  }

  .section-padding {
    padding: var(--spacing-xl) 0;
  }

  .stat-number {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .festival-hero {
    min-height: 60vh;
  }

  .page-hero {
    min-height: 35vh;
  }

  .festival-hero-content h1 {
    font-size: 1.875rem;
  }
}

/* Semantic UI Grid Fixes */
.ui.grid > .column:not(.row) {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

/* Content Area */
.content-area {
  max-width: 900px;
  margin: 0 auto;
}

.content-area p {
  font-size: 1.05rem;
}

/* Inline Image */
.inline-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-lg) 0;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--festival-orange) 0%, var(--festival-red) 100%);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: var(--spacing-md);
}

/* Breadcrumb */
.ui.breadcrumb {
  background: transparent;
  padding: var(--spacing-sm) 0;
}

.ui.breadcrumb a {
  color: var(--festival-orange);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--festival-red);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
  }

  .mobile-nav .ui.menu {
    flex-direction: column;
  }

  .mobile-nav .ui.menu .item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* Print Styles */
@media print {
  .festival-header,
  .festival-footer,
  .cta-section {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
