/* ============================================================
   São Paulo Theme Park Guide — Master Stylesheet
   Vibrant Tropical Color Palette
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #2ECC40;
  --color-primary-dark: #1B9A2E;
  --color-secondary: #FFD700;
  --color-secondary-dark: #E6C200;
  --color-accent-orange: #FF6F3C;
  --color-accent-coral: #FF4081;
  --color-accent-teal: #00BFA5;
  --color-accent-sky: #29B6F6;
  --color-bg: #FAFDF7;
  --color-bg-alt: #F0F7E8;
  --color-bg-dark: #1A2E12;
  --color-text: #2D3A24;
  --color-text-light: #5A6B50;
  --color-text-inverse: #FFFFFF;
  --color-border: #D4E4C8;
  --color-border-light: #E8F0E0;
  --color-card-bg: #FFFFFF;
  --color-shadow: rgba(46, 204, 64, 0.12);
  --color-overlay: rgba(26, 46, 18, 0.65);
  --font-heading: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 24px var(--color-shadow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-orange); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--color-bg-dark); }
p { margin-bottom: 1rem; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 48px 0; }
.text-center { text-align: center; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-border-light);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.site-logo svg { flex-shrink: 0; }
.site-logo span { color: var(--color-secondary-dark); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--color-primary-dark); }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 4px;
  border: 1px solid var(--color-border);
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text-light);
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 2px solid var(--color-border);
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.05rem; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,46,18,0.35) 0%, rgba(26,46,18,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-bg-dark);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--color-shadow);
}
.hero-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--color-shadow);
  color: #fff;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}
.section-header .accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  margin: 0 auto 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Articles Section --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.article-card-header {
  padding: 24px 24px 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.article-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-icon svg { width: 24px; height: 24px; }
.article-icon.green { background: rgba(46,204,64,0.12); color: var(--color-primary-dark); }
.article-icon.yellow { background: rgba(255,215,0,0.15); color: #B8860B; }
.article-icon.orange { background: rgba(255,111,60,0.12); color: var(--color-accent-orange); }
.article-icon.teal { background: rgba(0,191,165,0.12); color: var(--color-accent-teal); }
.article-icon.coral { background: rgba(255,64,129,0.12); color: var(--color-accent-coral); }
.article-icon.sky { background: rgba(41,182,246,0.12); color: var(--color-accent-sky); }

.article-card-header h3 {
  font-size: 1.1rem;
  flex: 1;
  color: var(--color-bg-dark);
}
.article-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.article-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
  color: var(--color-text-light);
}
.article-card.expanded .article-toggle svg { transform: rotate(180deg); }
.article-card.expanded .article-toggle { background: var(--color-primary); }
.article-card.expanded .article-toggle svg { color: #fff; }

.article-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.article-body-inner {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}
.article-body-inner p { margin-bottom: 14px; }
.article-body-inner p:last-child { margin-bottom: 0; }
.article-card.expanded .article-body { max-height: 2000px; }

/* --- Visitor Tips --- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.tip-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
  text-align: center;
}
.tip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.tip-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.tip-icon svg { width: 28px; height: 28px; }
.tip-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.tip-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- Seasonal Guide --- */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.season-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.season-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.season-header {
  padding: 24px;
  color: #fff;
  position: relative;
}
.season-header h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.season-header .season-months { font-size: 0.85rem; opacity: 0.9; }
.season-body { padding: 20px 24px; }
.season-body p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 0; }
.season-summer .season-header { background: linear-gradient(135deg, #FF6F3C, #FFD700); }
.season-autumn .season-header { background: linear-gradient(135deg, #E65100, #FF8F00); }
.season-winter .season-header { background: linear-gradient(135deg, #29B6F6, #00BFA5); }
.season-spring .season-header { background: linear-gradient(135deg, #2ECC40, #66BB6A); }

/* --- FAQ Section --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--color-primary); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}
.faq-chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-text-light);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--color-primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* --- Lead Form --- */
.lead-section {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #2D4A1E 100%);
  position: relative;
  overflow: hidden;
}
.lead-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(46,204,64,0.08);
}
.lead-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.lead-form-wrapper h2 { color: #fff; margin-bottom: 8px; }
.lead-form-wrapper p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.consent-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.consent-group label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.form-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}
.form-submit:hover {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: #fff;
}
.form-success svg { margin: 0 auto 16px; }
.form-success h3 { color: var(--color-secondary); margin-bottom: 8px; }
.form-success p { color: rgba(255,255,255,0.8); }

/* --- Image Banner --- */
.image-banner {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-banner-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-banner-overlay h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-about p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--color-primary);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-primary); }
.footer-disclaimer {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.footer-disclaimer a { color: rgba(255,255,255,0.55); }
.footer-disclaimer a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* --- Static Pages (Privacy, Terms, About) --- */
.static-page {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 80px;
  min-height: 80vh;
}
.static-page .container { max-width: 800px; }
.static-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.static-page .page-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.static-page h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}
.static-page h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
.static-page p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.static-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.static-page ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 6px;
}
.disclaimer-box {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent-orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.disclaimer-box p { margin-bottom: 0; font-size: 0.9rem; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-padding { padding: 56px 0; }
  .hero { min-height: 70vh; }
  .articles-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .seasons-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tips-grid { grid-template-columns: 1fr; }
  .seasons-grid { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; }
  .container { padding: 0 16px; }
}
