/* elalambretickets — minimal flex layout */
:root {
  --color-primary: #e2590f;
  --color-primary-hover: #c44d0c;
  --color-text: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.73);
  --color-bg: #ffffff;
  --color-bg-alt: #f5f0ed;
  --color-border: #e0d7d2;
  --color-accent-light: #cbd5e1;
  --font-body:
    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-width: 1200px;
  --header-height: 72px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

a:hover,
a:focus {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
  text-decoration: none;
}

.nav-list > li.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 200;
}

.nav-list > li.has-dropdown:hover .submenu,
.nav-list > li.has-dropdown.open .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 400;
  text-decoration: none;
}

.submenu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  text-decoration: none;
}

/* Main content */
.site-main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.page-content {
  color: var(--color-text-muted);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: var(--color-text);
}

.page-content p {
  margin: 0 0 1rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.page-content li {
  margin-bottom: 0.35rem;
}

/* Homepage hero */
.hero {
  background: var(--color-bg-alt);
  padding: 3rem 2rem;
  margin-bottom: 2.5rem;
  border-radius: 0;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 48rem;
}

.home-section {
  margin-bottom: 2.5rem;
}

.home-section h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.home-section h3 {
  font-size: 1.375rem;
  margin: 0 0 1rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
}

.home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.home-grid > * {
  flex: 1 1 280px;
}

.home-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.home-feature {
  flex: 1 1 200px;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: 4px;
}

.home-feature h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-text);
}

.home-feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.home-cta {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: 4px;
}

.home-cta a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
}

.home-cta a:hover {
  background: var(--color-primary-hover);
  color: #fff;
  text-decoration: none;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  box-sizing: border-box;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-item a:hover img {
  transform: scale(1.02);
}

.gallery-grid-preview {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .gallery-grid,
  .gallery-grid-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid,
  .gallery-grid-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery-item {
    aspect-ratio: 3 / 4;
  }
}

/* Blog listing */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.blog-card {
  flex: 1 1 300px;
  max-width: 100%;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.blog-card-header {
  margin-bottom: 0.75rem;
}

.blog-title {
  margin: 0;
  font-size: 1.125rem;
}

.blog-title a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--color-primary);
}

.blog-preview p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-copy {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-list > li > a {
    padding: 0.75rem 1rem;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-border);
    margin-left: 1rem;
    padding: 0;
  }

  .nav-list > li.has-dropdown:hover .submenu {
    display: none;
  }

  .nav-list > li.has-dropdown.open .submenu {
    display: block;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2rem 1rem;
  }
}
