/* ============================================
   Scottish Heritage Travel Journal — Style
   Edinburgh Castle White Page
   ============================================ */

:root {
  --primary: #2c3e50;
  --primary-light: #34495e;
  --accent: #8b6914;
  --accent-light: #c9a84c;
  --accent-bg: #fdf8ef;
  --bg: #fafafa;
  --bg-alt: #f0ece4;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --text-muted: #888;
  --white: #ffffff;
  --border: #e0dcd4;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary); line-height: 1.3; }
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  color: var(--primary);
}
.nav-brand i { width: 24px; height: 24px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.9rem; color: var(--text-light); font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
#langBtn {
  background: var(--primary); color: var(--white);
  border: none; padding: 0.4rem 0.8rem; border-radius: 4px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
#langBtn:hover { background: var(--accent); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; color: var(--primary);
}
.hamburger i { width: 28px; height: 28px; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999; padding: 2rem;
  flex-direction: column; gap: 1.5rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-size: 1.2rem; color: var(--text); font-weight: 500;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  color: var(--white); padding: 2rem; max-width: 800px;
}
.hero-content h1 { color: var(--white); font-size: 3.2rem; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.3rem; opacity: 0.9; margin-bottom: 1.5rem; font-weight: 300; }
.hero-meta { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.9rem;
}
.hero-tag i { width: 16px; height: 16px; }

/* ============================================
   SECTIONS (shared)
   ============================================ */
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--text-light); max-width: 650px; margin: 0 auto; font-size: 1.05rem; }

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

/* ============================================
   INTRODUCTION / STATS
   ============================================ */
.intro-text { max-width: 800px; margin: 0 auto 3rem; text-align: center; font-size: 1.1rem; color: var(--text-light); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow); transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card i { width: 32px; height: 32px; color: var(--accent); margin-bottom: 0.75rem; }
.stat-number { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); font-weight: 700; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============================================
   ARTICLES
   ============================================ */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.article-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-img {
  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-body { padding: 1.5rem; }
.article-category {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); margin-bottom: 0.5rem;
}
.article-body h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.article-excerpt { font-size: 0.92rem; color: var(--text-light); margin-bottom: 1rem; }
.article-full { display: none; font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }
.article-full.expanded { display: block; }
.read-more-btn {
  background: none; border: none; color: var(--accent); font-weight: 600;
  cursor: pointer; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem;
  transition: color var(--transition);
}
.read-more-btn:hover { color: var(--accent-light); }
.read-more-btn i { width: 16px; height: 16px; transition: transform var(--transition); }
.read-more-btn.expanded i { transform: rotate(180deg); }

/* ============================================
   VISITOR TIPS
   ============================================ */
.tips-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.tip-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.tip-card:hover { transform: translateY(-4px); }
.tip-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-bg); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.tip-icon i { width: 24px; height: 24px; color: var(--accent); }
.tip-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.tip-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ============================================
   SEASONAL GUIDE
   ============================================ */
.seasons-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.season-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; box-shadow: var(--shadow); transition: transform var(--transition);
  border-top: 4px solid var(--accent);
}
.season-card:hover { transform: translateY(-4px); }
.season-icon { margin-bottom: 1rem; }
.season-icon i { width: 36px; height: 36px; color: var(--accent); }
.season-card h3 { margin-bottom: 0.5rem; }
.season-months { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.season-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ============================================
   NEWSLETTER / LEAD FORM
   ============================================ */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}
.newsletter .section-header h2 { color: var(--white); }
.newsletter .section-header p { color: rgba(255,255,255,0.8); }
.lead-form {
  max-width: 600px; margin: 0 auto;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border-radius: var(--radius-lg); padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.9);
}
.form-group input, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius); background: rgba(255,255,255,0.1);
  color: var(--white); font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-group input::placeholder { color: rgba(255,255,255,0.5); }
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent-light);
}
.form-group select option { color: var(--text); background: var(--white); }
.consent-group {
  display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem;
}
.consent-group input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-light);
}
.consent-group label { font-size: 0.82rem; color: rgba(255,255,255,0.8); line-height: 1.5; }
.submit-btn {
  width: 100%; padding: 0.9rem; background: var(--accent-light); color: var(--primary);
  border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  font-family: var(--font-body);
}
.submit-btn:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.form-success {
  display: none; text-align: center; padding: 2rem;
}
.form-success.show { display: block; }
.form-success i { width: 48px; height: 48px; color: #2ecc71; margin-bottom: 1rem; }
.form-success h3 { color: var(--white); margin-bottom: 0.5rem; }
.form-success p { color: rgba(255,255,255,0.8); }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--radius); margin-bottom: 0.75rem;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-question {
  width: 100%; padding: 1.25rem 1.5rem; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; font-weight: 600; color: var(--primary); cursor: pointer;
  font-family: var(--font-body); text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--accent-bg); }
.faq-question i { width: 20px; height: 20px; transition: transform var(--transition); flex-shrink: 0; margin-left: 1rem; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-answer-inner { padding: 0 1.5rem 1.25rem; font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; color: var(--white); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand i { width: 20px; height: 20px; color: var(--accent-light); }
.footer-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.footer-links a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  font-size: 0.78rem; text-align: center; color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ============================================
   SUPPORTING PAGES
   ============================================ */
.page-hero {
  background: var(--primary); color: var(--white); padding: 6rem 0 3rem;
  margin-top: 64px; text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.7); }
.page-content {
  max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem;
}
.page-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.page-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
.page-content p { color: var(--text-light); margin-bottom: 1rem; }
.page-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-content ul li { color: var(--text-light); margin-bottom: 0.5rem; position: relative; padding-left: 1rem; }
.page-content ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .seasons-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-meta { gap: 1rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .seasons-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  .lead-form { padding: 1.5rem; }
}
