/* Improteca public site — dark theme matching improteca.ro's brand:
   black surfaces, yellow fox branding, white uppercase nav, serif headings. */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400&family=Roboto+Slab:wght@500;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

:root {
  --black: #0d0d0d;
  --black-2: #161616;
  --ink: #222;
  --muted: #6f6f6f;
  --yellow: #f5c518;
  --yellow-dark: #d9ad0f;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --border: #e4e4e0;
}

h1, h2, h3, h4 { font-family: "Roboto Slab", "Roboto", serif; }

body {
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header ---- */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo img { height: 48px; width: auto; display: block; }

.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: nowrap;      /* never wrap to a second line on desktop */
  align-items: center;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--yellow);
  border-color: var(--yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Collapse to the hamburger menu below the width where all eight links fit on
   one line — otherwise the long Romanian labels overflow the header. */
@media (max-width: 1180px) {
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid #2a2a2a; white-space: normal; }
  .nav-toggle { display: block; }
  .site-header-inner { flex-wrap: wrap; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 6.5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.75));
}
.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  color: #fff;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 1.8rem;
  color: #eaeaea;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--yellow);
}
.hero .btn-outline { color: #fff; }
.btn-outline:hover { background: var(--yellow); color: #111; }

/* ---- Sections ---- */
section.page-section {
  position: relative;
  padding: 4.5rem 1.5rem;
  overflow: hidden;
}
section.page-section.alt { background: var(--bg-alt); }
section.page-section.dark {
  background: var(--black);
  color: #fff;
}
section.page-section.dark .section-title { color: #fff; }
section.page-section.dark .section-subtitle { color: #cfcfcf; }

/* faint yellow fox decoration behind alternating sections */
section.page-section.decorated::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 340px;
  height: 340px;
  background: url('/res/site-assets/fox-mark.png') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
section.page-section.decorated .container { position: relative; z-index: 1; }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--ink);
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--yellow);
  margin: 0.8rem auto 0;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 760px;
  margin: 1.2rem auto 2.5rem;
  font-size: 1.02rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--yellow);
  border-radius: 6px;
  padding: 1.7rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 0.6rem; font-size: 1.12rem; color: var(--ink); }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---- Events / Calendar ---- */
.event-card {
  display: flex;
  gap: 1.2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: 6px;
  padding: 1.4rem;
  background: #fff;
  margin-bottom: 1.2rem;
  align-items: flex-start;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.event-date-badge {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
  background: var(--black);
  color: var(--yellow);
  border-radius: 6px;
  padding: 0.7rem 0.4rem;
}
.event-date-badge .day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #fff; }

.event-info h3 { font-size: 1.18rem; margin-bottom: 0.3rem; color: var(--ink); }
.event-info .meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.4rem; }
.event-info .desc { color: #444; font-size: 0.93rem; }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}

/* ---- Calendar poster cards (event images, like the mobile app) ---- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1140px;
  margin: 0 auto;
}
.poster-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.poster-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.poster-img {
  position: relative;
  width: 100%;
  padding-top: 62%;              /* consistent poster aspect ratio */
  background-size: cover;
  background-position: center;
  background-color: var(--black-2);
}
.poster-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}
.poster-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.poster-body h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.4rem; }
.poster-meta { color: var(--yellow-dark); font-weight: 600; font-size: 0.83rem; margin-bottom: 0.6rem; }
.poster-body p { color: var(--muted); font-size: 0.92rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  color: #cfcfcf;
  padding: 3.5rem 1.5rem 1.5rem;
  border-top: 3px solid var(--yellow);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto 2rem;
}
.footer-grid h4 { color: var(--yellow); margin-bottom: 0.9rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-grid a, .footer-grid p { display: block; color: #b5b5b5; font-size: 0.88rem; margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  color: #7f7f7f;
  font-size: 0.8rem;
}

/* ---- Generic content page ---- */
.content-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
.content-page h1 {
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.content-page h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--yellow);
  margin-top: 0.8rem;
}
.content-page h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; color: var(--ink); }
.content-page p { margin-bottom: 1rem; color: #333; }
.content-page ul { margin: 0 0 1rem 1.4rem; color: #333; }
.content-page ul li { margin-bottom: 0.4rem; }
