/* BC Digital Hotsite — Styles */
:root {
  --bg: #0aaf70; /* azul institucional escuro */
  --bg-2: #002a9d;
  --text: #035014;
  --muted: #7bf5c6;
  --white: #ffffff;
  --accent: #086e58;
  --accent-2: #052c14;
  --container: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(64, 6, 56, 0.25);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding-bottom: 50px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  line-height: 1.5;
  background-color: var(--white);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff;
  border-bottom: 1px solid #e6eef6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-group img {
  width: 100px;
  height: 50px;
}
.brand-group .divider {
  width: 1px;
  height: 28px;
  background: #d6e3f2;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.menu-toggle:hover {
  background-color: #f1f6fb;
}
.menu-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 24px;
}
.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #28435f;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}
.header-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}
.header-nav .nav-link {
  color: #28435f;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.header-nav .nav-link:hover {
  background: #f1f6fb;
}
.header-nav .nav-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--white);
  padding: 40px 0 100px;
  overflow: visible;
  min-height: auto;
}

/* fixed viewport background using a pseudo-element to avoid background-attachment issues */
.hero::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../assets/img/fundopet.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-text .app-logo {
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.08));
  margin-bottom: 12px;
  margin-top: -100px;
  margin-left: -100px;
  max-width: 500px;
  width: 100%;
  height: auto;
}
.hero-title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  margin: 6px 0 10px;
}
.headline-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.headline-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hero-title .headline-fixed {
  white-space: nowrap;
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #001c81;
}
.headline-rotate {
  display: inline-block;
  position: relative;
  min-width: 10ch;
}
.headline-rotate .word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
  font-family: "Sour Gummy", "Rubik", cursive;
  font-weight: 600;
}
.headline-underline {
  width: 176px;
  height: 24px;
  transform-origin: left center;
  margin-top: -9px;
  margin-left: 100px;
}
.headline-underline path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: underline-draw 6s ease-in-out infinite;
}

@keyframes underline-draw {
  0% {
    stroke-dashoffset: 220;
  }
  20% {
    stroke-dashoffset: 0;
  }
  70% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 220;
  }
}
.headline-rotate .word.is-out {
  opacity: 0;
  transform: translateY(-0.4em);
  position: absolute;
  left: 0;
}
.headline-rotate .word.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .headline-rotate .word {
    transition: none;
  }
}
.hero-subtitle {
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.125rem);
  color: #ffffff;
  margin: 0 0 22px;
}

.hero-subtitle .bc-digital-highlight {
  color: #001c81;
  font-weight: 700;
}

.cta-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 10px 50px;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #03b40c;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.store-button:hover {
  transform: translateY(-2px);
  background: #128508;
  box-shadow: 0 12px 35px rgba(3, 180, 12, 0.35);
}
.store-button:active {
  transform: translateY(0);
}
.store-button .store-icon {
  display: grid;
  place-items: center;
  background: #095507;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.store-button .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.store-button .store-small {
  font-size: 0.75rem;
  color: #cfe6ff;
}
.store-button .store-big {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.google-play {
  transform: translateX(-5px);
}
.app-store {
  background: #03b40c;
}
.app-store .store-icon {
  background: #095507;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
}
.mockups {
  display: flex;
  gap: 16px;
  margin: 0;
  position: relative;
  height: 640px;
  width: 100%;
  max-width: 700px;
  align-items: center;
  justify-content: center;
}
.ngo-register-button {
  margin-bottom: 14px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #03b40c;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ngo-register-button:hover {
  transform: translateY(-1px);
  background: #128508;
}
.ngo-register-button:active {
  transform: translateY(0);
}
.phone {
  width: min(42vw, 320px);
  height: auto;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  position: absolute;
}
.phone-ios {
  transform: rotate(-4deg) translateX(-180px);
  left: 15%;
  top: 50%;
  margin-top: -320px;
}
.phone-android {
  transform: rotate(3deg) translateX(180px);
  right: 15%;
  top: 50%;
  margin-top: -320px;
}

/* Entrance animation for mockups */
.mockups.animate-in .phone {
  opacity: 0;
  transform-origin: center;
}
.mockups.animate-in .phone-ios {
  animation: phoneInLeft 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}
.mockups.animate-in .phone-android {
  animation: phoneInRight 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s both;
}

@keyframes phoneInLeft {
  0% {
    opacity: 0;
    transform: translateX(-24px) rotate(-8deg) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateX(2px) rotate(-3deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(-4deg);
  }
}
@keyframes phoneInRight {
  0% {
    opacity: 0;
    transform: translateX(24px) rotate(8deg) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateX(-2px) rotate(4deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(3deg);
  }
}

@keyframes buttonSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mockups.animate-in .phone,
  .mockups.animate-in .phone-ios,
  .mockups.animate-in .phone-android {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  background-image: url("../assets/img/faixa.png");
  background-repeat: repeat-x;
  background-size: auto 50px;
  background-position: center;
  height: 50px;
  border-top: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2;
}

/* ensure page content isn't hidden behind footer */
.site-main {
  padding-bottom: 0;
}

/* Layout responsive */
/* ===== MOBILE EXTRA SMALL (320px - 479px) ===== */
@media (max-width: 479px) {
  .menu-toggle {
    display: flex;
  }
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #e6eef6;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .header-nav.is-open {
    max-height: 300px;
  }
  .header-nav .nav-link {
    padding: 12px 20px;
    border-radius: 0;
    width: 100%;
  }
  .brand-group img {
    max-width: 70px;
    height: auto;
  }
  .brand-group .divider {
    height: 20px;
  }
  .hero {
    padding: 20px 0 100px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-text {
    align-items: center;
    text-align: center;
  }
  .hero-text .app-logo {
    margin-top: 0;
    margin-left: 0;
    max-width: 80vw;
  }
  .hero-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }
  .headline-wrap {
    align-items: center;
  }
  .headline-line {
    justify-content: center;
  }
  .headline-fixed {
    font-size: 2.1em;
  }
  .headline-rotate .word {
    font-size: 2.1em;
  }
  .headline-underline {
    margin-left: 0;
    width: 120px;
  }
  .cta-title {
    margin-left: 0;
    text-align: center;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .store-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .store-button {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    animation: buttonSlideUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .store-button.google-play {
    animation-delay: 0.3s;
  }
  .store-button.app-store {
    animation-delay: 0.5s;
  }
  .hero-visual {
    min-height: 350px;
  }
  .mockups {
    height: 400px;
  }
  .phone {
    width: min(50vw, 240px);
  }
  .phone-ios {
    transform: rotate(-4deg) translateX(-100px);
    left: 15%;
    margin-top: -200px;
  }
  .phone-android {
    transform: rotate(3deg) translateX(100px);
    right: 15%;
    margin-top: -200px;
  }
  .container {
    padding: 0 16px;
  }
}

/* ===== MOBILE SMALL (480px - 767px) ===== */
@media (min-width: 480px) and (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #e6eef6;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .header-nav.is-open {
    max-height: 300px;
  }
  .header-nav .nav-link {
    padding: 14px 20px;
    border-radius: 0;
    width: 100%;
  }
  .brand-group img {
    max-width: 80px;
    height: auto;
  }
  .hero {
    padding: 30px 0 100px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-text {
    align-items: center;
    text-align: center;
  }
  .hero-text .app-logo {
    margin-top: 0;
    margin-left: 0;
    max-width: 70vw;
  }
  .hero-title {
    font-size: clamp(1.35rem, 5vw, 2rem);
  }
  .headline-wrap {
    align-items: center;
  }
  .headline-line {
    justify-content: center;
  }
  .headline-fixed {
    font-size: 2.22em;
  }
  .headline-rotate .word {
    font-size: 2.22em;
  }
  .headline-underline {
    margin-left: 0;
    width: 140px;
  }
  .cta-title {
    margin-left: 0;
    text-align: center;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .store-buttons {
    flex-direction: column;
    width: 100%;
  }
  .store-button {
    width: 100%;
    justify-content: center;
    animation: buttonSlideUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .store-button.google-play {
    animation-delay: 0.3s;
  }
  .store-button.app-store {
    animation-delay: 0.5s;
  }
  .google-play {
    transform: translateX(0);
  }
  .hero-visual {
    min-height: 420px;
  }
  .mockups {
    height: 500px;
  }
  .phone {
    width: min(45vw, 280px);
  }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .brand-group img {
    width: 100px;
    height: 50px;
  }
  .header-nav {
    gap: 12px;
  }
  .header-nav .nav-link {
    padding: 8px 8px;
    font-size: 0.95rem;
  }
  .hero {
    padding: 48px 0 100px;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .store-buttons {
    gap: 10px;
  }
  .store-button {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  .hero-visual {
    min-height: 450px;
  }
  .mockups {
    gap: 50px;
    height: 550px;
  }
  .phone {
    width: min(38vw, 280px);
  }
}

/* ===== DESKTOP (1024px - 1439px) ===== */
@media (min-width: 1024px) and (max-width: 1439px) {
  .brand-group img {
    width: 100px;
    height: 50px;
  }
  .hero {
    padding: 64px 0 100px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .hero-text {
    padding-right: 24px;
  }
  .hero-visual {
    justify-content: flex-end;
    min-height: 550px;
  }
  .mockups {
    gap: 50px;
    height: 620px;
    max-width: 1050px;
  }
  .phone {
    width: min(40vw, 320px);
  }
  .phone-ios {
    transform: rotate(-4deg) translateX(-336px);
    left: 0%;
  }
  .phone-android {
    transform: rotate(3deg) translateX(336px);
    right: 0%;
  }
}

/* ===== DESKTOP LARGE (1440px+) ===== */
@media (min-width: 1440px) {
  .brand-group img {
    width: 100px;
    height: 50px;
  }
  .hero {
    padding: 84px 0 100px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
  .hero-text {
    padding-right: 40px;
  }
  .hero-visual {
    justify-content: flex-end;
    min-height: 600px;
  }
  .mockups {
    gap: 50px;
    height: 640px;
    max-width: 1150px;
  }
  .phone {
    width: min(42vw, 340px);
  }
  .phone-ios {
    transform: rotate(-4deg) translateX(-372px);
    left: 0%;
  }
  .phone-android {
    transform: rotate(3deg) translateX(372px);
    right: 0%;
  }
}

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
