/* ============================================
   Little House SB — Political Party Site
   ============================================ */

:root {
  --primary: #B42033;
  --primary-dark: #8B1A2B;
  --primary-light: #D4243B;
  --dark: #1a1a1a;
  --darker: #111;
  --text: #e8e8e8;
  --text-secondary: #aaa;
  --bg: #1a1a1a;
  --bg-card: #222;
  --bg-header: #111;
  --border: #333;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

img { max-width: 100%; }

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

/* ===== HEADER ===== */
.header {
  background: var(--bg-header);
  border-bottom: 3px solid var(--primary);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.3rem; font-weight: 700; }
.logo:hover { color: var(--white); }
.logo-icon {
  width: 40px; height: 40px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--white);
  border-radius: 4px;
}
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--text); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--primary-light); }
.lang-switch {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--border);
  border-radius: 4px; font-size: .8rem; color: var(--text-secondary);
  transition: all .2s;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary-light); }
.header-right { display: flex; align-items: center; gap: 12px; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.5rem; cursor: pointer; padding: 4px;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.95); z-index: 200; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.3rem; color: var(--text); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px; background: none;
  border: none; color: var(--text); font-size: 2rem; cursor: pointer;
}

/* ===== SEARCH ===== */
.search-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.9); z-index: 300; align-items: center; justify-content: center;
}
.search-overlay.open { display: flex; }
.search-close {
  position: absolute; top: 20px; right: 20px; background: none;
  border: none; color: var(--text); font-size: 2rem; cursor: pointer;
}
.search-box { width: 90%; max-width: 600px; }
.search-input-big {
  width: 100%; padding: 16px 20px; font-size: 1.2rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); outline: none;
}
.search-input-big:focus { border-color: var(--primary); }
.search-results { margin-top: 16px; }

/* ===== HERO ===== */
.hero { padding: 0; }
.hero-main {
  position: relative; min-height: 420px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--darker) 60%, var(--primary) 100%);
  text-align: center; padding: 60px 20px;
}
.hero-main h1 {
  font-size: 2.5rem; font-weight: 800; line-height: 1.2;
  max-width: 800px; color: var(--white);
}
.hero-main h1 + h1 {
  margin-top: 24px; font-size: 1.6rem; font-weight: 600;
  color: rgba(255,255,255,.85);
}
.hero-arrows {
  position: absolute; top: 50%; width: 100%;
  display: flex; justify-content: space-between; padding: 0 16px;
  transform: translateY(-50%); pointer-events: none;
}
.hero-arrow {
  background: rgba(255,255,255,.15); border: none; color: var(--white);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; pointer-events: auto; transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: -30px; position: relative; padding-bottom: 16px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.3); cursor: pointer; transition: background .2s;
}
.hero-dot.active { background: var(--white); }

/* ===== LAYOUT with SIDEBAR ===== */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

/* ===== NEWS CARDS ===== */
.section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 2px solid var(--primary);
}
.cards-grid { display: flex; flex-direction: column; gap: 20px; }
.card {
  background: var(--bg-card); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); transition: border-color .2s;
}
.card:hover { border-color: var(--primary); }
.card-img {
  height: 200px; background-size: cover; background-position: center;
}
.card-body { padding: 20px; }
.card-date { font-size: .85rem; color: var(--text-secondary); }
.card-title {
  font-size: 1.15rem; font-weight: 600; margin: 8px 0;
  color: var(--white); line-height: 1.4;
}
.card-text { color: var(--text-secondary); font-size: .9rem; line-height: 1.5; }
.card-link {
  display: inline-block; margin-top: 12px; color: var(--primary-light);
  font-size: .9rem; font-weight: 500;
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px;
}
.sidebar-section h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
  color: var(--primary-light); text-transform: uppercase; letter-spacing: .5px;
}
.sidebar-section ul { list-style: none; }
.sidebar-section li { margin-bottom: 8px; }
.sidebar-section a { color: var(--text); font-size: .9rem; }
.sidebar-section a:hover { color: var(--primary-light); }

.sidebar-btn {
  display: block; width: 100%; padding: 12px; text-align: center;
  background: var(--primary); color: var(--white); border-radius: 6px;
  font-weight: 600; font-size: .95rem; transition: background .2s;
}
.sidebar-btn:hover { background: var(--primary-light); color: var(--white); }

/* ===== SOCIAL ICONS ===== */
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text); font-size: .9rem;
  transition: background .2s;
}
.social-links a:hover { background: var(--primary); color: var(--white); }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  padding: 16px; color: var(--white);
}
.gallery-overlay span { font-size: .9rem; font-weight: 500; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 8px; margin-top: 32px; justify-content: center;
  flex-wrap: wrap;
}
.page-btn {
  padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); border-radius: 4px; cursor: pointer; font-size: .9rem;
  transition: all .2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}

/* ===== JOIN PAGE ===== */
.join-intro {
  max-width: 700px; margin-bottom: 32px;
  font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary);
}
.join-intro strong { color: var(--text); }
.join-tabs {
  display: flex; gap: 0; margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
}
.join-tab {
  padding: 12px 24px; background: none; border: none;
  color: var(--text-secondary); font-size: 1rem; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .2s;
}
.join-tab:hover { color: var(--text); }
.join-tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }
.join-panel { display: none; }
.join-panel.active { display: block; }
.join-desc { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: .95rem; outline: none;
  transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; }
.form-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .85rem; color: var(--text-secondary);
}
.form-check input { margin-top: 3px; }

.btn {
  padding: 10px 24px; border-radius: 6px; font-size: .95rem;
  font-weight: 600; cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-outline {
  background: transparent; color: var(--primary-light);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ===== TEAM ===== */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: border-color .2s;
}
.team-card:hover { border-color: var(--primary); }
.team-photo {
  height: 200px; background-size: cover; background-position: center;
}
.team-info { padding: 16px; }
.team-name { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.team-role { font-size: .85rem; color: var(--primary-light); margin-top: 4px; }
.team-bio { font-size: .85rem; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 12px; padding: 40px; text-align: center; margin: 40px 0;
}
.newsletter h2, .newsletter h3 { color: var(--white); margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,.8); }
.newsletter-form {
  display: flex; gap: 12px; max-width: 480px; margin: 20px auto 0;
}
.newsletter-form .form-input {
  flex: 1; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.2);
  color: var(--white);
}
.newsletter-form .form-input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form .btn { background: var(--white); color: var(--primary); }
.newsletter-form .btn:hover { background: #eee; }

/* ===== FOOTER ===== */
.footer {
  background: var(--darker); border-top: 1px solid var(--border);
  padding: 40px 0 20px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.footer-brand p { color: var(--text-secondary); font-size: .85rem; margin: 12px 0; line-height: 1.5; }
.footer-col h4 {
  font-size: .9rem; color: var(--primary-light); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .5px;
}
.footer-col a { display: block; color: var(--text-secondary); font-size: .85rem; padding: 4px 0; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%; background: var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: .8rem; transition: background .2s;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 24px auto 0; padding: 16px 20px 0;
  border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-secondary);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card);
  border-top: 2px solid var(--primary); z-index: 500; padding: 20px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cookie-text { font-size: .85rem; color: var(--text-secondary); }
.cookie-text a { color: var(--primary-light); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white); padding: 12px 24px;
  border-radius: 8px; font-size: .9rem; z-index: 600;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.9); z-index: 400; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; background: none;
  border: none; color: var(--white); font-size: 2rem; cursor: pointer;
}
#lightboxContent { max-width: 90%; max-height: 90%; }

/* ===== CALCULATORS ===== */
.calc-wrapper {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
}
.calc-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.calc-tab {
  padding: 10px 20px; background: none; border: none;
  color: var(--text-secondary); font-size: .95rem; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .2s;
}
.calc-tab:hover { color: var(--text); }
.calc-tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.calc-result {
  margin-top: 20px; padding: 20px; background: rgba(180,32,51,.1);
  border: 1px solid var(--primary); border-radius: 8px; text-align: center;
}
.calc-result-label { font-size: .9rem; color: var(--text-secondary); }
.calc-result-value { font-size: 2rem; font-weight: 800; color: var(--primary-light); margin-top: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-main h1 { font-size: 1.8rem; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 300px; padding: 40px 16px; }
  .hero-main h1 { font-size: 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .calc-row { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
}
