/* ═══════════════════════════════════════
   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; }

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-block;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  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: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 39, 55, .10);
}
.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-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--wine-dark);
  font-weight: 600;
}
.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 .9rem;
  border-radius: 8px;
  font-size: .9rem;
  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;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.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-content {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  max-width: 760px;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.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: 1.5rem 1.5rem;
  gap: 1rem;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.stat strong {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.stat span { font-size: .8rem; color: rgba(255,255,255,.7); text-align: center; }

/* ─── 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; }

/* ─── 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; }

/* ─── Projects ─── */
.projects-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.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);
}
.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.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;
}
.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); }
.member-contacts a:hover { color: var(--wine-dark); }

/* ─── 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.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); }
.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 {
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.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);
}
.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; }

/* ─── 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-mark { background: rgba(255,255,255,.15); }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.65); margin-top: .75rem; line-height: 1.6; }
.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-bottom p { font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; }

/* ─── 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; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem 1.5rem;
  }
  .main-nav.open ul { flex-direction: column; gap: .5rem; }
  .burger { display: flex; }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .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-content { padding: 4rem 1.5rem 2.5rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
}
