/* ===== Creative Arts Festival — Global Styles (Tate-inspired) ===== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal: #008B8B;
  --teal-light: #00B4B6;
  --teal-dark: #006B6B;
  --cyan-accent: #00BFFF;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --grey-light: #e9ecef;
  --grey: #6c757d;
  --grey-dark: #343a40;
  --black: #1a1a1a;
  --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bungee Shade', 'Bungee', cursive;
  --max-width: 1280px;
  --nav-height: 50px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--black); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* Display font for festival branding — matches flyer heading style */
.brand-title {
  font-family: var(--font-display);
  color: var(--teal);
  letter-spacing: 1px;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

/* ---------- Navigation (Tate-style: links left, brand center, actions right) ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  z-index: 1000;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.navbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

/* Left: nav links */
.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-left > li { position: relative; }
.nav-left > li > a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 0.4rem 0;
  transition: color 0.2s;
  color: var(--black);
}
.nav-left > li > a:hover,
.nav-left > li > a.active { color: var(--teal); }

/* Center: brand */
.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.nav-brand img { height: 28px; width: auto; }
.nav-brand span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--teal);
  white-space: nowrap;
}

/* Right: search + support */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--grey);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-search:hover { color: var(--black); }
.nav-search svg { width: 18px; height: 18px; }
.nav-support {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  padding: 0.4rem 1rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.nav-support:hover { background: var(--teal-dark); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--grey-light);
  min-width: 180px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.nav-left > li:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  transition: background 0.15s;
  color: var(--black);
}
.dropdown-menu a:hover { background: var(--off-white); color: var(--teal); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 0.3rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--black); transition: 0.3s; }

/* ---------- Hero (Split: text left, image right with blend) ---------- */
.hero {
  margin-top: var(--nav-height);
  background: var(--white);
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  min-height: 500px;
  position: relative;
}
.hero-content {
  grid-column: 1 / 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 4rem;
  color: var(--black);
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: var(--black);
}
.hero-content p {
  font-size: 1rem;
  color: var(--grey-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.hero-content .hero-link {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  align-self: flex-start;
}
.hero-content .hero-link:hover { opacity: 0.7; }
.hero-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: var(--teal);
  font-weight: 600;
}
.hero-tagline {
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  color: var(--teal-dark);
}
.hero-image {
  grid-column: 2 / 4;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero-image .hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Soft fade/blend from image into text side */
.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  background: linear-gradient(to right, var(--white) 0%, rgba(255,255,255,0.7) 35%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-image .hero-banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4e8e8 0%, #a8d5d5 50%, #7cc4c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image .hero-banner-placeholder span {
  font-size: 6rem;
  opacity: 0.08;
  color: var(--black);
}
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    grid-column: 1;
    padding: 2rem 1.5rem;
  }
  .hero-image {
    grid-column: 1;
    grid-row: auto;
    min-height: 300px;
  }
  .hero-image::before {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: all 0.25s;
  text-align: center;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); margin-left: 0.8rem; }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--grey-dark); }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
section.bg-light { background: var(--off-white); }

/* ---------- Exhibition Carousel (Tate-style: horizontal scrolling cards) ---------- */
.exhibitions-section { padding: 4rem 0; }
.exhibitions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.exhibitions-header h2 { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 0.5rem; }
.carousel-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  color: var(--black);
}
.carousel-btn:hover {
  background: var(--black);
  color: var(--white);
}

.exhibitions-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.exhibitions-carousel::-webkit-scrollbar { display: none; }

.exhibition-card {
  min-width: 420px;
  max-width: 500px;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.exhibition-card:hover { opacity: 0.85; }
.exhibition-card-image {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--grey-light);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exhibition-card-image .placeholder-art { font-size: 3rem; opacity: 0.1; }
.exhibition-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--black);
}
.exhibition-card p {
  font-size: 0.9rem;
  color: var(--grey-dark);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.exhibition-card .exhibition-meta {
  font-size: 0.8rem;
  color: var(--grey);
}

/* ---------- Featured Artwork ---------- */
.featured-artwork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}
.artwork-image {
  overflow: hidden;
  background: var(--grey-light);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artwork-image .placeholder-art { font-size: 5rem; color: var(--teal); opacity: 0.15; }
.artwork-info h3 { margin-bottom: 0.5rem; }
.artwork-info .artist { color: var(--grey); margin-bottom: 1rem; font-size: 0.95rem; }
.artwork-info .category-tag {
  display: inline-block;
  background: rgba(0,139,139,0.1);
  color: var(--teal);
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.artwork-info p { color: var(--grey-dark); }

/* ---------- Category Grid ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.25s;
}
.category-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.category-card .icon { font-size: 2rem; margin-bottom: 0.8rem; }
.category-card h4 { color: var(--black); font-size: 0.95rem; }

/* ---------- Partners Strip ---------- */
.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 0;
}
.partners img { height: 80px; width: auto; opacity: 0.7; transition: opacity 0.3s; }
.partners img:first-child { height: 180px; }
.partners img:hover { opacity: 1; }

/* ---------- Page Header ---------- */
.page-header {
  margin-top: var(--nav-height);
  padding: 3rem 0 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
}
.page-header h1 { margin-bottom: 0.5rem; color: var(--black); }
.page-header p { color: var(--grey); font-size: 1.05rem; max-width: 600px; }
.breadcrumb { margin-bottom: 0.8rem; font-size: 0.8rem; color: var(--grey); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---------- Content Grid ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  overflow: hidden;
  transition: all 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card-image {
  aspect-ratio: 4/3;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-image .placeholder-art { font-size: 3rem; opacity: 0.12; }
.card-body { padding: 1.2rem; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--black); }
.card-body .meta { font-size: 0.8rem; color: var(--grey); margin-bottom: 0.5rem; }
.card-body p { font-size: 0.88rem; color: var(--grey-dark); }

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  aspect-ratio: 1;
  background: var(--grey-light);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,139,139,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 700;
}
.team-card h3 { color: var(--black); font-size: 1.1rem; margin-bottom: 0.3rem; }
.team-card .role { color: var(--teal); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.team-card .bio {
  color: var(--grey-dark);
  font-size: 0.88rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-light);
  line-height: 1.6;
  text-align: left;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  padding: 2rem;
  position: relative;
  transition: all 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.testimonial-card::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card .quote {
  font-size: 0.95rem;
  color: var(--grey-dark);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  padding-top: 1.5rem;
  font-style: italic;
}
.testimonial-card .testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
}
.testimonial-card .testimonial-role {
  font-size: 0.8rem;
  color: var(--grey);
}

/* ---------- Support / CTA ---------- */
.support-section {
  text-align: center;
  padding: 4rem 0;
}
.support-section h2 { color: var(--black); }
.support-section p { max-width: 600px; margin: 1rem auto 2rem; color: var(--grey-dark); }
.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.support-card {
  border: 2px solid var(--grey-light);
  padding: 2.5rem 2rem;
  transition: all 0.25s;
}
.support-card:hover { border-color: var(--teal); }
.support-card h3 { margin-bottom: 0.5rem; }
.support-card p { font-size: 0.9rem; color: var(--grey); }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 { font-size: 0.9rem; margin-bottom: 1rem; color: var(--white); }
.footer p, .footer a { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--white); }
.footer ul li { margin-bottom: 0.4rem; }
.footer-brand p { margin-top: 0.8rem; line-height: 1.7; }
.footer-logos { display: flex; gap: 1.5rem; margin-top: 1rem; }
.footer-logos img { height: 40px; filter: brightness(0) invert(1); opacity: 0.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Events List ---------- */
.events-list { margin-top: 2rem; }
.event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey-light);
}
.event-date {
  text-align: center;
  background: var(--black);
  color: var(--white);
  padding: 0.8rem;
  align-self: start;
}
.event-date .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.event-details h3 { margin-bottom: 0.2rem; color: var(--black); }
.event-details .meta { color: var(--grey); font-size: 0.82rem; margin-bottom: 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .navbar .container { grid-template-columns: auto 1fr auto; }
  .nav-left {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 999;
  }
  .nav-left.open { transform: translateX(0); }
  .nav-left > li { width: 100%; border-bottom: 1px solid var(--grey-light); }
  .nav-left > li > a { display: block; padding: 0.8rem 0; font-size: 1rem; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .nav-left > li:hover .dropdown-menu,
  .nav-left > li.open .dropdown-menu { display: block; }
  .nav-toggle { display: flex; }
  .nav-brand { justify-content: center; }
  .nav-search span { display: none; }
}

@media (max-width: 768px) {
  .hero-banner { min-height: 350px; }
  .hero-content h1 { font-size: 1.6rem; }
  .featured-artwork { grid-template-columns: 1fr; }
  .exhibitions-carousel { gap: 1rem; }
  .exhibition-card { min-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-item { grid-template-columns: 70px 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .partners { flex-direction: column; gap: 2rem; }
  .exhibition-card { min-width: 280px; }
}
