/*
Theme Name: Bahia Afora
Theme URI: https://www.bahiaafora.com.br
Author: Bahia Afora Operações Turísticas
Author URI: https://www.bahiaafora.com.br
Description: Tema institucional da Bahia Afora — curadoria e operação de experiências turísticas autênticas na Bahia e no Nordeste.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: #
Text Domain: bahia-afora
Tags: one-page, tourism, corporate, custom-menu, custom-logo, featured-images, full-width-template

Bahia Afora Theme — All rights reserved.
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --gold:        #C8932A;
  --gold-light:  #E8B84B;
  --dark:        #1A1208;
  --cream:       #F5EFE0;
  --cream-dark:  #EAE0CC;
  --brown:       #3D2A10;
  --text:        #2C1A06;
  --text-light:  #5C4A2A;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Josefin Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(26,18,8,0.85) 0%, transparent 100%);
  backdrop-filter: blur(2px);
  transition: background 0.4s, padding 0.4s;
}
#site-header.scrolled {
  background: rgba(26,18,8,0.97);
  padding: 14px 60px;
}

.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding .custom-logo { height: 52px; width: auto; }
.site-branding .site-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: #fff; text-decoration: none;
}

/* WordPress nav menu */
#primary-navigation { display: flex; align-items: center; }
#primary-navigation ul {
  list-style: none; display: flex; gap: 36px; margin: 0; padding: 0;
}
#primary-navigation ul li a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  transition: color 0.3s;
}
#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item > a { color: var(--gold-light); }

/* Mobile hamburger */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.menu-toggle span {
  display: block; width: 26px; height: 2px;
  background: #fff; transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.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,18,8,0.5) 0%, rgba(26,18,8,0.3) 40%, rgba(26,18,8,0.65) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
  animation: fadeUp 1.2s ease both;
}
.hero-logo-svg {
  width: 100px; margin: 0 auto 36px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}
.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 300; color: #fff;
  line-height: 1.05; letter-spacing: -1px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 28px auto;
}
.hero-divider .line { width: 80px; height: 1px; background: var(--gold); opacity: 0.8; }
.hero-divider .star { color: var(--gold); font-style: normal; font-size: 12px; }
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}
.hero-content p em { color: var(--gold-light); font-style: normal; }
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint span {
  display: block; width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================================
   SHARED SECTION UTILITIES
   ============================================================ */
.ba-section { padding: 100px 60px; }
.section-tag {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400; line-height: 1.1; color: var(--brown);
}
.section-title.light { color: #fff; }
.gold-line {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0 28px;
}
.gold-line .gl-line { width: 60px; height: 1px; background: var(--gold); }
.gold-line .gl-star { color: var(--gold); font-style: normal; font-size: 10px; }
.gold-line.centered { justify-content: center; }
.body-text {
  font-size: 14px; line-height: 1.9; color: var(--text-light);
  max-width: 560px;
}
.body-text strong { color: var(--brown); font-weight: 600; }

/* ============================================================
   QUEM SOMOS
   ============================================================ */
.quem-somos-section {
  background: #fff;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.qs-image {
  height: 600px;
  background-size: cover; background-position: center;
  position: relative;
}
.qs-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,147,42,0.15), transparent);
}
.qs-content {
  padding: 80px 70px;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.qs-content .body-text + .body-text { margin-top: 20px; }

/* ============================================================
   POR QUE A BAHIA
   ============================================================ */
.por-que-section {
  background: var(--cream-dark);
  padding: 100px 60px;
  text-align: center;
}
.pq-texts { max-width: 680px; margin: 0 auto 60px; }
.pq-texts .body-text { max-width: 100%; }
.pq-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.pq-card {
  border-radius: 50%; overflow: hidden; aspect-ratio: 1;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 40px rgba(200,147,42,0.2);
  transition: transform 0.4s, box-shadow 0.4s;
}
.pq-card:hover { transform: scale(1.04); box-shadow: 0 16px 60px rgba(200,147,42,0.35); }
.pq-card img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   NOVO TURISMO
   ============================================================ */
.novo-turismo-section {
  position: relative; text-align: center; padding: 120px 60px;
  background-size: cover; background-position: center; background-attachment: fixed;
}
.novo-turismo-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,18,8,0.78);
}
.novo-turismo-section > * { position: relative; z-index: 2; }
.nt-box {
  max-width: 680px; margin: 0 auto;
  border: 1px solid rgba(200,147,42,0.4);
  padding: 60px; background: rgba(26,18,8,0.5);
  backdrop-filter: blur(4px);
}
.nt-box .section-tag { color: var(--gold-light); }
.nt-box p { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.9; margin: 14px 0; }
.nt-box p strong { color: var(--gold-light); }

/* ============================================================
   O QUE ESTRUTURAMOS
   ============================================================ */
.estruturamos-section { background: #fff; }
.est-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: 60px;
}
.est-col {
  background: var(--cream); padding: 50px 40px;
  border-top: 3px solid var(--gold);
  transition: background 0.3s;
}
.est-col:hover { background: var(--cream-dark); }
.est-col h3 {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
}
.est-col ul { list-style: none; }
.est-col ul li {
  font-size: 13px; color: var(--text-light); line-height: 1.8;
  padding: 8px 0; border-bottom: 1px solid rgba(200,147,42,0.2);
  display: flex; gap: 12px; align-items: center;
}
.est-col ul li::before { content: '✦'; color: var(--gold); font-size: 8px; flex-shrink: 0; }
.est-footer {
  text-align: center; margin-top: 60px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; color: var(--brown); font-style: italic;
}
.est-footer strong { font-style: normal; color: var(--gold); }

/* ============================================================
   EXPERIÊNCIAS
   ============================================================ */
.experiencias-section { background: var(--cream-dark); }
.exp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}
.exp-card {
  padding: 40px 32px; background: #fff;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.exp-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(200,147,42,0.15);
}
.exp-icon { font-size: 28px; margin-bottom: 20px; }
.exp-card h3 {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.exp-card p { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* ============================================================
   DESTINOS
   ============================================================ */
.destinos-section { background: #1A1208; padding: 100px 0; }
.destinos-inner { padding: 0 60px; }
.destinos-inner .section-title { color: #fff; }
.dest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: 60px;
}
.dest-card {
  position: relative; height: 340px; overflow: hidden; cursor: pointer;
}
.dest-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.dest-card:hover img { transform: scale(1.08); }
.dest-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,18,8,0.9) 0%, transparent 60%);
  transition: opacity 0.4s;
}
.dest-card:hover::after { opacity: 0.7; }
.dest-card.dest-placeholder {
  background: linear-gradient(135deg, #1A1208, #3D2A10);
  display: flex; align-items: center; justify-content: center;
}
.dest-card.dest-placeholder::after { display: none; }
.dest-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 28px;
}
.dest-card.dest-placeholder .dest-info { position: relative; text-align: center; padding: 40px; }
.dest-info h3 {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.dest-info p { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ============================================================
   COMO TRABALHAMOS
   ============================================================ */
.como-section { background: var(--cream); }
.ct-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 60px;
}
.ct-step { display: flex; gap: 24px; align-items: flex-start; }
.ct-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300; color: var(--gold);
  line-height: 1; flex-shrink: 0; opacity: 0.5;
}
.ct-step h3 {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--brown); margin-bottom: 10px;
}
.ct-step p { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diferenciais-section {
  position: relative; padding: 100px 60px;
  background-size: cover; background-position: center; background-attachment: fixed;
}
.diferenciais-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,147,42,0.9) 0%, rgba(26,18,8,0.95) 100%);
}
.diferenciais-section > * { position: relative; z-index: 2; }
.dif-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 60px;
}
.dif-item { border-left: 2px solid rgba(255,255,255,0.3); padding-left: 24px; }
.dif-item h3 {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 10px;
}
.dif-item p { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.8; }
.dif-tagline {
  text-align: center; margin-top: 70px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 20px; color: rgba(255,255,255,0.6);
}
.dif-tagline strong {
  display: block; font-style: normal; font-size: 15px;
  letter-spacing: 3px; color: #fff; text-transform: uppercase; margin-top: 8px;
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato-section { background: #fff; }
.cont-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.cont-info > p {
  font-size: 14px; color: var(--text-light); line-height: 1.9; margin-bottom: 40px;
}
.cont-links { display: flex; flex-direction: column; }
.cont-link {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--cream-dark);
  text-decoration: none; transition: gap 0.3s;
}
.cont-link:hover { gap: 28px; }
.cont-link-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.cont-link-text .cl-label {
  display: block; font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 3px;
}
.cont-link-text .cl-value { font-size: 13px; color: var(--text); }
.cont-image {
  height: 500px; overflow: hidden;
  background-size: cover; background-position: center;
  position: relative;
}
.cont-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,147,42,0.2), transparent);
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--dark); padding: 50px 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
#colophon p { font-size: 11px; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; color: rgba(255,255,255,0.6); font-style: italic;
}

/* ============================================================
   WORDPRESS CONTENT AREA (blog / pages)
   ============================================================ */
.site-main { padding: 100px 60px; max-width: 900px; margin: 0 auto; }
.entry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px); color: var(--brown);
  margin-bottom: 24px;
}
.entry-content { font-size: 15px; line-height: 1.9; color: var(--text-light); }
.entry-content h2, .entry-content h3 { color: var(--brown); margin: 32px 0 12px; }
.entry-content a { color: var(--gold); text-decoration: underline; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%,100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pq-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  #site-header { padding: 16px 24px; }
  #site-header.scrolled { padding: 12px 24px; }

  .menu-toggle { display: flex; }
  #primary-navigation {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(26,18,8,0.98);
    padding: 20px 24px 32px;
  }
  #primary-navigation.open { display: flex; }
  #primary-navigation ul { flex-direction: column; gap: 0; width: 100%; }
  #primary-navigation ul li a {
    display: block; padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .ba-section, .por-que-section, .novo-turismo-section,
  .diferenciais-section, .contato-section { padding: 70px 24px; }
  .destinos-inner { padding: 0 24px; }
  .destinos-section { padding: 70px 0; }

  .quem-somos-section { grid-template-columns: 1fr; }
  .qs-image { height: 320px; }
  .qs-content { padding: 50px 30px; }

  .pq-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .est-grid,
  .exp-grid,
  .dest-grid,
  .ct-steps,
  .dif-grid { grid-template-columns: 1fr; }

  .cont-grid { grid-template-columns: 1fr; }
  .cont-image { height: 280px; }

  .nt-box { padding: 36px 24px; }

  #colophon {
    flex-direction: column; text-align: center;
    padding: 40px 24px;
  }

  .site-main { padding: 80px 24px; }
}
