/*
Theme Name: Vienna Coffee Festival
Theme URI: https://viennacoffeefestival.cc
Author: Lefor Oberbauer
Description: Custom theme for the Vienna Coffee Festival website
Version: 2.0
*/

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --vcf-yellow: #d4c800;
  --vcf-black: #1a1a1a;
  --vcf-white: #ffffff;
  --vcf-pink: #e8195a;
  --vcf-cyan: #00b4d8;
  --vcf-orange: #e87722;
  --vcf-dark: #111111;
  --vcf-gray: #f5f5f5;
  --vcf-text: #2a2a2a;
  --font-main: 'Arial', sans-serif;
  --section-pad: 80px 40px;
}

body {
  font-family: var(--font-main);
  color: var(--vcf-text);
  background: var(--vcf-white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ========================================
   SECTION HEADINGS (FESTIVAL__XXXX style)
======================================== */
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  white-space: nowrap;
}
.section-title::before,
.section-title::after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  max-width: 200px;
  background: var(--vcf-black);
}
.section-title strong { font-weight: 900; }

/* ========================================
   HEADER
======================================== */
#site-header {
  background: var(--vcf-yellow);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  color: var(--vcf-black);
}
.site-logo a { color: var(--vcf-black); }

#primary-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
#primary-nav ul li a {
  font-size: 0.95rem;
  color: var(--vcf-black);
  font-weight: 500;
  transition: opacity 0.2s;
}
#primary-nav ul li a:hover { opacity: 0.6; }

.header-social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-social a img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}
.header-social a svg {
  width: 34px;
  height: 34px;
}

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--vcf-black);
}

/* ========================================
   HERO
======================================== */
#hero {
  position: relative;
  min-height: 580px;
  background-color: var(--vcf-yellow);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-center-image {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-center-image img {
  max-width: 420px;
  width: 90%;
}
.hero-date {
  position: absolute;
  bottom: 80px;
  left: 15%;
  z-index: 3;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  color: var(--vcf-cyan);
}
.hero-date .year { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--vcf-cyan); }
.hero-date .date-text { color: var(--vcf-pink); }

.hero-location {
  position: absolute;
  bottom: 80px;
  right: 10%;
  z-index: 3;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.2;
  text-align: right;
  color: var(--vcf-pink);
}
.hero-location .label { color: var(--vcf-cyan); }

/* ========================================
   WELCOME / CTA SECTION
======================================== */
#welcome {
  padding: var(--section-pad);
  text-align: center;
  background: var(--vcf-white);
}
.welcome-cta-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}
.welcome-bg-image {
  max-width: 800px;
  width: 100%;
}
.welcome-cta-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
  align-items: center;
}
.cta-btn {
  text-align: center;
  color: var(--vcf-white);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.2;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.8; }
.cta-btn .sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
  text-transform: none;
}
.cta-btn .sub.orange { color: var(--vcf-orange); }
.cta-btn .sub.blue { color: var(--vcf-cyan); }
.cta-divider {
  width: 2px;
  height: 60px;
  background: rgba(255,255,255,0.5);
}

/* ========================================
   FESTIVAL BLOG
======================================== */
#festival-blog {
  padding: var(--section-pad);
  background: var(--vcf-white);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card a { display: block; }
.blog-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.blog-card h3 {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--vcf-cyan);
  line-height: 1.4;
}
.blog-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--vcf-text);
  line-height: 1.5;
}
.blog-more {
  background: var(--vcf-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  font-size: 3rem;
  color: var(--vcf-black);
  font-weight: 900;
  text-decoration: none;
  transition: background 0.2s;
}
.blog-more:hover { background: #c4b800; }

/* ========================================
   SPONSOR SECTIONS (shared)
======================================== */
.sponsor-section {
  padding: var(--section-pad);
  background: var(--vcf-white);
}

/* Festival Sponsor (single, logo left + name/url right) */
.festival-sponsor-entry {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}
.festival-sponsor-entry img { max-width: 250px; }
.festival-sponsor-entry .sponsor-info { font-size: 1rem; }
.festival-sponsor-entry .sponsor-name { font-weight: 700; display: block; margin-bottom: 6px; }
.festival-sponsor-entry .sponsor-url { color: var(--vcf-cyan); }

/* Produkt / Themen Sponsoren (Repeater: image left, text right) */
.sponsor-entry {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto 60px;
}
.sponsor-entry:last-child { margin-bottom: 0; }
.sponsor-entry .sponsor-image {
  flex: 0 0 300px;
  max-width: 300px;
}
.sponsor-entry .sponsor-image img {
  width: 100%;
  object-fit: cover;
}
.sponsor-entry .sponsor-content { flex: 1; }
.sponsor-entry .sponsor-logo { max-width: 180px; margin-bottom: 15px; }
.sponsor-entry .sponsor-tagline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vcf-cyan);
  margin-bottom: 10px;
}
.sponsor-entry .sponsor-text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; }
.sponsor-entry .sponsor-link { color: var(--vcf-cyan); font-size: 0.9rem; }

/* Logo Grid (Exhibitors / Partner) */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.logo-grid-item img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  filter: none;
  transition: opacity 0.2s;
}
.logo-grid-item a:hover img { opacity: 0.75; }

/* ========================================
   FOOTER
======================================== */
#site-footer {
  background: var(--vcf-black);
  color: var(--vcf-white);
  padding: 60px 40px 40px;
}
.footer-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; font-size: 0.85rem; }
.footer-col ul li a { color: var(--vcf-white); opacity: 0.85; transition: opacity 0.2s; }
.footer-col ul li a:hover { opacity: 1; }
.footer-col p { font-size: 0.85rem; line-height: 1.7; opacity: 0.85; }
.footer-col .footer-email { word-break: break-all; }
.footer-badge img { max-width: 160px; border-radius: 4px; }
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.75rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-entry { flex-direction: column; }
  .sponsor-entry .sponsor-image { flex: none; max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --section-pad: 50px 20px; }
  #site-header { padding: 0 20px; }
  #primary-nav { display: none; }
  #primary-nav.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--vcf-yellow); padding: 20px; }
  #primary-nav.open ul { flex-direction: column; gap: 15px; }
  .menu-toggle { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-date, .hero-location { font-size: 1rem; bottom: 20px; }
  .welcome-cta-buttons { flex-direction: column; gap: 15px; }
  .cta-divider { width: 60px; height: 2px; }
}
