/* Brunu Travel — Production Stylesheet (Master Version V10 - Mobile Layout & Centered Modals) */

/* --- 1. VARIÁVEIS E TEMA --- */
:root {
  --bg-header: #041226; 
  --bg1: #0a1b35; 
  --bg2: #122746; 
  
  --text: #ffffff;
  --accent: #4aa896; 

  --muted: rgba(255, 255, 255, 0.88);
  --header-text: #64748b;

  --card: rgba(255, 255, 255, 0.06);
  --cardBorder: rgba(255, 255, 255, 0.10);
  --shadow: rgba(0, 0, 0, 0.25);
  --white: #ffffff;
  --ink: #0c1220;
  --inkMuted: rgba(12, 18, 32, 0.55);

  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", serif; 
}

/* Modo Claro */
[data-theme="light"] {
  --bg-header: #f8fafc;
  --bg1: #f1f5f9;
  --bg2: #ffffff;
  --text: #0f172a;
  --accent: #2e7a6b;
  --muted: #64748b;
  --card: #ffffff;
  --cardBorder: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.05);
}

/* --- 2. RESETS E BASE --- */
* { box-sizing: border-box; }
/* Correção do Bug do Footer: Usar 100dvh para o mobile reconhecer a barra de navegação real */
html, body { min-height: 100dvh; overflow-x: hidden; }

/* Fundo Premium com Imagem */
body { 
  margin: 0; 
  padding: 0; 
  font-family: var(--font-ui); 
  color: var(--text); 
  background-color: var(--bg1); 
  background-image: url('images/bg-premium.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased; 
}

[data-theme="light"] body {
  background-image: none;
  background-color: var(--bg1);
}

h1, h2, h3, h4, p { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

.container { 
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 32px; 
}

.hide-on-mobile { display: flex; } 
.hide-on-desktop { display: none; }

/* --- 3. HEADER GLOBAL DE NAVEGAÇÃO --- */
header.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid rgba(12,18,32,.06); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }

.logo-wrap { display: flex; align-items: center; justify-content: center; height: 46px; width: auto; }
.logo-wrap img { height: 200%; width: auto; object-fit: contain; }

.brand .brand-lines { display: flex; flex-direction: column; justify-content: center; }
.brand .brand-name { font-family: var(--font-ui); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; color: #1f3667 !important; line-height: 1; margin-bottom: 2px; }
.brand .brand-name span { color: var(--accent) !important; }
.brand .brand-tag { font-family: var(--font-ui); font-weight: 500; font-size: 14px; color: var(--header-text); line-height: 1; letter-spacing: 0.1px; }

.nav { display: flex; gap: 32px; font-size: 14.5px; font-weight: 500; letter-spacing: 0.2px; }
.nav a { position: relative; padding: 6px 0; color: var(--header-text); transition: color 0.2s; text-decoration: none; }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background: var(--accent); transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1); border-radius: 2px; }
.nav a:hover, .nav a[aria-current="page"] { font-weight: 600; color: #1f3667; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; gap: 10px; align-items: center; }
.header-controls-modern { display: flex; align-items: center; gap: 16px; margin-right: 16px; padding-right: 16px; border-right: 1px solid rgba(12,18,32,0.1); }
.custom-select-wrapper { position: relative; display: flex; align-items: center; }
.lang-select-modern { appearance: none; background: transparent; border: none; color: var(--header-text); font-family: var(--font-ui); font-weight: 500; font-size: 14px; padding-right: 16px; cursor: pointer; outline: none; transition: color 0.2s; }
.lang-select-modern:hover { color: #1f3667; }
.lang-select-modern option { background: var(--white); color: var(--ink); }
.select-arrow { position: absolute; right: 0; font-size: 10px; color: var(--header-text); pointer-events: none; }
.control-divider { width: 1px; height: 14px; background: rgba(12,18,32,0.1); }

.theme-toggle-modern { background: transparent; border: none; color: var(--header-text); font-family: var(--font-ui); font-weight: 500; font-size: 14px; cursor: pointer; transition: color 0.2s; }
.theme-toggle-modern:hover { color: #1f3667; }
.theme-toggle-modern span { display: flex; align-items: center; gap: 6px; }
[data-theme="light"] .theme-toggle-modern .mode-claro { display: none; }
[data-theme="light"] .theme-toggle-modern .mode-escuro { display: flex; }
:root:not([data-theme="light"]) .theme-toggle-modern .mode-claro { display: flex; }
:root:not([data-theme="light"]) .theme-toggle-modern .mode-escuro { display: none; }

.phone-smart-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; color: var(--header-text); font-weight: 600; font-size: 14.5px; font-family: var(--font-ui); cursor: pointer; transition: color 0.2s; }
.phone-smart-btn:hover { color: #1f3667; }
.phone-text { display: inline; }

.icon-btn { height: 38px; width: 38px; border-radius: 99px; border: 1px solid rgba(12,18,32,.08); background: #fff; cursor: pointer; color: var(--ink); font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.icon-btn:hover { background: rgba(12,18,32,.04); }
.mobile-menu-btn { display: none; }

/* --- 4. FAB E BOTÕES GERAIS --- */
/* Removido o glow excessivo */
.fab { 
  position: fixed; right: max(24px, calc(50vw - 560px)); bottom: 90px; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; background: #25D366; border: none; color: #fff; cursor: pointer; z-index: 90; transition: transform 0.2s ease; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.fab:hover { transform: translateY(-3px); }
.fab i { font-size: 20px; }
.fab-text { font-family: var(--font-ui); font-weight: 500; font-size: 13px; letter-spacing: -0.01em; }

.btn-primary { background: var(--text); color: var(--bg1); padding: 0 24px; height: 48px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14.5px; transition: transform 0.2s, opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

/* --- 5. CABEÇALHO UNIFICADO DAS PÁGINAS --- */
.global-page-header { background: var(--bg-header); padding: 30px 24px 30px; text-align: left; border-bottom: 1px solid var(--cardBorder); margin-bottom: 50px; }
.global-page-header .badge-tag-center { display: inline-block; background: rgba(74, 168, 150, 0.15); color: var(--accent); padding: 4px 12px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; border: 1px solid rgba(74, 168, 150, 0.2); }
.global-page-header .page-title { font-family: var(--font-display); font-size: clamp(24px, 4vw, 30px); color: var(--text); margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.1; font-weight: 500; }
.global-page-header .page-subtitle { font-size: 15.5px; color: var(--accent); max-width: 850px; margin: 0; font-weight: 400; line-height: 1.5; }

/* --- 6. PÁGINA HOME (HERO) --- */
main { padding: 50px 0; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px 0; position: relative; z-index: 1; padding-left: max(32px, 4vw) !important; padding-right: max(32px, 4vw) !important; box-sizing: border-box; }
.hero-left { position: relative; z-index: 1; max-width: 600px; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px 0; color: var(--text); }
.hero-sub { font-weight: 500; font-size: 20px; color: var(--accent); margin: 0 0 16px 0; }
.hero-sub span { color: var(--accent); } 
.hero-p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 520px; }
.hero-socials-block { margin-top: 36px; display: flex; align-items: center; gap: 18px; }
.social-row-left { display: flex; gap: 16px; }
.social-row-left .social { font-size: 20px; color: var(--text); opacity: 0.5; transition: all 0.2s ease; }
.social-row-left .social:hover { opacity: 1; transform: translateY(-2px) scale(1.1); color: var(--accent); }
.handle-left { font-size: 13.5px; font-weight: 500; color: var(--text); opacity: 0.7; padding-left: 18px; border-left: 1px solid var(--cardBorder); letter-spacing: 0.02em; }
.hero-right { display: flex; justify-content: flex-end; }

/* Cartão do Hero em Vidro Fosco */
.bio-card { 
  width: 100%; max-width: 400px; 
  background: rgba(18, 39, 70, 0.55); 
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 24px; padding: 30px 24px; 
  box-shadow: 0 24px 60px var(--shadow); 
}
[data-theme="light"] .bio-card { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0,0,0,0.08); }

.bio-top { display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; }
.avatar { width: 80px; height: 80px; border-radius: 999px; object-fit: cover; border: 2px solid rgba(255,255,255,.1); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.bio-name { margin-top: 14px; font-weight: 600; font-size: 18px; color: var(--text); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.big-btn { height: 54px; border-radius: 16px; border: 1px solid var(--cardBorder); background: var(--bg1); color: var(--text); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 500; font-size: 14px; transition: all 0.2s ease; }
.big-btn:hover { background: var(--card); transform: translateY(-2px); }
.big-left { display: flex; align-items: center; gap: 14px; }
.big-ico { color: var(--accent); font-size: 16px; width: 20px; text-align: center; }
.big-arrow { font-size: 18px; opacity: 0.4; transition: transform 0.2s; }
.big-btn:hover .big-arrow { transform: translateX(4px); opacity: 0.9; color: var(--accent); }
.small-title { margin: 24px 4px 12px; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

/* --- 7. CARROSSÉIS E CARDS --- */
.page-trips { padding-top: 0; }
.trips-section { margin-bottom: 60px; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin: 0 0 6px 0; color: var(--text); }
.section-subtitle { color: var(--muted); font-size: 15px; font-weight: 400; margin: 0; }

.premium-slider-wrapper { width: 100%; position: relative; }
.nav-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.4); color: #fff; display: grid; place-items: center; cursor: pointer; transition: all 0.2s ease; font-size: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-arrow:hover { background: rgba(0,0,0,0.7); transform: translateY(-50%) scale(1.05); }
.floating-left, .floating-right { position: absolute; top: 40%; transform: translateY(-50%); z-index: 10; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.floating-left { left: 10px; }
.floating-right { right: 10px; }

.slider-track { display: flex; gap: 24px; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 16px; margin: 0; }
.slider-track::-webkit-scrollbar { display: none; }
.trip-card { flex: 0 0 240px; scroll-snap-align: start; cursor: pointer; }
.trip-card-link { display: flex; flex-direction: column; height: 100%; }

.trip-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 14px 40px var(--shadow); border: 1px solid var(--cardBorder); background: var(--bg2); }
.trip-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.trip-card:hover .trip-frame img { transform: scale(1.05); }
.trip-gradient-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 22%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.00) 55%); pointer-events: none; z-index: 1; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,0.95); color: #0c1220; padding: 6px 10px; border-radius: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.trip-content-inside { position: absolute; bottom: 20px; left: 16px; right: 16px; z-index: 2; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 134px; }
.trip-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 6px 0; text-shadow: 0 2px 10px rgba(0,0,0,0.5); min-height: 48px; display: flex; align-items: flex-end; }
.trip-dest { font-size: 12px; font-weight: 500; margin: 0; opacity: 0.95; color: #e2e8f0; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trip-mini-desc { margin: 0; font-size: 11.5px; line-height: 1.35; color: rgba(255,255,255,0.9); min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trip-content-outside { padding: 0 4px; display: flex; flex-direction: column; gap: 4px; }
.trip-info-row { font-size: 14px; font-weight: 500; color: var(--text); margin: 0 0 6px 0; }
.trip-leader { font-size: 12px; color: var(--muted); font-style: italic; margin: 0; }
.trip-cta { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }

.pagination-wrapper { display: flex; justify-content: center; margin-top: 24px; }
.pagination-lines { display: flex; gap: 8px; width: 100%; max-width: 180px; }
.page-line { height: 24px; flex: 1; cursor: pointer; display: flex; align-items: center; }
.page-line::after { content: ''; display: block; width: 100%; height: 4px; background: var(--cardBorder); border-radius: 4px; transition: all 0.3s ease; }
.page-line.active::after { background: var(--accent); }

/* Guias e Categorias */
.guide-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 14px 40px var(--shadow); border: 1px solid var(--cardBorder); background: var(--bg2); }
.guide-frame::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: background 0.3s ease; pointer-events: none; }
.guide-frame:hover::after { background: rgba(255,255,255,0.05); }
.guide-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.trip-card:hover .guide-frame img { transform: scale(1.05); }
.guide-bottom { padding: 0 4px; }
.guide-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 6px 0; color: var(--text); }
.guide-sub { font-size: 13px; color: var(--accent); margin: 0 0 12px 0; font-weight: 500; }
.guide-social { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); margin-bottom: 16px; font-weight: 500; }
.guide-social span { opacity: 0.6; }
.guide-social a { color: var(--text); font-size: 18px; transition: all 0.2s; opacity: 0.6; }
.guide-social a:hover { opacity: 1; color: var(--accent); transform: translateY(-2px); }
.guide-premium-btn { font-size: 14px; font-weight: 600; color: var(--text); background: none; border: none; padding: 0; cursor: pointer; transition: color 0.2s; }
.guide-premium-btn:hover { color: var(--accent); }

.categories-section { margin-bottom: 60px; }
.section-header-block { max-width: 760px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.collection-card { display: flex; flex-direction: column; height: 100%; background: var(--bg2); border: 1px solid var(--cardBorder); border-radius: 20px; padding: 16px; transition: transform 0.2s; }
.collection-card:hover { transform: translateY(-4px); background: var(--card); }
.coll-img-box { width: 100%; height: 180px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.coll-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.collection-card:hover .coll-img-box img { transform: scale(1.05); }
.coll-content { display: flex; flex-direction: column; height: 100%; padding: 0 4px; }
.coll-kicker { display: inline-block; font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.coll-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 8px 0; color: var(--text); }
.coll-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; min-height: 36px; }
.coll-copy { font-size: 13px; color: var(--text); opacity: 0.88; margin: 12px 0 0 0; line-height: 1.5; }
.coll-cta { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* --- 8. PÁGINA QUEM SOMOS --- */
.page-about { padding-top: 0; padding-bottom: 80px; }

.top-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--cardBorder); padding: 0 0 50px 0; gap: 24px; }
.top-value-item { text-align: center; padding: 0 16px; border-right: 1px solid var(--cardBorder); }
.top-value-item:last-child { border-right: none; }
.tv-icon { font-size: 24px; color: var(--accent); margin-bottom: 16px; }
.tv-title { font-family: var(--font-display); font-size: 18px; color: var(--text); margin: 0 0 12px 0; }
.tv-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

.eyebrow-text { display: block; font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.ed-h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 42px); color: var(--text); margin: 0 0 24px 0; letter-spacing: -0.02em; line-height: 1.1; }
.ed-paragraphs p { font-size: 15.5px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }

.ed-founder-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 80px 0; align-items: center; }
.ed-founder-img-wrapper { position: relative; width: 100%; max-width: 420px; margin: 0 auto; display: block; }
.ed-founder-img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px var(--shadow); display: block; }

.ed-floating-card { display: none !important; }

.ed-company-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 80px 0; align-items: center; border-top: 1px solid var(--cardBorder); }
.ed-company-card { background: var(--bg2); border-radius: 24px; padding: 40px; border: 1px solid var(--cardBorder); box-shadow: 0 12px 40px var(--shadow); }
.ed-card-title { font-family: var(--font-display); font-size: 20px; color: var(--text); margin: 0 0 24px 0; }
.ed-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ed-bullets li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); font-weight: 500; background: transparent; border: 1px solid var(--cardBorder); padding: 10px 18px; border-radius: 99px; transition: background 0.2s; }
.ed-bullets li:hover { background: var(--bg1); }
.ed-bullets li i { color: var(--accent); font-size: 14px; opacity: 0.9; }

.ed-bottom-cta { padding: 60px 0 20px; border-top: 1px solid var(--cardBorder); background: linear-gradient(to bottom, transparent, rgba(74, 168, 150, 0.03)); text-align: center; }
.cta-title { font-family: var(--font-display); font-size: 32px; color: var(--text); text-align: center; margin: 0 0 16px 0; letter-spacing: -0.01em; font-weight: 500; }
.cta-desc { text-align: center; color: var(--muted); margin: 0 auto 36px auto; max-width: 680px; line-height: 1.6; font-size: 15px; }

.cta-buttons-center { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp-light { background: #f1ebe5; color: #0c1220; padding: 0 28px; height: 50px; border-radius: 99px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; transition: transform 0.2s, opacity 0.2s; border: none; cursor: pointer; text-decoration: none;}
.btn-whatsapp-light:hover { transform: translateY(-2px); opacity: 0.95; }
.btn-outline-dark { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.2); padding: 0 28px; height: 50px; border-radius: 99px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; transition: background 0.2s, color 0.2s; text-decoration: none;}
.btn-outline-dark:hover { background: var(--text); color: var(--bg1); }

/* --- 9. FOOTER MINIMALISTA --- */
.site-footer { padding: 32px 0 30px; border-top: 1px solid var(--cardBorder); margin-top: 0; background: var(--bg-header); }
.footer-grid-minimal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; }
.footer-title { font-size: 13px; font-weight: 600; margin: 0 0 12px 0; color: var(--text); opacity: 0.9; letter-spacing: 0.02em; }
.footer-links-vert { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.footer-links-vert a { transition: color 0.2s; text-decoration: none; }
.footer-links-vert a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 16px; font-size: 18px; margin-top: 4px; }
.footer-socials a { transition: color 0.2s, transform 0.2s; color: var(--muted); }
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.footer-bottom-minimal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 16px; border-top: 1px solid var(--cardBorder); font-size: 12px; color: var(--muted); padding-right: 180px; }
.legal-links { display: flex; align-items: center; gap: 12px; }
.text-btn { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 13px; cursor: pointer; padding: 0; transition: color 0.2s; text-decoration: none; }
.text-btn:hover { color: var(--accent); }
.dot-sep { opacity: 0.5; font-size: 10px; }

/* Banner de Cookies */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 600px; background: var(--bg2); border: 1px solid var(--cardBorder); padding: 16px 24px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 999; box-shadow: 0 20px 40px var(--shadow); }
.cookie-banner p { font-size: 13px; margin: 0; color: var(--text); line-height: 1.5; }

/* --- 10. MODAIS E MENUS MOBILE --- */
.overlay { position: fixed; inset: 0; background: rgba(4,18,38,.8); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 200; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.overlay.open { display: flex; }

.modal { 
  width: min(420px, 100%); 
  background: rgba(10, 27, 53, 0.65); 
  backdrop-filter: blur(24px); 
  -webkit-backdrop-filter: blur(24px); 
  border-radius: 24px; 
  box-shadow: 0 24px 70px rgba(0,0,0,.4); 
  border: 1px solid rgba(255,255,255,0.12); 
  overflow: hidden; 
  color: var(--text); 
  margin: auto; 
  position: relative;
}

[data-theme="light"] .modal { 
  background: rgba(255, 255, 255, 0.75); 
  border: 1px solid rgba(0,0,0,0.08); 
}

/* Modais Padrão (Contactos, Menu, Termos) */
.modal header { 
  display: flex; justify-content: space-between; align-items: center; 
  padding: 18px 20px; 
  border-bottom: 1px solid var(--cardBorder); 
  background: transparent; 
}
.modal header strong { font-size: 16px; letter-spacing: .01em; margin: 0; }
.modal header button { 
  width: 36px; height: 36px; border-radius: 50%; 
  border: 1px solid var(--cardBorder); background: transparent; 
  color: var(--text); cursor: pointer; transition: all 0.2s; 
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.modal header button:hover { background: rgba(255,255,255,0.1); }
.modal .modal-body { padding: 16px; }

/* Cabeçalho Flutuante APENAS para Modais de Viagens e Guias (Web) */
#tripDetailsOverlay .modal header, 
#guideDetailsOverlay .modal header { 
  position: absolute !important; 
  top: 0; right: 0; 
  padding: 16px !important; 
  border: none !important; 
  z-index: 10; 
  display: block !important; 
  background: transparent !important;
  width: auto !important;
}
#tripDetailsOverlay .modal header strong, 
#guideDetailsOverlay .modal header strong { display: none !important; }
#tripDetailsOverlay .modal header button, 
#guideDetailsOverlay .modal header button { 
  width: 32px; height: 32px; 
  background: var(--bg2); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.menu-modal { width: min(340px, 100%); }
.menu-nav { display: flex; flex-direction: column; padding: 16px 24px 24px; gap: 8px; }
.menu-nav a { display: block; font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--cardBorder); transition: color 0.2s; text-align: center; }
.menu-nav a:last-child { border-bottom: none; }
.menu-nav a:hover, .menu-nav a:active { color: var(--accent); }

/* --- 11. RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 980px) {
  .nav, .phone-text { display: none; }
  .phone-smart-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--cardBorder); justify-content: center; }
  .phone-smart-btn:hover { background: rgba(12,18,32,.04); }
  .header-controls-modern { gap: 12px; margin-right: 12px; padding-right: 12px; }
  .lang-select-modern, .theme-toggle-modern { font-size: 13px; }
  .mobile-menu-btn { display: flex; }

  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-left { max-width: 100%; margin: 0 auto; align-items: center; }
  .hero-socials-block { justify-content: center; }
  .hero-right { justify-content: center; }
  .bio-card { max-width: 480px; }
  
  .category-grid { grid-template-columns: 1fr; gap: 40px; }
  .top-values-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .top-value-item:nth-child(2) { border-right: none; }
  .ed-founder-section, .ed-company-section { grid-template-columns: 1fr; gap: 50px; padding: 60px 0; text-align: center; }
  .eyebrow-text { margin-left: auto; margin-right: auto; }
  .ed-company-card { text-align: left; }
}

@media (max-width: 768px) {
  .footer-grid-minimal { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .footer-bottom-minimal { flex-direction: column; align-items: flex-start; padding-right: 0; }
}

/* Ajustes Cirúrgicos Mobile (< 600px) */
@media (max-width: 600px) {
  .hide-on-mobile { display: none !important; }
  .hide-on-desktop { display: block !important; }  
  .container { padding-left: 24px; padding-right: 24px; overflow-x: hidden; }

  /* HEADER E MARGENS GLOBAIS (Apertar espaço no topo para puxar tudo acima) */
  .header-inner { height: 64px; }
  main { padding: 12px 0 40px !important; }
  /* AQUI PUXAMOS O TÍTULO DAS PÁGINAS MAIS PARA CIMA */
  .global-page-header { padding: 10px 20px 14px !important; margin-bottom: 8px !important; border-bottom: none; }  
  .global-page-header .page-title { font-size: clamp(24px, 5.5vw, 28px) !important; margin-bottom: 4px; line-height: 1.1; white-space: normal; }
  .global-page-header .page-subtitle { font-size: 14px !important; }
  .section-title { font-size: 20px !important; margin-bottom: 4px; }  
  
  .hero { padding-top: 0px !important; margin-top: 0 !important; gap: 16px; }
  .hero-left { text-align: center !important; align-items: flex-start !important; }
  .hero-p, .hero-sub { text-align: center !important; }
  .hero-title { font-size: clamp(20px, 5.5vw, 24px) !important; margin-bottom: 8px; line-height: 1.1; }
  .hero-sub { font-weight: 500; font-size: 16px; color: var(--accent); margin: 0 0 12px 0; }
  .bio-card { padding: 20px 16px; }

  /* Controlos do Logo em Mobile */
  .brand { gap: 8px; align-items: center; justify-content: flex-start; text-decoration: none; display: flex; } 
  .logo-icon-wrap { height: 32px; display: flex; align-items: center; justify-content: center; }
  .logo-icon-wrap img { height: 100%; width: auto; object-fit: contain; }
  .brand-text-wrap { display: flex; flex-direction: column; justify-content: center; margin-top: 2px; }
  .brand-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #1c4fb3; line-height: 1; margin-bottom: 2px; letter-spacing: -0.5px; }
  .brand-subtitle { font-family: var(--font-ui); font-weight: 600; font-size: 10px; color: #4aa896; line-height: 1; letter-spacing: 0.2px; }

  /* CARROSSÉIS */
  .trip-frame, .guide-frame { aspect-ratio: 9 / 16; }

  /* QUEM SOMOS - AQUI ENCOLHEMOS O ESPAÇO PARA O TEXTO "OLÁ SOU O BRUNO" SUBIR */
  .page-about { display: flex; flex-direction: column; }
  .page-about > .global-page-header { order: 1; }
  .page-about > .ed-founder-section { order: 2; padding-top: 0px !important; padding-bottom: 20px; display: flex; flex-direction: column; gap: 14px !important; }
  .page-about > .ed-company-section { order: 3; display: flex; flex-direction: column; gap: 30px; padding-top: 20px; padding-bottom: 30px; }
  .page-about > section:nth-of-type(4) { order: 4; } /* Valores */
  .page-about > .ed-bottom-cta { order: 5; }

  /* GRELHA VALORES */
  .top-values-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; padding-top: 30px; padding-bottom: 20px; border-top: 1px solid var(--cardBorder); margin-top: 10px; }
  .tv-icon { font-size: 18px; margin-bottom: 8px; }
  .tv-title { font-size: 14px; margin-bottom: 4px; }
  .tv-desc { font-size: 11.5px; }

  /* FOTO FUNDADOR E TEXTOS - FOTO LIGEIRAMENTE MENOR PARA O TEXTO CABER */
  .ed-founder-img-wrapper { max-width: 250px !important; margin: 0 auto 4px auto !important; display: block; position: relative; }
  .ed-founder-img { width: 100%; display: block; }
  .ed-founder-right { padding: 0 10px; text-align: left; }
  .ed-founder-right .eyebrow-text.hide-on-mobile { display: block !important; text-align: left; font-size: 11px; margin-bottom: 8px; color: var(--accent); }
  .ed-h2 { font-size: 24px !important; margin-bottom: 16px; }
  .ed-paragraphs p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; text-align: left; }
  
  /* A EMPRESA */
  .ed-company-card { padding: 24px 20px; border-radius: 20px; }
  .ed-bullets { flex-direction: column; gap: 8px; }
  .ed-bullets li { width: 100%; justify-content: flex-start; font-size: 13px; padding: 12px 16px; box-sizing: border-box; }

  /* CTA FINAL E FOOTER RESPONSIVO */
  .ed-bottom-cta { padding: 30px 0 0; text-align: center; }
  .cta-desc { font-size: 13.5px !important; margin-bottom: 24px; padding: 0 10px; }
  .cta-buttons-center { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 12px; padding: 0 10px; box-sizing: border-box; }
  .btn-whatsapp-light, .btn-outline-dark { width: 250px !important; max-width: 100% !important; justify-content: center; }
  
  /* Resolve o corte no footer compensando a bottom bar */
  .site-footer { padding-bottom: 110px !important; }
  .cookie-banner { flex-direction: column; text-align: center; gap: 12px; padding: 16px; bottom: 85px !important; z-index: 1001; }
  
  /* Select nativo Mobile */
  .lang-select-modern { font-size: 16px !important; padding: 8px 30px 8px 12px !important; background-color: var(--bg2) !important; border: 1px solid var(--cardBorder) !important; border-radius: 8px; }

  /* AQUI COLAMOS AS MODAIS AO TOPO ABSOLUTO DO ECRÃ */
  .overlay { padding: 4px 12px; align-items: flex-start !important; justify-content: center !important; } 
  .modal { max-height: calc(100dvh - 75px); display: flex; flex-direction: column; margin-top: 4px !important; margin-bottom: auto !important; position: relative; }
  
  .modal header { padding: 16px 20px !important; }
  .modal .modal-body { padding: 20px 16px 24px !important; overflow-y: auto; }
  
  /* Cabeçalho Flutuante para Viagens e Guias no Mobile */
  #tripDetailsOverlay .modal header, 
  #guideDetailsOverlay .modal header { 
    position: absolute !important; 
    top: 0; right: 0; 
    padding: 12px 16px !important; 
    border: none !important; 
  }
  #tripDetailsOverlay .modal header button, 
  #guideDetailsOverlay .modal header button { 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }
  
  .btn-whatsapp { display: flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px !important; }
  .btn-whatsapp-text { display: flex; flex-direction: row; align-items: center; gap: 6px; }

  /* MENU APP BOTTOM BAR */
  .mobile-bottom-app-bar {
    display: flex !important; position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background: var(--bg-header); border-top: 1px solid var(--cardBorder); justify-content: space-around; align-items: center; padding: 0 4px; box-shadow: 0 -5px 15px rgba(0,0,0,0.15); z-index: 1000; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text); opacity: 1; text-decoration: none; background: none; border: none; cursor: pointer; padding: 5px 0; gap: 4px; font-family: var(--font-ui); font-weight: 600; position: relative; }
  .nav-item:active, .nav-item[aria-current="page"] { color: var(--accent); }
  .nav-item i { font-size: 20px; margin-bottom: 2px; }
  .nav-item span { font-size: 9.5px; letter-spacing: 0.02em; white-space: nowrap; }
}

/* Micro-ajustes para ecrãs minúsculos (< 520px) */
@media (max-width: 520px) {
  .bio-card { padding: 20px 16px; border-radius: 20px; }
  .fab { right: 20px; bottom: 85px; padding: 12px; }
  .fab-text { display: none; } 
  .trip-card { flex: 0 0 230px; }
  .trip-content-inside { min-height: 122px; }
  .trip-title { min-height: 44px; font-size: 20px; }
  .trip-dest { min-height: 32px; }
  .trip-mini-desc { min-height: 30px; font-size: 11px; }
  .coll-desc { min-height: auto; }
}