/* ============================================
   Fortaleza Beach & Water Park Guide
   Independent Travel Guide Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0077b6;
  --primary-dark: #005f8d;
  --primary-light: #00b4d8;
  --secondary: #f4a261;
  --secondary-dark: #e07b30;
  --accent: #2a9d8f;
  --accent-light: #52c7b8;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #0a1628;
  --text: #1a1a2e;
  --text-light: #4a4a68;
  --text-muted: #6c757d;
  --text-white: #ffffff;
  --border: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-md: rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

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

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  height: var(--header-height);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-brand i {
  width: 28px;
  height: 28px;
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#langBtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

#langBtn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

#langBtn i {
  width: 16px;
  height: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.3) 0%, rgba(10, 22, 40, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-white);
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero-location i {
  width: 18px;
  height: 18px;
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-dark .section-header h2 {
  color: var(--text-white);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Introduction / Stats --- */
.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card i {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Articles --- */
.articles-grid {
  display: grid;
  gap: 20px;
}

.article-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: box-shadow var(--transition);
}

.article-card:hover {
  box-shadow: 0 8px 30px var(--shadow-md);
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  transition: background var(--transition);
}

.article-header:hover {
  background: var(--bg-alt);
}

.article-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.article-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-icon i {
  width: 22px;
  height: 22px;
  color: white;
}

.article-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.article-header .read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.article-header .read-time i {
  width: 14px;
  height: 14px;
}

.article-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.article-toggle i {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.article-card.expanded .article-toggle {
  background: var(--primary);
}

.article-card.expanded .article-toggle i {
  color: white;
  transform: rotate(180deg);
}

.article-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.article-body-inner {
  padding: 0 24px 24px;
}

.article-body-inner .article-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.article-body-inner p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.article-body-inner h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}

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

.tip-card {
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-md);
}

.tip-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tip-card-icon i {
  width: 24px;
  height: 24px;
  color: white;
}

.tip-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.season-card {
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}

.season-card:hover {
  transform: translateY(-4px);
}

.season-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  border-radius: var(--radius);
}

.season-summer {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffcc80;
}

.season-autumn {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  border: 1px solid #f48fb1;
}

.season-winter {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 1px solid #90caf9;
}

.season-spring {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid #a5d6a7;
}

.season-card i {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
}

.season-summer i { color: #e65100; }
.season-autumn i { color: #ad1457; }
.season-winter i { color: #1565c0; }
.season-spring i { color: #2e7d32; }

.season-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.season-card .season-months {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.season-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Newsletter / Lead Form --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-white);
  padding: 80px 0;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  color: var(--text-white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.newsletter-inner p {
  opacity: 0.9;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.9;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  text-align: left;
}

.form-consent input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
  flex-shrink: 0;
}

.form-consent label {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.5;
}

.form-consent a {
  color: var(--secondary);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--secondary);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--secondary-dark);
}

.btn-submit i {
  width: 18px;
  height: 18px;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form-success.show {
  display: block;
}

.form-success i {
  width: 48px;
  height: 48px;
  color: var(--secondary);
  margin: 0 auto 12px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  gap: 16px;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question h3 {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
}

.faq-question i {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.expanded .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.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;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.footer-brand i {
  width: 24px;
  height: 24px;
  color: var(--secondary);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.78rem;
  opacity: 0.6;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.footer-copyright {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* --- Supporting Pages --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 120px 0 60px;
  text-align: center;
  color: var(--text-white);
  margin-top: var(--header-height);
}

.page-hero h1 {
  font-size: 2.4rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.05rem;
}

.page-content {
  padding: 60px 0;
}

.page-content .content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.page-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.page-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  margin: 12px 0 20px 20px;
}

.page-content ul li {
  list-style: disc;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}

/* --- Responsive --- */
@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: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 30px var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .seasons-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section {
    padding: 50px 0;
  }
}
