/* ============================================================
   Helsinki Art & Culture Guide — Style Sheet
   Color Palette: Deep Navy #0B1D3A | Gold #C8A951 | Cream #FAF7F0
   ============================================================ */

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

:root {
  --navy: #0B1D3A;
  --navy-light: #132B52;
  --navy-dark: #06101F;
  --gold: #C8A951;
  --gold-light: #E0C97A;
  --gold-dark: #A68A3A;
  --cream: #FAF7F0;
  --cream-dark: #EDE8DA;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #D1D1D1;
  --gray-500: #8A8A8A;
  --gray-700: #4A4A4A;
  --gray-900: #1A1A1A;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(11,29,58,0.08);
  --shadow-lg: 0 8px 32px rgba(11,29,58,0.12);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 12px; }
p { margin-bottom: 16px; }

/* --- Header / Navigation --- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo .emoji { font-size: 1.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-menu a {
  color: var(--cream);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(200,169,81,0.15);
  color: var(--gold);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px;
    border-top: 1px solid rgba(200,169,81,0.2);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; font-size: 1rem; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: clamp(400px, 60vh, 650px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,29,58,0.55) 0%, rgba(11,29,58,0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 24px;
  max-width: 800px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream-dark);
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-block;
  background: rgba(200,169,81,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- Section Spacing --- */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--gold); }
.section-dark p { color: var(--cream-dark); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.section-dark .section-header p { color: var(--cream-dark); }

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body { padding: 24px; }

.article-card-body h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.article-card-body .excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-full-content {
  display: none;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  margin-top: 12px;
}
.article-full-content.open { display: block; }

.btn-expand {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-expand:hover { color: var(--gold); }
.btn-expand .arrow { transition: transform var(--transition); }
.btn-expand.active .arrow { transform: rotate(180deg); }

/* --- Seasonal Guide --- */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.season-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition);
}
.season-card:hover { transform: translateY(-4px); }
.season-icon { font-size: 2.5rem; margin-bottom: 12px; }
.season-card h3 { margin-bottom: 8px; }
.season-card p { color: var(--text-light); font-size: 0.93rem; }

/* --- Visitor Tips --- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tip-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition);
}
.tip-card:hover { transform: translateY(-2px); }
.tip-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,169,81,0.1);
  border-radius: 50%;
}
.tip-card h4 { color: var(--navy); margin-bottom: 4px; font-size: 1rem; }
.tip-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question .icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-question.active .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
  padding: 0 24px 20px;
}
.faq-answer p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* --- Lead Form --- */
.form-section {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-group .optional { color: var(--gray-500); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(200,169,81,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.form-group select option { background: var(--navy); color: var(--cream); }

.consent-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.consent-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.consent-group label {
  color: var(--cream-dark);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--cream);
}
.form-success h3 { color: var(--gold); margin-bottom: 8px; }

.form-error {
  color: #E57373;
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}

/* --- Image Feature --- */
.feature-img-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.feature-img-section.reverse { direction: rtl; }
.feature-img-section.reverse > * { direction: ltr; }
.feature-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 350px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .feature-img-section,
  .feature-img-section.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-img { height: 250px; }
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: var(--cream-dark);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col p, .footer-col li {
  font-size: 0.88rem;
  color: var(--cream-dark);
  line-height: 1.6;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--cream-dark); }
.footer-col ul a:hover { color: var(--gold); }

.footer-disclaimer {
  border-top: 1px solid rgba(200,169,81,0.15);
  padding-top: 24px;
  text-align: center;
}
.footer-disclaimer p {
  font-size: 0.8rem;
  color: var(--gray-500);
  max-width: 800px;
  margin: 0 auto 8px;
  line-height: 1.5;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

/* --- Page Content (Privacy, Terms, About) --- */
.page-hero {
  background: var(--navy);
  padding: 80px 0 48px;
  text-align: center;
}
.page-hero h1 { color: var(--gold); margin-bottom: 8px; }
.page-hero p { color: var(--cream-dark); }

.page-content {
  padding: 48px 0 64px;
  max-width: 800px;
  margin: 0 auto;
}
.page-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.page-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.page-content ul, .page-content ol {
  margin: 12px 0 16px 24px;
}
.page-content li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .seasons-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .form-section { padding: 32px 20px; }
  .section { padding: 48px 0; }
  .hero { height: clamp(320px, 50vh, 500px); }
}

@media (max-width: 400px) {
  .seasons-grid { grid-template-columns: 1fr; }
}
