/*
Theme Name: Vienna Coffee Festival
Theme URI: https://www.viennacoffeefestival.cc
Author: Lefor Oberbauer
Description: Official theme for the Vienna Coffee Festival
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: All rights reserved
Text Domain: vcf
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --vcf-black:     #1a1410;
  --vcf-brown:     #3b2a1a;
  --vcf-gold:      #c8963c;
  --vcf-cream:     #f5f0e8;
  --vcf-white:     #ffffff;
  --vcf-grey:      #6b6259;
  --vcf-light:     #ede8df;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --max-w:         1200px;
  --section-pad:   80px 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--vcf-cream);
  color: var(--vcf-black);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.02em;
  margin-bottom: 40px;
}

.section-title span {
  color: var(--vcf-gold);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad);
}

.section--dark {
  background: var(--vcf-black);
  color: var(--vcf-white);
}

.section--brown {
  background: var(--vcf-brown);
  color: var(--vcf-white);
}

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

.divider {
  text-align: center;
  padding: 16px 0;
}

.divider img {
  margin: 0 auto;
  max-height: 40px;
  opacity: .5;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(26,20,16,.95);
  backdrop-filter: blur(8px);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: var(--vcf-cream);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}

.site-nav a:hover { color: var(--vcf-gold); opacity: 1; }

.site-nav .nav-social a {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vcf-cream);
  font-size: 1.4rem;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--vcf-black);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 20px;
    align-items: flex-start;
  }
  .site-nav.is-open { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--vcf-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(200,150,60,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-cup {
  max-height: 340px;
  width: auto;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vcf-gold);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  color: var(--vcf-white);
  letter-spacing: -.03em;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.hero-location {
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--vcf-grey);
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  background: var(--vcf-gold);
  color: var(--vcf-black);
  padding: 14px 36px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: background .2s, transform .2s;
}

.hero-cta:hover {
  background: #d9a94a;
  transform: translateY(-2px);
  opacity: 1;
}

/* ============================================================
   THANK YOU SECTION
   ============================================================ */
.thankyou-collage {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px;
  border-radius: 2px;
}

.thankyou-video {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16/9;
}

.thankyou-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   EXHIBITORS
   ============================================================ */
.exhibitors-list {
  font-size: .95rem;
  line-height: 2;
  color: var(--vcf-cream);
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
}

/* ============================================================
   BLOG GRID
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.blog-card {
  background: var(--vcf-white);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.blog-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--vcf-light);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }

.blog-card-body {
  padding: 20px 24px 24px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: .88rem;
  color: var(--vcf-grey);
  line-height: 1.6;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--vcf-gold);
  color: var(--vcf-gold);
  padding: 10px 28px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

.btn-outline:hover {
  background: var(--vcf-gold);
  color: var(--vcf-black);
  opacity: 1;
}

/* ============================================================
   FESTIVAL AREA / FLOOR PLAN
   ============================================================ */
.floorplan-overview {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 48px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.area-card {
  background: var(--vcf-white);
  padding: 28px;
}

.area-card-img {
  width: 100%;
  margin-bottom: 16px;
  border: 1px solid var(--vcf-light);
}

.area-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-display);
  margin-bottom: 10px;
  color: var(--vcf-brown);
}

.area-card p, .area-card ul {
  font-size: .85rem;
  color: var(--vcf-grey);
  line-height: 1.7;
  list-style: none;
}

/* ============================================================
   MASTERCLASS
   ============================================================ */
.masterclass-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .masterclass-inner { grid-template-columns: 1fr; gap: 32px; }
}

.masterclass-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.masterclass-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.masterclass-text p {
  margin-bottom: 16px;
  color: var(--vcf-cream);
  opacity: .88;
}

.masterclass-ticket {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.masterclass-ticket span {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--vcf-gold);
}

.masterclass-ticket img {
  height: 28px;
  width: auto;
}

/* ============================================================
   SPONSORS
   ============================================================ */
.sponsor-featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 640px) {
  .sponsor-featured { grid-template-columns: 1fr; }
}

.sponsor-featured img { max-width: 180px; }

.sponsor-featured p {
  font-size: .9rem;
  line-height: 1.7;
  opacity: .8;
}

.sponsor-featured a {
  color: var(--vcf-gold);
  font-weight: 600;
}

.produktsponsoren {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}

.produktsponsor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.produktsponsor img.logo {
  max-height: 40px;
  width: auto;
}

.produktsponsor p {
  font-size: .85rem;
  line-height: 1.7;
  opacity: .75;
}

.produktsponsor a { color: var(--vcf-gold); font-weight: 600; }

.themensponsor-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 32px;
}

.themensponsor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
}

.themensponsor img.logo {
  max-height: 50px;
  width: auto;
}

.themensponsor p {
  font-size: .85rem;
  line-height: 1.7;
  opacity: .75;
}

/* ============================================================
   EXHIBITOR LOGOS (2025 grid)
   ============================================================ */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.logo-grid a {
  display: flex;
  align-items: center;
}

.logo-grid img {
  max-height: 52px;
  width: auto;
  filter: grayscale(40%);
  transition: filter .2s;
}

.logo-grid img:hover { filter: none; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.partners-grid a { display: flex; }

.partners-grid img {
  max-height: 48px;
  width: auto;
  filter: grayscale(60%);
  opacity: .8;
  transition: filter .2s, opacity .2s;
}

.partners-grid img:hover { filter: none; opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--vcf-black);
  color: var(--vcf-cream);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vcf-gold);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-col p,
.footer-col a {
  font-size: .88rem;
  line-height: 1.9;
  color: rgba(245,240,232,.7);
  display: block;
}

.footer-col a:hover { color: var(--vcf-cream); opacity: 1; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .8rem;
  color: rgba(245,240,232,.4);
}

.footer-bottom-logos {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-bottom-logos img {
  max-height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .3;
}

/* ============================================================
   PAGE TEMPLATES (Newsletter, Press, FAQ, Aussteller, Impressum)
   ============================================================ */
.page-hero {
  background: var(--vcf-black);
  padding: 120px 24px 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--vcf-white);
}

.page-hero .subtitle {
  color: var(--vcf-gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-top: 12px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--vcf-brown);
}

.page-content p {
  margin-bottom: 16px;
  color: var(--vcf-grey);
  line-height: 1.8;
}

/* Newsletter form */
.newsletter-form {
  background: var(--vcf-light);
  padding: 40px;
  margin-top: 40px;
}

.newsletter-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  color: var(--vcf-brown);
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(59,42,26,.2);
  background: var(--vcf-white);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 20px;
}

.newsletter-form input:focus {
  outline: 2px solid var(--vcf-gold);
  outline-offset: 0;
}

.btn-primary {
  background: var(--vcf-gold);
  color: var(--vcf-black);
  border: none;
  padding: 14px 36px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}

.btn-primary:hover { background: #d9a94a; }

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(59,42,26,.12);
  padding: 20px 0;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--vcf-brown);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--vcf-gold);
  transition: transform .2s;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-top: 12px;
  color: var(--vcf-grey);
  line-height: 1.8;
}

.faq-item.is-open .faq-answer { display: block; }

/* Aussteller / Exhibitors page */
.aussteller-intro {
  max-width: 700px;
  margin-bottom: 48px;
}

.aussteller-form {
  background: var(--vcf-light);
  padding: 40px;
  margin-top: 40px;
}

.aussteller-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(59,42,26,.2);
  background: var(--vcf-white);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 20px;
  min-height: 120px;
  resize: vertical;
}

/* Press page */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.press-item {
  background: var(--vcf-light);
  padding: 24px;
}

.press-item h3 { font-size: 1rem; margin-bottom: 8px; color: var(--vcf-brown); }
.press-item p  { font-size: .85rem; color: var(--vcf-grey); margin-bottom: 12px; }
.press-item a  { color: var(--vcf-gold); font-weight: 600; font-size: .85rem; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-hero {
  background: var(--vcf-black);
  padding: 120px 24px 60px;
}

.single-post-hero .post-category {
  color: var(--vcf-gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  margin-bottom: 16px;
}

.single-post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--vcf-white);
  max-width: 760px;
}

.single-post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.single-post-content p  { margin-bottom: 20px; line-height: 1.85; color: var(--vcf-grey); }
.single-post-content h2 { font-size: 1.6rem; margin: 36px 0 14px; color: var(--vcf-brown); }
.single-post-content h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--vcf-brown); }
.single-post-content img { margin: 28px 0; }
.single-post-content a  { color: var(--vcf-gold); font-weight: 500; }

.post-thumbnail-full {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin-bottom: 0;
}

/* ============================================================
   ARCHIVE / BLOG INDEX
   ============================================================ */
.archive-hero {
  background: var(--vcf-black);
  padding: 120px 24px 60px;
  text-align: center;
}

.archive-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--vcf-white);
}

.archive-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* Pagination */
.pagination {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pagination .page-numbers {
  padding: 8px 16px;
  border: 1px solid var(--vcf-gold);
  color: var(--vcf-brown);
  font-size: .85rem;
  transition: background .2s, color .2s;
}

.pagination .current,
.pagination .page-numbers:hover {
  background: var(--vcf-gold);
  color: var(--vcf-black);
  opacity: 1;
}

/* ============================================================
   GUTENBERG BLOCKS (editor alignment)
   ============================================================ */
.wp-block-image img { border-radius: 2px; }
.wp-block-quote {
  border-left: 4px solid var(--vcf-gold);
  padding-left: 24px;
  font-style: italic;
  color: var(--vcf-grey);
}
