/*
Theme Name: BeiraByte
Theme URI: https://beirabyte.com/
Author: BeiraByte Technologies, Unipessoal Lda
Author URI: https://beirabyte.com/
Description: BeiraByte — Professional bilingual (PT-PT primary, EN secondary) WordPress theme. v1.12.2: mobile responsiveness audit — added html overflow-x:hidden + body max-width:100% safety net, dropped hero/page-hero/section-title/final-title clamp() floors so long PT words no longer overflow on 320–393px viewports, added overflow:hidden to .mission (600px pseudo-element was bleeding past parent), hid .calc-glow on phones (560px-wide glow at right:-100px in overflow:visible parent was the main left/right shift on home), tightened mobile padding on .intro-form-wrap / .booking-wrap / .magnet / .blog-cta-card / .calc-left / .calc-right (were 40–56px all-around with no mobile reduction), shrunk fixed-px section titles (booking-title, intro-form-title, magnet-title, phase h2, service-info h2, price-big amount) to clamp(), removed scale(1.02) transform on featured tier card on small phones (was causing edge bleed), added overflow-wrap:anywhere on prose elements <600px so long URLs/words always break, reduced footer-cta and footer-grid mobile padding. v1.12.1: removed visible breadcrumb call from 14 interior pages (was clashing with page-hero-eyebrow), Blog nav link now PT-only conditional (hidden on EN side), legal pages (privacy/cookies/terms) i18n stripped to hardcode Portuguese (immune to WP locale), suite/app/home.php WhatsApp link gained rel="nofollow noopener noreferrer", disabled secondary square og:image emission (was making WhatsApp/Meta show small thumbnails instead of big preview cards). v1.12.0: SEO overhaul — keyword-aligned H1s on all 14 page templates, expanded Organization+LocalBusiness schema with E-E-A-T signals (founder, foundingDate, knowsAbout), Service schema with @id + serviceType + inLanguage, stacked hreflang (pt-PT/pt/en-PT/en/x-default), single-source FAQ data structure, removed legacy meta keywords, search/404 noindex, WhatsApp links nofollow, full PT/EN i18n on single.php/archive.php/home.php blog templates with BreadcrumbList microdata, CLS fixes on consultation hero, WebP/AVIF auto-upgrade picture helper for content images, coming-soon page keyword-bearing title. Bumped from v1.11.13.
Version: 1.22.17
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beirabyte
Domain Path: /languages
Tags: business, portfolio, one-column, custom-menu, custom-logo, featured-images, translation-ready, rtl-language-support, threaded-comments
*/

/* ============================================
   BEIRABYTE — SHARED STYLES
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #120C22;
  --bg-2: #1E1538;
  --bg-3: #2A1F4D;
  --surface: #1A1230;
  --surface-hi: #241940;

  --ink: #FFFFFF;
  --ink-2: rgba(255,255,255,0.70);
  --ink-3: rgba(255,255,255,0.48);
  --ink-4: rgba(255,255,255,0.30);

  --accent: #22C6E6;
  --accent-2: #3BD5F2;
  --accent-dk: #0FA4C2;

  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --line-3: rgba(255,255,255,0.22);

  --success: #22E690;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent any descendant from forcing horizontal scroll */
  max-width: 100%;
}

::selection { background: var(--accent); color: var(--bg); }

img, video, iframe, svg { max-width: 100%; }
img { display: block; height: auto; }

/* Long unbreakable strings (URLs, code, emails) must wrap on mobile */
@media (max-width: 600px) {
  p, li, td, th, h1, h2, h3, h4, h5, h6, blockquote, .legal-body a {
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container-narrow { padding: 0 20px; } }

section { position: relative; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 12, 34, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease-smooth);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(18, 12, 34, 0.92);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 768px) { .nav-inner { padding: 16px 20px; } }

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo .byte { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
}
.lang-switch button,
.lang-switch .lang-switch-btn {
  background: transparent;
  border: none;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
}
.lang-switch button.active,
.lang-switch .lang-switch-btn.active {
  background: var(--accent);
  color: var(--bg);
}
.lang-switch .lang-switch-btn:not(.active):hover {
  color: var(--ink);
}
.lang-switch button[disabled] { cursor: not-allowed; opacity: 0.6; }

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 90px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-smooth);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}
.mobile-menu .btn {
  margin-top: 24px;
  width: 100%;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right .btn-primary:not(.menu-primary) { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 100px;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(34, 198, 230, 0.5);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
}
.btn-secondary:hover {
  background: var(--surface-hi);
  border-color: var(--line-3);
}

.btn-large {
  padding: 15px 28px;
  font-size: 15px;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section {
  padding: 120px 0;
}
@media (max-width: 768px) { .section { padding: 80px 0; } }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
@media (max-width: 768px) {
  .section-header { margin-bottom: 40px; }
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.section-sub-en {
  font-size: 14px;
  color: var(--ink-3);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 56px; }
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1200px; height: 500px;
  background: radial-gradient(ellipse at center top, rgba(34, 198, 230, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.page-hero-title {
  font-size: clamp(30px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
}
.page-hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 8px;
}
.page-hero-sub-en {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   FOOTER — premium redesign
   ============================================ */
.footer {
  position: relative;
  background: linear-gradient(180deg, #0D0820 0%, #070312 100%);
  border-top: 1px solid rgba(34, 198, 230, 0.12);
  padding: 0 0 0;
  overflow: hidden;
}

/* Subtle top glow */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.6;
}

/* =============== CTA BAND =============== */
.footer-cta {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(34, 198, 230, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(59, 213, 242, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(34, 198, 230, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
@media (max-width: 600px) {
  .footer-cta { padding: 48px 0; }
  .footer-cta-inner { gap: 28px; }
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 198, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 198, 230, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.footer-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-cta-left { flex: 1 1 360px; }
.footer-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(34, 230, 144, 0.12);
  border: 1px solid rgba(34, 230, 144, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #22E690;
  margin-bottom: 20px;
}
.footer-cta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22E690;
  box-shadow: 0 0 10px #22E690;
  animation: bb-pulse 2s ease-in-out infinite;
}
@keyframes bb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}
.footer-cta-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-cta-title-accent {
  background: linear-gradient(135deg, #22C6E6 0%, #3BD5F2 50%, #22C6E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer-cta-sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}
.footer-cta-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #22C6E6 0%, #3BD5F2 100%);
  color: #120C22;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 10px 30px rgba(34, 198, 230, 0.3), 0 0 0 1px rgba(34, 198, 230, 0.4);
}
.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(34, 198, 230, 0.4), 0 0 0 1px rgba(34, 198, 230, 0.5);
}
.footer-cta-btn:hover svg { transform: translateX(3px); }
.footer-cta-btn svg { transition: transform 0.2s; }
.footer-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  background: rgba(34, 230, 144, 0.1);
  color: #22E690;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(34, 230, 144, 0.3);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}
.footer-cta-btn-ghost:hover {
  background: rgba(34, 230, 144, 0.18);
  border-color: rgba(34, 230, 144, 0.5);
  transform: translateY(-2px);
}

/* =============== MAIN GRID =============== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1fr;
  gap: 48px;
  padding: 72px 0 48px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 32px; } }

/* Brand column */
.footer-brand { max-width: 340px; }
.footer-logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 20px;
}
.footer-logo .byte {
  background: linear-gradient(135deg, #22C6E6 0%, #3BD5F2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-tagline {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.footer-trust-item svg {
  flex-shrink: 0;
  color: #22E690;
  background: rgba(34, 230, 144, 0.14);
  padding: 4px;
  border-radius: 50%;
  box-sizing: content-box;
  width: 10px !important;
  height: 10px !important;
}

/* Social buttons */
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
}
.footer-social-btn:hover {
  color: var(--accent);
  border-color: rgba(34, 198, 230, 0.4);
  background: rgba(34, 198, 230, 0.08);
  transform: translateY(-2px);
}
.footer-social-btn.footer-social-wa:hover {
  color: #22E690;
  border-color: rgba(34, 230, 144, 0.4);
  background: rgba(34, 230, 144, 0.08);
}

/* Columns */
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 1px;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
}
.footer-links a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--accent);
  margin-right: 0;
  transition: all 0.25s var(--ease-smooth);
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-links a:hover::before {
  width: 12px;
  margin-right: 8px;
}

/* Contact cards */
.footer-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
  margin-bottom: 10px;
}
.footer-contact-card:hover {
  border-color: rgba(34, 198, 230, 0.3);
  background: rgba(34, 198, 230, 0.05);
  transform: translateY(-1px);
}
.footer-contact-card:hover .footer-contact-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}
.footer-contact-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 198, 230, 0.14) 0%, rgba(34, 198, 230, 0.04) 100%);
  border: 1px solid rgba(34, 198, 230, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-contact-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-contact-arrow {
  color: var(--ink-3);
  opacity: 0.6;
  transition: all 0.2s var(--ease-smooth);
  flex-shrink: 0;
}
.footer-contact-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(34, 230, 144, 0.06);
  border: 1px solid rgba(34, 230, 144, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 8px;
}
.footer-contact-hours-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22E690;
  box-shadow: 0 0 8px #22E690;
  flex-shrink: 0;
}

/* Legal strip */
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.footer-legal-left {
  color: var(--ink-2);
  font-weight: 500;
}
.footer-legal-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
}
.footer-legal-right svg {
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Decorative gradient line at the bottom */
.footer-gradient-line {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #22C6E6 15%, #3BD5F2 50%, #22C6E6 85%, transparent 100%);
  opacity: 0.7;
}

/* ============================================
   WHATSAPP FLOAT — premium glass pill
   Expands on hover to reveal "Falar agora" label
   Available-now pulse + dual glow + glassmorphism
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;

  /* Pill shape — collapses to circle, expands to pill on hover */
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  height: 60px;
  width: 60px;
  border-radius: 100px;

  /* Glassmorphic deep-purple base — matches BeiraByte surface tokens */
  background:
    linear-gradient(135deg, rgba(36, 25, 64, 0.92) 0%, rgba(26, 18, 48, 0.94) 100%);
  border: 1px solid rgba(34, 198, 230, 0.28);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  /* Layered shadows — depth + cyan kiss */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(34, 198, 230, 0.06),
    0 12px 28px -10px rgba(0, 0, 0, 0.6),
    0 24px 48px -16px rgba(34, 198, 230, 0.18);

  text-decoration: none;
  color: #FFFFFF;
  cursor: pointer;
  overflow: hidden;
  transition:
    width 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.4s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth),
    transform 0.3s var(--ease-smooth);
}

/* Outer breathing glow — sits behind the pill */
.wa-glow {
  position: absolute;
  inset: -8px;
  border-radius: 100px;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 198, 230, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(199, 146, 234, 0.25) 0%, transparent 60%);
  filter: blur(16px);
  z-index: -1;
  opacity: 0.55;
  animation: wa-breathe 3.4s ease-in-out infinite;
}
@keyframes wa-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.08); }
}

/* Icon container */
.wa-icon {
  position: relative;
  flex-shrink: 0;
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #22C6E6;
  transition: color 0.3s var(--ease-smooth);
}
.wa-icon svg { width: 26px; height: 26px; }

/* Live availability dot (top-right corner of icon) — pulses softly */
.wa-pulse {
  position: absolute;
  top: 14px; right: 14px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22E690;
  border: 2px solid rgba(36, 25, 64, 1);
  box-shadow: 0 0 0 0 rgba(34, 230, 144, 0.7);
  animation: wa-pulse-dot 2.2s cubic-bezier(0.66, 0, 0, 1) infinite;
}
@keyframes wa-pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(34, 230, 144, 0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 230, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 230, 144, 0); }
}

/* Label — hidden in compact state */
.wa-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #FFFFFF;
  padding-right: 22px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition:
    opacity 0.25s var(--ease-smooth) 0.05s,
    max-width 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Hover: expand to pill, reveal label, intensify glow */
.whatsapp-float:hover {
  width: 188px;
  border-color: rgba(34, 198, 230, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(34, 198, 230, 0.18),
    0 16px 36px -10px rgba(0, 0, 0, 0.7),
    0 32px 60px -18px rgba(34, 198, 230, 0.4);
}
.whatsapp-float:hover .wa-icon { color: #FFFFFF; }
.whatsapp-float:hover .wa-label {
  opacity: 1;
  max-width: 200px;
}
.whatsapp-float:hover .wa-glow { opacity: 1; }

/* Active/focus refinements */
.whatsapp-float:active { transform: translateY(1px); }
.whatsapp-float:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Mobile: stays compact (no hover state on touch) */
@media (max-width: 720px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  .wa-icon { width: 56px; height: 56px; }
  .wa-icon svg { width: 24px; height: 24px; }
  .wa-pulse { top: 12px; right: 12px; }
  /* Tap to navigate — never expand on touch devices */
  .whatsapp-float:hover { width: 56px; }
  .whatsapp-float:hover .wa-label { opacity: 0; max-width: 0; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .wa-glow, .wa-pulse { animation: none; }
}

/* ============================================
   BEIRABYTE BUSINESS SUITE — LIA FLOATING BADGE
   Small persistent badge that links to /app (Business Suite)
   Positioned above the WhatsApp float so both are visible.
   ============================================ */
.bb-lia-badge {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  background: rgba(10, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 198, 230, 0.3);
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(34, 198, 230, 0.1) inset;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bb-lia-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 198, 230, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(34, 198, 230, 0.2) inset;
  color: #fff;
}
.bb-lia-glow {
  position: absolute;
  inset: -4px;
  border-radius: 100px;
  background: radial-gradient(circle, rgba(34, 198, 230, 0.35) 0%, transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.bb-lia-badge:hover .bb-lia-glow { opacity: 1; }
.bb-lia-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22E690;
  box-shadow: 0 0 0 3px rgba(34, 230, 144, 0.2);
  animation: bb-lia-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bb-lia-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.bb-lia-icon {
  color: #22C6E6;
  flex-shrink: 0;
}
.bb-lia-label {
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.bb-lia-badge:focus-visible {
  outline: 2px solid #22C6E6;
  outline-offset: 2px;
}

/* v1.22.15: increased mobile badge bottom offset to clear the .bb-mobile-cta
 * sticky bar reliably. The bar sits at bottom:16px and is roughly 72-84px
 * tall (16 + 48 button + padding), so the badge must sit at ≥100px to clear it.
 *
 * Previous design used a `bb-mobile-cta:not([hidden]) ~ bb-lia-badge` sibling
 * selector to dynamically push the badge up — but in practice the badge was
 * still visually overlapping the CTA button on real devices (user screenshot
 * from contact page). The fix: unconditionally position the badge above where
 * the CTA could be, on ALL mobile sizes.
 */
@media (max-width: 768px) {
  .bb-lia-badge {
    bottom: 104px;
  }
}

/* Hide label and shrink badge on very small screens to avoid clutter */
@media (max-width: 480px) {
  .bb-lia-badge {
    bottom: 96px;          /* still above CTA bar */
    right: 12px;
    padding: 8px 12px 8px 10px;
    font-size: 12px;
  }
  .bb-lia-badge .bb-lia-label { display: none; }
  .bb-lia-badge { padding: 10px; }
}

/* When mobile sticky CTA bar is visible (kept as defense-in-depth) */
.bb-mobile-cta:not([hidden]) ~ .bb-lia-badge {
  bottom: 104px;
}

@media (prefers-reduced-motion: reduce) {
  .bb-lia-dot { animation: none; }
  .bb-lia-badge:hover { transform: none; }
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   COMMON COMPONENTS
   ============================================ */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Visually-hidden but screen-reader accessible */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link — becomes visible on keyboard focus */
.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  width: auto; height: auto;
  clip: auto; clip-path: none;
  overflow: visible; white-space: normal;
}

/* Visible focus ring on all interactive elements */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove default browser outline only when we have focus-visible */
:where(a, button, input, textarea, select, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion — disable animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Main landmark — no default styling needed, it's just the tag */
main#main { display: block; }

/* ============================================
   ILLUSTRATION WRAPPERS
   ============================================ */

/* Generic SVG illustration inside an <img>-like wrapper */
.bb-illustration {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}
.bb-illustration > svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Testimonial avatar initial (replaces photo) */
.testi-avatar-initial {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* ============================================
   SELF-HOSTED INTER (variable font, latin only)
   Replaces the Google Fonts <link> for privacy + speed
   ============================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-variable.woff2') format('woff2-variations');
}

/* ============================================
   v1.3 LAYOUT ADDITIONS
   - footer company-info block
   - mobile menu close button
   - sticky mobile CTA
   - cookie banner
   ============================================ */

.mobile-menu-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-smooth);
}
.mobile-menu-close:hover { background: var(--surface-hi); }

/* Sticky mobile CTA */
.bb-mobile-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  display: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
.bb-mobile-cta.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.bb-mobile-cta .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
@media (max-width: 768px) {
  .bb-mobile-cta { display: block; }
  /* Push the WhatsApp float up to make room for the CTA bar */
  .whatsapp-float { bottom: 80px; }
}

/* Cookie banner */
.bb-cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 110;
  background: rgba(26, 18, 48, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  max-width: 720px;
  margin: 0 auto;
  animation: bbCookieIn 0.4s var(--ease) both;
}
@keyframes bbCookieIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bb-cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.bb-cookie-inner > div:first-child {
  flex: 1;
  min-width: 240px;
}
.bb-cookie-banner strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}
.bb-cookie-banner p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.bb-cookie-banner p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bb-cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.bb-cookie-btn {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
}
.bb-cookie-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.bb-cookie-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Both buttons get the same visual prominence per CNPD guidelines */
.bb-cookie-btn-accept,
.bb-cookie-btn-reject {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border-color: rgba(255,255,255,0.18);
}
.bb-cookie-btn-accept:hover,
.bb-cookie-btn-reject:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}

@media (max-width: 560px) {
  .bb-cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px 18px; }
  .bb-cookie-actions { width: 100%; }
  .bb-cookie-btn { flex: 1; }
  /* When cookie banner shows, push mobile CTA up */
  .bb-cookie-banner ~ .bb-mobile-cta { display: none; }
}

/* "Demo / Conceito" badge for portfolio cards */
.case-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 4px 10px;
  background: rgba(26, 18, 48, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 198, 230, 0.4);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* Smaller version on homepage portfolio cards */
.project-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 3px 9px;
  background: rgba(26, 18, 48, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 198, 230, 0.4);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* ============================================================
 * 404 PAGE
 * ============================================================ */
.bb-404 {
  padding: 80px 0 120px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}
.bb-404-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.bb-404-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(80px, 14vw, 160px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 24px;
}
.bb-404-orb {
  display: inline-flex;
  width: clamp(84px, 15vw, 168px);
  height: clamp(84px, 15vw, 168px);
}
.bb-404-orb svg { width: 100%; height: 100%; display: block; }
.bb-404-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.bb-404-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.bb-404-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .bb-404-grid { grid-template-columns: 1fr; }
}
.bb-404-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.22s var(--ease-smooth);
}
.bb-404-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(34,198,230,0.35);
  transform: translateY(-2px);
}
.bb-404-card-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(34,198,230,0.12);
  color: #22C6E6;
}
.bb-404-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bb-404-card-body strong {
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.bb-404-card-body span {
  font-size: 12px; color: var(--ink-3);
}
.bb-404-card-arrow {
  color: var(--ink-3);
  transition: transform 0.22s var(--ease-smooth), color 0.22s var(--ease-smooth);
  flex-shrink: 0;
}
.bb-404-card:hover .bb-404-card-arrow {
  transform: translateX(3px);
  color: #22C6E6;
}
.bb-404-card-accent {
  background: linear-gradient(135deg, rgba(34,198,230,0.12), rgba(199,146,234,0.08));
  border-color: rgba(34,198,230,0.3);
}
.bb-404-card-accent .bb-404-card-icon {
  background: linear-gradient(135deg, #22C6E6, #3BD5F2);
  color: #120C22;
}

/* ===========================================================
   v1.12.0 — BREADCRUMBS COMPONENT (added for SEO)
   Matches the BreadcrumbList JSON-LD emitted by inc/seo.php.
   Rendered via beirabyte_render_breadcrumbs() helper.
   =========================================================== */

.breadcrumbs {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 1rem 0 0;
  margin: 0;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs-item a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumbs-item a:hover,
.breadcrumbs-item a:focus-visible {
  color: var(--accent, #5dd5ff);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumbs-current {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.breadcrumbs-separator {
  color: rgba(255, 255, 255, 0.32);
  user-select: none;
}

@media (max-width: 640px) {
  .breadcrumbs {
    font-size: 0.8125rem;
  }
}

/* ============================================
 * v1.22.14 — SHARED MOBILE OVERRIDES
 * ============================================
 * .final-cta is duplicated across 5 page-specific CSS files (page-home,
 * page-services, page-about, page-portfolio, page-how-it-works) with
 * identical `padding: 120px 0` and NO mobile override. On phones this
 * produced 240px of empty space around the final CTA (120px top + 120px
 * bottom) — about half the viewport on a typical phone.
 *
 * Adding the mobile override here (in style.css, loaded on every page)
 * cascades to all .final-cta instances at once without editing 5 files.
 * Specificity is identical so source-order wins — style.css loads BEFORE
 * the page CSS, so we need !important to override (page CSS rules without
 * a media-query are tied in specificity but win on source order).
 * ============================================ */
@media (max-width: 768px) {
  .final-cta { padding: 64px 0 !important; }
}
