/*================================  */
/*================================  */
/* ====== FONTS =================== */
/*================================  */
/*================================ */

/* Fontes carregadas via <link> no HTML (Plus Jakarta Sans + Rubik) */

/*================================  */
/*================================  */
/* ====== VARIABLES =============== */
/*================================  */
/*================================ */

:root {
  /* Cores principais */
  --primary: #1a3a6b;
  --primary-dark: #0e2a52;
  --primary-light: #2a5298;
  --secondary: #f5b731;
  --secondary-dark: #d9a029;
  --secondary-light: #ffc94d;
  --accent: #00b4d8;

  /* Backgrounds */
  --background-1: #ffffff;
  --background-2: #e5e9ee;
  --background-dark: #0c1e3a;
  --overlay-dark: rgba(12, 30, 58, 0.75);
  --overlay-gradient: linear-gradient(
    90deg,
    rgba(12, 30, 58, 0.85) 0%,
    rgba(12, 30, 58, 0.4) 100%
  );

  /* Borders */
  --border-1: #e0e5ec;
  --border-2: #b0b8c4;

  /* Text */
  --white: #ffffff;
  --black: #111827;
  --text-heading: #111827;
  --text-body: #4b5563;
  --text-body-light: #9ca3af;
  --text-highlight: var(--secondary);
  --text-inverse: var(--white);

  /* Fontes */
  --font-header: "Plus Jakarta Sans", sans-serif;
  --font-body: "Rubik", sans-serif;

  /* Layout */
  --topbar-height: 42px;
  --navbar-height: 72px;
  --header-height: calc(var(--topbar-height) + var(--navbar-height));
  --container-max: 1200px;
  --container-padding: 16px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.16);
  --shadow-navbar: 0 4px 20px rgba(0, 0, 0, 0.15);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 16px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
}

/*================================  */
/*================================  */
/* ====== RESET =================== */
/*================================  */
/*================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--background-1);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-family: var(--font-header);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

/*================================  */
/*================================  */
/* ====== CONTAINER =============== */
/*================================  */
/*================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

/*================================  */
/*================================  */
/* ====== BUTTONS ================= */
/*================================  */
/*================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 100%;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--black);
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 183, 49, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: #0096b7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.btn-green {
  background-color: #4caf50;
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
}

.btn-green:hover {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn .arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
  transform: translate(3px, -3px);
}

/*================================  */
/*================================  */
/* ====== TOPBAR ================== */
/*================================  */
/*================================ */

.topbar {
  background-color: var(--primary);
  padding: 0 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--white);
  position: relative;
  z-index: 100;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center; /* Centralizado no mobile */
  height: 100%;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px; /* Maior no mobile */
  font-weight: 600; /* Mais destaque no mobile */
  color: var(--white);
  transition: var(--transition-fast);
}

.topbar__info-item:hover {
  color: var(--secondary);
}

.topbar__info-item .icon {
  width: 16px;
  height: 16px;
  fill: var(--secondary);
  flex-shrink: 0;
}

.topbar__social {
  display: none;
  align-items: center;
  gap: 12px;
}

.topbar__email {
  display: none;
}

.topbar__phone-secondary {
  display: none;
}

@media (min-width: 768px) {
  .topbar__social,
  .topbar__email,
  .topbar__phone-secondary {
    display: flex;
  }
  
  .topbar .container {
    justify-content: space-between;
  }

  .topbar__info-item {
    font-size: 13px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.85);
  }

  .topbar__info-item:hover {
    color: var(--white);
  }

  .topbar__info-item .icon {
    width: 14px;
    height: 14px;
  }
}

.topbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 14px;
}

.topbar__social a:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/*================================ */
/* ====== TOPBAR DESKTOP ========= */
/*================================ */
/*================================ */

@media (min-width: 768px) {
  .topbar {
    display: flex;
  }
}

/*================================  */
/*================================  */
/* ====== NAVBAR ================== */
/*================================  */
/*================================ */

.navbar {
  position: absolute;
  top: var(--topbar-height);
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: transparent;
  transition: var(--transition);
  height: var(--navbar-height);
}

.navbar.scrolled {
  position: fixed;
  top: 0;
  background-color: var(--primary);
  box-shadow: var(--shadow-navbar);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 101;
  position: relative;
  align-self: flex-start;
}

.navbar__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: calc(var(--navbar-height) + 20px);
  background-color: var(--secondary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  position: relative;
  top: 0;
}

.navbar__logo-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.navbar__logo-text {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.navbar__menu {
  display: none;
  align-items: center;
  gap: 4px;
}

.navbar__menu-item {
  position: relative;
}

.navbar__menu-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

.navbar__menu-link:hover,
.navbar__menu-link.active {
  color: var(--secondary);
}

.navbar__menu-link .dropdown-icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.navbar__menu-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown */
.navbar__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 102;
}

.navbar__menu-item:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition-fast);
}

.navbar__dropdown-link:hover {
  background-color: var(--background-2);
  color: var(--primary);
  padding-left: 24px;
}

.navbar__cta {
  display: none;
}

.navbar__cta .btn-green {
  font-size: 13px;
  padding: 10px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Toggle */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  cursor: pointer;
  z-index: 101;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.navbar__mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--primary-dark);
  padding: 100px 24px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  overflow-y: auto;
}

.navbar__mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.navbar__mobile-close:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

.navbar__mobile-menu.open {
  right: 0;
}

.navbar__mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.navbar__mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.navbar__mobile-link {
  display: block;
  padding: 14px 0;
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.navbar__mobile-link:hover {
  color: var(--secondary);
  padding-left: 8px;
}

.navbar__mobile-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.navbar__mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

/*================================ */
/* ====== NAVBAR DESKTOP ========= */
/*================================ */
/*================================ */

@media (min-width: 768px) {
  .navbar {
    top: var(--topbar-height);
  }

  .navbar__menu {
    display: flex;
  }

  .navbar__cta {
    display: flex;
  }

  .navbar__toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .navbar__menu-link {
    padding: 8px 18px;
  }
}

/*================================  */
/*================================  */
/* ====== FOOTER ================== */
/*================================  */
/*================================ */

.footer {
  background-color: var(--primary-dark);
  padding-top: 200px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Col Brand */
.footer__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer__logo img {
  height: 50px;
  width: auto;
}

.footer__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 340px;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-fast);
}

.footer__contact-item:hover {
  color: var(--secondary);
}

.footer__contact-item svg {
  fill: var(--secondary);
  flex-shrink: 0;
}

/* Col Titles */
.footer__col-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
}

.footer__col-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  margin-top: 12px;
  border-radius: 2px;
}

/* Links List */
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition-fast);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--secondary);
  padding-left: 6px;
}

/* Hours List */
.footer__hours {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.footer__hours li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer__hours-day {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 500;
}

.footer__hours-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* Footer Bottom */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  text-align: center;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer__social a:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer__social a svg {
  fill: currentColor;
}

/* Footer Desktop */
@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 60px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/*================================  */
/* ====== FLOATING BUTTONS =======  */
/*================================  */
.floating-btn-container {
  position: fixed;
  bottom: 40px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1200;
  pointer-events: none;
}

.floating-btn-container > * {
  pointer-events: auto;
}

.scroll-to-top,
.whatsapp-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.scroll-to-top svg,
.whatsapp-button svg {
  width: 28px;
  height: 28px;
  transition: var(--transition);
}

.scroll-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  background: var(--background-1) !important;
  color: var(--primary);
  border: 1px solid var(--border-1);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top.show:hover {
  background: var(--background-2) !important;
  transform: translateY(-4px);
}

.whatsapp-button {
  background: #25d366;
  color: var(--white);
  border: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: wave-whatsapp 2s infinite;
}

.whatsapp-button:hover {
  background: #128c7e;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.phone-button {
  background: var(--primary);
  color: var(--white);
  border: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.phone-button:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 58, 107, 0.4);
}

@keyframes wave-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (min-width: 820px) {
  .floating-btn-container {
    right: 32px;
    bottom: 32px;
  }

  .scroll-to-top,
  .whatsapp-button,
  .phone-button {
    width: 64px;
    height: 64px;
  }

  .scroll-to-top svg,
  .whatsapp-button svg,
  .phone-button svg {
    width: 32px;
    height: 32px;
  }
}
