/* Edge of Liberty — Clean Modern Base Styles */

:root {
  --bg: #fafafa;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --card: #ffffff;

  --radius: 10px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  border-bottom: 1px solid var(--border);
  background: white;
  padding: var(--space-md) var(--space-lg);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo constraints and brand layout */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-header .brand {
  gap: 0.5rem;
}

.site-header {
  align-items: center;
}

.brand img {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Header logo constraints */

.site-header .brand img,
header .brand img {
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Slightly smaller on mobile */
@media (max-width: 640px) {
  .site-header .brand img,
  header .brand img {
    max-height: 34px;
  }
}

header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: var(--space-md);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

h3 {
  margin-top: var(--space-lg);
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: var(--space-xs);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: var(--space-xl);
}

/* Cards (we'll use this for vendors, dates, etc.) */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: var(--space-md);
}

/* Responsive */
@media (max-width: 640px) {
  header {
    padding: var(--space-md);
  }

  main {
    padding: var(--space-lg) var(--space-md);
  }
}

.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-logo {
  display: none;
  position: absolute;
  top: 24px;
  left: 24px;
  width: 120px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.15));
}

.hero-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-tagline {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* Date page hero — A1 layout (text left, image right) */

.date-hero-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.date-hero-text {
  max-width: 620px;
}

.date-hero-text h2 {
  margin-top: 0;
}

.date-hero-media {
  width: 100%;
}

.event-hero-image {
  width: 100%;
  max-height: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Stack on mobile */
@media (max-width: 768px) {
  .date-hero-row {
    grid-template-columns: 1fr;
  }

  .date-hero-text {
    max-width: 100%;
  }

  .event-hero-image {
    max-height: 240px;
  }
}

.vendor-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 1.5rem 0;
}

.vendor-dates {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.vendor-dates h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.vendor-dates ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vendor-dates li {
  padding: 0.25rem 0;
  font-weight: 500;
}

.vendor-dates a {
  text-decoration: none;
}

.vendor-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vendor-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vendor-contact-empty {
  font-style: italic;
  color: var(--muted);
  margin: 1rem 0;
}

.vendor-section {
  margin: 2.5rem 0;
}


/* Footer social links */

.site-footer {
  text-align: center;
}

.site-footer .social-links,
.site-footer .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.site-footer .social-links a,
.site-footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}

.site-footer .social-links a:hover,
.site-footer .social-icons a:hover {
  transform: scale(1.12);
  background: rgba(37, 99, 235, 0.10);
}

/* If you used small <img> icons instead of emoji/text */
.site-footer .social-links img,
.site-footer .social-icons img {
  width: 24px;
  height: 24px;
  display: block;
}


/* Dropdown navigation */

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown .dropdown-toggle {
  font-family: inherit;
  font-size: 1rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0.4rem 0.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown .dropdown-toggle:hover,
.nav-dropdown .dropdown-toggle:focus {
  color: var(--accent);
  outline: none;
}

.dropdown-menu,
.nav-dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  min-width: 240px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 9999;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown:hover .nav-dropdown-list,
.nav-dropdown:focus-within .nav-dropdown-list {
  display: block;
}

/* Dropdown links */

.dropdown-menu a,
.nav-dropdown-list a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover,
.nav-dropdown-list a:hover,
.dropdown-menu a:focus,
.nav-dropdown-list a:focus {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  outline: none;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}

/* Mobile behavior */

@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-menu,
  .nav-dropdown-list {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    max-height: none;
  }
}
