/* ==========================================================================
   A Aba Assessoria e Gerenciamento — landing page
   ========================================================================== */

:root {
  --primary: #425c6d;
  --primary-dark: #344a58;
  --secondary: #c3ad8e;
  --whatsapp: #25d366;
  --hero-software: #fdb813;

  --text: #777;
  --heading: #555;
  --border: #dcdcdc;
  --bg-light: #fefefe;
  --bg-gray: #f0f0f0;
  --bg-plans: #f2f0f0;

  --font-body: "Open Sans", sans-serif;
  --font-nav: "Lato", sans-serif;

  --container: 1080px;
  --header-h: 90px;
  --header-h-stuck: 70px;
  --radius: 10px;
  --radius-lg: 30px;
}

/* Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background-color: var(--primary);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--heading);
  line-height: 1.3;
}

p {
  margin: 0 0 1.3em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
  margin-bottom: 1.3em;
}

section[id] {
  scroll-margin-top: var(--header-h-stuck);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: #fff;
  color: var(--primary);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 30px);
  margin: 0 auto;
  padding: 0 15px;
}

.container--narrow {
  max-width: calc(810px + 30px);
}

/* Tipografia de seção
   ========================================================================== */

.title {
  font-size: 1.6em;
  font-weight: 700;
  text-transform: uppercase;
}

.title--center {
  text-align: center;
}

.divider {
  width: 30px;
  height: 3px;
  margin: 1em 0;
  background-color: rgba(0, 0, 0, .1);
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* Botões
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 2.5em;
  padding: 0 1.2em;
  border: 2px solid transparent;
  border-radius: 99px;
  font-size: .97em;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}

.btn--primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn--outline {
  background-color: transparent;
}

.btn--outline.btn--primary {
  color: var(--primary);
}

.btn--outline.btn--primary:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn--outline.btn--secondary {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn--outline.btn--secondary:hover {
  background-color: var(--secondary);
  color: #fff;
}

.btn--outline.btn--white {
  border-color: #fff;
  color: #fff;
}

.btn--outline.btn--white:hover {
  background-color: #fff;
  color: var(--heading);
}

.btn--whatsapp {
  border-color: var(--whatsapp);
  color: #1da851;
}

.btn--whatsapp svg {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
}

.btn--whatsapp:hover {
  background-color: var(--whatsapp);
  color: #fff;
}

/* Cabeçalho
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--primary);
  box-shadow: 1px 1px 10px rgba(0, 0, 0, .15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .3s;
}

.header.is-stuck .header__inner {
  height: var(--header-h-stuck);
}

.header__logo img {
  width: 254px;
  max-height: calc(var(--header-h) - 22px);
  object-fit: contain;
  object-position: left center;
  transition: max-height .3s;
}

.header.is-stuck .header__logo img {
  max-height: calc(var(--header-h-stuck) - 16px);
}

.nav__list {
  display: flex;
  align-items: center;
}

.nav__list > li + li {
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.nav__list a:not(.btn) {
  display: block;
  padding: 0 .9em;
  font-family: var(--font-nav);
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  transition: color .2s;
}

.nav__list a:not(.btn):hover {
  color: #fff;
}

.nav__list .btn {
  margin-left: 1em;
  font-family: var(--font-nav);
  font-size: .8em;
}

.nav__list > li:last-child {
  border-left: 0;
}

.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.header__toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background-color: #fff;
  transition: transform .3s, opacity .3s;
}

.header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Banner
   ========================================================================== */

.hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  background: url("../img/fotos/hero.jpg") 0% 0% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, .2);
}

.hero__inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero__box {
  width: 40%;
  padding: 30px;
  border-radius: var(--radius);
  background-color: rgba(0, 0, 0, .4);
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
  text-align: center;
  animation: fade-in .8s .2s both;
}

.hero__box h1 {
  margin-bottom: .8em;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  color: #fff;
}

.hero__box .btn {
  border-radius: var(--radius-lg);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Áreas de atuação
   ========================================================================== */

.areas {
  background-color: var(--bg-gray);
}

.areas__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.areas__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  text-align: center;
  transition: box-shadow .3s;
}

.areas__list li + li {
  border-left: 1px solid rgba(0, 0, 0, .1);
}

.areas__list li:hover {
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
}

.areas__list span {
  font-size: 1.15em;
  font-weight: 300;
  line-height: 1.3;
  color: var(--secondary);
}

/* Seções
   ========================================================================== */

.section {
  padding: 50px 0;
}

.section--light {
  background-color: var(--bg-light);
}

.section--gray {
  background-color: var(--bg-gray);
}

.section--plans {
  background-color: var(--bg-plans);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  line-height: 1.5;
}

.split__media img {
  width: 100%;
}

/* Bloco imagem + texto */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.feature--reverse .feature__media {
  order: 2;
}

.feature__media img {
  width: 100%;
  aspect-ratio: 520 / 400;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.feature__text {
  max-width: 520px;
  padding: 5% 10%;
  background-color: var(--bg-gray);
}

.feature__text--white {
  background-color: #fff;
}

/* Abas Missão / Visão / Valores */
.tabs {
  padding-top: 12px;
  border-top: 2px solid #ddd;
}

.tabs__list {
  display: flex;
  gap: 4px;
  margin-bottom: 1em;
}

.tabs__tab {
  padding: 4px 10px;
  border: 0;
  border-radius: 99px;
  background: none;
  font-family: var(--font-body);
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, .85);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.tabs__tab:hover {
  color: var(--primary);
}

.tabs__tab[aria-selected="true"] {
  background-color: var(--primary);
  color: #fff;
}

/* Serviços (carrossel)
   ========================================================================== */

.carousel {
  position: relative;
  margin-top: 30px;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 30px) / 4);
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  opacity: .7;
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity .2s;
}

.carousel__arrow:hover {
  opacity: 1;
}

.carousel__arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__arrow--prev {
  left: -60px;
}

.carousel__arrow--next {
  right: -60px;
}

.service {
  scroll-snap-align: start;
  text-align: center;
}

.service img {
  width: 40%;
  margin: 0 auto 1.2em;
}

.service h3 {
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05em;
  font-weight: 700;
  text-transform: uppercase;
}

.service p {
  font-size: .95em;
  text-align: left;
}

/* Planos
   ========================================================================== */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 10px 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #fff;
  text-align: center;
  transition: box-shadow .3s, transform .3s;
}

.plan:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .22);
}

.plan__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 0 20px;
}

.plan__icon img {
  max-height: 100%;
  width: auto;
}

.plan__title {
  margin: 0;
  padding: 15px 10px 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-gray);
  font-size: .95em;
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
}

.plan__features {
  flex: 1;
  padding: 25px 15% 10px;
  font-size: .9em;
}

.plan__features li {
  padding-bottom: .9em;
  margin-bottom: .9em;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.plan__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

.plan__actions .btn {
  min-width: 175px;
}

.plan--client {
  border-color: var(--primary);
}

/* Área do cliente: aplicativo para Windows e macOS */
.plan__apps {
  margin-top: 18px;
  padding: 14px 20px 0;
  border-top: 1px solid var(--border);
}

.plan__apps-label {
  display: block;
  margin-bottom: 10px;
  font-size: .8em;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.plan__apps-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn--app {
  flex: 1;
  min-height: 2.3em;
  padding: 0 .6em;
  font-size: .8em;
  text-transform: none;
}

.btn--app svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan__apps[hidden] {
  display: none;
}

/* Contato
   ========================================================================== */

#contato {
  line-height: 1.5;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.phone:hover {
  color: var(--primary);
}

/* Rodapé
   ========================================================================== */

.footer {
  padding: 15px 0;
  background-color: var(--primary);
  font-size: .85em;
  text-align: center;
  color: rgba(255, 255, 255, .5);
}

.footer p {
  margin: 0;
}

.footer a {
  color: inherit;
  transition: color .2s;
}

.footer a:hover {
  color: #fff;
}

.footer .footer__hero {
  color: var(--hero-software);
}

.footer .footer__hero:hover {
  color: var(--hero-software);
  text-decoration: underline;
}

/* Responsivo
   ========================================================================== */

@media (max-width: 1220px) {
  .carousel {
    padding: 0 50px;
  }

  .carousel__arrow--prev {
    left: 0;
  }

  .carousel__arrow--next {
    right: 0;
  }
}

@media (max-width: 1000px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel__track {
    grid-auto-columns: calc((100% - 30px) / 2);
  }
}

@media (max-width: 849px) {
  .header__inner {
    justify-content: center;
    position: relative;
  }

  .header__toggle {
    display: block;
    position: absolute;
    left: 10px;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 11, 11, .95);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }

  .header.is-stuck .nav {
    top: var(--header-h-stuck);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav__list > li + li {
    border-left: 0;
  }

  .nav__list a:not(.btn) {
    padding: 12px 20px;
    font-size: 1.1em;
  }

  .nav__list .btn {
    margin: 10px 0 0;
    font-size: 1em;
  }

  .split,
  .feature {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature--reverse .feature__media {
    order: 0;
  }

  .feature__text {
    max-width: none;
  }
}

@media (max-width: 549px) {
  :root {
    --header-h: 83px;
  }

  .header__logo img {
    width: 200px;
  }

  .hero {
    min-height: 400px;
    background-position: 30% 0%;
  }

  .hero__inner {
    justify-content: center;
  }

  .hero__box {
    width: 90%;
    font-size: 1.1em;
  }

  .hero__box .btn {
    border-radius: var(--radius);
  }

  .areas__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .areas__list li:nth-child(3n + 1) {
    border-left: 0;
  }

  .areas__list li:nth-child(n + 4) {
    border-top: 1px solid rgba(0, 0, 0, .1);
  }

  .areas__list span {
    font-size: 1em;
  }

  .section {
    padding: 30px 0;
  }

  .feature__text {
    padding: 5%;
    text-align: center;
  }

  .feature__text .divider {
    margin-left: auto;
    margin-right: auto;
  }

  .tabs__list {
    justify-content: center;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .carousel {
    padding: 0 36px;
  }

  .carousel__track {
    grid-auto-columns: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .carousel__track {
    scroll-behavior: auto;
  }

  .hero__box {
    animation: none;
  }
}
