/* ═══════════════════════════════════════
   Biedrība "Tīne" — Modernais dizains
   ═══════════════════════════════════════ */

:root {
  --wine:       #6B2737;
  --wine-dark:  #4E1B27;
  --wine-light: #8B3A4D;
  --gold:       #B8892A;
  --gold-light: #D4A84B;
  --cream:      #FAF7F2;
  --sand:       #F0E9DF;
  --text:       #2A2420;
  --text-muted: #6B5F58;
  --white:      #FFFFFF;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(42, 36, 32, .10);
  --shadow-lg:  0 12px 48px rgba(42, 36, 32, .16);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  display: block;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--wine-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-muted); }

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
}
.btn-primary:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 39, 55, .35);
}
.btn-outline {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}
.btn-outline:hover {
  background: var(--wine);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--wine-dark);
  border-color: var(--wine-dark);
  font-size: .85rem;
  padding: .55rem 1.25rem;
}
.btn-outline-dark:hover {
  background: var(--wine-dark);
  color: var(--white);
}
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-full { width: 100%; text-align: center; }
.btn-nav {
  background: var(--wine);
  color: var(--white) !important;
  padding: .45rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-nav:hover { background: var(--wine-dark); }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--wine);
  color: var(--white);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.logo-mark-img {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--wine-dark);
  font-weight: 600;
}
.site-header .logo-text {
  padding-bottom: 10px;
}
.logo-text em { font-style: italic; color: var(--wine); }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.main-nav a {
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.main-nav a:not(.btn-nav):hover {
  background: var(--sand);
  color: var(--wine);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wine-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine) 50%, #9B4558 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(184, 137, 42, .18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.hero > .container {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 4.25rem;
}
.hero-copy {
  max-width: 40rem;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  padding: .4rem 1.1rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-copy h1 {
  color: var(--white);
  margin: 0 0 1.5rem;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 34rem;
  margin: 0 0 2.25rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-ctas .btn { min-height: 2.85rem; }
.hero-ctas .btn-primary { background: var(--white); color: var(--wine); border-color: var(--white); }
.hero-ctas .btn-primary:hover { background: var(--cream); }
.hero-ctas .btn-outline { color: var(--white); border-color: rgba(255,255,255,.6); }
.hero-ctas .btn-outline:hover { background: rgba(255,255,255,.15); }

.hero-stats {
  position: relative;
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.12);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  gap: 1.5rem 2rem;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
}
.stat strong {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.stat span { font-size: .8rem; color: rgba(255,255,255,.7); text-align: left; }

/* ─── Brand image placeholder ─── */
.brand-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #9a4a5c 0%, var(--wine) 45%, var(--wine-dark) 100%);
}
.brand-placeholder > img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: .92;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .25));
}
.project-cover.brand-placeholder > img {
  width: 64px;
  height: 64px;
}
.blog-img.brand-placeholder.small > img {
  width: 48px;
  height: 48px;
}

/* ─── Sections ─── */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header p { margin-top: .75rem; font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  background: rgba(107, 39, 55, .1);
  color: var(--wine);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.section-cta { text-align: center; margin-top: 2.5rem; }

/* ─── Two-col ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.col-text .section-tag { display: inline-block; margin-bottom: .75rem; }
.col-text h2 { margin-bottom: 1rem; }
.col-text p { margin-bottom: .75rem; }
.col-text .btn { margin-top: .5rem; }
.about-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.about-ctas .btn { margin-top: 0; padding: .75rem 1.75rem; font-size: .9rem; line-height: 1; }

/* ─── Vision Cards ─── */
.vision-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.vision-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.vision-card.accent { border-left-color: var(--wine); }
.vision-icon { font-size: 1.5rem; margin-bottom: .5rem; color: var(--gold); }
.vision-card.accent .vision-icon { color: var(--wine); }
.vision-card h3 { margin-bottom: .5rem; font-size: 1rem; }
.vision-card p, .vision-card li { font-size: .9rem; color: var(--text-muted); }
.vision-card ul { padding-left: 1rem; list-style: disc; }
.vision-card li { margin-bottom: .25rem; }
.about-more {
  display: inline-block;
  margin-top: .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--wine);
}
.about-more:hover { color: var(--wine-dark); text-decoration: underline; }

/* ─── Featured event (home) ─── */
.featured-event-section {
  padding-top: 0;
}
.featured-event {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid rgba(107, 39, 55, .08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.featured-event.no-cover {
  grid-template-columns: 1fr;
}
.featured-event-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  min-height: 280px;
  padding: 1rem;
}
.featured-event-media.is-placeholder {
  background: linear-gradient(145deg, #9a4a5c 0%, var(--wine) 45%, var(--wine-dark) 100%);
}
.featured-event-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 14px;
}
.featured-event-media.is-placeholder img {
  width: 96px;
  height: 96px;
  max-height: none;
  border-radius: 0;
  opacity: .9;
}
.featured-event-body .event-type {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .65rem;
}
.featured-event-body h2 {
  margin-bottom: .75rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}
.featured-event-meta {
  color: var(--wine);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .85rem;
}
.featured-event-body > p {
  margin-bottom: 1.25rem;
  max-width: 36rem;
}
.featured-event-body .btn {
  margin-top: .25rem;
}

/* ─── Projects ─── */
.projects-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(107, 39, 55, .08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-cover {
  height: 160px;
  margin: -2rem -2rem 1.25rem;
  background-size: cover;
  background-position: center;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-card.featured {
  background: linear-gradient(145deg, var(--wine-dark), var(--wine));
  color: var(--white);
  border: none;
}
.project-card.featured h3,
.project-card.featured p { color: var(--white); }
.project-card.featured .project-meta span { color: rgba(255,255,255,.8); }
.project-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.project-card h3 { margin-bottom: .75rem; }
.project-card p { font-size: .9rem; margin-bottom: 1.25rem; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.project-meta span { font-size: .8rem; color: var(--text-muted); }
.project-card > .btn {
  margin-top: auto;
  align-self: flex-start;
}
.project-card.featured .btn-outline-dark {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.project-card.featured .btn-outline-dark:hover {
  background: rgba(255,255,255,.15);
}

/* ─── Events ─── */
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 39, 55, .07);
  transition: var(--transition);
}
.event-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--wine);
  color: var(--white);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}
.event-date strong { font-size: 1.6rem; font-family: 'Playfair Display', serif; line-height: 1; }
.event-date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.event-info { flex: 1; }
.event-type {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
}
.event-info h3 { font-size: 1rem; margin: .2rem 0 .25rem; }
.event-info p { font-size: .85rem; }

/* ─── Members ─── */
.subsection-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sand);
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.member-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(107, 39, 55, .07);
  transition: var(--transition);
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.member-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.member-photo.placeholder {
  background: linear-gradient(135deg, var(--wine-light), var(--wine-dark));
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  overflow: hidden;
}
.member-photo.brand-placeholder > img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: .95;
}
.member-role {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
}
.member-info h4 { margin-bottom: .15rem; }
.member-info p { font-size: .85rem; margin: .4rem 0 .75rem; }
.member-contacts { display: flex; flex-direction: column; gap: .2rem; }
.member-contacts a { font-size: .8rem; color: var(--wine); transition: var(--transition); display: inline-flex; align-items: center; gap: .4rem; }
.member-contacts a:hover { color: var(--wine-dark); }
.member-contacts .icon { width: 14px; height: 14px; color: var(--gold); }

/* ─── Blog / Lasītava ─── */
.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 39, 55, .07);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card.featured-post { grid-row: span 2; }
.blog-img {
  background: linear-gradient(135deg, var(--sand) 0%, var(--wine-light) 100%);
  flex-shrink: 0;
}
.blog-img.brand-placeholder {
  background: linear-gradient(145deg, #9a4a5c 0%, var(--wine) 45%, var(--wine-dark) 100%);
}
.blog-img.placeholder-img { height: 220px; }
.blog-img.placeholder-img.small { height: 120px; }
.blog-content { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
  margin-bottom: .5rem;
}
.blog-content h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.blog-content p { font-size: .88rem; flex: 1; }
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: .8rem;
}
.blog-meta span { color: var(--text-muted); display: inline-flex; align-items: center; gap: .35rem; }
.blog-meta .icon { width: 14px; height: 14px; color: var(--wine); }
.blog-meta a { color: var(--wine); font-weight: 600; transition: var(--transition); }
.blog-meta a:hover { color: var(--wine-dark); }

/* ─── Contacts ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  color: var(--wine);
  border: 1px solid rgba(107, 39, 55, .1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon .icon {
  width: 22px;
  height: 22px;
}
.contact-block strong { display: block; font-size: .9rem; margin-bottom: .2rem; color: var(--wine-dark); }
.contact-block p { font-size: .9rem; margin: 0; }
.contact-block a { color: var(--wine); }
.contact-block a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.form-ok { color: #2A7A4A; font-weight: 600; margin-bottom: 1rem; }
.form-error {
  color: #8B1E1E;
  font-weight: 600;
  margin-bottom: 1rem;
  background: #fceeee;
  border: 1px solid #f0c4c4;
  border-radius: 10px;
  padding: .75rem 1rem;
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--wine-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .7rem 1rem;
  border: 1.5px solid rgba(107, 39, 55, .2);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--wine);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(107, 39, 55, .12);
}
.form-group textarea { resize: vertical; }
.contact-form .field-hint {
  margin: .15rem 0 0;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.event-signup-note {
  background: rgba(107, 39, 55, .07);
  border: 1px solid rgba(107, 39, 55, .14);
  border-left: 4px solid var(--wine);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin: 0 0 1.15rem;
}
.event-signup-note[hidden] { display: none; }
.form-group[hidden],
.event-pick-wrap[hidden] { display: none !important; }
.event-signup-kicker {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: .25rem;
}
.event-signup-note strong {
  display: block;
  color: var(--wine-dark);
  font-size: 1.02rem;
  line-height: 1.35;
}
.event-signup-note p {
  margin: .35rem 0 0;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--wine-dark);
  color: rgba(255,255,255,.85);
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text em { color: var(--gold-light); }
.footer-brand .logo-mark { background: rgba(255,255,255,.15); }
.footer-brand .logo-mark-img { width: 44px; height: 44px; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.65); margin-top: .75rem; line-height: 1.6; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.15rem;
  padding: .45rem .85rem .45rem .65rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
}
.footer-social .icon {
  width: 15px;
  height: 15px;
}
.footer-social:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.35);
}
.footer-nav h4 { color: var(--white); font-size: .85rem; margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { font-size: .85rem; color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.5); text-align: left; margin: 0; }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.25rem;
  margin-left: auto;
}
.footer-legal a,
.cookie-link {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.footer-legal a:hover,
.cookie-link:hover { color: var(--white); }
.dev-by-kibertelpa {
  display: inline-flex;
  align-items: center;
  margin-left: .25rem;
  opacity: .72;
  transition: opacity .2s ease;
}
.dev-by-kibertelpa:hover { opacity: 1; }
.dev-by-kibertelpa img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 140px;
}

/* ─── Cookie banner ─── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  padding: 1rem 1.5rem 1.25rem;
  background: var(--wine-dark);
  color: rgba(255,255,255,.88);
  box-shadow: 0 -8px 32px rgba(42, 36, 32, .28);
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cookie-banner-copy strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .35rem;
}
.cookie-banner-copy p {
  margin: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  max-width: 640px;
}
.cookie-banner-copy a {
  color: var(--gold-light);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  flex-shrink: 0;
}
.cookie-banner .btn-outline-dark {
  color: var(--white);
  border-color: rgba(255,255,255,.45);
  background: transparent;
}
.cookie-banner .btn-outline-dark:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

.privacy-page .privacy-copy {
  margin: 0 0 2.25rem;
  max-width: 720px;
}
.privacy-page .privacy-copy p { margin-bottom: .85rem; }
.privacy-page .privacy-copy a { color: var(--wine); font-weight: 600; }
.privacy-page .privacy-copy a:hover { text-decoration: underline; }
.privacy-points {
  grid-template-columns: 1fr;
  margin-bottom: 2.25rem;
}
.privacy-cookies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.privacy-cookies article {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border-left: 4px solid var(--gold);
}
.privacy-cookies article:last-child { border-left-color: var(--wine); }
.privacy-cookies span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.privacy-cookies strong {
  display: block;
  font-size: 1.05rem;
  color: var(--wine-dark);
  margin-bottom: .45rem;
}
.privacy-cookies p { margin: 0; font-size: .92rem; color: var(--text-muted); }
.privacy-cookies code {
  font-size: .85em;
  background: var(--sand);
  padding: .1em .35em;
  border-radius: 4px;
}
.privacy-note {
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0 0 2.25rem;
  max-width: 720px;
}

@media (max-width: 800px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
  .privacy-cookies { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-legal-links { margin-left: 0; }
  .dev-by-kibertelpa { align-self: flex-end; margin-left: 0; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: span 2; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured-post { grid-column: span 2; grid-row: span 1; }
  .blog-img.placeholder-img { height: 160px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; margin: 0; }
  .burger { display: flex; }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .site-header.menu-open {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--cream);
    border-bottom: 0;
    overflow: auto;
    z-index: 200;
  }
  .site-header.menu-open .container {
    flex-wrap: wrap;
    align-content: flex-start;
    height: auto;
    min-height: 100%;
    padding-top: 0;
    padding-bottom: 2.5rem;
    gap: 0;
  }
  .site-header.menu-open .logo,
  .site-header.menu-open .burger {
    height: 72px;
    display: flex;
    align-items: center;
  }
  .site-header.menu-open .main-nav {
    display: block;
    flex: 1 0 100%;
    width: 100%;
    padding: .5rem 0 1rem;
  }
  .site-header.menu-open .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header.menu-open .main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.15rem;
    color: var(--wine-dark);
    border-bottom: 1px solid rgba(107, 39, 55, .12);
    border-radius: 0;
  }
  .site-header.menu-open .main-nav a:not(.btn-nav):hover {
    background: transparent;
    color: var(--wine);
  }
  .site-header.menu-open .btn-nav {
    margin-top: 1.25rem;
    text-align: center;
    border-bottom: 0;
    border-radius: 50px;
    padding: .85rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .featured-event { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
  .featured-event-media { min-height: 0; padding: .75rem; }
  .featured-event-media img { max-height: 360px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured-post { grid-column: span 1; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .members-grid { grid-template-columns: 1fr; }
  .event-item { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero > .container { padding-top: 3.25rem; padding-bottom: 2.75rem; }
  .hero-copy h1 { font-size: 2.05rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}
