/* ============================================
   Santa Catarina Adventure Guide — Style Sheet
   Independent Travel Guide · Zero Branding
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0e7c5f;
  --primary-dark: #095e48;
  --primary-light: #d0f0e4;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f8faf9;
  --bg-alt: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-inv: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
  --max-w: 1200px;
  --nav-h: 68px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  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(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }

/* --- Utility --- */
.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }
.section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: .5rem; color: var(--text); }
.section-subtitle { font-size: 1.1rem; text-align: center; color: var(--text-light); margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); max-width: var(--max-w); margin: 0 auto; padding: 0 4%;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--primary); }
.nav-brand i { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--text); transition: color var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
#langBtn {
  background: var(--primary-light); color: var(--primary-dark); border: none;
  padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: background var(--transition);
}
#langBtn:hover { background: var(--primary); color: var(--text-inv); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger i { width: 26px; height: 26px; color: var(--text); }

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; width: 100%; background: var(--bg-alt);
    flex-direction: column; padding: 24px 0; gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .35s ease; z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 24px; width: 100%; font-size: 1rem; }
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden; margin-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(.55);
}
.hero-content { position: relative; z-index: 2; color: var(--text-inv); padding: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  padding: 8px 18px; border-radius: 24px; font-size: .85rem; margin-bottom: 20px;
}
.hero-badge i { width: 16px; height: 16px; }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 28px; opacity: .92; }
.hero-stats { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 20px; }
.hero-stat { text-align: center; }
.hero-stat-val { font-size: 1.8rem; font-weight: 700; }
.hero-stat-lbl { font-size: .82rem; opacity: .8; }

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .hero-stat-val { font-size: 1.4rem; }
}

/* ============ INTRO ============ */
.intro { background: var(--bg-alt); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro-text p { margin-bottom: 16px; color: var(--text-light); font-size: 1.05rem; }
.intro-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.intro-card {
  background: var(--bg); border-radius: var(--radius-sm); padding: 20px;
  text-align: center; border: 1px solid var(--border);
}
.intro-card i { width: 28px; height: 28px; color: var(--primary); margin-bottom: 8px; }
.intro-card-val { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); }
.intro-card-lbl { font-size: .82rem; color: var(--text-light); }

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

/* ============ ARTICLES ============ */
.articles { background: var(--bg); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.article-card {
  background: var(--bg-alt); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.article-card-img {
  position: relative; height: 200px; overflow: hidden;
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.08); }
.article-card-body { padding: 24px; }
.article-card-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; color: var(--primary); text-transform: uppercase;
  margin-bottom: 8px;
}
.article-card-tag i { width: 14px; height: 14px; }
.article-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.article-card-excerpt { font-size: .92rem; color: var(--text-light); margin-bottom: 16px; }
.article-card-full {
  max-height: 0; overflow: hidden; transition: max-height .5s ease;
  font-size: .92rem; color: var(--text-light); line-height: 1.8;
}
.article-card-full.open { max-height: 2000px; }
.article-card-full p { margin-bottom: 12px; }
.article-toggle {
  background: none; border: none; color: var(--primary); font-weight: 600;
  font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 0; transition: color var(--transition);
}
.article-toggle:hover { color: var(--accent-dark); }
.article-toggle i { width: 16px; height: 16px; transition: transform .3s ease; }
.article-toggle.expanded i { transform: rotate(180deg); }

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

/* ============ VISITOR TIPS ============ */
.tips { background: var(--bg-alt); }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tip-card {
  background: var(--bg); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); transition: box-shadow var(--transition);
}
.tip-card:hover { box-shadow: var(--shadow-md); }
.tip-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tip-icon i { width: 24px; height: 24px; color: var(--primary); }
.tip-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.tip-card p { font-size: .9rem; color: var(--text-light); }

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

/* ============ SEASONAL GUIDE ============ */
.seasonal { background: var(--bg); }
.seasonal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season-card {
  border-radius: var(--radius); padding: 28px; text-align: center;
  border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition);
}
.season-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.season-card.spring { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.season-card.summer { background: linear-gradient(135deg, #fef9c3, #fde68a); }
.season-card.autumn { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.season-card.winter { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.season-icon { margin-bottom: 12px; }
.season-icon i { width: 36px; height: 36px; }
.spring .season-icon i { color: #059669; }
.summer .season-icon i { color: #d97706; }
.autumn .season-icon i { color: #ea580c; }
.winter .season-icon i { color: #0284c7; }
.season-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.season-card .season-months { font-size: .82rem; color: var(--text-light); margin-bottom: 10px; }
.season-card p { font-size: .88rem; color: var(--text-light); }

@media (max-width: 768px) {
  .seasonal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .seasonal-grid { grid-template-columns: 1fr; }
}

/* ============ NEWSLETTER / LEAD FORM ============ */
.newsletter {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-inv);
}
.newsletter .section-title, .newsletter .section-subtitle { color: var(--text-inv); }
.newsletter .section-subtitle { opacity: .9; }
.form-wrapper {
  max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 36px; border: 1px solid rgba(255,255,255,.15);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12);
  color: var(--text-inv); font-size: .95rem; font-family: var(--font);
  transition: border-color var(--transition);
}
.form-group input::placeholder { color: rgba(255,255,255,.55); }
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group select option { color: var(--text); }
.form-consent {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px;
  font-size: .82rem; opacity: .9;
}
.form-consent input[type="checkbox"] {
  margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0;
}
.form-btn {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #1a1a1a; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  font-family: var(--font);
}
.form-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.form-success {
  display: none; text-align: center; padding: 24px;
}
.form-success.show { display: block; }
.form-success i { width: 48px; height: 48px; color: var(--accent); margin-bottom: 12px; }
.form-success h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* ============ FAQ ============ */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 18px 20px; background: var(--bg-alt); border: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer;
  font-family: var(--font); text-align: left; transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question i { width: 20px; height: 20px; color: var(--primary); transition: transform .3s ease; flex-shrink: 0; margin-left: 12px; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  padding: 0 20px; font-size: .92rem; color: var(--text-light); line-height: 1.7;
}
.faq-answer.open { max-height: 500px; padding: 0 20px 18px; }

/* ============ FOOTER ============ */
.footer {
  background: #0f172a; color: rgba(255,255,255,.7); padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--text-inv); font-weight: 700; font-size: 1.1rem; }
.footer-brand i { width: 24px; height: 24px; }
.footer-desc { font-size: .9rem; line-height: 1.7; margin-bottom: 14px; }
.footer h4 { color: var(--text-inv); font-size: .95rem; margin-bottom: 16px; }
.footer-links a { display: block; font-size: .88rem; color: rgba(255,255,255,.6); padding: 4px 0; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .82rem;
}
.footer-disclaimer {
  background: rgba(255,255,255,.05); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-top: 20px; font-size: .8rem; line-height: 1.6;
  border-left: 3px solid var(--accent);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============ SUPPORTING PAGES ============ */
.page-header {
  background: var(--primary); color: var(--text-inv); padding: 100px 0 50px; text-align: center;
  margin-top: var(--nav-h);
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; }
.page-content { padding: 60px 0; max-width: 800px; margin: 0 auto; }
.page-content h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.page-content p { margin-bottom: 16px; color: var(--text-light); font-size: .95rem; line-height: 1.8; }
.page-content ul { margin-bottom: 16px; padding-left: 20px; }
.page-content ul li { color: var(--text-light); font-size: .95rem; margin-bottom: 8px; list-style: disc; }
.page-content a { color: var(--primary); text-decoration: underline; }
