/* ===================================================
   Tampere Adventure Guide — style.css
   Independent travel guide · Professional design
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #1a5276;
  --color-primary-light: #2980b9;
  --color-primary-dark: #0e2f44;
  --color-accent: #27ae60;
  --color-accent-light: #2ecc71;
  --color-warm: #d4a03c;
  --color-warm-light: #f0c75e;
  --color-bg: #f8f9fa;
  --color-bg-alt: #ffffff;
  --color-bg-dark: #0b1a2b;
  --color-text: #2c3e50;
  --color-text-light: #5d6d7e;
  --color-text-muted: #95a5a6;
  --color-border: #dce1e6;
  --color-border-light: #ecf0f1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navigation ---------- */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  height: var(--nav-height);
}
#mainNav.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--color-border-light);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  text-decoration: none;
}
.nav-brand i { width: 28px; height: 28px; color: var(--color-primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.3s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--color-primary); }
#langBtn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}
#langBtn:hover { background: var(--color-primary-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,26,43,0.55) 0%, rgba(11,26,43,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px 24px;
  color: #fff;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-location, .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}
.hero-location i, .hero-badge i { width: 18px; height: 18px; }
.hero-badge {
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

/* ---------- Introduction ---------- */
.intro { background: var(--color-bg-alt); }
.intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}
.intro-text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---------- Section headings ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}
.section-heading p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Articles ---------- */
.articles { background: var(--color-bg); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-img img { transform: scale(1.08); }
.article-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.article-content { padding: 24px; }
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.article-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.article-body-inner {
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  white-space: pre-line;
}
.article-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}
.article-toggle:hover { color: var(--color-primary); }
.article-toggle i { width: 16px; height: 16px; }

/* ---------- Visitor Tips ---------- */
.tips { background: var(--color-bg-alt); }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tip-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tip-icon {
  width: 48px;
  height: 48px;
  background: rgba(26,82,118,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tip-icon i { width: 24px; height: 24px; color: var(--color-primary); }
.tip-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}
.tip-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- Seasonal Guide ---------- */
.seasons { background: var(--color-bg); }
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.season-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.season-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.season-card.spring::before { background: var(--color-accent); }
.season-card.summer::before { background: var(--color-warm); }
.season-card.autumn::before { background: #e67e22; }
.season-card.winter::before { background: var(--color-primary-light); }
.season-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.season-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.season-icon i { width: 36px; height: 36px; }
.spring .season-icon i { color: var(--color-accent); }
.summer .season-icon i { color: var(--color-warm); }
.autumn .season-icon i { color: #e67e22; }
.winter .season-icon i { color: var(--color-primary-light); }
.season-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}
.season-months {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.season-card p:last-child {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
}
.newsletter .section-heading h2 { color: #fff; }
.newsletter .section-heading p { color: rgba(255,255,255,0.8); }
.newsletter-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: border-color 0.3s, background 0.3s;
}
.form-group input::placeholder { color: rgba(255,255,255,0.5); }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent-light);
  background: rgba(255,255,255,0.15);
}
.form-group select { cursor: pointer; }
.form-group select option { color: var(--color-text); background: #fff; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--color-accent-light);
}
.form-checkbox label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  cursor: pointer;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-family: var(--font-main);
}
.form-submit:hover { background: var(--color-accent-light); transform: translateY(-1px); }
.form-message {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-message.success { background: rgba(39,174,96,0.2); color: #2ecc71; }
.form-message.error { background: rgba(231,76,60,0.2); color: #e74c3c; }
.newsletter-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq { background: var(--color-bg-alt); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--color-bg-alt);
  transition: background 0.3s;
}
.faq-question:hover { background: var(--color-bg); }
.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  flex: 1;
  margin-right: 16px;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 16px;
}
.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ---------- Supporting pages ---------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 120px 0 60px;
  text-align: center;
  margin-top: var(--nav-height);
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 36px 0 12px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 32px;
}

/* ---------- Responsive: 1024px ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .seasons-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive: 768px ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}

/* ---------- Responsive: 480px ---------- */
@media (max-width: 480px) {
  .section-padding { padding: 50px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tips-grid { grid-template-columns: 1fr; }
  .seasons-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-meta { flex-direction: column; gap: 10px; }
  .stat-value { font-size: 1.3rem; }
}

/* ---------- Body lock for mobile nav ---------- */
body.nav-open { overflow: hidden; }
